Package org.red5.io

Examples of org.red5.io.ITagReader.readTag()


    ITagReader reader = flv.getReader();
    System.out.println("test: " + reader);
    ITag tag = null;
    System.out.println("test: " + reader.hasMoreTags());
    while (reader.hasMoreTags()) {
      tag = reader.readTag();
      // System.out.println("test: " + f);
      printTag(tag);
    }

    // simply tests to see if the last tag of the flv file
View Full Code Here


      FLVReader reader = new FLVReader(file, true);
      KeyFrameMeta meta = reader.analyzeKeyFrames();
      log.debug("Meta: {}", meta);
      ITag tag = null;
      for (int t = 0; t < 6; t++) {
        tag = reader.readTag();
        log.debug("Tag: {}", tag);
      }
      reader.close();
      log.info("----------------------------------------------------------------------------------");
    } catch (IOException e) {
View Full Code Here

        KeyFrameMeta meta = reader.analyzeKeyFrames();
        log.debug("Meta: {}", meta);

        ITag tag = null;
        for (int t = 0; t < 6; t++) {
          tag = reader.readTag();
          log.debug("Tag: {}", tag);
        }
        reader.close();
        log.info("----------------------------------------------------------------------------------");
      }
View Full Code Here

    FLVWriter writer = new FLVWriter(fos, false);
    ITag tag = null;

    // Read first tag
    if (reader.hasMoreTags()) {
      tag = reader.readTag();
      if (tag.getDataType() == IoConstants.TYPE_METADATA) {
        if (!reader.hasMoreTags())
          throw new IOException(
              "File we're writing is metadata only?");
      }
View Full Code Here

      Arrays.sort(metaArr);
      cuePointTimeStamp = getTimeInMilliseconds(metaArr[0]);
    }

    while (reader.hasMoreTags()) {
      tag = reader.readTag();

      // if there are cuePoints in the array
      if (counter < metaArr.length) {

        // If the tag has a greater timestamp than the
View Full Code Here

  public void testCtor() throws Exception {
   
    File file = new File("target/test-classes/fixtures/sample.m4a");
    M4AReader reader = new M4AReader(file);
   
    ITag tag = reader.readTag();
    log.debug("Tag: {}", tag);
    tag = reader.readTag();   
    log.debug("Tag: {}", tag);

  }
View Full Code Here

    File file = new File("target/test-classes/fixtures/sample.m4a");
    M4AReader reader = new M4AReader(file);
   
    ITag tag = reader.readTag();
    log.debug("Tag: {}", tag);
    tag = reader.readTag();   
    log.debug("Tag: {}", tag);

  }
}
View Full Code Here

    KeyFrameMeta meta = reader.analyzeKeyFrames();
    log.debug("Meta: {}", meta);

    ITag tag = null;
    for (int t = 0; t < 32; t++) {
      tag = reader.readTag();
      log.debug("Tag: {}", tag);
    }

    log.info("----------------------------------------------------------------------------------");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.