Examples of IProviderService


Examples of org.red5.server.stream.IProviderService

   * @param name
   *            Stream name
   * @return  Stream length in seconds (?)
   */
  public double getStreamLength(String name) {
    IProviderService provider = (IProviderService) getScopeService(scope,
        IProviderService.class, ProviderService.class);
    File file = provider.getVODProviderFile(scope, name);
    if (file == null) {
      return 0;
    }

    double duration = 0;
View Full Code Here

Examples of org.red5.server.stream.IProviderService

    audioBroadcastStream.setPublishedName(listenStreamName);
    audioBroadcastStream.setScope(scope);
   
    IContext context = scope.getContext();
   
    IProviderService providerService = (IProviderService) context.getBean(IProviderService.BEAN_NAME);
    if (providerService.registerBroadcastStream(scope, listenStreamName, audioBroadcastStream)){
      // Do nothing. Successfully registered a live broadcast stream. (ralam Sept. 4, 2012)
    } else{
      log.error("could not register broadcast stream");
      throw new RuntimeException("could not register broadcast stream");
    }
View Full Code Here

Examples of org.red5.server.stream.IProviderService

    broadcastStream.setPublishedName(listenStreamName);
    broadcastStream.setScope(aScope);
   
    IContext context = aScope.getContext();
   
    IProviderService providerService = (IProviderService) context.getBean(IProviderService.BEAN_NAME);
    if (providerService.registerBroadcastStream(aScope, listenStreamName, broadcastStream)){
      // Do nothing.
    } else{
      log.error("could not register broadcast stream");
      throw new RuntimeException("could not register broadcast stream");
    }
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.