ILiveStreamPacketizerpublic class LiveStreamPacketizerSmoothStreaming
extends com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
alignAudioWithVideo |
|
protected IHTTPStreamerApplicationContext |
appContext |
|
protected SmoothStreamingFragments |
audioFragments |
|
protected String |
contextStr |
|
protected int |
dataEventFrequency |
|
protected SmoothStreamingFragments |
dataFragments |
|
protected com.wowza.wms.httpstreamer.smoothstreaming.model.SmoothStreamingDataTracks |
dataTracks |
|
static boolean |
DEFAULT_ALIGNAUDIOWITHVIDEO |
|
static int |
DEFAULT_PACKETSORTTIME |
|
static int |
DEFAULT_SMOOTHBUFFERMINFRAGMENTCOUNT |
|
static int |
DEFAULT_SMOOTHFRAGMENTTARGETAUDIODURATION |
|
static int |
DEFAULT_SMOOTHMANIFESTMINFRAGMENTCOUNT |
|
static int |
DEFAULT_SMOOTHMANIFESTTARGETDURATION |
|
static int |
DEFAULT_SMOOTHREPEATERMINFRAGMENTCOUNT |
|
static int |
DEFAULT_SMOOTHREPEATERTARGETDURATION |
|
protected boolean |
enableDataEvents |
|
protected Object |
ismcXMLLock |
|
static int |
MAX_READAHEAD_TIMECODES |
|
protected int |
maxChunkLogCount |
|
static long |
MAXTIMECODE_BIGINTEGER |
|
static int |
MILLISTOSILVERLIGHT |
|
protected long |
nextFragmentIdAudio |
|
protected long |
nextFragmentIdData |
|
protected long |
nextFragmentIdVideo |
|
protected com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPacketHandler |
packetHandler |
|
protected int |
packetSortTime |
|
protected java.util.Map<Long,com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPendingFragment> |
pendingAudioFragments |
|
protected java.util.Map<Long,com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPendingFragment> |
pendingVideoFragments |
|
protected int |
playReadyEmptyLicenseSize |
|
protected com.wowza.wms.drm.playready.PlayReadyEncryptor |
playReadyEncryptorAudio |
|
protected com.wowza.wms.drm.playready.PlayReadyEncryptor |
playReadyEncryptorVideo |
|
protected com.wowza.wms.drm.playready.PlayReadyKeyInfo |
playReadyKeyInfo |
|
protected int |
readAheadSize |
|
protected java.util.List<Long> |
readAheadTimecodesAudio |
|
protected java.util.List<Long> |
readAheadTimecodesVideo |
|
protected Object |
reapeaterItemsLock |
|
protected com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterList |
repeaterListAudio |
|
protected com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterList |
repeaterListVideo |
|
protected long |
repeaterSeq |
|
static long |
SECONDSTOSILVERLIGHT |
|
protected int |
smoothBufferMinFragmentCount |
|
protected int |
smoothBufferTargetDuration |
|
protected int |
smoothFragmentMaximumAudioDuration |
|
protected int |
smoothFragmentTargetAudioDuration |
|
protected int |
smoothManifestMinFragmentCount |
|
protected int |
smoothManifestTargetDuration |
|
protected int |
smoothMinimumVideoFragmentDuration |
|
protected int |
smoothPlayReadyH264ClearSize |
|
protected int |
smoothRepeaterMinFragmentCount |
|
protected int |
smoothRepeaterTargetDuration |
|
protected int |
smoothStreamingMediaMajorVersion |
|
protected int |
smoothStreamingMediaMinorVersion |
|
protected SmoothStreamingFragments |
videoFragments |
|
protected String |
xmlData |
|
protected boolean |
xmlIsAudio |
|
protected boolean |
xmlIsData |
|
protected boolean |
xmlIsLiveData |
|
protected String |
xmlISMC |
|
protected boolean |
xmlIsProtection |
|
protected boolean |
xmlIsVideo |
|
protected String |
xmlProtection |
|
protected String |
xmlQualityLevelAudio |
|
protected String |
xmlQualityLevelVideo |
|
protected String |
xmlSamplesAudio |
|
protected String |
xmlSamplesVideo |
|
protected String |
xmlSmoothStreamingMedia |
|
protected String |
xmlStreamIndexAudio |
|
protected String |
xmlStreamIndexVideo |
appInstance, captionDefaultLanguages, captionIngestType, captionsEnabled, captionUseStreamNameGroups, checkTimeoutInterval, DEFAULT_STREAMTIMEOUT, EVENT_PACKET, EVENT_RESETSTREAM, EVENT_STARTSTREAM, eventProcessCount, events, id, inProcessEvent, isActive, isRepeater, isRepeaterEdge, isRunning, lastCheckTime, lastEventProcessTC, lastStreamStartTime, lastStreamUpdate, liveStreamPacketizerItem, liveTimedTextProvider, maxEventCount, maxEventCountErrors, maxEventsPerRun, MAXEVENTSPERRUN, MEDIA_CHUNK_DURATION, packetizeAudio, packetizeData, packetizerName, packetizeVideo, properties, runnerLock, startStream, streamName, streamStartupTimeout, streamTimeout, timeoutLock| Constructor | Description |
|---|---|
LiveStreamPacketizerSmoothStreaming() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDataFragment(long startTime,
long duration,
SmoothStreamingFragmentHeader fragmentHeader) |
|
void |
addFragmentAudioMediaPacket(long startTime,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaPacket mediaPacket) |
|
void |
addFragmentVideoMediaPacket(long startTime,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaPacket mediaPacket) |
|
void |
addReadAheadTimecodeAudio(long timecode) |
|
void |
addReadAheadTimecodeVideo(long timecode) |
|
void |
clearFragmentAudio() |
|
void |
clearFragmentData() |
|
void |
clearFragmentVideo() |
|
void |
endFragmentAudio(long startTime,
long endTime) |
|
void |
endFragmentVideo(long startTime,
long endTime) |
|
int |
getAudioBitrate() |
|
PacketFragmentList |
getAudioPacket(long timecode,
boolean isInfo) |
|
IHTTPStreamerSmoothLivePacketizerDataHandler |
getDataHandler() |
|
byte[] |
getDataPacket(long timecode,
boolean isInfo) |
|
IHTTPStreamerSmoothLivePacketizerDataTrackHandler |
getDataTrackHandler() |
|
com.wowza.wms.httpstreamer.smoothstreaming.model.SmoothStreamingDataTracks |
getDataTracks() |
|
int |
getDisplayHeight() |
|
int |
getDisplayWidth() |
|
Object |
getManifestLock() |
|
int |
getMaxReadAheadTimecodes() |
|
long |
getPlaylistDuration() |
|
com.wowza.wms.drm.playready.PlayReadyKeyInfo |
getPlayReadKeyInfo() |
|
int |
getPlayReadyEmptyLicenseSize() |
|
void |
getRepeaterAudioItems(java.util.List<com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterHolder> items,
long seq) |
|
long |
getRepeaterAudioLastSeqence() |
|
long |
getRepeaterLastSeqence() |
Get the sequence number of the last added repeater item
|
void |
getRepeaterVideoItems(java.util.List<com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterHolder> items,
long seq) |
|
long |
getRepeaterVideoLastSeqence() |
|
int |
getVideoBitrate() |
|
int |
getVideoHeight() |
|
PacketFragmentList |
getVideoPacket(long timecode,
boolean isInfo) |
|
PacketFragmentList |
getVideoPacket(long timecode,
boolean isInfo,
int keyFrameTolerance) |
|
int |
getVideoWidth() |
|
String |
getXMLData() |
|
String |
getXMLISMC() |
|
String |
getXMLProtection() |
|
String |
getXMLQualityLevelAudio() |
|
String |
getXMLQualityLevelVideo() |
|
String |
getXMLSamplesAudio() |
|
String |
getXMLSamplesVideo() |
|
String |
getXMLSmoothStreamingMedia() |
|
String |
getXMLStreamIndexAudio() |
|
String |
getXMLStreamIndexVideo() |
|
void |
init(String streamName,
String packetizerName,
IApplicationInstance appInstance,
com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerItem liveStreamPacketizerItem) |
Initialize live stream packetizer
|
void |
internalHandlePacket(IMediaStream stream,
AMFPacket packet) |
|
void |
internalResetStream(IMediaStream stream) |
|
void |
internalStartStream(IMediaStream stream) |
|
boolean |
isAudioFragmentDeleted(long timecode) |
|
boolean |
isAudioFragmentDeleted(long timecode,
int tolerance) |
|
boolean |
isReadAheadTimecodeAudio(long timecode) |
|
boolean |
isReadAheadTimecodeVideo(long timecode) |
|
boolean |
isVideoFragmentDeleted(long timecode) |
|
boolean |
isVideoFragmentDeleted(long timecode,
int tolerance) |
|
boolean |
isXMLIsAudio() |
|
boolean |
isXMLIsData() |
|
boolean |
isXMLIsProtection() |
|
boolean |
isXMLIsVideo() |
|
long |
recalculateDuration(com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPendingFragment fragment,
long nextTimecode) |
|
void |
setDataHandler(IHTTPStreamerSmoothLivePacketizerDataHandler dataHandler) |
|
void |
setDataTrackHandler(IHTTPStreamerSmoothLivePacketizerDataTrackHandler handler) |
|
void |
setFragmentAudioHeader(long startTime,
SmoothStreamingFragmentHeader fragmentHeader,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaInfoAudio mediaInfo) |
|
void |
setFragmentVideoHeader(long startTime,
SmoothStreamingFragmentHeader fragmentHeader,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaInfoVideo mediaInfo) |
|
void |
setMaxReadAheadTimecodes(int maxReadAheadTimecodes) |
|
void |
setPlayReadKeyInfo(com.wowza.wms.drm.playready.PlayReadyKeyInfo playReadyKeyInfo) |
|
void |
setPlayReadyEmptyLicenseSize(int playReadyEmptyLicenseSize) |
|
void |
startFragmentAudio(long startTime) |
|
void |
startFragmentVideo(long startTime) |
|
boolean |
testPlaylistDuration(long testDuration) |
|
void |
updateISMCXML() |
getSessionFormataddPacketizerEvent, checkTimeout, getAndSetStartStream, getApplicationInstance, getCaptionProvider, getChunkDurationTarget, getContextStr, getLiveStreamPacketizerId, getMaxEventCount, getProperties, getRepeaterItems, getRepeaterItemsSanJose, getSegmentDurationTarget, getStreamStartupTimeout, getStreamTimeout, handlePacket, initLiveCaptionIngestor, isActive, isCEA608IngestModuleInstalled, isPacketizeAudio, isPacketizeData, isPacketizeVideo, isRepeaterEdge, onIdle, resetStream, run, setLiveStreamPacketizerId, setMaxEventCount, setPacketizeAudio, setPacketizeData, setPacketizeVideo, setRepeaterEdge, setStreamStartupTimeout, setStreamTimeout, shutdown, startStream, touchprotected boolean alignAudioWithVideo
protected IHTTPStreamerApplicationContext appContext
protected SmoothStreamingFragments audioFragments
protected String contextStr
protected int dataEventFrequency
protected SmoothStreamingFragments dataFragments
protected com.wowza.wms.httpstreamer.smoothstreaming.model.SmoothStreamingDataTracks dataTracks
public static final boolean DEFAULT_ALIGNAUDIOWITHVIDEO
public static final int DEFAULT_PACKETSORTTIME
public static final int DEFAULT_SMOOTHBUFFERMINFRAGMENTCOUNT
public static final int DEFAULT_SMOOTHFRAGMENTTARGETAUDIODURATION
public static final int DEFAULT_SMOOTHMANIFESTMINFRAGMENTCOUNT
public static final int DEFAULT_SMOOTHMANIFESTTARGETDURATION
public static final int DEFAULT_SMOOTHREPEATERMINFRAGMENTCOUNT
public static final int DEFAULT_SMOOTHREPEATERTARGETDURATION
protected boolean enableDataEvents
protected Object ismcXMLLock
public static final int MAX_READAHEAD_TIMECODES
protected int maxChunkLogCount
public static final long MAXTIMECODE_BIGINTEGER
public static final int MILLISTOSILVERLIGHT
protected long nextFragmentIdAudio
protected long nextFragmentIdData
protected long nextFragmentIdVideo
protected com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPacketHandler packetHandler
protected int packetSortTime
protected java.util.Map<Long,com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPendingFragment> pendingAudioFragments
protected java.util.Map<Long,com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPendingFragment> pendingVideoFragments
protected int playReadyEmptyLicenseSize
protected com.wowza.wms.drm.playready.PlayReadyEncryptor playReadyEncryptorAudio
protected com.wowza.wms.drm.playready.PlayReadyEncryptor playReadyEncryptorVideo
protected com.wowza.wms.drm.playready.PlayReadyKeyInfo playReadyKeyInfo
protected int readAheadSize
protected java.util.List<Long> readAheadTimecodesAudio
protected java.util.List<Long> readAheadTimecodesVideo
protected Object reapeaterItemsLock
protected com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterList repeaterListAudio
protected com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterList repeaterListVideo
protected long repeaterSeq
public static final long SECONDSTOSILVERLIGHT
protected int smoothBufferMinFragmentCount
protected int smoothBufferTargetDuration
protected int smoothFragmentMaximumAudioDuration
protected int smoothFragmentTargetAudioDuration
protected int smoothManifestMinFragmentCount
protected int smoothManifestTargetDuration
protected int smoothMinimumVideoFragmentDuration
protected int smoothPlayReadyH264ClearSize
protected int smoothRepeaterMinFragmentCount
protected int smoothRepeaterTargetDuration
protected int smoothStreamingMediaMajorVersion
protected int smoothStreamingMediaMinorVersion
protected SmoothStreamingFragments videoFragments
protected String xmlData
protected boolean xmlIsAudio
protected boolean xmlIsData
protected boolean xmlIsLiveData
protected String xmlISMC
protected boolean xmlIsProtection
protected boolean xmlIsVideo
protected String xmlProtection
protected String xmlQualityLevelAudio
protected String xmlQualityLevelVideo
protected String xmlSamplesAudio
protected String xmlSamplesVideo
protected String xmlSmoothStreamingMedia
protected String xmlStreamIndexAudio
protected String xmlStreamIndexVideo
public LiveStreamPacketizerSmoothStreaming()
throws com.wowza.wms.server.LicensingException
com.wowza.wms.server.LicensingExceptionpublic void addDataFragment(long startTime,
long duration,
SmoothStreamingFragmentHeader fragmentHeader)
public void addFragmentAudioMediaPacket(long startTime,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaPacket mediaPacket)
public void addFragmentVideoMediaPacket(long startTime,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaPacket mediaPacket)
public void addReadAheadTimecodeAudio(long timecode)
public void addReadAheadTimecodeVideo(long timecode)
public void clearFragmentAudio()
public void clearFragmentData()
public void clearFragmentVideo()
public void endFragmentAudio(long startTime,
long endTime)
public void endFragmentVideo(long startTime,
long endTime)
public int getAudioBitrate()
public PacketFragmentList getAudioPacket(long timecode, boolean isInfo)
public IHTTPStreamerSmoothLivePacketizerDataHandler getDataHandler()
public byte[] getDataPacket(long timecode,
boolean isInfo)
public IHTTPStreamerSmoothLivePacketizerDataTrackHandler getDataTrackHandler()
public com.wowza.wms.httpstreamer.smoothstreaming.model.SmoothStreamingDataTracks getDataTracks()
public int getDisplayHeight()
public int getDisplayWidth()
public Object getManifestLock()
public int getMaxReadAheadTimecodes()
public long getPlaylistDuration()
public com.wowza.wms.drm.playready.PlayReadyKeyInfo getPlayReadKeyInfo()
public int getPlayReadyEmptyLicenseSize()
public void getRepeaterAudioItems(java.util.List<com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterHolder> items,
long seq)
public long getRepeaterAudioLastSeqence()
public long getRepeaterLastSeqence()
ILiveStreamPacketizergetRepeaterLastSeqence in interface ILiveStreamPacketizergetRepeaterLastSeqence in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBasepublic void getRepeaterVideoItems(java.util.List<com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingRepeaterHolder> items,
long seq)
public long getRepeaterVideoLastSeqence()
public int getVideoBitrate()
public int getVideoHeight()
public PacketFragmentList getVideoPacket(long timecode, boolean isInfo)
public PacketFragmentList getVideoPacket(long timecode, boolean isInfo, int keyFrameTolerance)
public int getVideoWidth()
public String getXMLData()
public String getXMLISMC()
public String getXMLProtection()
public String getXMLQualityLevelAudio()
public String getXMLQualityLevelVideo()
public String getXMLSamplesAudio()
public String getXMLSamplesVideo()
public String getXMLSmoothStreamingMedia()
public String getXMLStreamIndexAudio()
public String getXMLStreamIndexVideo()
public void init(String streamName,
String packetizerName,
IApplicationInstance appInstance,
com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerItem liveStreamPacketizerItem)
ILiveStreamPacketizerinit in interface ILiveStreamPacketizerinit in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBasestreamName - stream namepacketizerName - packetizer nameappInstance - application instanceliveStreamPacketizerItem - live stream packetizerpublic void internalHandlePacket(IMediaStream stream, AMFPacket packet)
internalHandlePacket in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBasepublic void internalResetStream(IMediaStream stream)
internalResetStream in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBasepublic void internalStartStream(IMediaStream stream)
internalStartStream in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBasepublic boolean isAudioFragmentDeleted(long timecode)
public boolean isAudioFragmentDeleted(long timecode,
int tolerance)
public boolean isReadAheadTimecodeAudio(long timecode)
public boolean isReadAheadTimecodeVideo(long timecode)
public boolean isVideoFragmentDeleted(long timecode)
public boolean isVideoFragmentDeleted(long timecode,
int tolerance)
public boolean isXMLIsAudio()
public boolean isXMLIsData()
public boolean isXMLIsProtection()
public boolean isXMLIsVideo()
public long recalculateDuration(com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingPendingFragment fragment,
long nextTimecode)
public void setDataHandler(IHTTPStreamerSmoothLivePacketizerDataHandler dataHandler)
public void setDataTrackHandler(IHTTPStreamerSmoothLivePacketizerDataTrackHandler handler)
public void setFragmentAudioHeader(long startTime,
SmoothStreamingFragmentHeader fragmentHeader,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaInfoAudio mediaInfo)
public void setFragmentVideoHeader(long startTime,
SmoothStreamingFragmentHeader fragmentHeader,
com.wowza.wms.httpstreamer.smoothstreaming.livestreampacketizer.SmoothStreamingMediaInfoVideo mediaInfo)
public void setMaxReadAheadTimecodes(int maxReadAheadTimecodes)
public void setPlayReadKeyInfo(com.wowza.wms.drm.playready.PlayReadyKeyInfo playReadyKeyInfo)
public void setPlayReadyEmptyLicenseSize(int playReadyEmptyLicenseSize)
public void startFragmentAudio(long startTime)
public void startFragmentVideo(long startTime)
public boolean testPlaylistDuration(long testDuration)
public void updateISMCXML()