Class PushPublishHTTPCupertinoUtil
Object
com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoUtil
- All Implemented Interfaces:
IPushPublishProfileUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<PushPublishHTTPCupertinoUtil>static final Stringstatic final Stringstatic final StringFields inherited from interface com.wowza.wms.pushpublish.model.IPushPublishProfileUtil
PROPERTY_LOG_DEBUG_MANIFEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTagToPlaylist(PlaylistModel playlist, int idx, TagModel tag) Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist ModelvoidaddTagToPlaylist(PlaylistModel playlist, TagModel tag) Adds the provided TagModel to the end of the list of TagModels for the provided Playlist ModelcreateGroupPlaylist(String id, List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties) This method is deprecated.createMasterPlaylist(String context, boolean logDebugManifest) Creates a master playlist and propagates the context string from this implemenation to the returned playlist modelcreateMediaPlaylist(int rIndex, PushPublishHTTPCupertino hlsEntry, String context, boolean logDebugManifest) Creates a empty media playlist and propagates the context from this implemenation to the returned playlistcreateMediaSegmentModel(boolean debugLog) Creates an empty media segment model and propagates the context from the implementation to the returnd media segment modelCreate a TagModel of the provided TagModelgetMediaPlaylistForRendtion(int renditionIndex, PlaylistModel masterPlaylist) intgetMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist) getMediaSegementProgramDateTime(MediaSegmentModel mediaSegment) longgetMediaSegementSize(MediaSegmentModel mediaSegment) longgetMediaSegmentIndex(MediaSegmentModel mediaSegment) intgetSubtitlesListRenditionIndex(PlaylistModel subtitlesList) booleanisMediaSegmentDelete(MediaSegmentModel mediaSegment) booleanisMediaSegmentSent(MediaSegmentModel mediaSegment) booleanIs this a parent profile?voidonDeleteEntry(Map<String, String> entry) Allows processing of a map file entry prior to being deleted.voidonReadEntry(Map<String, String> entry) Allows modification of a map file entry after prior to being returned through a Push Publishing api.voidAllows modification of a map file entry prior to being written to the map file.voidsetApplicationInstance(IApplicationInstance appInstance) Set the application instance associated with this Util classvoidsetApplicationName(String appName) Set the application name associated with this Util classvoidsetMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist, int index) voidsetMediaSegementProgramDateTime(MediaSegmentModel mediaSegment, String progDateTime) voidsetMediaSegementSize(MediaSegmentModel mediaSegment) voidsetMediaSegmentDelete(MediaSegmentModel mediaSegment, boolean delete) voidsetMediaSegmentIndex(MediaSegmentModel mediaSegment, long index) voidsetMediaSegmentSent(MediaSegmentModel mediaSegment, boolean sent) voidSet the VHost associated with this Util classbooleanvalidateEntry(Map<String, String> entry) Allows validation of a map file entry.
-
Field Details
-
CLASS
-
CLASSNAME
- See Also:
-
PROPERTYNAME_TRACKER
- See Also:
-
HTTPADAPTER_NAME
- See Also:
-
-
Constructor Details
-
PushPublishHTTPCupertinoUtil
-
-
Method Details
-
onWriteEntry
Description copied from interface:IPushPublishProfileUtilAllows modification of a map file entry prior to being written to the map file.- Specified by:
onWriteEntryin interfaceIPushPublishProfileUtil- Parameters:
oldEntry- the old version of the entry (null for new entries)newEntry- the new version of the entry to be written
-
onReadEntry
Description copied from interface:IPushPublishProfileUtilAllows modification of a map file entry after prior to being returned through a Push Publishing api.- Specified by:
onReadEntryin interfaceIPushPublishProfileUtil- Parameters:
entry- the map file entry as read from disk
-
onDeleteEntry
Description copied from interface:IPushPublishProfileUtilAllows processing of a map file entry prior to being deleted.- Specified by:
onDeleteEntryin interfaceIPushPublishProfileUtil- Parameters:
entry- the map file entry as read from disk
-
validateEntry
Description copied from interface:IPushPublishProfileUtilAllows validation of a map file entry.- Specified by:
validateEntryin interfaceIPushPublishProfileUtil- Parameters:
entry- the map file entry as read from disk- Returns:
- true if entry is valid
-
isParent
Description copied from interface:IPushPublishProfileUtilIs this a parent profile?- Specified by:
isParentin interfaceIPushPublishProfileUtil- Parameters:
entry- the map file entry as read from disk- Returns:
- true if entry is a parent profile, false if child profile or standalone
-
createGroupPlaylist
public ManifestModel createGroupPlaylist(String id, List<List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, List<List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties) Description copied from interface:IPushPublishProfileUtilThis method is deprecated. Please useIPushPublishHTTPGroupMember.createGroupPlaylist(String, List<List<IPushPublishHTTPGroupMember>>, List<List<IPushPublishHTTPGroupMember>>, IApplicationInstance, String, WMSProperties)Allows creation of a group playlist. (This is a placeholder for future features)- Specified by:
createGroupPlaylistin interfaceIPushPublishProfileUtil- Parameters:
id- the idgroupingsByRedundantPairs- the renditions grouped by redundant pairsgroupingsByAbrGroups- the renditions grouped by redundant ABR groupproperties- the properties- Returns:
- the manifest model
-
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
Creates a master playlist and propagates the context string from this implemenation to the returned playlist model- Returns:
- a new master playlist
-
createMediaPlaylist
public PlaylistModel createMediaPlaylist(int rIndex, PushPublishHTTPCupertino hlsEntry, String context, boolean logDebugManifest) 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
-
setMediaPlaylistRenditionIndex
-
getMediaPlaylistRenditionIndex
-
getSubtitlesListRenditionIndex
-
getMediaPlaylistForRendtion
-
setMediaSegmentIndex
-
getMediaSegmentIndex
-
setMediaSegmentDelete
-
isMediaSegmentDelete
-
setMediaSegmentSent
-
isMediaSegmentSent
-
setMediaSegementSize
-
getMediaSegementSize
-
setMediaSegementProgramDateTime
-
getMediaSegementProgramDateTime
-
setVHost
Description copied from interface:IPushPublishProfileUtilSet the VHost associated with this Util class- Specified by:
setVHostin interfaceIPushPublishProfileUtil
-
setApplicationName
Description copied from interface:IPushPublishProfileUtilSet the application name associated with this Util class- Specified by:
setApplicationNamein interfaceIPushPublishProfileUtil
-
setApplicationInstance
Description copied from interface:IPushPublishProfileUtilSet the application instance associated with this Util class- Specified by:
setApplicationInstancein interfaceIPushPublishProfileUtil
-