Class LiveStreamPacketizerCupertinoChunk

  • All Implemented Interfaces:
    IMediaSegment

    public class LiveStreamPacketizerCupertinoChunk
    extends Object
    implements IMediaSegment
    • 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
    • Constructor Detail

      • LiveStreamPacketizerCupertinoChunk

        public LiveStreamPacketizerCupertinoChunk​(long chunkIndex,
                                                  int rendition)
    • 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 interface IMediaSegment
        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)
      • 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 interface IMediaSegment
        Returns:
        index assigned to this fragment on creation
      • getManifestIndex

        public Long getManifestIndex()
        IMediaSgement
        Specified by:
        getManifestIndex in interface IMediaSegment
        Returns:
        index to be used to represent this chunk in the manifest
      • isAudioFragment

        public boolean isAudioFragment()
        IMediaSgement
        Specified by:
        isAudioFragment in interface IMediaSegment
        Returns:
        true iff this fragment contains a representation of an audio fragment
      • isVideoFragment

        public boolean isVideoFragment()
        IMediaSgement
        Specified by:
        isVideoFragment in interface IMediaSegment
        Returns:
        true iff this fragment contains a representation of a video fragment