Class PlaylistModel
Object
com.wowza.wms.manifest.model.ManifestModelLogging
com.wowza.wms.manifest.model.ManifestModel
com.wowza.wms.manifest.model.m3u8.PlaylistModel
- All Implemented Interfaces:
Cloneable
Provides implementations that are common to all Playlist models
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAllTags
(Collection<? extends TagModel> tags) Add a list of tags to the playlistmodel and propagate context and debug settingsboolean
Add a tag to the playlist model and propagate context and debug settingsclone()
boolean
Get the context string associated with the Model to include with the log statementsgetUri()
Get the uri of the playlistint
Get the playlist versionint
hashCode()
boolean
Is this an extended M3U8 playlistboolean
Is the playlist represented by this class a Master playlist?boolean
Is the playlist represent by this class a Media Playlistvoid
setContextStr
(String context) Specific to Playlist reader to set the context in which the playlist is reading.void
Mark the playlist this instance represents as a master playlist.void
Mark the playlist this instance represents as a media playlist.void
Set the uri of the playlisttoString()
void
Methods inherited from class com.wowza.wms.manifest.model.ManifestModel
doSubs, getManifest, setManifest
Methods inherited from class com.wowza.wms.manifest.model.ManifestModelLogging
getDebugLog, logDebug, logError, logError, logError, logInfo, logWarn, setDebugLog, setUseSystemOut, usingSystemOut
-
Field Details
-
tags
-
playlists
-
headerSegment
-
mediaSegments
-
properties
-
-
Constructor Details
-
PlaylistModel
public PlaylistModel()
-
-
Method Details
-
setMasterPlaylist
public void setMasterPlaylist()Mark the playlist this instance represents as a master playlist. -
setMediaPlaylist
public void setMediaPlaylist()Mark the playlist this instance represents as a media playlist. -
isMasterPlaylist
public boolean isMasterPlaylist()Is the playlist represented by this class a Master playlist?- Returns:
- true if the playlist represented by this model is a master playlist
-
isMediaPlaylist
public boolean isMediaPlaylist()Is the playlist represent by this class a Media Playlist- Returns:
- true if the playlist is a media playlist
-
getUri
Get the uri of the playlist- Returns:
- URI the playlist uri
-
setUri
Set the uri of the playlist- Parameters:
uri
- of the playlist
-
getVersion
public int getVersion()Get the playlist version- Returns:
- integer version number
-
isExtended
public boolean isExtended()Is this an extended M3U8 playlist- Returns:
- true if the playlist represented by this model is extended
-
getContextStr
Description copied from class:ManifestModelLogging
Get the context string associated with the Model to include with the log statements- Specified by:
getContextStr
in classManifestModelLogging
- Returns:
- String
-
setContextStr
Specific to Playlist reader to set the context in which the playlist is reading. Intent would be this would be the Source stream name to associate the log entries with- Parameters:
context
- context of the reader
-
addTag
Add a tag to the playlist model and propagate context and debug settings- Parameters:
tag
- to be added to the playlist model- Returns:
- true if the tag was added
-
addAllTags
Add a list of tags to the playlistmodel and propagate context and debug settings- Parameters:
tags
- - list of tags to be added to the playlist model- Returns:
- true if all the tags were added to the playlist model
-
equals
- Overrides:
equals
in classManifestModel
-
hashCode
public int hashCode()- Overrides:
hashCode
in classManifestModel
-
toString
- Overrides:
toString
in classManifestModel
-
clone
- Overrides:
clone
in classManifestModelLogging
- Throws:
CloneNotSupportedException
-
getProperties
-
write
- Specified by:
write
in classManifestModel
- Throws:
IOException
-