Class StreamUtils

java.lang.Object
org.red5.server.api.stream.support.StreamUtils

public abstract class StreamUtils extends Object
Stream helper methods.
Author:
The Red5 Project, Steven Gong (steven.gong@gmail.com), Paul Gregoire (mondain@gmail.com)
  • Field Details

  • Constructor Details

    • StreamUtils

      public StreamUtils()
  • Method Details

    • createServerStream

      public static IServerStream createServerStream(IScope scope, String name)
      Creates server stream
      Parameters:
      scope - Scope of stream
      name - Name of stream
      Returns:
      IServerStream object
    • getServerStream

      public static IServerStream getServerStream(IScope scope, String name)
      Looks up a server stream in the stream map. Null will be returned if the stream is not found.
      Parameters:
      scope - Scope of stream
      name - Name of stream
      Returns:
      IServerStream object
    • putServerStream

      public static void putServerStream(IScope scope, String name, IServerStream stream)
      Puts a server stream in the stream map
      Parameters:
      scope - Scope of stream
      name - Name of stream
      stream - ServerStream object
    • removeServerStream

      public static void removeServerStream(IScope scope, String name)
      Removes a server stream from the stream map
      Parameters:
      scope - Scope of stream
      name - Name of stream