public class RTPContext
extends Object
RTPContext: RTP context
| Constructor | Description |
|---|---|
RTPContext(IVHost vhost) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
acquireSocketAddress(java.net.SocketAddress socketAddress) |
Acquire UDP socket address
|
int |
acquireUDPPortPair() |
Acquire next available UDP port pair
|
int |
acquireUDPPortPair(int port) |
Acquire UDP port pair
|
void |
cacheRTPStream(RTPStream stream) |
Cache an RTP stream, Internal use.
|
void |
doWatchdog() |
Idle events for cleanup
|
boolean |
existsRTSPTunnelingSession(String sessionId) |
Return true if session id is valid RTSP/RTP tunneling session id
|
int[] |
expandToPortPair(int port) |
Expand a single port to a pair.
|
com.wowza.wms.rtp.model.RTPPacketizerItem |
getAudioPacketizerItem(IApplicationInstance appInstance,
int codecId) |
Get audio packetizer for a given codec id.
|
com.wowza.wms.rtp.depacketizer.RTPDePacketizerList |
getDePacketizerList() |
Get a list of the available depacketizers
|
String |
getDePacketizerName(com.wowza.wms.rtp.model.RTPTrack rtpTrack) |
Get a depacketizer by name
|
Object |
getLock() |
Get the UDP port manager lock
|
Object |
getRTSPTunnelingLock() |
Get the RTSP/RTP tunneling lock
|
com.wowza.wms.rtsp.RTSPTunnelingSession |
getRTSPTunnelingSession(String sessionId) |
Get RTSP/RTP tunneling session by session id
|
RTPSessions |
getSessions() |
Get RTP sessions
|
com.wowza.wms.rtp.model.RTPPacketizerItem |
getStreamPacketizerItem(IApplicationInstance appInstance,
int codecId) |
Get stream packetizer for a given codec id.
|
com.wowza.wms.rtp.transport.UDPTransportManager |
getUDPTransportManager() |
Get the UDP transport manager
|
IVHost |
getVHost() |
Get vhost
|
com.wowza.wms.rtp.model.RTPPacketizerItem |
getVideoPacketizerItem(IApplicationInstance appInstance,
int codecId) |
Get video packetizer for a given codec id.
|
void |
init() |
Initialize
|
boolean |
isUDPPortDebugLog() |
|
void |
putAudioPacketizerItem(int codecId,
com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo) |
Set the audio packetizer for a given codec id
|
void |
putRTSPTunnelingSession(String sessionId,
com.wowza.wms.rtsp.RTSPTunnelingSession rtspTunnelingSession) |
Remove RTSP/RTP tunneling session by session id
|
void |
putStreamPacketizerItem(int codecId,
com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo) |
Set the stream packetizer for a given codec id
|
void |
putVideoPacketizerItem(int codecId,
com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo) |
Set the video packetizer for a given codec id
|
boolean |
releaseSocketAddress(java.net.SocketAddress socketAddress) |
Release UDP socket address
|
void |
releaseUDPPortPair(int port) |
Release port pair
|
com.wowza.wms.rtsp.RTSPTunnelingSession |
removeRTSPTunnelingSession(String sessionId) |
Remove RTSP/RTP tunneling session by session id
|
void |
shutdown() |
Shutdown
|
void |
shutdownRTPSession(RTPSession rtpSession) |
Gracefully and forcefully shutdown and RTP session
|
void |
shutdownRTPSession(String sessionId) |
Gracefully and forcefully shutdown and RTP session
|
RTPStream |
uncacheRTPStream(String streamId) |
UnCache an RTP stream, Internal use.
|
public RTPContext(IVHost vhost)
vhost - vhostpublic boolean acquireSocketAddress(java.net.SocketAddress socketAddress)
socketAddress - UDP socket addresspublic int acquireUDPPortPair()
public int acquireUDPPortPair(int port)
port - starting portpublic void cacheRTPStream(RTPStream stream)
stream - RTP streampublic void doWatchdog()
public boolean existsRTSPTunnelingSession(String sessionId)
sessionId - session idpublic int[] expandToPortPair(int port)
port - portpublic com.wowza.wms.rtp.model.RTPPacketizerItem getAudioPacketizerItem(IApplicationInstance appInstance, int codecId)
appInstance - application instancecodecId - codec id, see IVHost.CODEC_AUDIO_*public com.wowza.wms.rtp.depacketizer.RTPDePacketizerList getDePacketizerList()
public String getDePacketizerName(com.wowza.wms.rtp.model.RTPTrack rtpTrack)
rtpTrack - trackpublic Object getLock()
public Object getRTSPTunnelingLock()
public com.wowza.wms.rtsp.RTSPTunnelingSession getRTSPTunnelingSession(String sessionId)
sessionId - session idpublic RTPSessions getSessions()
public com.wowza.wms.rtp.model.RTPPacketizerItem getStreamPacketizerItem(IApplicationInstance appInstance, int codecId)
appInstance - application instancecodecId - codec id, see IVHost.CODEC_STREAM_*public com.wowza.wms.rtp.transport.UDPTransportManager getUDPTransportManager()
public IVHost getVHost()
public com.wowza.wms.rtp.model.RTPPacketizerItem getVideoPacketizerItem(IApplicationInstance appInstance, int codecId)
appInstance - application instancecodecId - codec id, see IVHost.CODEC_VIDEO_*public void init()
public boolean isUDPPortDebugLog()
public void putAudioPacketizerItem(int codecId,
com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)
codecId - codec id, see IVHost.CODEC_AUDIO_*rtpPacketizerInfo - packetizer infopublic void putRTSPTunnelingSession(String sessionId,
com.wowza.wms.rtsp.RTSPTunnelingSession rtspTunnelingSession)
sessionId - session idrtspTunnelingSession - RTSP/RTP tunneling sessionpublic void putStreamPacketizerItem(int codecId,
com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)
codecId - codec id, see IVHost.CODEC_STREAM_*rtpPacketizerInfo - packetizer infopublic void putVideoPacketizerItem(int codecId,
com.wowza.wms.rtp.model.RTPPacketizerItem rtpPacketizerInfo)
codecId - codec id, see IVHost.CODEC_VIDEO_*rtpPacketizerInfo - packetizer infopublic boolean releaseSocketAddress(java.net.SocketAddress socketAddress)
socketAddress - UDP socket addresspublic void releaseUDPPortPair(int port)
port - first port of pairpublic com.wowza.wms.rtsp.RTSPTunnelingSession removeRTSPTunnelingSession(String sessionId)
sessionId - session idpublic void shutdown()
public void shutdownRTPSession(RTPSession rtpSession)
rtpSession - RTP sessionpublic void shutdownRTPSession(String sessionId)
sessionId - public RTPStream uncacheRTPStream(String streamId)
streamId - stream id