Package com.wowza.wms.rtp.model
Class RTPContext
- Object
- 
- com.wowza.wms.rtp.model.RTPContext
 
- 
 public class RTPContext extends ObjectRTPContext: RTP context 
- 
- 
Constructor SummaryConstructors Constructor Description RTPContext(IVHost vhost)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacquireSocketAddress(java.net.SocketAddress socketAddress)Acquire UDP socket addressintacquireUDPPortPair()Acquire next available UDP port pairintacquireUDPPortPair(int port)Acquire UDP port pairvoidcacheRTPStream(RTPStream stream)Cache an RTP stream, Internal use.voiddoWatchdog()Idle events for cleanupbooleanexistsRTSPTunnelingSession(String sessionId)Return true if session id is valid RTSP/RTP tunneling session idint[]expandToPortPair(int port)Expand a single port to a pair.com.wowza.wms.rtp.model.RTPPacketizerItemgetAudioPacketizerItem(IApplicationInstance appInstance, int codecId)Get audio packetizer for a given codec id.com.wowza.wms.rtp.depacketizer.RTPDePacketizerListgetDePacketizerList()Get a list of the available depacketizersStringgetDePacketizerName(com.wowza.wms.rtp.model.RTPTrack rtpTrack)Get a depacketizer by nameObjectgetLock()Get the UDP port manager lockObjectgetRTSPTunnelingLock()Get the RTSP/RTP tunneling lockcom.wowza.wms.rtsp.RTSPTunnelingSessiongetRTSPTunnelingSession(String sessionId)Get RTSP/RTP tunneling session by session idRTPSessionsgetSessions()Get RTP sessionscom.wowza.wms.rtp.model.RTPPacketizerItemgetStreamPacketizerItem(IApplicationInstance appInstance, int codecId)Get stream packetizer for a given codec id.com.wowza.wms.rtp.transport.UDPTransportManagergetUDPTransportManager()Get the UDP transport managerIVHostgetVHost()Get vhostcom.wowza.wms.rtp.model.RTPPacketizerItemgetVideoPacketizerItem(IApplicationInstance appInstance, int codecId)Get video packetizer for a given codec id.voidinit()InitializebooleanisUDPPortDebugLog()voidputAudioPacketizerItem(int codecId, com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)Set the audio packetizer for a given codec idvoidputRTSPTunnelingSession(String sessionId, com.wowza.wms.rtsp.RTSPTunnelingSession rtspTunnelingSession)Remove RTSP/RTP tunneling session by session idvoidputStreamPacketizerItem(int codecId, com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)Set the stream packetizer for a given codec idvoidputVideoPacketizerItem(int codecId, com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)Set the video packetizer for a given codec idbooleanreleaseSocketAddress(java.net.SocketAddress socketAddress)Release UDP socket addressvoidreleaseUDPPortPair(int port)Release port paircom.wowza.wms.rtsp.RTSPTunnelingSessionremoveRTSPTunnelingSession(String sessionId)Remove RTSP/RTP tunneling session by session idvoidshutdown()ShutdownvoidshutdownRTPSession(RTPSession rtpSession)Gracefully and forcefully shutdown and RTP sessionvoidshutdownRTPSession(String sessionId)Gracefully and forcefully shutdown and RTP sessionRTPStreamuncacheRTPStream(String streamId)UnCache an RTP stream, Internal use.
 
- 
- 
- 
Constructor Detail- 
RTPContextpublic RTPContext(IVHost vhost) Constructor- Parameters:
- vhost- vhost
 
 
- 
 - 
Method Detail- 
doWatchdogpublic void doWatchdog() Idle events for cleanup
 - 
initpublic void init() Initialize
 - 
shutdownpublic void shutdown() Shutdown
 - 
getAudioPacketizerItempublic com.wowza.wms.rtp.model.RTPPacketizerItem getAudioPacketizerItem(IApplicationInstance appInstance, int codecId) Get audio packetizer for a given codec id.- Parameters:
- appInstance- application instance
- codecId- codec id, see IVHost.CODEC_AUDIO_*
- Returns:
- packetizer info
 
 - 
putAudioPacketizerItempublic void putAudioPacketizerItem(int codecId, com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)Set the audio packetizer for a given codec id- Parameters:
- codecId- codec id, see IVHost.CODEC_AUDIO_*
- rtpPacketizerInfo- packetizer info
 
 - 
getVideoPacketizerItempublic com.wowza.wms.rtp.model.RTPPacketizerItem getVideoPacketizerItem(IApplicationInstance appInstance, int codecId) Get video packetizer for a given codec id.- Parameters:
- appInstance- application instance
- codecId- codec id, see IVHost.CODEC_VIDEO_*
- Returns:
- packetizer info
 
 - 
putVideoPacketizerItempublic void putVideoPacketizerItem(int codecId, com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)Set the video packetizer for a given codec id- Parameters:
- codecId- codec id, see IVHost.CODEC_VIDEO_*
- rtpPacketizerInfo- packetizer info
 
 - 
