IDvrStreamManagercom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase, LiveStreamPacketizerCupertino, LiveStreamPacketizerMPEGDash, LiveStreamPacketizerSanJose, LiveStreamPacketizerSmoothStreamingpublic interface ILiveStreamPacketizer
ILiveStreamPacketizer: live stream packetizer interface.
| Modifier and Type | Method | Description |
|---|---|---|
IMediaStream |
getAndSetStartStream(IMediaStream stream) |
Get the current stream that is being packetized
|
IApplicationInstance |
getApplicationInstance() |
Get the application instance associated with this live stream packetizer.
|
int |
getLiveStreamPacketizerId() |
Get the live stream packetizer id
|
WMSProperties |
getProperties() |
Get properties
|
long |
getRepeaterLastSeqence() |
Get the sequence number of the last added repeater item
|
int |
getSegmentDurationTarget() |
Returns the duration in milliseconds of the segment else throws an UnsupportedOperationException
|
default int |
getSessionFormat() |
Returns the session format that this packetizer generates
|
void |
handlePacket(IMediaStream stream,
AMFPacket packet) |
Called to handle an incoming packet
|
void |
init(String streamName,
String packetizerName,
IApplicationInstance appInstance,
com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerItem liveStreamPacketizerItem) |
Initialize live stream packetizer
|
boolean |
isActive() |
Is the live stream packetizer active
|
boolean |
isPacketizeAudio() |
True if audio is being packetized
|
boolean |
isPacketizeData() |
True if data is being packetized
|
boolean |
isPacketizeVideo() |
True if video is being packetized
|
boolean |
isRepeaterEdge() |
Is this packetizer a live repeater edge
|
void |
resetStream(IMediaStream stream) |
Called when something happens that forces the stream to reset
|
void |
setLiveStreamPacketizerId(int id) |
Set the live stream packetizer id
|
void |
setPacketizeAudio(boolean packetizeAudio) |
Set to true to packetize audio
|
void |
setPacketizeData(boolean packetizeVideo) |
Set to true to packetize data
|
void |
setPacketizeVideo(boolean packetizeVideo) |
Set to true to packetize video
|
void |
setRepeaterEdge(boolean isRepeaterEdge) |
Set is live repeater edge
|
void |
shutdown() |
Called to shutdown the live stream packetizer
|
void |
startStream(IMediaStream stream) |
Called when the stream starts
|
void |
touch(long timecode) |
Touch the stream to keep it active
|
IMediaStream getAndSetStartStream(IMediaStream stream)
IApplicationInstance getApplicationInstance()
int getLiveStreamPacketizerId()
WMSProperties getProperties()
long getRepeaterLastSeqence()
int getSegmentDurationTarget()
default int getSessionFormat()
void handlePacket(IMediaStream stream, AMFPacket packet)
stream - streampacket - packetvoid init(String streamName,
String packetizerName,
IApplicationInstance appInstance,
com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerItem liveStreamPacketizerItem)
streamName - stream namepacketizerName - packetizer nameappInstance - application instanceliveStreamPacketizerItem - live stream packetizerboolean isActive()
boolean isPacketizeAudio()
boolean isPacketizeData()
boolean isPacketizeVideo()
boolean isRepeaterEdge()
void resetStream(IMediaStream stream)
stream - streamvoid setLiveStreamPacketizerId(int id)
id - void setPacketizeAudio(boolean packetizeAudio)
packetizeAudio - true to packetize audiovoid setPacketizeData(boolean packetizeVideo)
packetizeVideo - true to packetize datavoid setPacketizeVideo(boolean packetizeVideo)
packetizeVideo - true to packetize videovoid setRepeaterEdge(boolean isRepeaterEdge)
isRepeaterEdge - is live repeater edgevoid shutdown()
void startStream(IMediaStream stream)
stream - streamvoid touch(long timecode)
timecode - timecode of touch in milliseconds