237238239240241242243244245246247
if (file.exists()) { file.delete(); } file.createNewFile(); ITagWriter writer = new FLVWriter(new FileOutputStream(file), false); writer.writeHeader(); return writer; } /** {@inheritDoc} */ public ITagWriter getAppendWriter() throws IOException {
159160161162163164165166167168169
ITag injectedTag = injectMetaData(meta, tag); injectedTag.setPreviousTagSize(0); tag.setPreviousTagSize(injectedTag.getBodySize()); writer.writeHeader(); writer.writeTag(injectedTag); writer.writeTag(tag); int cuePointTimeStamp = 0; int counter = 0;