getStreamPacketizerItempublic com.wowza.wms.rtp.model.RTPPacketizerItem getStreamPacketizerItem(IApplicationInstance appInstance, int codecId) Get stream packetizer for a given codec id.- Parameters:
- appInstance- application instance
- codecId- codec id, see IVHost.CODEC_STREAM_*
- Returns:
- packetizer info
 
 - 
putStreamPacketizerItempublic void putStreamPacketizerItem(int codecId, com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)Set the stream packetizer for a given codec id- Parameters:
- codecId- codec id, see IVHost.CODEC_STREAM_*
- rtpPacketizerInfo- packetizer info
 
 - 
getSessionspublic RTPSessions getSessions() Get RTP sessions- Returns:
- RTP sessions
 
 - 
getVHostpublic IVHost getVHost() Get vhost- Returns:
- vhost
 
 - 
getUDPTransportManagerpublic com.wowza.wms.rtp.transport.UDPTransportManager getUDPTransportManager() Get the UDP transport manager- Returns:
- UDP transport manager
 
 - 
getLockpublic Object getLock() Get the UDP port manager lock- Returns:
- UDP port manager lock
 
 - 
acquireSocketAddresspublic boolean acquireSocketAddress(java.net.SocketAddress socketAddress) Acquire UDP socket address- Parameters:
- socketAddress- UDP socket address
- Returns:
- true if available
 
 - 
releaseSocketAddresspublic boolean releaseSocketAddress(java.net.SocketAddress socketAddress) Release UDP socket address- Parameters:
- socketAddress- UDP socket address
- Returns:
- true if available
 
 - 
acquireUDPPortPairpublic int acquireUDPPortPair(int port) Acquire UDP port pair- Parameters:
- port- starting port
- Returns:
- port
 
 - 
expandToPortPairpublic int[] expandToPortPair(int port) Expand a single port to a pair. Ports are allocated in pairs always starting with even port number.- Parameters:
- port- port
- Returns:
- port
 
 - 
acquireUDPPortPairpublic int acquireUDPPortPair() Acquire next available UDP port pair- Returns:
- port
 
 - 
releaseUDPPortPairpublic void releaseUDPPortPair(int port) Release port pair- Parameters:
- port- first port of pair
 
 - 
isUDPPortDebugLogpublic boolean isUDPPortDebugLog() 
 - 
cacheRTPStreampublic void cacheRTPStream(RTPStream stream) Cache an RTP stream, Internal use.- Parameters:
- stream- RTP stream
 
 - 
uncacheRTPStreampublic RTPStream uncacheRTPStream(String streamId) UnCache an RTP stream, Internal use.- Parameters:
- streamId- stream id
- Returns:
- RTP Stream
 
 - 
getDePacketizerListpublic com.wowza.wms.rtp.depacketizer.RTPDePacketizerList getDePacketizerList() Get a list of the available depacketizers- Returns:
- list of the available depacketizers
 
 - 
getDePacketizerNamepublic String getDePacketizerName(com.wowza.wms.rtp.model.RTPTrack rtpTrack) Get a depacketizer by name- Parameters:
- rtpTrack- track
- Returns:
- depacketizer
 
 - 
getRTSPTunnelingLockpublic Object getRTSPTunnelingLock() Get the RTSP/RTP tunneling lock- Returns:
- RTSP/RTP tunneling lock
 
 - 
getRTSPTunnelingSessionpublic com.wowza.wms.rtsp.RTSPTunnelingSession getRTSPTunnelingSession(String sessionId) Get RTSP/RTP tunneling session by session id- Parameters:
- sessionId- session id
- Returns:
- RTSP/RTP tunneling session
 
 - 
removeRTSPTunnelingSessionpublic com.wowza.wms.rtsp.RTSPTunnelingSession removeRTSPTunnelingSession(String sessionId) Remove RTSP/RTP tunneling session by session id- Parameters:
- sessionId- session id
- Returns:
- RTSP/RTP tunneling session if removed
 
 - 
existsRTSPTunnelingSessionpublic boolean existsRTSPTunnelingSession(String sessionId) Return true if session id is valid RTSP/RTP tunneling session id- Parameters:
- sessionId- session id
- Returns:
- true if session id is valid RTSP/RTP tunneling session id
 
 - 
putRTSPTunnelingSessionpublic void putRTSPTunnelingSession(String sessionId, com.wowza.wms.rtsp.RTSPTunnelingSession rtspTunnelingSession)Remove RTSP/RTP tunneling session by session id- Parameters:
- sessionId- session id
- rtspTunnelingSession- RTSP/RTP tunneling session
 
 - 
shutdownRTPSessionpublic void shutdownRTPSession(String sessionId) Gracefully and forcefully shutdown and RTP session- Parameters:
- sessionId-
 
 - 
shutdownRTPSessionpublic void shutdownRTPSession(RTPSession rtpSession) Gracefully and forcefully shutdown and RTP session- Parameters:
- rtpSession- RTP session
 
 
- 
 
-