Class MediaCasterStreamManager


  • public class MediaCasterStreamManager
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String[] getStreamArray()
      Get a list of active streams
      java.util.List<String> getStreamList()
      Get a list of active streams
      boolean startStream​(String streamName, String mediaCasterType)
      Start a stream by name
      boolean stopStream​(String streamName)
      Stop a stream by name
      boolean streamExists​(String streamName)
      Returns true if stream exists
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MediaCasterStreamManager

        public MediaCasterStreamManager​(MediaCasterStreamMap mediaCasterStreamMap)
    • Method Detail

      • getStreamArray

        public String[] getStreamArray()
        Get a list of active streams
        Returns:
        list of active streams
      • getStreamList

        public java.util.List<String> getStreamList()
        Get a list of active streams
        Returns:
        list of active streams
      • streamExists

        public boolean streamExists​(String streamName)
        Returns true if stream exists
        Parameters:
        streamName - stream name
        Returns:
        true if stream exists
      • stopStream

        public boolean stopStream​(String streamName)
        Stop a stream by name
        Parameters:
        streamName - stream name
        Returns:
        true is successful
      • startStream

        public boolean startStream​(String streamName,
                                   String mediaCasterType)
        Start a stream by name
        Parameters:
        streamName - stream name
        mediaCasterType - MediaCaster type as defined in the name field of conf/MediaCasters.xml
        Returns:
        true is successful