Class LiveStreamPacketizerCupertino
- Object
-
- com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
-
- com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerCupertino
-
- All Implemented Interfaces:
ICupertinoChunkWriter
,ILiveStreamPacketizerCupertino
,ILiveStreamPacketizer
,com.wowza.wms.util.IIdleNotify
,Runnable
public class LiveStreamPacketizerCupertino extends com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase implements ICupertinoChunkWriter, ILiveStreamPacketizerCupertino
-
-
Field Summary
-
Fields inherited from class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
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 Summary
Constructors Constructor Description LiveStreamPacketizerCupertino()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addAdditionaManifestHeaders(java.util.Map<String,java.util.Map<String,String>> userHeaders)
void
addToChunk(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoPacketHolder holder)
void
addToChunkAudioTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
void
addToChunkTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
void
addToChunkVideoTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
long
calculateChunkIndexForPlaylist(long chunkIndex, long timecode)
void
encryptAudioTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
void
encryptTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
void
encryptVideoTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
void
endChunk(long timecode)
void
endChunkAudioTS(long timecode, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders, String programDateTime)
void
endChunkSubtitles(long timecode)
void
endChunkSubtitlesRepeater(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerWebVTTChunk captions)
void
endChunkTS(long timecode, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders, String programDateTime)
void
endChunkVideoTS(long timecode, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders, String programDateTime)
com.wowza.wms.httpstreamer.cmafstreaming.livestreampacketizer.CmafSegment
getAudioInit(com.wowza.wms.httpstreamer.model.SegmentFormat cmafVideo)
long
getCalculatedAudioBitrateAverage()
long
getCalculatedAudioBitratePeak()
long
getCalculatedBitrateAverage()
long
getCalculatedBitratePeak()
long
getCalculatedVideoBitrateAverage()
long
getCalculatedVideoBitratePeak()
com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerWebVTTChunk
getCaptionsChunkById(long index)
LiveStreamPacketizerCupertinoChunk
getChunkAudioByFilename(String filename)
LiveStreamPacketizerCupertinoChunk
getChunkByFilename(String filename)
LiveStreamPacketizerCupertinoChunk
getChunkById(int rendition, long index)
int
getChunkCount()
int
getChunkCount(int rendition)
int
getChunkDurationTarget()
static int
getChunkDurationTarget(IApplicationInstance appInstance, String packetizer)
IHTTPStreamerCupertinoLiveStreamPacketizerChunkIdHandler
getChunkIdHandler()
LiveStreamPacketizerCupertinoChunk
getChunkVideoByFilename(String filename)
ICupertinoChunkWriter
getChunkWriter()
String
getCodecsAudioStr(int codecStrFormatId)
String
getCodecsStr(int codecStrFormatId)
String
getCodecsVideoStr(int codecStrFormatId)
IHTTPStreamerCupertinoLivePacketizerDataHandler
getDataHandler()
IHTTPStreamerCupertinoLivePacketizerDataHandler2
getDataHandler2()
com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo
getEncryptionInfo()
int
getFirstChunkId()
int
getFirstChunkId(int rendition)
ID3Frames
getID3FramesFooter()
ID3Frames
getID3FramesFooter(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition rendition)
ID3Frames
getID3FramesFooterAudio()
ID3Frames
getID3FramesFooterVideo()
ID3Frames
getID3FramesHeader()
ID3Frames
getID3FramesHeader(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition rendition)
ID3Frames
getID3FramesHeaderAudio()
ID3Frames
getID3FramesHeaderVideo()
int
getLastChunkId()
int
getLastChunkId(int rendition)
String
getLiveStreamPacketizerName()
Object
getLock()
int
getMaxChunkCount()
int
getMaxChunkDuration()
int
getMinChunkDuration()
String
getPlaylistAudioStr()
int
getPlaylistChunkCount()
Object
getPlaylistLock()
String
getPlaylistStr()
String
getPlaylistVideoStr()
String
getPlayReadySampleEncHeaderFromEarliestChunk()
String
getRandomSessionStr()
void
getRepeaterItems(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoRepeaterHolder> items, long seq)
long
getRepeaterLastSeqence()
Get the sequence number of the last added repeater itemString
getResolutionStr()
int
getSegmentDurationTarget()
Returns the duration in milliseconds of the segment else throws an UnsupportedOperationExceptionlong
getSegmentStartKeyTimecode()
Returns the start timecode for the current chunk / segmentlong
getSegmentStopKeyTimecode()
Returns the stop timecode for the current chunk / segmentString
getSubtitleChunk(String filename, String languageID, boolean isByteRangeRequest)
String
getSubtitlelistStr(String language, String title, String languageID)
String
getTitleStr()
com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders
getUserManifestHeaders()
com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders
getUserManifestHeaders(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition rendition)
com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders
getUserManifestHeadersAudio()
com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders
getUserManifestHeadersVideo()
com.wowza.wms.httpstreamer.cmafstreaming.livestreampacketizer.CmafSegment
getVideoInit(com.wowza.wms.httpstreamer.model.SegmentFormat cmafAudio)
boolean
hasCaptionChunks()
void
init(String streamName, String packetizerName, IApplicationInstance appInstance, com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerItem liveStreamPacketizerItem)
Initialize live stream packetizervoid
internalHandlePacket(IMediaStream stream, AMFPacket packet)
void
internalResetStream(IMediaStream stream)
void
internalStartStream(IMediaStream stream)
boolean
isAudioOnlyRendition()
boolean
isAudioVideoRendition()
boolean
isAutoAdjustDurationIfOutOfBounds()
boolean
isCaptionTargetCEA608()
boolean
isCaptionTargetWebVTT()
boolean
isChunkIdFromRepeater()
boolean
isCustomChunkId()
boolean
isEmptyAllPlaylist()
boolean
isEmptyAudioPlaylist()
boolean
isEmptyPlaylist()
boolean
isEmptyVideoPlaylist()
boolean
isEnableDataEvents()
boolean
isOnChunkStartResetCounter()
boolean
isPacketizeAllStreamsAsTS()
boolean
isVideoOnlyRendition()
void
mergeUserManifestHeaders(LiveStreamPacketizerCupertinoChunk chunk, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
void
resetStream()
void
sendECMBytesAudioTS(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
void
sendECMBytesTS(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
void
sendECMBytesVideoTS(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
void
sendLastData()
Sends the last chunk or segmentvoid
setAutoAdjustDurationIfOutOfBounds(boolean autoAdjustDurationIfOutOfBounds)
void
setChunkIdFromRepeater(boolean chunkIdFromRepeater)
void
setChunkIdHandler(IHTTPStreamerCupertinoLiveStreamPacketizerChunkIdHandler chunkIdHandler)
void
setChunkWriter(ICupertinoChunkWriter chunkWriter)
void
setCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
void
setCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
void
setDataHandler(IHTTPStreamerCupertinoLivePacketizerDataHandler dataHandler)
void
setDataHandler(IHTTPStreamerCupertinoLivePacketizerDataHandler2 dataHandler)
void
setEnableDataEvents(boolean enableDataEvents)
void
setMaxChunkDuration(int maxChunkDuration)
void
setMinChunkDuration(int minChunkDuration)
void
setOnChunkStartResetCounter(boolean onChunkStartResetCounter)
void
setPacketizeAllStreamsAsTS(boolean packetizeAllStreamsAsTS)
void
setSegmentStopKeyTimecode(long timecode)
Sets chunkStopKeyTimecodePTS to a specific valuevoid
setTitleStr(String titleStr)
void
sortAudioTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder, boolean doFlush)
void
sortTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder, boolean doFlush)
void
sortVideoTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder, boolean doFlush)
void
startChunk(int streamMode, int videoCodecId, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo, int audioCodecId, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio, long timecode, long timecode90)
void
startChunkAudioTS(long chunkId, long chunkIdForPlaylist, long discontinuitySeq, boolean isRepeater, int streamMode, int videoCodecId, int audioCodecId, long timecode, int encMethod, String encUrl, byte[] encRepeaterBytes, byte[] encIVBytes, boolean encIVBytesInChunklist, String encKeyFormat, String encKeyFormatVersion, String encPlayReadyHeader, String originRepeaterContext, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
void
startChunkTS(long chunkId, long chunkIdForPlaylist, long discontinuitySeq, boolean isRepeater, int streamMode, int videoCodecId, int audioCodecId, long timecode, int encMethod, String encUrl, byte[] encRepeaterBytes, byte[] encIVBytes, boolean encIVBytesInChunklist, String encKeyFormat, String encKeyFormatVersion, String encPlayReadyHeader, String originRepeaterContext, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
void
startChunkVideoTS(long chunkId, long chunkIdForPlaylist, long discontinuitySeq, boolean isRepeater, int streamMode, int videoCodecId, int audioCodecId, long timecode, int encMethod, String encUrl, byte[] encRepeaterBytes, byte[] encIVBytes, boolean encIVBytesInChunklist, String encKeyFormat, String encKeyFormatVersion, String encPlayReadyHeader, String originRepeaterContext, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
protected void
trim(long chunkIndex)
-
Methods inherited from class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
addPacketizerEvent, checkTimeout, getAndSetStartStream, getApplicationInstance, getCaptionProvider, getContextStr, getLiveStreamPacketizerId, getMaxEventCount, getProperties, getRepeaterItemsSanJose, getStreamStartupTimeout, getStreamTimeout, handlePacket, initLiveCaptionIngestor, isActive, isCEA608IngestModuleInstalled, isPacketizeAudio, isPacketizeData, isPacketizeVideo, isRepeaterEdge, onIdle, resetStream, run, setLiveStreamPacketizerId, setMaxEventCount, setPacketizeAudio, setPacketizeData, setPacketizeVideo, setRepeaterEdge, setStreamStartupTimeout, setStreamTimeout, shutdown, startStream, touch
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.ICupertinoChunkWriter
isPacketizeAudio, isPacketizeData, isPacketizeVideo
-
Methods inherited from interface com.wowza.wms.stream.livepacketizer.ILiveStreamPacketizer
getAndSetStartStream, getApplicationInstance, getLiveStreamPacketizerId, getProperties, getSessionFormat, handlePacket, isActive, isPacketizeAudio, isPacketizeData, isPacketizeVideo, isRepeaterEdge, resetStream, setLiveStreamPacketizerId, setPacketizeAudio, setPacketizeData, setPacketizeVideo, setRepeaterEdge, shutdown, startStream, touch
-
Methods inherited from interface com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.ILiveStreamPacketizerCupertino
getCaptionProvider
-
-
-
-
Field Detail
-
PACKETIZER_NAME
public static final String PACKETIZER_NAME
- See Also:
- Constant Field Values
-
DEFAULT_ENABLEWEBVTTCAPTIONS
public static final boolean DEFAULT_ENABLEWEBVTTCAPTIONS
- See Also:
- Constant Field Values
-
DEFAULT_CREATEAUDIOONLYRENDITION
public static final boolean DEFAULT_CREATEAUDIOONLYRENDITION
- See Also:
- Constant Field Values
-
DEFAULT_ALWAYSSENDZEROPACKETLEN
public static final boolean DEFAULT_ALWAYSSENDZEROPACKETLEN
- See Also:
- Constant Field Values
-
STREAMMODE_TS
public static final int STREAMMODE_TS
- See Also:
- Constant Field Values
-
STREAMMODE_MP3
public static final int STREAMMODE_MP3
- See Also:
- Constant Field Values
-
STREAMMODE_AAC
public static final int STREAMMODE_AAC
- See Also:
- Constant Field Values
-
STREAMMODE_AC3
public static final int STREAMMODE_AC3
- See Also:
- Constant Field Values
-
STREAMMODE_EC3
public static final int STREAMMODE_EC3
- See Also:
- Constant Field Values
-
STREAMMODE_TS_FILEEXTENSION
public static final String STREAMMODE_TS_FILEEXTENSION
- See Also:
- Constant Field Values
-
STREAMMODE_MP3_FILEEXTENSION
public static final String STREAMMODE_MP3_FILEEXTENSION
- See Also:
- Constant Field Values
-
STREAMMODE_AAC_FILEEXTENSION
public static final String STREAMMODE_AAC_FILEEXTENSION
- See Also:
- Constant Field Values
-
STREAMMODE_AC3_FILEEXTENSION
public static final String STREAMMODE_AC3_FILEEXTENSION
- See Also:
- Constant Field Values
-
STREAMMODE_EC3_FILEEXTENSION
public static final String STREAMMODE_EC3_FILEEXTENSION
- See Also:
- Constant Field Values
-
MAXCHUNKCOUNT
public static final int MAXCHUNKCOUNT
- See Also:
- Constant Field Values
-
MAXCHUNKLOGCOUNT
public static final int MAXCHUNKLOGCOUNT
- See Also:
- Constant Field Values
-
PLAYLISTCHUNKCOUNT
public static final int PLAYLISTCHUNKCOUNT
- See Also:
- Constant Field Values
-
REPEATERCHUNKCOUNT
public static final int REPEATERCHUNKCOUNT
- See Also:
- Constant Field Values
-
CHUNKDURATIONTARGET
public static final int CHUNKDURATIONTARGET
- See Also:
- Constant Field Values
-
KEYFRAMEONLYDURATIONTARGET
public static final int KEYFRAMEONLYDURATIONTARGET
- See Also:
- Constant Field Values
-
CHUNKDURATIONTOLERANCE
public static final int CHUNKDURATIONTOLERANCE
- See Also:
- Constant Field Values
-
PLAYSTARTTOLERANCE
public static final int PLAYSTARTTOLERANCE
- See Also:
- Constant Field Values
-
AUDIOGROUPCOUNT
public static final int AUDIOGROUPCOUNT
- See Also:
- Constant Field Values
-
WAITFORCODECTIME
public static final int WAITFORCODECTIME
- See Also:
- Constant Field Values
-
DEFAULT_CHUNKDURATION_MAX
public static final int DEFAULT_CHUNKDURATION_MAX
- See Also:
- Constant Field Values
-
DEFAULT_CHUNKDURATION_MIN
public static final int DEFAULT_CHUNKDURATION_MIN
- See Also:
- Constant Field Values
-
DEFAULT_CUPERTINO_FORCE_END_CHUNK_WHEN_NO_KEYFRAMES
public static final boolean DEFAULT_CUPERTINO_FORCE_END_CHUNK_WHEN_NO_KEYFRAMES
- See Also:
- Constant Field Values
-
DEFAULT_CHUNKDURATION_OVERFLOW_THRESHOLD
public static final int DEFAULT_CHUNKDURATION_OVERFLOW_THRESHOLD
- See Also:
- Constant Field Values
-
DEFAULT_RELATIVE_PLAYLIST_ITEMS
public static final boolean DEFAULT_RELATIVE_PLAYLIST_ITEMS
- See Also:
- Constant Field Values
-
DEFAULT_RESET_TARGET_DURATION_ON_NEW_CHUNK
public static final boolean DEFAULT_RESET_TARGET_DURATION_ON_NEW_CHUNK
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_CACHING
public static final boolean DEFAULT_ALLOW_CACHING
- See Also:
- Constant Field Values
-
repeaterChunkCount
protected int repeaterChunkCount
-
repeaterItems
protected java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoRepeaterHolder> repeaterItems
-
pendingVideoChunk
protected LiveStreamPacketizerCupertinoChunk pendingVideoChunk
-
randomSessionStr
protected String randomSessionStr
-
originRepeaterContext
protected String originRepeaterContext
-
-
Method Detail
-
getChunkDurationTarget
public static int getChunkDurationTarget(IApplicationInstance appInstance, String packetizer)
-
init
public void init(String streamName, String packetizerName, IApplicationInstance appInstance, com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerItem liveStreamPacketizerItem)
Description copied from interface:ILiveStreamPacketizer
Initialize live stream packetizer- Specified by:
init
in interfaceILiveStreamPacketizer
- Overrides:
init
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
- Parameters:
streamName
- stream namepacketizerName
- packetizer nameappInstance
- application instanceliveStreamPacketizerItem
- live stream packetizer
-
getEncryptionInfo
public com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo getEncryptionInfo()
-
internalStartStream
public void internalStartStream(IMediaStream stream)
- Specified by:
internalStartStream
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
-
internalResetStream
public void internalResetStream(IMediaStream stream)
- Specified by:
internalResetStream
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
-
resetStream
public void resetStream()
- Specified by:
resetStream
in interfaceICupertinoChunkWriter
-
sendLastData
public void sendLastData()
Description copied from interface:ILiveStreamPacketizer
Sends the last chunk or segment- Specified by:
sendLastData
in interfaceILiveStreamPacketizer
-
internalHandlePacket
public void internalHandlePacket(IMediaStream stream, AMFPacket packet)
- Specified by:
internalHandlePacket
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
-
isCustomChunkId
public boolean isCustomChunkId()
- Specified by:
isCustomChunkId
in interfaceILiveStreamPacketizerCupertino
-
calculateChunkIndexForPlaylist
public long calculateChunkIndexForPlaylist(long chunkIndex, long timecode)
-
startChunk
public void startChunk(int streamMode, int videoCodecId, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo, int audioCodecId, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio, long timecode, long timecode90)
- Specified by:
startChunk
in interfaceICupertinoChunkWriter
-
sendECMBytesTS
public void sendECMBytesTS(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
-
sendECMBytesAudioTS
public void sendECMBytesAudioTS(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
-
sendECMBytesVideoTS
public void sendECMBytesVideoTS(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
-
endChunk
public void endChunk(long timecode)
- Specified by:
endChunk
in interfaceICupertinoChunkWriter
-
sortAudioTS
public void sortAudioTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder, boolean doFlush)
-
sortVideoTS
public void sortVideoTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder, boolean doFlush)
-
sortTS
public void sortTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder, boolean doFlush)
-
encryptTS
public void encryptTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
encryptAudioTS
public void encryptAudioTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
encryptVideoTS
public void encryptVideoTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
addToChunk
public void addToChunk(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoPacketHolder holder)
- Specified by:
addToChunk
in interfaceICupertinoChunkWriter
-
setCodecInfoAudio
public void setCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
- Specified by:
setCodecInfoAudio
in interfaceICupertinoChunkWriter
-
setCodecInfoVideo
public void setCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
- Specified by:
setCodecInfoVideo
in interfaceICupertinoChunkWriter
-
startChunkAudioTS
public void startChunkAudioTS(long chunkId, long chunkIdForPlaylist, long discontinuitySeq, boolean isRepeater, int streamMode, int videoCodecId, int audioCodecId, long timecode, int encMethod, String encUrl, byte[] encRepeaterBytes, byte[] encIVBytes, boolean encIVBytesInChunklist, String encKeyFormat, String encKeyFormatVersion, String encPlayReadyHeader, String originRepeaterContext, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
-
startChunkVideoTS
public void startChunkVideoTS(long chunkId, long chunkIdForPlaylist, long discontinuitySeq, boolean isRepeater, int streamMode, int videoCodecId, int audioCodecId, long timecode, int encMethod, String encUrl, byte[] encRepeaterBytes, byte[] encIVBytes, boolean encIVBytesInChunklist, String encKeyFormat, String encKeyFormatVersion, String encPlayReadyHeader, String originRepeaterContext, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
-
startChunkTS
public void startChunkTS(long chunkId, long chunkIdForPlaylist, long discontinuitySeq, boolean isRepeater, int streamMode, int videoCodecId, int audioCodecId, long timecode, int encMethod, String encUrl, byte[] encRepeaterBytes, byte[] encIVBytes, boolean encIVBytesInChunklist, String encKeyFormat, String encKeyFormatVersion, String encPlayReadyHeader, String originRepeaterContext, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
-
mergeUserManifestHeaders
public void mergeUserManifestHeaders(LiveStreamPacketizerCupertinoChunk chunk, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders)
-
endChunkAudioTS
public void endChunkAudioTS(long timecode, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders, String programDateTime)
-
endChunkVideoTS
public void endChunkVideoTS(long timecode, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders, String programDateTime)
-
endChunkTS
public void endChunkTS(long timecode, java.util.Map<String,java.util.Map<String,String>> userManifestHeaders, String programDateTime)
-
endChunkSubtitles
public void endChunkSubtitles(long timecode)
-
endChunkSubtitlesRepeater
public void endChunkSubtitlesRepeater(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerWebVTTChunk captions)
-
addToChunkAudioTS
public void addToChunkAudioTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
addToChunkVideoTS
public void addToChunkVideoTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
addToChunkTS
public void addToChunkTS(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
getRepeaterLastSeqence
public long getRepeaterLastSeqence()
Description copied from interface:ILiveStreamPacketizer
Get the sequence number of the last added repeater item- Specified by:
getRepeaterLastSeqence
in interfaceILiveStreamPacketizer
- Overrides:
getRepeaterLastSeqence
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
- Returns:
- sequence number
-
getRepeaterItems
public void getRepeaterItems(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoRepeaterHolder> items, long seq)
- Overrides:
getRepeaterItems
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
-
trim
protected void trim(long chunkIndex)
-
getChunkByFilename
public LiveStreamPacketizerCupertinoChunk getChunkByFilename(String filename)
-
getChunkAudioByFilename
public LiveStreamPacketizerCupertinoChunk getChunkAudioByFilename(String filename)
-
getChunkVideoByFilename
public LiveStreamPacketizerCupertinoChunk getChunkVideoByFilename(String filename)
-
getLock
public Object getLock()
- Specified by:
getLock
in interfaceILiveStreamPacketizer
- Specified by:
getLock
in interfaceILiveStreamPacketizerCupertino
- Returns:
- Packetizer's Lock or null if none
-
getPlaylistLock
public Object getPlaylistLock()
-
getPlaylistStr
public String getPlaylistStr()
- Specified by:
getPlaylistStr
in interfaceILiveStreamPacketizerCupertino
-
getCodecsStr
public String getCodecsStr(int codecStrFormatId)
- Specified by:
getCodecsStr
in interfaceILiveStreamPacketizerCupertino
-
getResolutionStr
public String getResolutionStr()
- Specified by:
getResolutionStr
in interfaceILiveStreamPacketizerCupertino
-
getPlaylistAudioStr
public String getPlaylistAudioStr()
- Specified by:
getPlaylistAudioStr
in interfaceILiveStreamPacketizerCupertino
-
getCodecsAudioStr
public String getCodecsAudioStr(int codecStrFormatId)
- Specified by:
getCodecsAudioStr
in interfaceILiveStreamPacketizerCupertino
-
getPlaylistVideoStr
public String getPlaylistVideoStr()
- Specified by:
getPlaylistVideoStr
in interfaceILiveStreamPacketizerCupertino
-
getCodecsVideoStr
public String getCodecsVideoStr(int codecStrFormatId)
- Specified by:
getCodecsVideoStr
in interfaceILiveStreamPacketizerCupertino
-
isEmptyAllPlaylist
public boolean isEmptyAllPlaylist()
-
getPlayReadySampleEncHeaderFromEarliestChunk
public String getPlayReadySampleEncHeaderFromEarliestChunk()
-
isEmptyPlaylist
public boolean isEmptyPlaylist()
- Specified by:
isEmptyPlaylist
in interfaceILiveStreamPacketizerCupertino
-
isEmptyAudioPlaylist
public boolean isEmptyAudioPlaylist()
- Specified by:
isEmptyAudioPlaylist
in interfaceILiveStreamPacketizerCupertino
-
isEmptyVideoPlaylist
public boolean isEmptyVideoPlaylist()
- Specified by:
isEmptyVideoPlaylist
in interfaceILiveStreamPacketizerCupertino
-
getUserManifestHeaders
public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders getUserManifestHeaders(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition rendition)
-
getUserManifestHeaders
public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders getUserManifestHeaders()
-
getUserManifestHeadersAudio
public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders getUserManifestHeadersAudio()
-
getUserManifestHeadersVideo
public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders getUserManifestHeadersVideo()
-
addAdditionaManifestHeaders
public String addAdditionaManifestHeaders(java.util.Map<String,java.util.Map<String,String>> userHeaders)
-
getTitleStr
public String getTitleStr()
-
setTitleStr
public void setTitleStr(String titleStr)
-
isCaptionTargetCEA608
public boolean isCaptionTargetCEA608()
-
isCaptionTargetWebVTT
public boolean isCaptionTargetWebVTT()
- Specified by:
isCaptionTargetWebVTT
in interfaceILiveStreamPacketizerCupertino
-
isAudioOnlyRendition
public boolean isAudioOnlyRendition()
-
isVideoOnlyRendition
public boolean isVideoOnlyRendition()
-
isAudioVideoRendition
public boolean isAudioVideoRendition()
-
getCalculatedBitrateAverage
public long getCalculatedBitrateAverage()
-
getCalculatedAudioBitrateAverage
public long getCalculatedAudioBitrateAverage()
-
getCalculatedVideoBitrateAverage
public long getCalculatedVideoBitrateAverage()
-
getCalculatedBitratePeak
public long getCalculatedBitratePeak()
- Specified by:
getCalculatedBitratePeak
in interfaceILiveStreamPacketizerCupertino
-
getCalculatedAudioBitratePeak
public long getCalculatedAudioBitratePeak()
- Specified by:
getCalculatedAudioBitratePeak
in interfaceILiveStreamPacketizerCupertino
-
getCalculatedVideoBitratePeak
public long getCalculatedVideoBitratePeak()
-
getID3FramesHeader
public ID3Frames getID3FramesHeader(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition rendition)
-
getID3FramesFooter
public ID3Frames getID3FramesFooter(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition rendition)
-
getID3FramesHeader
public ID3Frames getID3FramesHeader()
-
getID3FramesFooter
public ID3Frames getID3FramesFooter()
-
getID3FramesHeaderAudio
public ID3Frames getID3FramesHeaderAudio()
-
getID3FramesFooterAudio
public ID3Frames getID3FramesFooterAudio()
-
getID3FramesHeaderVideo
public ID3Frames getID3FramesHeaderVideo()
-
getID3FramesFooterVideo
public ID3Frames getID3FramesFooterVideo()
-
getChunkWriter
public ICupertinoChunkWriter getChunkWriter()
-
setChunkWriter
public void setChunkWriter(ICupertinoChunkWriter chunkWriter)
-
getDataHandler
public IHTTPStreamerCupertinoLivePacketizerDataHandler getDataHandler()
-
getDataHandler2
public IHTTPStreamerCupertinoLivePacketizerDataHandler2 getDataHandler2()
-
setDataHandler
public void setDataHandler(IHTTPStreamerCupertinoLivePacketizerDataHandler dataHandler)
-
setDataHandler
public void setDataHandler(IHTTPStreamerCupertinoLivePacketizerDataHandler2 dataHandler)
-
isEnableDataEvents
public boolean isEnableDataEvents()
-
setEnableDataEvents
public void setEnableDataEvents(boolean enableDataEvents)
-
isOnChunkStartResetCounter
public boolean isOnChunkStartResetCounter()
-
setOnChunkStartResetCounter
public void setOnChunkStartResetCounter(boolean onChunkStartResetCounter)
-
isPacketizeAllStreamsAsTS
public boolean isPacketizeAllStreamsAsTS()
-
setPacketizeAllStreamsAsTS
public void setPacketizeAllStreamsAsTS(boolean packetizeAllStreamsAsTS)
-
getSubtitlelistStr
public String getSubtitlelistStr(String language, String title, String languageID)
- Specified by:
getSubtitlelistStr
in interfaceILiveStreamPacketizerCupertino
-
getSubtitleChunk
public String getSubtitleChunk(String filename, String languageID, boolean isByteRangeRequest)
- Specified by:
getSubtitleChunk
in interfaceILiveStreamPacketizerCupertino
-
getLastChunkId
public int getLastChunkId()
-
getLastChunkId
public int getLastChunkId(int rendition)
- Specified by:
getLastChunkId
in interfaceILiveStreamPacketizerCupertino
-
getFirstChunkId
public int getFirstChunkId()
-
getFirstChunkId
public int getFirstChunkId(int rendition)
- Specified by:
getFirstChunkId
in interfaceILiveStreamPacketizerCupertino
-
getChunkCount
public int getChunkCount()
-
getChunkCount
public int getChunkCount(int rendition)
- Specified by:
getChunkCount
in interfaceILiveStreamPacketizerCupertino
-
getChunkById
public LiveStreamPacketizerCupertinoChunk getChunkById(int rendition, long index)
- Specified by:
getChunkById
in interfaceILiveStreamPacketizerCupertino
-
getCaptionsChunkById
public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerWebVTTChunk getCaptionsChunkById(long index)
-
getRandomSessionStr
public String getRandomSessionStr()
- Specified by:
getRandomSessionStr
in interfaceILiveStreamPacketizerCupertino
-
getChunkDurationTarget
public int getChunkDurationTarget()
- Specified by:
getChunkDurationTarget
in interfaceILiveStreamPacketizer
- Overrides:
getChunkDurationTarget
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
-
getPlaylistChunkCount
public int getPlaylistChunkCount()
- Specified by:
getPlaylistChunkCount
in interfaceILiveStreamPacketizerCupertino
-
getMaxChunkCount
public int getMaxChunkCount()
- Specified by:
getMaxChunkCount
in interfaceILiveStreamPacketizerCupertino
-
getChunkIdHandler
public IHTTPStreamerCupertinoLiveStreamPacketizerChunkIdHandler getChunkIdHandler()
-
setChunkIdHandler
public void setChunkIdHandler(IHTTPStreamerCupertinoLiveStreamPacketizerChunkIdHandler chunkIdHandler)
-
hasCaptionChunks
public boolean hasCaptionChunks()
-
getMaxChunkDuration
public int getMaxChunkDuration()
-
setMaxChunkDuration
public void setMaxChunkDuration(int maxChunkDuration)
-
getMinChunkDuration
public int getMinChunkDuration()
-
setMinChunkDuration
public void setMinChunkDuration(int minChunkDuration)
-
isAutoAdjustDurationIfOutOfBounds
public boolean isAutoAdjustDurationIfOutOfBounds()
-
setAutoAdjustDurationIfOutOfBounds
public void setAutoAdjustDurationIfOutOfBounds(boolean autoAdjustDurationIfOutOfBounds)
-
isChunkIdFromRepeater
public boolean isChunkIdFromRepeater()
-
setChunkIdFromRepeater
public void setChunkIdFromRepeater(boolean chunkIdFromRepeater)
-
getSegmentDurationTarget
public int getSegmentDurationTarget()
Description copied from interface:ILiveStreamPacketizer
Returns the duration in milliseconds of the segment else throws an UnsupportedOperationException- Specified by:
getSegmentDurationTarget
in interfaceILiveStreamPacketizer
- Overrides:
getSegmentDurationTarget
in classcom.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
- Returns:
-
getSegmentStartKeyTimecode
public long getSegmentStartKeyTimecode()
Description copied from interface:ILiveStreamPacketizer
Returns the start timecode for the current chunk / segment- Specified by:
getSegmentStartKeyTimecode
in interfaceILiveStreamPacketizer
- Returns:
- chunkStartKeyTimecodePTS or -1 if not implemented
-
getSegmentStopKeyTimecode
public long getSegmentStopKeyTimecode()
Description copied from interface:ILiveStreamPacketizer
Returns the stop timecode for the current chunk / segment- Specified by:
getSegmentStopKeyTimecode
in interfaceILiveStreamPacketizer
- Returns:
- chunkStopKeyTimecodePTS or -1 if not implemented
-
setSegmentStopKeyTimecode
public void setSegmentStopKeyTimecode(long timecode) throws IllegalArgumentException
Description copied from interface:ILiveStreamPacketizer
Sets chunkStopKeyTimecodePTS to a specific value- Specified by:
setSegmentStopKeyTimecode
in interfaceILiveStreamPacketizer
- Parameters:
timecode
- - new value for chunkStopKeyTimecodePTS, must be greater than chunkStartKeyTimecodePTS- Throws:
IllegalArgumentException
- if timecode <= chunkStartKeyTimecodePTS
-
getLiveStreamPacketizerName
public String getLiveStreamPacketizerName()
- Specified by:
getLiveStreamPacketizerName
in interfaceILiveStreamPacketizerCupertino
-
getVideoInit
public com.wowza.wms.httpstreamer.cmafstreaming.livestreampacketizer.CmafSegment getVideoInit(com.wowza.wms.httpstreamer.model.SegmentFormat cmafAudio)
- Specified by:
getVideoInit
in interfaceILiveStreamPacketizerCupertino
-
getAudioInit
public com.wowza.wms.httpstreamer.cmafstreaming.livestreampacketizer.CmafSegment getAudioInit(com.wowza.wms.httpstreamer.model.SegmentFormat cmafVideo)
- Specified by:
getAudioInit
in interfaceILiveStreamPacketizerCupertino
-
-