Package com.itstherules.tags

Examples of com.itstherules.tags.MetaTag


    do {
      byte mbb[] = fh.readByteArray(5);
      if (mbb == null) break;
      tagType = bh.readUint(mbb, 4, 1);
      if (tagType == 18) {
        metaTag = new MetaTag(ioHelper);
        if (!metaTag.getEvent().equals("onMetaData")) continue;
        found = true;
        break;
      }
      new FlvTag(ioHelper);
View Full Code Here


  }
 
  public void buildOnLastSecond() {
    duration = tagBroker.getDuration();
    lastTimeStamp = duration - 1000L;
    MetaTag metaTag = new MetaTag();
    metaTag.setEvent("onLastSecond");
    metaTag.setTimestamp(lastTimeStamp);
    metaTag.setMetaData(new HashMap());
    if (lastTimeStamp > 0L) {
      ArrayList<TagStore> nts = new ArrayList<TagStore>();
      TagStore mtTagStor = new TagStore(18, metaTag.getDataSizeFromBuffer() - 15, lastTimeStamp, metaTag);
      mtTagStor.setIsNew(true);
      nts.add(mtTagStor);
      tagBroker.addTags(nts, false, true);
    }
  }
View Full Code Here

      tagBroker.addTags(nts, false, true);
    }
  }
 
  public void buildOnMetaData() {
    metaTag = new MetaTag();
    metaTag.setEvent("onMetaData");
    embeddedData = new EmbeddedData();
    embeddedData.addData("metadatadate", new AMFTime());
    embeddedData.addData("duration", new Double(((double) duration + tagBroker.getFrameRate()) / 1000D));
    embeddedData.addData("lasttimestamp", new Double((double) duration / 1000D));
View Full Code Here

          keyFrameTagOffsets.add(new Double(vt.getByteOffset()));
        }
        tags.add(stor);
        break;
      case 18: // '\022'
        MetaTag mt = new MetaTag(ioh);
        totalByteOffset += mt.getDataSize();
        stor.setDataSize(mt.getDataSize() - 15);
        totalMetaSize += mt.getDataSize() + 15;
        stor.setTimestamp(mt.getTimestamp());
        stor.setType(tagType);
        stor.setTag(mt);
        if (mt.getEvent().equals("onCuePoint")) cuePointTags.add(mt.getMetaData());
        else if (mt.getEvent().equals("onMetaData")) onMetaTag = lastTag;
        tags.add(stor);
        break;
      case 0: // '\0'
        FlvTag ft = new FlvTag(ioh);
        totalByteOffset += ft.getDataSize();
View Full Code Here

TOP

Related Classes of com.itstherules.tags.MetaTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.