Examples of IStreamableFile


Examples of org.red5.io.IStreamableFile

    if (service == null) {
      log.error("No service found for {}", file.getAbsolutePath());
      return 0;
    }
    try {
      IStreamableFile streamFile = service.getStreamableFile(file);
      ITagReader reader = streamFile.getReader();
      duration = (double) reader.getDuration() / 1000;
      reader.close();
    } catch (IOException e) {
      log.error("error read stream file {}. {}", file.getAbsolutePath(), e);
    }
View Full Code Here

Examples of org.red5.io.IStreamableFile

    } else if (!file.canWrite()) {
      throw new IOException("The file is read-only");
    }

    IStreamableFileService service = factory.getService(file);
    IStreamableFile flv = service.getStreamableFile(file);
    writer = flv.getWriter();
  }
View Full Code Here

Examples of org.red5.io.IStreamableFile

    } else if (!file.canWrite()) {
      throw new IOException("The file is read-only");
    }

    IStreamableFileService service = factory.getService(this.file);
    IStreamableFile flv = service.getStreamableFile(this.file);
    this.writer = flv.getWriter();

  }
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.