Class MediaCasterStreamItem


  • public class MediaCasterStreamItem
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MediaCasterStreamItem​(long uniqueId)
      Media caster item constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void acquire()
      Increment acquire lock count for this media caster item
      void acquireAndRelease()
      Increment then decrement acquire lock count for this media caster item
      boolean doWatchdog()
      Do idle processing
      String getLiveStreamPacketizer()
      Get the live stream packetizer for this media caster stream item
      String getLiveStreamRepeater()
      Get the live stream repeater for this media caster stream item
      Object getLock()  
      int getLockCount()
      Get the current number of acquire locks on this media caster item
      IMediaCaster getMediaCaster()
      Get the underlying IMediaCaster interface for this MediaCaster
      String getMediaCasterId()
      Get this media caster item id
      int getPlayerCount()
      Get the current number of players associated with this media caster item
      String getStreamExt()  
      long getUniqueId()  
      void init​(String mediaCasterId, String streamExt, MediaCasterItem mediaCasterDef, MediaCasterStreamMap parent, String liveStreamPacketizer, String liveStreamRepeater)
      Initialize the media caster item (internal use)
      boolean isShutdownOnRelease()
      On last release shutdown the stream even if clients are connected
      boolean isValid()  
      void registerPlayer​(IMediaStreamPlay player)
      Register a player with a media caster item (internal use)
      void release()
      Decrement acquire lock count for this media caster item
      void reset()
      Force a reconnect or reset for this media caster item
      void setLiveStreamPacketizer​(String liveStreamPacketizer)
      Set the live stream packetizer for this media caster stream item
      void setLiveStreamRepeater​(String liveStreamRepeater)
      Set the live stream repeater for this media caster stream item
      void setShutdownOnRelease​(boolean shutdownOnRelease)
      On last release shutdown the stream even if clients are connected
      void setStreamExt​(String streamExt)  
      void setValid​(boolean isValid)  
      void shutdown​(boolean isAppInstanceShutdown)
      Shutdown this media caster item
      void unregisterPlayer​(IMediaStreamPlay player)
      Unregister a player with a media caster item (internal use)
      • Methods inherited from class java.lang.Object

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

      • MediaCasterStreamItem

        public MediaCasterStreamItem​(long uniqueId)
        Media caster item constructor
    • Method Detail

      • getLock

        public Object getLock()
      • getUniqueId

        public long getUniqueId()
      • isValid

        public boolean isValid()
      • setValid

        public void setValid​(boolean isValid)
      • init

        public void init​(String mediaCasterId,
                         String streamExt,
                         MediaCasterItem mediaCasterDef,
                         MediaCasterStreamMap parent,
                         String liveStreamPacketizer,
                         String liveStreamRepeater)
        Initialize the media caster item (internal use)
        Parameters:
        mediaCasterId - media caster id
        streamExt - stream extension or prefix
        mediaCasterDef - media caster definition
        parent - parent map
      • getMediaCasterId

        public String getMediaCasterId()
        Get this media caster item id
        Returns:
        media caster item id
      • getMediaCaster

        public IMediaCaster getMediaCaster()
        Get the underlying IMediaCaster interface for this MediaCaster
        Returns:
        underlying IMediaCaster interface
      • registerPlayer

        public void registerPlayer​(IMediaStreamPlay player)
        Register a player with a media caster item (internal use)
        Parameters:
        player - player to register
      • unregisterPlayer

        public void unregisterPlayer​(IMediaStreamPlay player)
        Unregister a player with a media caster item (internal use)
        Parameters:
        player - player to unregister
      • doWatchdog

        public boolean doWatchdog()
        Do idle processing
        Returns:
        return true if caused shutdown of item
      • reset

        public void reset()
        Force a reconnect or reset for this media caster item
      • shutdown

        public void shutdown​(boolean isAppInstanceShutdown)
        Shutdown this media caster item
        Parameters:
        isAppInstanceShutdown - is this due to application shutdown
      • getPlayerCount

        public int getPlayerCount()
        Get the current number of players associated with this media caster item
        Returns:
        current number of players associated with this media caster item
      • getLockCount

        public int getLockCount()
        Get the current number of acquire locks on this media caster item
        Returns:
        current number of acquire locks on this media caster item
      • acquireAndRelease

        public void acquireAndRelease()
        Increment then decrement acquire lock count for this media caster item
      • acquire

        public void acquire()
        Increment acquire lock count for this media caster item
      • release

        public void release()
        Decrement acquire lock count for this media caster item
      • getStreamExt

        public String getStreamExt()
      • setStreamExt

        public void setStreamExt​(String streamExt)
      • isShutdownOnRelease

        public boolean isShutdownOnRelease()
        On last release shutdown the stream even if clients are connected
        Returns:
        true if shutting down on release
      • setShutdownOnRelease

        public void setShutdownOnRelease​(boolean shutdownOnRelease)
        On last release shutdown the stream even if clients are connected
        Parameters:
        shutdownOnRelease - true if shutting down on release
      • getLiveStreamPacketizer

        public String getLiveStreamPacketizer()
        Get the live stream packetizer for this media caster stream item
        Returns:
        live stream packetizer
      • setLiveStreamPacketizer

        public void setLiveStreamPacketizer​(String liveStreamPacketizer)
        Set the live stream packetizer for this media caster stream item
        Parameters:
        liveStreamPacketizer - live stream packetizer
      • getLiveStreamRepeater

        public String getLiveStreamRepeater()
        Get the live stream repeater for this media caster stream item
        Returns:
        live stream repeater
      • setLiveStreamRepeater

        public void setLiveStreamRepeater​(String liveStreamRepeater)
        Set the live stream repeater for this media caster stream item
        Parameters:
        liveStreamRepeater - live stream repeater