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 Details

    • PACKETIZER_NAME

      public static final String PACKETIZER_NAME
      See Also:
    • DEFAULT_ENABLEWEBVTTCAPTIONS

      public static final boolean DEFAULT_ENABLEWEBVTTCAPTIONS
      See Also:
    • DEFAULT_CREATEAUDIOONLYRENDITION

      public static final boolean DEFAULT_CREATEAUDIOONLYRENDITION
      See Also:
    • DEFAULT_ALWAYSSENDZEROPACKETLEN

      public static final boolean DEFAULT_ALWAYSSENDZEROPACKETLEN
      See Also:
    • STREAMMODE_TS

      public static final int STREAMMODE_TS
      See Also:
    • STREAMMODE_MP3

      public static final int STREAMMODE_MP3
      See Also:
    • STREAMMODE_AAC

      public static final int STREAMMODE_AAC
      See Also:
    • STREAMMODE_AC3

      public static final int STREAMMODE_AC3
      See Also:
    • STREAMMODE_EC3

      public static final int STREAMMODE_EC3
      See Also:
    • STREAMMODE_TS_FILEEXTENSION

      public static final String STREAMMODE_TS_FILEEXTENSION
      See Also:
    • STREAMMODE_MP3_FILEEXTENSION

      public static final String STREAMMODE_MP3_FILEEXTENSION
      See Also:
    • STREAMMODE_AAC_FILEEXTENSION

      public static final String STREAMMODE_AAC_FILEEXTENSION
      See Also:
    • STREAMMODE_AC3_FILEEXTENSION

      public static final String STREAMMODE_AC3_FILEEXTENSION
      See Also:
    • STREAMMODE_EC3_FILEEXTENSION

      public static final String STREAMMODE_EC3_FILEEXTENSION
      See Also:
    • MAXCHUNKCOUNT

      public static final int MAXCHUNKCOUNT
      See Also:
    • MAXCHUNKLOGCOUNT

      public static final int MAXCHUNKLOGCOUNT
      See Also:
    • PLAYLISTCHUNKCOUNT

      public static final int PLAYLISTCHUNKCOUNT
      See Also:
    • REPEATERCHUNKCOUNT

      public static final int REPEATERCHUNKCOUNT
      See Also:
    • CHUNKDURATIONTARGET

      public static final int CHUNKDURATIONTARGET
      See Also:
    • KEYFRAMEONLYDURATIONTARGET

      public static final int KEYFRAMEONLYDURATIONTARGET
      See Also:
    • CHUNKDURATIONTOLERANCE

      public static final int CHUNKDURATIONTOLERANCE
      See Also:
    • PLAYSTARTTOLERANCE

      public static final int PLAYSTARTTOLERANCE
      See Also:
    • AUDIOGROUPCOUNT

      public static final int AUDIOGROUPCOUNT
      See Also:
    • WAITFORCODECTIME

      public static final int WAITFORCODECTIME
      See Also:
    • DEFAULT_CHUNKDURATION_MAX

      public static final int DEFAULT_CHUNKDURATION_MAX
      See Also:
    • DEFAULT_CHUNKDURATION_MIN

      public static final int DEFAULT_CHUNKDURATION_MIN
      See Also:
    • DEFAULT_CUPERTINO_FORCE_END_CHUNK_WHEN_NO_KEYFRAMES

      public static final boolean DEFAULT_CUPERTINO_FORCE_END_CHUNK_WHEN_NO_KEYFRAMES
      See Also:
    • DEFAULT_CHUNKDURATION_OVERFLOW_THRESHOLD

      public static final int DEFAULT_CHUNKDURATION_OVERFLOW_THRESHOLD
      See Also:
    • DEFAULT_RELATIVE_PLAYLIST_ITEMS

      public static final boolean DEFAULT_RELATIVE_PLAYLIST_ITEMS
      See Also:
    • DEFAULT_RESET_TARGET_DURATION_ON_NEW_CHUNK

      public static final boolean DEFAULT_RESET_TARGET_DURATION_ON_NEW_CHUNK
      See Also:
    • DEFAULT_ALLOW_CACHING

      public static final boolean DEFAULT_ALLOW_CACHING
      See Also:
    • repeaterChunkCount

      protected int repeaterChunkCount
    • repeaterItems

      protected List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoRepeaterHolder> repeaterItems
    • pendingVideoChunk

      protected LiveStreamPacketizerCupertinoChunk pendingVideoChunk
    • randomSessionStr

      protected String randomSessionStr
    • originRepeaterContext

      protected String originRepeaterContext
  • Constructor Details

    • LiveStreamPacketizerCupertino

      public LiveStreamPacketizerCupertino() throws com.wowza.wms.server.LicensingException
      Throws:
      com.wowza.wms.server.LicensingException
  • Method Details

    • 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 interface ILiveStreamPacketizer
      Overrides:
      init in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
      Parameters:
      streamName - stream name
      packetizerName - packetizer name
      appInstance - application instance
      liveStreamPacketizerItem - live stream packetizer
    • getEncryptionInfo

      public com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo getEncryptionInfo()
    • internalStartStream

      public void internalStartStream(IMediaStream stream)
      Specified by:
      internalStartStream in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
    • internalResetStream

      public void internalResetStream(IMediaStream stream)
      Specified by:
      internalResetStream in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
    • resetStream

      public void resetStream()
      Specified by:
      resetStream in interface ICupertinoChunkWriter
    • sendLastData

      public void sendLastData()
      Description copied from interface: ILiveStreamPacketizer
      Sends the last chunk or segment
      Specified by:
      sendLastData in interface ILiveStreamPacketizer
    • internalHandlePacket

      public void internalHandlePacket(IMediaStream stream, AMFPacket packet)
      Specified by:
      internalHandlePacket in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
    • isCustomChunkId

      public boolean isCustomChunkId()
      Specified by:
      isCustomChunkId in interface ILiveStreamPacketizerCupertino
    • 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 interface ICupertinoChunkWriter
    • sendECMBytesTS

      public void sendECMBytesTS(List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
    • sendECMBytesAudioTS

      public void sendECMBytesAudioTS(List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
    • sendECMBytesVideoTS

      public void sendECMBytesVideoTS(List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoTSHolder> ecmHolders)
    • endChunk

      public void endChunk(long timecode)
      Specified by:
      endChunk in interface ICupertinoChunkWriter
    • 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 interface ICupertinoChunkWriter
    • setCodecInfoAudio

      public void setCodecInfoAudio(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
      Specified by:
      setCodecInfoAudio in interface ICupertinoChunkWriter
    • setCodecInfoVideo

      public void setCodecInfoVideo(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
      Specified by:
      setCodecInfoVideo in interface ICupertinoChunkWriter
    • 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, Map<String,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, Map<String,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, Map<String,Map<String,String>> userManifestHeaders)
    • mergeUserManifestHeaders

      public void mergeUserManifestHeaders(LiveStreamPacketizerCupertinoChunk chunk, Map<String,Map<String,String>> userManifestHeaders)
    • endChunkAudioTS

      public void endChunkAudioTS(long timecode, Map<String,Map<String,String>> userManifestHeaders, String programDateTime)
    • endChunkVideoTS

      public void endChunkVideoTS(long timecode, Map<String,Map<String,String>> userManifestHeaders, String programDateTime)
    • endChunkTS

      public void endChunkTS(long timecode, Map<String,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 interface ILiveStreamPacketizer
      Overrides:
      getRepeaterLastSeqence in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
      Returns:
      sequence number
    • getRepeaterItems

      public void getRepeaterItems(List<com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoRepeaterHolder> items, long seq)
      Overrides:
      getRepeaterItems in class com.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 interface ILiveStreamPacketizer
      Specified by:
      getLock in interface ILiveStreamPacketizerCupertino
      Returns:
      Packetizer's Lock or null if none
    • getPlaylistLock

      public Object getPlaylistLock()
    • getPlaylistStr

      public String getPlaylistStr()
      Specified by:
      getPlaylistStr in interface ILiveStreamPacketizerCupertino
    • getCodecsStr

      public String getCodecsStr(int codecStrFormatId)
      Specified by:
      getCodecsStr in interface ILiveStreamPacketizerCupertino
    • getResolutionStr

      public String getResolutionStr()
      Specified by:
      getResolutionStr in interface ILiveStreamPacketizerCupertino
    • getPlaylistAudioStr

      public String getPlaylistAudioStr()
      Specified by:
      getPlaylistAudioStr in interface ILiveStreamPacketizerCupertino
    • getCodecsAudioStr

      public String getCodecsAudioStr(int codecStrFormatId)
      Specified by:
      getCodecsAudioStr in interface ILiveStreamPacketizerCupertino
    • getPlaylistVideoStr

      public String getPlaylistVideoStr()
      Specified by:
      getPlaylistVideoStr in interface ILiveStreamPacketizerCupertino
    • getCodecsVideoStr

      public String getCodecsVideoStr(int codecStrFormatId)
      Specified by:
      getCodecsVideoStr in interface ILiveStreamPacketizerCupertino
    • isEmptyAllPlaylist

      public boolean isEmptyAllPlaylist()
    • getPlayReadySampleEncHeaderFromEarliestChunk

      public String getPlayReadySampleEncHeaderFromEarliestChunk()
    • isEmptyPlaylist

      public boolean isEmptyPlaylist()
      Specified by:
      isEmptyPlaylist in interface ILiveStreamPacketizerCupertino
    • isEmptyAudioPlaylist

      public boolean isEmptyAudioPlaylist()
      Specified by:
      isEmptyAudioPlaylist in interface ILiveStreamPacketizerCupertino
    • isEmptyVideoPlaylist

      public boolean isEmptyVideoPlaylist()
      Specified by:
      isEmptyVideoPlaylist in interface ILiveStreamPacketizerCupertino
    • 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(Map<String,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 interface ILiveStreamPacketizerCupertino
    • 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 interface ILiveStreamPacketizerCupertino
    • getCalculatedAudioBitratePeak

      public long getCalculatedAudioBitratePeak()
      Specified by:
      getCalculatedAudioBitratePeak in interface ILiveStreamPacketizerCupertino
    • 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

    • 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 interface ILiveStreamPacketizerCupertino
    • getSubtitleChunk

      public String getSubtitleChunk(String filename, String languageID, boolean isByteRangeRequest)
      Specified by:
      getSubtitleChunk in interface ILiveStreamPacketizerCupertino
    • getLastChunkId

      public int getLastChunkId()
    • getLastChunkId

      public int getLastChunkId(int rendition)
      Specified by:
      getLastChunkId in interface ILiveStreamPacketizerCupertino
    • getFirstChunkId

      public int getFirstChunkId()
    • getFirstChunkId

      public int getFirstChunkId(int rendition)
      Specified by:
      getFirstChunkId in interface ILiveStreamPacketizerCupertino
    • getChunkCount

      public int getChunkCount()
    • getChunkCount

      public int getChunkCount(int rendition)
      Specified by:
      getChunkCount in interface ILiveStreamPacketizerCupertino
    • getChunkById

      public LiveStreamPacketizerCupertinoChunk getChunkById(int rendition, long index)
      Specified by:
      getChunkById in interface ILiveStreamPacketizerCupertino
    • getCaptionsChunkById

      public com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerWebVTTChunk getCaptionsChunkById(long index)
    • getRandomSessionStr

      public String getRandomSessionStr()
      Specified by:
      getRandomSessionStr in interface ILiveStreamPacketizerCupertino
    • getChunkDurationTarget

      public int getChunkDurationTarget()
      Specified by:
      getChunkDurationTarget in interface ILiveStreamPacketizer
      Overrides:
      getChunkDurationTarget in class com.wowza.wms.stream.livepacketizer.LiveStreamPacketizerBase
    • getPlaylistChunkCount

      public int getPlaylistChunkCount()
      Specified by:
      getPlaylistChunkCount in interface ILiveStreamPacketizerCupertino
    • getMaxChunkCount

      public int getMaxChunkCount()
      Specified by:
      getMaxChunkCount in interface ILiveStreamPacketizerCupertino
    • 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 interface ILiveStreamPacketizer
      Overrides:
      getSegmentDurationTarget in class com.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 interface ILiveStreamPacketizer
      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 interface ILiveStreamPacketizer
      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 interface ILiveStreamPacketizer
      Parameters:
      timecode - - new value for chunkStopKeyTimecodePTS, must be greater than chunkStartKeyTimecodePTS
      Throws:
      IllegalArgumentException - if timecode <= chunkStartKeyTimecodePTS
    • getLiveStreamPacketizerName

      public String getLiveStreamPacketizerName()
      Specified by:
      getLiveStreamPacketizerName in interface ILiveStreamPacketizerCupertino
    • getVideoInit

      public com.wowza.wms.httpstreamer.cmafstreaming.livestreampacketizer.CmafSegment getVideoInit(com.wowza.wms.httpstreamer.model.SegmentFormat cmafAudio)
      Specified by:
      getVideoInit in interface ILiveStreamPacketizerCupertino
    • getAudioInit

      public com.wowza.wms.httpstreamer.cmafstreaming.livestreampacketizer.CmafSegment getAudioInit(com.wowza.wms.httpstreamer.model.SegmentFormat cmafVideo)
      Specified by:
      getAudioInit in interface ILiveStreamPacketizerCupertino