Class PushPublishHTTPCupertino
Object
com.wowza.wms.pushpublish.model.PushPublishBase
com.wowza.wms.pushpublish.model.PushPublishHTTPBase
com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertino
- All Implemented Interfaces:
IPushPublish,IPushPublishHTTPGroupMember,IPushPublishHTTPOutputBuilder,IPushPublishHTTPCupertino
- Direct Known Subclasses:
PushPublishHTTPCupertinoAkamaiHandler,PushPublishHTTPCupertinoCloudStorageHandler,PushPublishHTTPCupertinoGoogleHandler
public abstract class PushPublishHTTPCupertino
extends PushPublishHTTPBase
implements IPushPublishHTTPCupertino, IPushPublishHTTPGroupMember, IPushPublishHTTPOutputBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String[]protected final com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoTemplateStringReplacerprotected booleanprotected ILiveStreamPacketizerCupertinoprotected intNormal amount of chunks to be deleted on one outputSend.protected intNormal amount of chunks to be sent on one outputSend.static final Stringprotected PushPublishHTTPPusherstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final StringFields inherited from class com.wowza.wms.pushpublish.model.PushPublishHTTPBase
CACHE_CONTROL_FACTOR, CACHE_CONTROL_HEADER, CACHE_CONTROL_HEADER_KEY, CACHE_CONTROL_HEADER_NONE, CACHE_CONTROL_MEDIA_DEFAULT, httpLogManifests, httpManifestDebug, INDETERMINATE_PLAYLIST_COUNT, maxSegmentCountFromMap, maxSegmentCountFromPacketizer, MIN_PLAYLIST_COUNT, playlistAcrossSessions, playlistBaseUrl, playlistCountFromMap, playlistCountFromPacketizer, playlistCrossName, playlistDurationFromMap, playlistMap, playlistName, playlistTimeout, relativePlaylistsFields inherited from class com.wowza.wms.pushpublish.model.PushPublishBase
appInstance, className, DESTINATION_BAK, DESTINATION_PRI, DESTINATION_RED, destinationName, destinationServer, dstStreamName, entryName, hostname, inetAddr, isAdaptiveStreaming, isExternalRedundancy, logger, mImplementation, myMap, password, playbackHostname, port, profile, properties, pushPublishSession, pushPublishStreamDebug, pushPublishType, reconnectWaitTime, sendingPerformance, srcStream, srcStreamName, totalIOPerformance2Last, totalIOPerformanceLast, userNameFields inherited from interface com.wowza.wms.pushpublish.model.IPushPublish
CONNECTED_STATE_CONNECTED, CONNECTED_STATE_CONNECTING, CONNECTED_STATE_NOT_CONNECTED, CONNECTED_STATE_WAITING, PUSHPUBLISH_MAP_PATH_FIELD_NAME, PUSHPUBLISH_TYPE_CUPERTINO, PUSHPUBLISH_TYPE_MPEGDASH, PUSHPUBLISH_TYPE_NOTIFY_PACKET, PUSHPUBLISH_TYPE_RTMP, PUSHPUBLISH_TYPE_RTP, PUSHPUBLISH_TYPE_RTP_BUFFERED, PUSHPUBLISH_TYPE_SANJOSE, PUSHPUBLISH_TYPE_SRT, PUSHPUBLISH_TYPE_UNKNOWNFields inherited from interface com.wowza.wms.pushpublish.model.IPushPublishHTTPOutputBuilder
PUSHER_ERROR_LIVEPACKETIZER_NOT_CONFIGURED, PUSHER_ERROR_RENDITIONS_MISCONFIGURED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadaptiveGroupPlaylistNeedsUpdating(long lastUpdateTime, List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups) protected voidaddAudioMediaTag(PlaylistModel mediaPlaylist, PlaylistModel masterPlaylist) protected voidaddPlaylistToMasterPlaylist(int rIndex, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, PlaylistModel mediaPlaylist, PlaylistModel masterPlaylist) protected voidaddTagToPlaylist(PlaylistModel playlist, int idx, TagModel tag) Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist Modelprotected voidaddTagToPlaylist(PlaylistModel playlist, TagModel tag) Adds the provided TagModel to the end of the list of TagModels for the provided Playlist Modelvoidconnect()createGroupPlaylist(String id, List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties) Creates a group playlist.protected PlaylistModelcreateMasterPlaylist(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext) Creates a master playlist and propagates the context string from this implementation to the returned playlist modelprotected PlaylistModelcreateMediaPlaylist(int rIndex) Creates a empty media playlist and propagates the context from this implemenation to the returned playlistprotected MediaSegmentModelCreates an empty media segment model and propagates the context from the implementation to the returnd media segment modelcreateOutputItem(ILiveStreamPacketizer liveStreamPacketizer, int lastChunkIndex) protected TagModelcreateStreamInfTag(int rendition, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, ILiveStreamPacketizerCupertino liveStreamPacketizer) protected TagModelCreate a TagModel of the provided TagModelprotected com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoTemplateSubstitutesdeterminePlaylistSubstitutes(int rendition) voidvoiddisconnect(boolean hard) voiderror(int errorCode) intgetChunkDurationTarget(ILiveStreamPacketizer liveStreamPacketizer) intabstract StringGet a JSON formatted string of data that represents the destination to include with the connect/disconnect logginggetGroupPlaylistRenditionDescription(boolean forABRPlaylist) Generates a description or playlist-element String which can be used to differentiate this rendition from other renditions in a group.protected MediaSegmentModelgetHeaderSegment(int rIndex) (Internal-use) Created to be overriden by CMAF coreintgetLastChunkId(ILiveStreamPacketizer liveStreamPacketizer) protected ILiveStreamPacketizerCupertinogetLiveStreamPacketizerCupertino(ILiveStreamPacketizer liveStreamPacketizer) protected PlaylistModelgetMediaPlaylistForRendtion(int rIndex, PlaylistModel masterPlaylist) (Meant for internal use)getMediaPlaylistPlaybackURL(int rendition) protected Map<Integer,PlaylistModel> getMediaPlaylists(int rIndex, PlaylistModel masterPlaylist, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, int lastChunkIndex) (internal) Used bycreateOutputItem(ILiveStreamPacketizer, int)This will be overriden by CMAF HLS to handle AUDIO VIDEO casesprotected StringgetMediaPlaylistStr(int rIndex) longlonglonggetPacketizerLock(ILiveStreamPacketizer liveStreamPacketizer) intGet the playlist count.Gets a random session string that lives for the life time of the currently published stream.voidinit(IApplicationInstance appInstance, String streamName, IMediaStream stream, Map<String, String> profileData, Map<String, String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean streamDebug) Inits the instance.isGroupReady(List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups) booleanprotected booleanisRendition(int rendition) voidLoads map and profile parametersprotected voidloadMediaSegment(MediaSegmentModel mediaSegment, IMediaSegment chunk) final voidoutputSend(PushPublishHTTPOutputItem outputItem) protected PlaylistModelprepareMediaPlaylist(PlaylistModel masterPlaylist, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, int lastChunkIndex, int rIndex, int chunkRendition) printPlaylist(PlaylistModel playlist) Will print the provided playlist to a String.protected voidprocessPlaylistChunks(int rIndex, int playlistChunksToProcess, int playlistChunkStartIndex, int lastChunkIndex, PlaylistModel livePacketizerMediaPlaylist, boolean isCustomChunkId, PlaylistModel mediaPlaylist) protected intrenditionIndexToRendition(int renditionIndex) protected intrenditionToPacketizerRendition(int rendition) protected intrenditionToRenditionIndex(int rendition) voidvoidresetNewPacketizer(ILiveStreamPacketizer liveStreamPacketizer) voidsendGroupPlaylist(String groupName, ManifestModel manifest) Sends a group playlist to the destination.voidsetAudioCodecId(String audioCodecId) voidsetAudioName(String audioName) voidsetLanguageId(String languageId) protected voidsetLiveStreamPacketizer(ILiveStreamPacketizer liveStreamPacketizer) voidsetPlaylistGroupidAudio(String playlistGroupidAudio) voidsetRenditionsStr(String renditionsStr) protected StringwriteTagToString(TagModel tag) Writes the tag contents out to a string in UTF-8 encoding to a StringMethods inherited from class com.wowza.wms.pushpublish.model.PushPublishHTTPBase
getAdaptiveGroupName, getMaxSegmentCount, getPlaylistBaseUrl, getPlaylistMap, getPlaylistTimeout, isInAdaptiveGroup, isLogDebugManifest, isPlaylistAcrossSessions, isRelativePlaylists, logDebugManifest, setAdaptiveGroupName, setMaxSegmentCountFromMap, setMaxSegmentCountFromPacketizer, setPlaylistAcrossSessions, setPlaylistBaseUrl, setPlaylistCountFromMap, setPlaylistCountFromPacketizer, setPlaylistTimeout, setRelativePlaylistsMethods inherited from class com.wowza.wms.pushpublish.model.PushPublishBase
add, addIOPerformance2, clearLoggingValues, createPushPublishSession, getAppInstance, getBandwidth, getBaseParams, getDestinationID, getDestinationName, getDestinationServer, getDstStreamName, getEntryName, getHostname, getImplementation, getInetAddr, getMap, getMessagesOutBytes, getMessagesOutCount, getPassword, getPlaybackHostname, getPort, getProfile, getProperties, getPushPublishType, getReconnectWaitTime, getSrcStream, getSrcStreamName, getUserName, getWowzaStreamingEngineVersionStr, incrementMessagesOut, isAdaptiveStreaming, isDebugLog, isExternalRedundancy, logDebug, logError, logError, logError, logInfo, logWarn, resolveHostName, setAdaptiveStreaming, setAdaptiveStreaming, setAppInstance, setDebugLog, setDestinationName, setDestinationServer, setDestinationServer, setDstStreamName, setEntryName, setExternalRedundancy, setExternalRedundancy, setHost, setHostname, setImplementation, setInetAddr, setPassword, setPlaybackHostname, setPort, setPort, setProfile, setReconnectWaitTime, setSrcStream, setSrcStreamName, setStreamName, setUserName, updateLoggingValues, updateUsageTrackerMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.wowza.wms.pushpublish.protocol.cupertino.IPushPublishHTTPCupertino
deleteMediaSegment, isSendToBackupServer, outputClose, outputOpen, sendGroupMasterPlaylist, sendMasterPlaylist, sendMediaPlaylist, sendMediaSegment, setSendToBackupServer, updateGroupMasterPlaylistPlaybackURI, updateMasterPlaylistPlaybackURI, updateMediaPlaylistPlaybackURI, updateMediaSegmentPlaybackURIMethods inherited from interface com.wowza.wms.pushpublish.model.IPushPublishHTTPGroupMember
getAdaptiveGroupName, isInAdaptiveGroup, isLogDebugManifest, isSendToBackupServerMethods inherited from interface com.wowza.wms.pushpublish.model.IPushPublishHTTPOutputBuilder
getAppInstance, getDstStreamName, getSrcStreamName, isDebugLog, outputClose, outputOpen
-
Field Details
-
PLAYLISTNAME
- See Also:
-
cupertinoTemplateStringReplacer
protected final com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoTemplateStringReplacer cupertinoTemplateStringReplacer -
liveStreamPacketizerCupertino
-
CHUNKLISTNAME_AUDIOVIDEO
- See Also:
-
CHUNKLISTNAME_AUDIOONLY
- See Also:
-
CHUNKLISTNAME_VIDEOONLY
- See Also:
-
CHUNKLISTNAME_KEYFRAMEONLY
- See Also:
-
SUBTITLELISTNAME
- See Also:
-
CHUNKLISTNAMES
-
RENDITIONINDEX_AUDIOVIDEO
public static final int RENDITIONINDEX_AUDIOVIDEO- See Also:
-
RENDITIONINDEX_AUDIOONLY
public static final int RENDITIONINDEX_AUDIOONLY- See Also:
-
RENDITIONINDEX_VIDEOONLY
public static final int RENDITIONINDEX_VIDEOONLY- See Also:
-
RENDITIONINDEX_KEYFRAMEONLY
public static final int RENDITIONINDEX_KEYFRAMEONLY- See Also:
-
RENDITIONINDEX_SUBTITLES
public static final int RENDITIONINDEX_SUBTITLES- See Also:
-
RENDITIONINDEX_COUNT
public static final int RENDITIONINDEX_COUNT- See Also:
-
RENDITION_AUDIOVIDEO
public static final int RENDITION_AUDIOVIDEO- See Also:
-
RENDITION_AUDIOONLY
public static final int RENDITION_AUDIOONLY- See Also:
-
RENDITION_VIDEOONLY
public static final int RENDITION_VIDEOONLY- See Also:
-
RENDITION_KEYFRAMEONLY
public static final int RENDITION_KEYFRAMEONLY- See Also:
-
RENDITION_SUBTITLES
public static final int RENDITION_SUBTITLES- See Also:
-
chunkDurationTarget
protected int chunkDurationTarget -
addEndListOnDisconnect
protected boolean addEndListOnDisconnect -
keepMediaSegmentDataAfterSending
protected boolean keepMediaSegmentDataAfterSending -
pusher
-
minNumToSend
protected int minNumToSendNormal amount of chunks to be sent on one outputSend. If we find a number higher than this, it will be logged as a warning -
minNumToDelete
protected int minNumToDeleteNormal amount of chunks to be deleted on one outputSend. If we find a number higher than this, it will be logged as a warning
-
-
Constructor Details
-
PushPublishHTTPCupertino
public PushPublishHTTPCupertino() throws com.wowza.wms.server.LicensingException- Throws:
com.wowza.wms.server.LicensingException
-
-
Method Details
-
init
public void init(IApplicationInstance appInstance, String streamName, IMediaStream stream, Map<String, String> profileData, Map<String, String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean streamDebug) Description copied from class:PushPublishHTTPBaseInits the instance.- Specified by:
initin interfaceIPushPublish- Overrides:
initin classPushPublishHTTPBase- Parameters:
appInstance- the app instancestreamName- the source stream nameprofileData- the profile paramsmaps- the map entry paramsstreamDebug- stream debug flag
-
getPlaylistCount
public int getPlaylistCount()Description copied from class:PushPublishHTTPBaseGet the playlist count. The value from the map file is returned if defined, else the packetizer value is returned return the playlist count- Overrides:
getPlaylistCountin classPushPublishHTTPBase
-
load
Description copied from class:PushPublishHTTPBaseLoads map and profile parameters- Overrides:
loadin classPushPublishHTTPBase- Parameters:
dataMap- the data map
-
createOutputItem
public final PushPublishHTTPOutputItem createOutputItem(ILiveStreamPacketizer liveStreamPacketizer, int lastChunkIndex) - Specified by:
createOutputItemin interfaceIPushPublishHTTPOutputBuilder
-
getMediaPlaylists
protected Map<Integer,PlaylistModel> getMediaPlaylists(int rIndex, PlaylistModel masterPlaylist, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, int lastChunkIndex) throws URISyntaxException (internal) Used bycreateOutputItem(ILiveStreamPacketizer, int)This will be overriden by CMAF HLS to handle AUDIO VIDEO cases- Parameters:
rIndex- specified playlist rendition to be preparedmasterPlaylist- current master playlist being createdappContext- HTTPStreamerApplicationContextCupertinoStreamer initilaized in parent functionlastChunkIndex- last chunk index passed from parent function- Returns:
- map with playlists generated for the specified playlistRendition
- Throws:
URISyntaxException
-
prepareMediaPlaylist
protected PlaylistModel prepareMediaPlaylist(PlaylistModel masterPlaylist, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, int lastChunkIndex, int rIndex, int chunkRendition) throws URISyntaxException - Throws:
URISyntaxException
-
processPlaylistChunks
protected void processPlaylistChunks(int rIndex, int playlistChunksToProcess, int playlistChunkStartIndex, int lastChunkIndex, PlaylistModel livePacketizerMediaPlaylist, boolean isCustomChunkId, PlaylistModel mediaPlaylist) throws URISyntaxException - Throws:
URISyntaxException
-
addAudioMediaTag
-
getHeaderSegment
(Internal-use) Created to be overriden by CMAF core- Parameters:
rIndex- PushPublishHTTPCupertino rendition index- Returns:
- MediaSegmentModel containing the header used for this rendition
- Throws:
URISyntaxException- on invalid segment URIs
-
loadMediaSegment
-
addPlaylistToMasterPlaylist
protected void addPlaylistToMasterPlaylist(int rIndex, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, PlaylistModel mediaPlaylist, PlaylistModel masterPlaylist) -
getMediaPlaylistForRendtion
(Meant for internal use)- Parameters:
languageId-rIndex- rendtion indexmasterPlaylist-PlaylistModelplaylist to search- Returns:
- The already generated
PlaylistModelfor this rendition or a new emptyPlaylistModelin case it doesnt exist
-
getMediaPlaylistStr
-
outputSend
- Specified by:
outputSendin interfaceIPushPublishHTTPOutputBuilder
-
getContextStr
- Specified by:
getContextStrin interfaceIPushPublish- Specified by:
getContextStrin classPushPublishBase
-
resetNewPacketizer
- Specified by:
resetNewPacketizerin interfaceIPushPublishHTTPOutputBuilder
-
error
public void error(int errorCode) - Specified by:
errorin interfaceIPushPublishHTTPOutputBuilder
-
isInRedundancyPair
public boolean isInRedundancyPair()- Specified by:
isInRedundancyPairin interfaceIPushPublishHTTPGroupMember
-
createGroupPlaylist
public ManifestModel createGroupPlaylist(String id, List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties) Description copied from interface:IPushPublishHTTPGroupMemberCreates a group playlist.- Specified by:
createGroupPlaylistin interfaceIPushPublishHTTPGroupMember- Parameters:
id- the idgroupingsByRedundantPairs- the renditions grouped by redundant pairsgroupingsByAbrGroups- the renditions grouped by redundant ABR groupproperties- the properties- Returns:
- the manifest model
-
sendGroupPlaylist
Description copied from interface:IPushPublishHTTPGroupMemberSends a group playlist to the destination.- Specified by:
sendGroupPlaylistin interfaceIPushPublishHTTPGroupMember- Parameters:
groupName- the group namemanifest- the playlist/manifest to send
-
getGroupPlaylistRenditionDescription
Description copied from interface:IPushPublishHTTPGroupMemberGenerates a description or playlist-element String which can be used to differentiate this rendition from other renditions in a group. The group playlist could either for a single stream being pushed redundantly to a primary & backup destination, or for an ABR group of streams being pushed to a single destination or being pushed redundantly to multiple destinations.- Specified by:
getGroupPlaylistRenditionDescriptionin interfaceIPushPublishHTTPGroupMember- Parameters:
forABRPlaylist- flag to indicate whether the description is for an adaptive bitrate group playlist.
-
isGroupReady
public Boolean isGroupReady(List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups) - Specified by:
isGroupReadyin interfaceIPushPublishHTTPGroupMember
-
adaptiveGroupPlaylistNeedsUpdating
public Boolean adaptiveGroupPlaylistNeedsUpdating(long lastUpdateTime, List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups) - Specified by:
adaptiveGroupPlaylistNeedsUpdatingin interfaceIPushPublishHTTPGroupMember
-
getPlaylistProperties
- Specified by:
getPlaylistPropertiesin interfaceIPushPublishHTTPGroupMember
-
getRenditionsStr
-
setRenditionsStr
-
getGroupIdAudioString
-
setPlaylistGroupidAudio
-
getLiveStreamPacketizerName
- Specified by:
getLiveStreamPacketizerNamein interfaceIPushPublishHTTPOutputBuilder
-
getPacketizerLock
- Specified by:
getPacketizerLockin interfaceIPushPublishHTTPOutputBuilder
-
getLastChunkId
- Specified by:
getLastChunkIdin interfaceIPushPublishHTTPOutputBuilder
-
getChunkDurationTarget
- Specified by:
getChunkDurationTargetin interfaceIPushPublishHTTPOutputBuilder
-
connect
public void connect()- Specified by:
connectin interfaceIPushPublish
-
disconnect
public void disconnect() -
disconnect
public void disconnect(boolean hard) - Specified by:
disconnectin interfaceIPushPublish
-
getMessagesAttemptedCount
public long getMessagesAttemptedCount()- Specified by:
getMessagesAttemptedCountin interfaceIPushPublish
-
getMessagesRetriedCount
public long getMessagesRetriedCount()- Specified by:
getMessagesRetriedCountin interfaceIPushPublish
-
getMessagesFailedCount
public long getMessagesFailedCount()- Specified by:
getMessagesFailedCountin interfaceIPushPublish
-
resetConnection
public void resetConnection()- Specified by:
resetConnectionin interfaceIPushPublish
-
getConnectedState
public int getConnectedState()- Specified by:
getConnectedStatein interfaceIPushPublish
-
getRandomSessionStr
Gets a random session string that lives for the life time of the currently published stream. If the stream times out or drops for one reason or another, this will return a new session string.- Returns:
- String contianing a unique string to the incoming stream
-
getDestionationLogData
Get a JSON formatted string of data that represents the destination to include with the connect/disconnect logging- Specified by:
getDestionationLogDatain interfaceIPushPublishHTTPCupertino- Returns:
- JSON formatted string representation
-
printPlaylist
Will print the provided playlist to a String. Intended as a debug tool- Parameters:
playlist- to print to a String- Returns:
- String containing the text based representation of the playlist (not UTF-8 encoded)
-
createTag
Create a TagModel of the provided TagModel- Parameters:
clazz- Class of the TagModel to create- Returns:
- a new instance of the TagModel requested
-
addTagToPlaylist
Adds the provided TagModel to the end of the list of TagModels for the provided Playlist Model- Parameters:
playlist- to add the TagModel totag- to add to the playlist
-
addTagToPlaylist
Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist Model- Parameters:
playlist- to add the TagModel toidx- index where to insert the TagModel attag- Model to insert into the list of TagModels
-
createMasterPlaylist
protected PlaylistModel createMasterPlaylist(com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext) Creates a master playlist and propagates the context string from this implementation to the returned playlist model- Parameters:
appContext-- Returns:
- a new master playlist
-
createMediaPlaylist
Creates a empty media playlist and propagates the context from this implemenation to the returned playlist- Returns:
- a new media playlist
-
createMediaSegmentModel
Creates an empty media segment model and propagates the context from the implementation to the returnd media segment model- Returns:
- media segment model
-
writeTagToString
Writes the tag contents out to a string in UTF-8 encoding to a String- Parameters:
tag- to be encoded- Returns:
- String containing the tag contents for use in a playlist
-
determinePlaylistSubstitutes
protected com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.CupertinoTemplateSubstitutes determinePlaylistSubstitutes(int rendition) -
createStreamInfTag
protected TagModel createStreamInfTag(int rendition, com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer appContext, ILiveStreamPacketizerCupertino liveStreamPacketizer) -
renditionToPacketizerRendition
protected int renditionToPacketizerRendition(int rendition) -
renditionToRenditionIndex
protected int renditionToRenditionIndex(int rendition) -
renditionIndexToRendition
protected int renditionIndexToRendition(int renditionIndex) -
getMediaPlaylistPlaybackURL
-
isRendition
protected boolean isRendition(int rendition) -
setLiveStreamPacketizer
- Overrides:
setLiveStreamPacketizerin classPushPublishHTTPBase
-
getLiveStreamPacketizerCupertino
protected ILiveStreamPacketizerCupertino getLiveStreamPacketizerCupertino(ILiveStreamPacketizer liveStreamPacketizer) -
getLanguageId
-
setLanguageId
-
getAudioName
-
setAudioName
-
getAudioCodecId
-
setAudioCodecId
-