public class RTPUtils
extends Object
| Constructor | Description |
|---|---|
RTPUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static double[] |
decodeRangeHeader(String rangeStr) |
Decode RTP range header, Internal use.
|
static RTPStream |
decodeStreamInfo(IApplicationInstance appInstance,
RTPContext context,
String streamId,
String streamInfo) |
Decode SDP info and create RTP stream
|
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
|
static RTPStream |
decodeStreamInfo(RTPContext context,
String streamId,
String streamInfo) |
Decode SDP info and create RTP stream
|
static 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 boolean |
loadConfigFile(RTPContext rtpContext,
String fileURL) |
Load config file, Internal use.
|
static RTPPushPublishSession |
startRTPPull(IApplicationInstance appInstance,
String streamName,
boolean streamPacketizer,
String ipAddress,
int streamPort) |
Start pushing an RTP stream
|
static RTPPushPublishSession |
startRTPPull(IApplicationInstance appInstance,
String streamName,
boolean streamPacketizer,
String ipAddress,
int streamPort,
boolean isRTPWrapped) |
Start pushing an RTP stream
|
static RTPPushPublishSession |
startRTPPull(IApplicationInstance appInstance,
String streamName,
boolean streamPacketizer,
String ipAddress,
int audioPort,
int videoPort) |
Start pushing an RTP stream
|
static RTPPushPublishSession |
startRTPPull(IApplicationInstance appInstance,
String streamName,
boolean streamPacketizer,
String ipAddress,
int audioPort,
int videoPort,
boolean isRTPWrapped) |
Start pushing an RTP stream
|
static RTPPushPublishSession |
startRTPPull(IApplicationInstance appInstance,
String streamName,
RTPDestination rtpDestination) |
Start pushing an RTP stream
|
static void |
stopRTPPull(RTPPushPublishSession rtpPushPublishSession) |
Stop pushing an RTP stream
|
static String |
updateSDPDestination(RTPDestination rtpDestination,
String sdpData) |
Update SDP data information with RTP destination information
|
static void |
writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack,
int codecId,
long adjTimecode,
byte[] codecConfig) |
|
static void |
writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack,
long adjTimecode,
byte[] codecConfig) |
Write codec config information, Internal use.
|
static void |
writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack,
long adjTimecode,
byte[] codecConfig,
int codec) |
public static double[] decodeRangeHeader(String rangeStr)
rangeStr - public static RTPStream decodeStreamInfo(IApplicationInstance appInstance, RTPContext context, String streamId, String streamInfo)
appInstance - app instancecontext - rtp contextstreamId - stream idstreamInfo - stream info (SDP data)public static RTPStream decodeStreamInfo(IApplicationInstance appInstance, com.wowza.wms.rtp.model.RTPStreamContext rtpStreamContext, RTPContext context, String streamId, String streamInfo)
appInstance - app instancertpStreamContext - rtp stream contextcontext - rtp contextstreamId - stream idstreamInfo - stream info (SDP data)public static RTPStream decodeStreamInfo(RTPContext context, String streamId, String streamInfo)
context - RTP contextstreamId - stream idstreamInfo - SDP datapublic static byte[] formatH264CodecConfig(byte[] sps,
java.util.List<byte[]> ppss,
byte[] profileLevel)
sps - ppss - profileLevel - public static byte[] formatH264CodecConfigPacket(byte[] sps,
java.util.List<byte[]> ppss,
byte[] profileLevel)
sps - ppss - profileLevel - public static boolean loadConfigFile(RTPContext rtpContext, String fileURL)
rtpContext - fileURL - public static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int streamPort)
appInstance - application instancestreamName - stream namestreamPacketizer - stream packetizeripAddress - IP addressstreamPort - stream portpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int streamPort, boolean isRTPWrapped)
appInstance - application instancestreamName - stream namestreamPacketizer - stream packetizeripAddress - IP addressstreamPort - stream portisRTPWrapped - is RTP wrappedpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int audioPort, int videoPort)
appInstance - application instancestreamName - stream namestreamPacketizer - stream packetizeripAddress - IP addressaudioPort - audio portvideoPort - video portpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, boolean streamPacketizer, String ipAddress, int audioPort, int videoPort, boolean isRTPWrapped)
appInstance - application instancestreamName - stream namestreamPacketizer - stream packetizeripAddress - IP addressaudioPort - audio portvideoPort - video portisRTPWrapped - is RTP wrappedpublic static RTPPushPublishSession startRTPPull(IApplicationInstance appInstance, String streamName, RTPDestination rtpDestination)
appInstance - application instancestreamName - stream namertpDestination - RTP destinationpublic static void stopRTPPull(RTPPushPublishSession rtpPushPublishSession)
rtpPushPublishSession - RTP push sessionpublic static String updateSDPDestination(RTPDestination rtpDestination, String sdpData)
rtpDestination - RTP destinationsdpData - SDP datapublic static void writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack,
int codecId,
long adjTimecode,
byte[] codecConfig)
public static void writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack,
long adjTimecode,
byte[] codecConfig)
rtpTrack - RTP trackadjTimecode - timecode (milliseconds)codecConfig - codec configpublic static void writeCodecConfig(com.wowza.wms.rtp.model.RTPTrack rtpTrack,
long adjTimecode,
byte[] codecConfig,
int codec)