Class PushPublishRTP

    • Field Detail

      • SDPFILEEXTENSION

        public static final String SDPFILEEXTENSION
        The Constant SDPFILEEXTENSION.
        See Also:
        Constant Field Values
      • rtpPushPublishSession

        protected RTPPushPublishSession rtpPushPublishSession
        The rtp push publish session.
      • singleStreamAV

        protected boolean singleStreamAV
        The stream packetizer.
      • audioPort

        protected int audioPort
        The audio port.
      • videoPort

        protected int videoPort
        The video port.
      • audioHost

        protected String audioHost
        The audio host.
      • videoHost

        protected String videoHost
        The video host.
      • isRTPWrapped

        protected boolean isRTPWrapped
        The is rtp wrapped.
      • writeSDPFiles

        protected boolean writeSDPFiles
        The write sdp files.
      • removeSDPFiles

        protected boolean removeSDPFiles
        The remove sdp files
      • multicastInterfaceAddress

        protected String multicastInterfaceAddress
      • mRtpDestination

        protected RTPDestination mRtpDestination
        The m rtp destination.
      • lock

        protected Object lock
    • Constructor Detail

      • PushPublishRTP

        public PushPublishRTP()
                       throws com.wowza.wms.server.LicensingException
        Throws:
        com.wowza.wms.server.LicensingException
    • Method Detail

      • init

        public void init​(IApplicationInstance appInstance,
                         String streamName,
                         IMediaStream stream,
                         java.util.Map<String,​String> profileData,
                         java.util.Map<String,​String> maps,
                         com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher,
                         boolean debug)
        Description copied from class: PushPublishBase
        Inits the instance.
        Specified by:
        init in interface IPushPublish
        Overrides:
        init in class PushPublishBase
        Parameters:
        appInstance - the app instance
        streamName - the source stream name
        profileData - the profile params
        maps - the map entry params
        debug - stream debug flag
      • connect

        public void connect()
      • disconnect

        public void disconnect()
      • disconnect

        public void disconnect​(boolean hard)
      • resetConnection

        public void resetConnection()
      • resetConnection

        public void resetConnection​(int delay)
      • getRTPPushPublishSession

        public RTPPushPublishSession getRTPPushPublishSession()
        Gets the rTP push publish session.
        Returns:
        the rTP push publish session
      • setRTPPushPublishSession

        public void setRTPPushPublishSession​(RTPPushPublishSession rtpPushPublishSession)
        Sets the rTP push publish session.
        Parameters:
        rtpPushPublishSession - the new rTP push publish session
      • isSingleStreamAV

        public boolean isSingleStreamAV()
        Checks if is stream is packatized.
        Returns:
        true, if is stream packetizer
      • setSingleStreamAV

        public void setSingleStreamAV​(boolean inSingleStreamAV)
        Sets the stream packetizer.
        Parameters:
        inSingleStreamAV - whether stream is packatized
      • setSingleStreamAV

        public void setSingleStreamAV​(String inSingleStreamAV)
      • setPort

        public void setPort​(int port)
        Set destination server port.
        Specified by:
        setPort in interface IPushPublish
        Overrides:
        setPort in class PushPublishBase
        Parameters:
        port - destination server port
      • getAudioPort

        public int getAudioPort()
        Gets the audio port.
        Returns:
        the audio port
      • setAudioPort

        public void setAudioPort​(int audioPort)
        Sets the audio port.
        Parameters:
        audioPort - the new audio port
      • setVideoPort

        public void setVideoPort​(int videoPort)
      • getAudioHost

        public String getAudioHost()
        Gets the audio host.
        Returns:
        the audio host
      • setAudioHost

        public void setAudioHost​(String audioHost)
        Sets the audio host.
        Parameters:
        audioHost - the new audio host
      • getVideoHost

        public String getVideoHost()
        Gets the video host.
        Returns:
        the video host
      • setVideoHost

        public void setVideoHost​(String videoHost)
        Sets the video host.
        Parameters:
        videoHost - the new video host
      • setAudioPort

        public void setAudioPort​(String audioPort)
        Sets the audio port.
        Parameters:
        audioPort - the new audio port
      • getVideoPort

        public int getVideoPort()
        Gets the video port.
        Returns:
        the video port
      • setVideoPort

        public void setVideoPort​(String videoPort)
        Sets the video port.
        Parameters:
        videoPort - the new video port
      • isRTPWrapped

        public boolean isRTPWrapped()
        Checks if is rTP wrapped.
        Returns:
        true, if is rTP wrapped
      • setRTPWrapped

        public void setRTPWrapped​(String string)
        Sets the rTP wrapped.
        Parameters:
        string - the new rTP wrapped
      • getHostType

        public String getHostType()
        Gets the host type.
        Returns:
        the host type
      • setHostType

        public void setHostType​(String hostType)
        Sets the host type.
        Parameters:
        hostType - the new host type
      • setTimeToLive

        public void setTimeToLive​(String ttl)
        Sets the time to live.
        Parameters:
        ttl - the new time to live
      • getTimeToLive

        public int getTimeToLive()
        Gets the time to live.
        Returns:
        the time to live
      • load

        public void load​(java.util.HashMap<String,​String> dataMap)
        Description copied from class: PushPublishBase
        Loads map and profile parameters
        Overrides:
        load in class PushPublishBase
        Parameters:
        dataMap - the data map
      • getRtpStreamWaitTimeout

        public long getRtpStreamWaitTimeout()
      • setRtpStreamWaitTimeout

        public void setRtpStreamWaitTimeout​(String rtpStreamWaitTimeout)
      • setRtpStreamWaitTimeout

        public void setRtpStreamWaitTimeout​(long rtpStreamWaitTimeout)
      • getConnectedState

        public int getConnectedState()
      • setConnectionStatus

        public void setConnectionStatus​(Boolean connected)
      • getMessagesAttemptedCount

        public long getMessagesAttemptedCount()
      • getMessagesRetriedCount

        public long getMessagesRetriedCount()
      • getMessagesFailedCount

        public long getMessagesFailedCount()
      • isWriteSDPFiles

        public boolean isWriteSDPFiles()
      • setWriteSDPFiles

        public void setWriteSDPFiles​(boolean writeSDPFiles)
      • isRemoveSDPFiles

        public boolean isRemoveSDPFiles()
      • setRemoveSDPFiles

        public void setRemoveSDPFiles​(boolean removeSDPFiles)
      • setRTPWrapped

        public void setRTPWrapped​(boolean isRTPWrapped)
      • getMulticastInterfaceAddress

        public String getMulticastInterfaceAddress()
      • setMulticastInterfaceAddress

        public void setMulticastInterfaceAddress​(String multicastInterfaceAddress)