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
 
 public class PlaylistModel extends ManifestModel Provides implementations that are common to all Playlist models
- 
- 
Field SummaryFields Modifier and Type Field Description java.util.List<MediaSegmentModel>mediaSegmentsjava.util.List<PlaylistModel>playlistsWMSPropertiespropertiesjava.util.List<TagModel>tags
 - 
Constructor SummaryConstructors Constructor Description PlaylistModel()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllTags(java.util.Collection<? extends TagModel> tags)Add a list of tags to the playlistmodel and propagate context and debug settingsbooleanaddTag(TagModel tag)Add a tag to the playlist model and propagate context and debug settingsObjectclone()booleanequals(Object obj)StringgetContextStr()Get the context string associated with the Model to include with the log statementsWMSPropertiesgetProperties()java.net.URIgetUri()Get the uri of the playlistintgetVersion()Get the playlist versioninthashCode()booleanisExtended()Is this an extended M3U8 playlistbooleanisMasterPlaylist()Is the playlist represented by this class a Master playlist?booleanisMediaPlaylist()Is the playlist represent by this class a Media PlaylistvoidsetContextStr(String context)Specific to Playlist reader to set the context in which the playlist is reading.voidsetMasterPlaylist()Mark the playlist this instance represents as a master playlist.voidsetMediaPlaylist()Mark the playlist this instance represents as a media playlist.voidsetUri(java.net.URI uri)Set the uri of the playlistStringtoString()voidwrite(TagWriter tagWriter)- 
Methods inherited from class com.wowza.wms.manifest.model.ManifestModeldoSubs, getManifest, setManifest
 - 
Methods inherited from class com.wowza.wms.manifest.model.ManifestModelLogginggetDebugLog, logDebug, logError, logError, logError, logInfo, logWarn, setDebugLog, setUseSystemOut, usingSystemOut
 
- 
 
- 
- 
- 
Field Detail- 
tagspublic java.util.List<TagModel> tags 
 - 
playlistspublic java.util.List<PlaylistModel> playlists 
 - 
mediaSegmentspublic java.util.List<MediaSegmentModel> mediaSegments 
 - 
propertiespublic WMSProperties properties 
 
- 
 - 
Method Detail- 
setMasterPlaylistpublic void setMasterPlaylist() Mark the playlist this instance represents as a master playlist.
 - 
setMediaPlaylistpublic void setMediaPlaylist() Mark the playlist this instance represents as a media playlist.
 - 
isMasterPlaylistpublic 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
 
 - 
isMediaPlaylistpublic boolean isMediaPlaylist() Is the playlist represent by this class a Media Playlist- Returns:
- true if the playlist is a media playlist
 
 - 
getUripublic java.net.URI getUri() Get the uri of the playlist- Returns:
- URI the playlist uri
 
 - 
setUripublic void setUri(java.net.URI uri) Set the uri of the playlist- Parameters:
- uri- of the playlist
 
 - 
getVersionpublic int getVersion() Get the playlist version- Returns:
- integer version number
 
 - 
isExtendedpublic boolean isExtended() Is this an extended M3U8 playlist- Returns:
- true if the playlist represented by this model is extended
 
 - 
getContextStrpublic String getContextStr() Description copied from class:ManifestModelLoggingGet the context string associated with the Model to include with the log statements- Specified by:
- getContextStrin class- ManifestModelLogging
- Returns:
- String
 
 - 
setContextStrpublic void setContextStr(String context) 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
 
 - 
addTagpublic boolean addTag(TagModel tag) 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
 
 - 
addAllTagspublic boolean addAllTags(java.util.Collection<? extends TagModel> tags) 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
 
 - 
equalspublic boolean equals(Object obj) - Overrides:
- equalsin class- ManifestModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- ManifestModel
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- ManifestModel
 
 - 
clonepublic Object clone() throws CloneNotSupportedException- Overrides:
- clonein class- ManifestModelLogging
- Throws:
- CloneNotSupportedException
 
 - 
getPropertiespublic WMSProperties getProperties() 
 - 
writepublic void write(TagWriter tagWriter) throws java.io.IOException - Specified by:
- writein class- ManifestModel
- Throws:
- java.io.IOException
 
 
- 
 
-