Class PushPublishHTTPCupertinoUtil
Object
com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoUtil
- All Implemented Interfaces:
IPushPublishProfileUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<PushPublishHTTPCupertinoUtil>
static final String
static final String
static final String
Fields inherited from interface com.wowza.wms.pushpublish.model.IPushPublishProfileUtil
PROPERTY_LOG_DEBUG_MANIFEST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTagToPlaylist
(PlaylistModel playlist, int idx, TagModel tag) Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist Modelvoid
addTagToPlaylist
(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) int
getMediaPlaylistRenditionIndex
(PlaylistModel mediaPlaylist) getMediaSegementProgramDateTime
(MediaSegmentModel mediaSegment) long
getMediaSegementSize
(MediaSegmentModel mediaSegment) long
getMediaSegmentIndex
(MediaSegmentModel mediaSegment) int
getSubtitlesListRenditionIndex
(PlaylistModel subtitlesList) boolean
isMediaSegmentDelete
(MediaSegmentModel mediaSegment) boolean
isMediaSegmentSent
(MediaSegmentModel mediaSegment) boolean
Is this a parent profile?void
onDeleteEntry
(Map<String, String> entry) Allows processing of a map file entry prior to being deleted.void
onReadEntry
(Map<String, String> entry) Allows modification of a map file entry after prior to being returned through a Push Publishing api.void
Allows modification of a map file entry prior to being written to the map file.void
setApplicationInstance
(IApplicationInstance appInstance) Set the application instance associated with this Util classvoid
setApplicationName
(String appName) Set the application name associated with this Util classvoid
setMediaPlaylistRenditionIndex
(PlaylistModel mediaPlaylist, int index) void
setMediaSegementProgramDateTime
(MediaSegmentModel mediaSegment, String progDateTime) void
setMediaSegementSize
(MediaSegmentModel mediaSegment) void
setMediaSegmentDelete
(MediaSegmentModel mediaSegment, boolean delete) void
setMediaSegmentIndex
(MediaSegmentModel mediaSegment, long index) void
setMediaSegmentSent
(MediaSegmentModel mediaSegment, boolean sent) void
Set the VHost associated with this Util classboolean
validateEntry
(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:IPushPublishProfileUtil
Allows modification of a map file entry prior to being written to the map file.- Specified by:
onWriteEntry
in 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:IPushPublishProfileUtil
Allows modification of a map file entry after prior to being returned through a Push Publishing api.- Specified by:
onReadEntry
in interfaceIPushPublishProfileUtil
- Parameters:
entry
- the map file entry as read from disk
-
onDeleteEntry
Description copied from interface:IPushPublishProfileUtil
Allows processing of a map file entry prior to being deleted.- Specified by:
onDeleteEntry
in interfaceIPushPublishProfileUtil
- Parameters:
entry
- the map file entry as read from disk
-
validateEntry
Description copied from interface:IPushPublishProfileUtil
Allows validation of a map file entry.- Specified by:
validateEntry
in interfaceIPushPublishProfileUtil
- Parameters:
entry
- the map file entry as read from disk- Returns:
- true if entry is valid
-
isParent
Description copied from interface:IPushPublishProfileUtil
Is this a parent profile?- Specified by:
isParent
in 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:IPushPublishProfileUtil
This 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:
createGroupPlaylist
in 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:IPushPublishProfileUtil
Set the VHost associated with this Util class- Specified by:
setVHost
in interfaceIPushPublishProfileUtil
-
setApplicationName
Description copied from interface:IPushPublishProfileUtil
Set the application name associated with this Util class- Specified by:
setApplicationName
in interfaceIPushPublishProfileUtil
-
setApplicationInstance
Description copied from interface:IPushPublishProfileUtil
Set the application instance associated with this Util class- Specified by:
setApplicationInstance
in interfaceIPushPublishProfileUtil
-