Package com.wowza.wms.util
Class RTPUtils
- Object
- 
- com.wowza.wms.util.RTPUtils
 
- 
 public class RTPUtils extends Object
- 
- 
Constructor SummaryConstructors Constructor Description RTPUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]decodeRangeHeader(String rangeStr)Decode RTP range header, Internal use.static RTPStreamdecodeStreamInfo(IApplicationInstance appInstance, RTPContext context, String streamId, String streamInfo)Decode SDP info and create RTP streamstatic RTPStreamdecodeStreamInfo(IApplicationInstance appInstance, com.wowza.wms.rtp.model.RTPStreamContext rtpStreamContext, RTPContext context, String streamId, String streamInfo)Decode SDP info and create RTP streamstatic RTPStreamdecodeStreamInfo(RTPContext context, String streamId, String streamInfo)Decode SDP info and create RTP streamstatic byte[]formatH264CodecConfig(byte[] sps, java.util.List<byte[]> ppss, byte[] profileLevel)Format codec config info, Internal use.static byte[]formatH264CodecConfigPacket(byte[] sps, java.util.List<byte[]> ppss, byte[] profileLevel)Format codec config info, Internal use.static booleanloadConfigFile(RTPContext rtpContext, String fileURL)Load config file, Internal use.static RTPPushPublishSessionstartRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int streamPort)Start pushing an RTP streamstatic RTPPushPublishSessionstartRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int streamPort, boolean isRTPWrapped)Start pushing an RTP streamstatic RTPPushPublishSessionstartRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int audioPort, int videoPort)Start pushing an RTP streamstatic RTPPushPublishSessionstartRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int audioPort, int videoPort, boolean isRTPWrapped)Start pushing an RTP streamstatic RTPPushPublishSessionstartRTPPull(IApplicationInstance appInstance, String streamName, RTPDestination rtpDestination)Start pushing an RTP streamstatic voidstopRTPPull(RTPPushPublishSession rtpPushPublishSession)Stop pushing an RTP streamstatic StringupdateSDPDestination(RTPDestination rtpDestination, String sdpData)Update SDP data information with RTP destination informationstatic voidwriteCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack, int codecId, long adjTimecode, byte[] codecConfig)static voidwriteCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack, long adjTimecode, byte[] codecConfig)Write codec config information, Internal use.static voidwriteCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack, long adjTimecode, byte[] codecConfig, int codec)
 
- 
- 
- 
Method Detail- 
updateSDPDestinationpublic static String updateSDPDestination(RTPDestination rtpDestination, String sdpData) Update SDP data information with RTP destination information- Parameters:
- rtpDestination- RTP destination
- sdpData- SDP data
- Returns:
- modified SDP data
 
 - 
decodeRangeHeaderpublic static double[] decodeRangeHeader(String rangeStr) Decode RTP range header, Internal use.- Parameters:
- rangeStr-
- Returns:
- range values
 
 - 
stopRTPPullpublic static void stopRTPPull(RTPPushPublishSession rtpPushPublishSession) Stop pushing an RTP stream- Parameters:
- rtpPushPublishSession- RTP push session
 
 - 
startRTPPullpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int streamPort, boolean isRTPWrapped) Start pushing an RTP stream- Parameters:
- appInstance- application instance
- streamName- stream name
- streamPacketizer- stream packetizer
- ipAddress- IP address
- streamPort- stream port
- isRTPWrapped- is RTP wrapped
- Returns:
- RTP push session
 
 - 
startRTPPullpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int streamPort) Start pushing an RTP stream- Parameters:
- appInstance- application instance
- streamName- stream name
- streamPacketizer- stream packetizer
- ipAddress- IP address
- streamPort- stream port
- Returns:
- RTP push session
 
 - 
startRTPPullpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int audioPort, int videoPort) Start pushing an RTP stream- Parameters:
- appInstance- application instance
- streamName- stream name
- streamPacketizer- stream packetizer
- ipAddress- IP address
- audioPort- audio port
- videoPort- video port
- Returns:
- RTP push session
 
 - 
startRTPPullpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int audioPort, int videoPort, boolean isRTPWrapped) Start pushing an RTP stream- Parameters:
- appInstance- application instance
- streamName- stream name
- streamPacketizer- stream packetizer
- ipAddress- IP address
- audioPort- audio port
- videoPort- video port
- isRTPWrapped- is RTP wrapped
- Returns:
- RTP push session
 
 - 
startRTPPullpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, RTPDestination rtpDestination) Start pushing an RTP stream- Parameters:
- appInstance- application instance
- streamName- stream name
- rtpDestination- RTP destination
- Returns:
- RTP push session
 
 - 
writeCodecConfigpublic static void writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack, int codecId, long adjTimecode, byte[] codecConfig)
 - 
writeCodecConfigpublic static void writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack, long adjTimecode, byte[] codecConfig)Write codec config information, Internal use.- Parameters:
- rtpTrack- RTP track
- adjTimecode- timecode (milliseconds)
- codecConfig- codec config
 
 - 
writeCodecConfigpublic static void writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack, long adjTimecode, byte[] codecConfig, int codec)
 - 
loadConfigFilepublic static boolean loadConfigFile(RTPContext rtpContext, String fileURL) Load config file, Internal use.- Parameters:
- rtpContext-
- fileURL-
 
 - 
decodeStreamInfopublic static RTPStream decodeStreamInfo(RTPContext context, String streamId, String streamInfo) Decode SDP info and create RTP stream- Parameters:
- context- RTP context
- streamId- stream id
- streamInfo- SDP data
- Returns:
- RTP stream
 
 - 
decodeStreamInfopublic static RTPStream decodeStreamInfo(IApplicationInstance appInstance, RTPContext context, String streamId, String streamInfo) Decode SDP info and create RTP stream- Parameters:
- appInstance- app instance
- context- rtp context
- streamId- stream id
- streamInfo- stream info (SDP data)
- Returns:
- rtp stream
 
 - 
decodeStreamInfopublic static RTPStream decodeStreamInfo(IApplicationInstance appInstance, com.wowza.wms.rtp.model.RTPStreamContext rtpStreamContext, RTPContext context, String streamId, String streamInfo) Decode SDP info and create RTP stream- Parameters:
- appInstance- app instance
- rtpStreamContext- rtp stream context
- context- rtp context
- streamId- stream id
- streamInfo- stream info (SDP data)
- Returns:
- rtp stream
 
 - 
formatH264CodecConfigPacketpublic static byte[] formatH264CodecConfigPacket(byte[] sps, java.util.List<byte[]> ppss, byte[] profileLevel)Format codec config info, Internal use.- Parameters:
- sps-
- ppss-
- profileLevel-
- Returns:
- bytes
 
 - 
formatH264CodecConfigpublic static byte[] formatH264CodecConfig(byte[] sps, java.util.List<byte[]> ppss, byte[] profileLevel)Format codec config info, Internal use.- Parameters:
- sps-
- ppss-
- profileLevel-
- Returns:
- bytes
 
 
- 
 
-