Class LiveStreamPacketizerCupertinoChunk
- Object
-
- com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerCupertinoChunk
-
- All Implemented Interfaces:
IMediaSegment
public class LiveStreamPacketizerCupertinoChunk extends Object implements IMediaSegment
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUDIO_PACKET_DEFAULT_DURATION
static int
AUDIO_PACKET_MAX_DURATION
static int
AUDIO_PACKET_MIN_DURATION
static int
VIDEO_PACKET_DEFAULT_DURATION
static int
VIDEO_PACKET_MAX_DURATION
static int
VIDEO_PACKET_MIN_DURATION
-
Constructor Summary
Constructors Constructor Description LiveStreamPacketizerCupertinoChunk(long chunkIndex, int rendition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addBlock(byte[] buffer, int offset, int len)
int
addBlock(byte[] buffer, int offset, int len, com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
void
addDataPacket(AMFPacket packet)
void
forceDiscontinuity(boolean force)
int
getAudioCount()
int
getBlockCount()
java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamingCupertinoBlock>
getBlockList()
long
getCalcDuration()
long
getCalcDurationAudio()
long
getCalcDurationVideo()
long
getChunkIndex()
long
getChunkIndexByTime()
long
getChunkIndexForPlaylist()
com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoChunkMap
getChunkMap()
com.wowza.wms.media.model.MediaCodecInfoAudio
getCodecInfoAudio()
com.wowza.wms.media.model.MediaCodecInfoVideo
getCodecInfoVideo()
java.util.List<AMFPacket>
getDataPackets()
int
getDataSize()
long
getDiscontinuitySequence()
long
getDuration()
byte[]
getEncIVBytes()
String
getEncKeyFormat()
String
getEncKeyFormatVersion()
int
getEncMethod()
String
getEncPlayReadyHeader()
byte[]
getEncRepeaterBytes()
String
getEncUrl()
long
getFirstAudioTimecode()
long
getFirstVideoTimecode()
PacketFragmentList
getFragments()
IMediaSgementLong
getIndex()
IMediaSgementlong
getLastAudioTimecode()
long
getLastVideoTimecode()
Long
getManifestIndex()
IMediaSgementString
getProgramDateTime()
WMSProperties
getProperties()
com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition
getRendition()
int
getSize()
long
getStartTimecode()
int
getStreamMode()
com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders
getUserManifestHeaders()
int
getVideoCount()
int
getVideoKeyCount()
void
incAudioCount()
void
incDataSize(int incSize)
void
incVideoCount()
void
incVideoKeyCount()
int
insertBlock(int index, byte[] buffer, int offset, int len)
int
insertBlock(int index, byte[] buffer, int offset, int len, com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
boolean
isAudioFragment()
IMediaSgementboolean
isCacheable()
boolean
isDiscontinuity()
boolean
isDurationDiscontinuity()
boolean
isEncIVBytesInChunklist()
boolean
isFillSuccessful()
boolean
isNewCodecInfo()
boolean
isStreamModeDiscontinuity()
boolean
isVideoFragment()
IMediaSgementboolean
isWritePAT()
void
newAudioTimecode(long timecode)
void
newVideoTimecode(long timecode)
void
setAudioCount(int audioCount)
void
setBlockList(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamingCupertinoBlock> blocks)
void
setCacheable(boolean cacheable)
void
setChunkIndex(int chunkIndex)
void
setChunkIndexByTime(long chunkIndexByTime)
void
setCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
void
setCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
void
setDataSize(int dataSize)
void
setDiscontinuitySequence(long discontinuitySequence)
void
setDuration(long duration)
void
setDurationDiscontinuity(boolean isDurationDiscontinuity)
void
setEncIVBytes(byte[] encIVBytes)
void
setEncIVBytesInChunklist(boolean encIVBytesInChunklist)
void
setEncKeyFormat(String encKeyFormat)
void
setEncKeyFormatVersion(String encKeyFormatVersion)
void
setEncMethod(int encMethod)
void
setEncPlayReadyHeader(String encPlayReadyHeader)
void
setEncRepeaterBytes(byte[] encRepeaterBytes)
void
setEncUrl(String encUrl)
void
setFillSuccessful(boolean fillSuccessful)
void
setFirstAudioTimecode(long firstAudioTimecode)
void
setFirstVideoTimecode(long firstVideoTimecode)
void
setLastAudioTimecode(long lastAudioTimecode)
void
setLastVideoTimecode(long lastVideoTimecode)
void
setNewCodecInfo(boolean isNewCodecInfo)
void
setProgramDateTime(String programDateTime)
void
setStartTimecode(long startTimecode)
void
setStreamMode(int streamMode)
void
setStreamModeDiscontinuity(boolean isStreamModeDiscontinuity)
void
setVideoCount(int videoCount)
void
setVideoKeyCount(int videoKeyCount)
void
setWritePAT(boolean writePAT)
-
-
-
Field Detail
-
AUDIO_PACKET_MIN_DURATION
public static final int AUDIO_PACKET_MIN_DURATION
- See Also:
- Constant Field Values
-
AUDIO_PACKET_MAX_DURATION
public static final int AUDIO_PACKET_MAX_DURATION
- See Also:
- Constant Field Values
-
AUDIO_PACKET_DEFAULT_DURATION
public static final int AUDIO_PACKET_DEFAULT_DURATION
- See Also:
- Constant Field Values
-
VIDEO_PACKET_MIN_DURATION
public static final int VIDEO_PACKET_MIN_DURATION
- See Also:
- Constant Field Values
-
VIDEO_PACKET_MAX_DURATION
public static final int VIDEO_PACKET_MAX_DURATION
- See Also:
- Constant Field Values
-
VIDEO_PACKET_DEFAULT_DURATION
public static final int VIDEO_PACKET_DEFAULT_DURATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChunkIndex
public long getChunkIndex()
-
addBlock
public int addBlock(byte[] buffer, int offset, int len, com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
addBlock
public int addBlock(byte[] buffer, int offset, int len)
-
insertBlock
public int insertBlock(int index, byte[] buffer, int offset, int len, com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder tsHolder)
-
insertBlock
public int insertBlock(int index, byte[] buffer, int offset, int len)
-
getSize
public int getSize()
-
getStartTimecode
public long getStartTimecode()
-
setStartTimecode
public void setStartTimecode(long startTimecode)
-
getDuration
public long getDuration()
- Specified by:
getDuration
in interfaceIMediaSegment
- Returns:
- duration of the fragment
-
setDuration
public void setDuration(long duration)
-
getBlockList
public java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamingCupertinoBlock> getBlockList()
-
setBlockList
public void setBlockList(java.util.List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamingCupertinoBlock> blocks)
-
isCacheable
public boolean isCacheable()
-
setCacheable
public void setCacheable(boolean cacheable)
-
getBlockCount
public int getBlockCount()
-
getEncUrl
public String getEncUrl()
-
setEncUrl
public void setEncUrl(String encUrl)
-
getEncRepeaterBytes
public byte[] getEncRepeaterBytes()
-
setEncRepeaterBytes
public void setEncRepeaterBytes(byte[] encRepeaterBytes)
-
getDataSize
public int getDataSize()
-
setDataSize
public void setDataSize(int dataSize)
-
incDataSize
public void incDataSize(int incSize)
-
isWritePAT
public boolean isWritePAT()
-
setWritePAT
public void setWritePAT(boolean writePAT)
-
incAudioCount
public void incAudioCount()
-
incVideoCount
public void incVideoCount()
-
incVideoKeyCount
public void incVideoKeyCount()
-
getAudioCount
public int getAudioCount()
-
setAudioCount
public void setAudioCount(int audioCount)
-
getVideoCount
public int getVideoCount()
-
setVideoCount
public void setVideoCount(int videoCount)
-
getVideoKeyCount
public int getVideoKeyCount()
-
setVideoKeyCount
public void setVideoKeyCount(int videoKeyCount)
-
getStreamMode
public int getStreamMode()
-
setStreamMode
public void setStreamMode(int streamMode)
-
getCodecInfoVideo
public com.wowza.wms.media.model.MediaCodecInfoVideo getCodecInfoVideo()
-
setCodecInfoVideo
public void setCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
-
getCodecInfoAudio
public com.wowza.wms.media.model.MediaCodecInfoAudio getCodecInfoAudio()
-
setCodecInfoAudio
public void setCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
-
isNewCodecInfo
public boolean isNewCodecInfo()
-
setNewCodecInfo
public void setNewCodecInfo(boolean isNewCodecInfo)
-
getEncMethod
public int getEncMethod()
-
setEncMethod
public void setEncMethod(int encMethod)
-
getEncIVBytes
public byte[] getEncIVBytes()
-
setEncIVBytes
public void setEncIVBytes(byte[] encIVBytes)
-
getEncKeyFormat
public String getEncKeyFormat()
-
setEncKeyFormat
public void setEncKeyFormat(String encKeyFormat)
-
getEncKeyFormatVersion
public String getEncKeyFormatVersion()
-
setEncKeyFormatVersion
public void setEncKeyFormatVersion(String encKeyFormatVersion)
-
getEncPlayReadyHeader
public String getEncPlayReadyHeader()
-
setEncPlayReadyHeader
public void setEncPlayReadyHeader(String encPlayReadyHeader)
-
getFirstAudioTimecode
public long getFirstAudioTimecode()
-
setFirstAudioTimecode
public void setFirstAudioTimecode(long firstAudioTimecode)
-
getFirstVideoTimecode
public long getFirstVideoTimecode()
-
setFirstVideoTimecode
public void setFirstVideoTimecode(long firstVideoTimecode)
-
newAudioTimecode
public void newAudioTimecode(long timecode)
-
newVideoTimecode
public void newVideoTimecode(long timecode)
-
setChunkIndex
public void setChunkIndex(int chunkIndex)
-
getChunkIndexByTime
public long getChunkIndexByTime()
-
setChunkIndexByTime
public void setChunkIndexByTime(long chunkIndexByTime)
-
getChunkIndexForPlaylist
public long getChunkIndexForPlaylist()
-
isFillSuccessful
public boolean isFillSuccessful()
-
setFillSuccessful
public void setFillSuccessful(boolean fillSuccessful)
-
getRendition
public com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoStreamingRendition getRendition()
-
getUserManifestHeaders
public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoUserManifestHeaders getUserManifestHeaders()
-
isDurationDiscontinuity
public boolean isDurationDiscontinuity()
-
setDurationDiscontinuity
public void setDurationDiscontinuity(boolean isDurationDiscontinuity)
-
isStreamModeDiscontinuity
public boolean isStreamModeDiscontinuity()
-
setStreamModeDiscontinuity
public void setStreamModeDiscontinuity(boolean isStreamModeDiscontinuity)
-
getDiscontinuitySequence
public long getDiscontinuitySequence()
-
setDiscontinuitySequence
public void setDiscontinuitySequence(long discontinuitySequence)
-
forceDiscontinuity
public void forceDiscontinuity(boolean force)
-
isDiscontinuity
public boolean isDiscontinuity()
-
getCalcDurationAudio
public long getCalcDurationAudio()
-
getCalcDurationVideo
public long getCalcDurationVideo()
-
getCalcDuration
public long getCalcDuration()
-
getProgramDateTime
public String getProgramDateTime()
-
setProgramDateTime
public void setProgramDateTime(String programDateTime)
-
getChunkMap
public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoChunkMap getChunkMap()
-
getLastAudioTimecode
public long getLastAudioTimecode()
-
setLastAudioTimecode
public void setLastAudioTimecode(long lastAudioTimecode)
-
getLastVideoTimecode
public long getLastVideoTimecode()
-
setLastVideoTimecode
public void setLastVideoTimecode(long lastVideoTimecode)
-
getProperties
public WMSProperties getProperties()
-
addDataPacket
public void addDataPacket(AMFPacket packet)
-
getDataPackets
public java.util.List<AMFPacket> getDataPackets()
-
isEncIVBytesInChunklist
public boolean isEncIVBytesInChunklist()
-
setEncIVBytesInChunklist
public void setEncIVBytesInChunklist(boolean encIVBytesInChunklist)
-
getIndex
public Long getIndex()
IMediaSgement- Specified by:
getIndex
in interfaceIMediaSegment
- Returns:
- index assigned to this fragment on creation
-
getManifestIndex
public Long getManifestIndex()
IMediaSgement- Specified by:
getManifestIndex
in interfaceIMediaSegment
- Returns:
- index to be used to represent this chunk in the manifest
-
isAudioFragment
public boolean isAudioFragment()
IMediaSgement- Specified by:
isAudioFragment
in interfaceIMediaSegment
- Returns:
- true iff this fragment contains a representation of an audio fragment
-
isVideoFragment
public boolean isVideoFragment()
IMediaSgement- Specified by:
isVideoFragment
in interfaceIMediaSegment
- Returns:
- true iff this fragment contains a representation of a video fragment
-
getFragments
public PacketFragmentList getFragments()
IMediaSgement- Specified by:
getFragments
in interfaceIMediaSegment
- Returns:
PacketFragmentList
of this fragment
-
-