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 Summary
Fields Modifier and Type Field Description MediaSegmentModel
headerSegment
java.util.List<MediaSegmentModel>
mediaSegments
java.util.List<PlaylistModel>
playlists
WMSProperties
properties
java.util.List<TagModel>
tags
-
Constructor Summary
Constructors Constructor Description PlaylistModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAllTags(java.util.Collection<? extends TagModel> tags)
Add a list of tags to the playlistmodel and propagate context and debug settingsboolean
addTag(TagModel tag)
Add a tag to the playlist model and propagate context and debug settingsObject
clone()
boolean
equals(Object obj)
String
getContextStr()
Get the context string associated with the Model to include with the log statementsWMSProperties
getProperties()
java.net.URI
getUri()
Get the uri of the playlistint
getVersion()
Get the playlist versionint
hashCode()
boolean
isExtended()
Is this an extended M3U8 playlistboolean
isMasterPlaylist()
Is the playlist represented by this class a Master playlist?boolean
isMediaPlaylist()
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
setMasterPlaylist()
Mark the playlist this instance represents as a master playlist.void
setMediaPlaylist()
Mark the playlist this instance represents as a media playlist.void
setUri(java.net.URI uri)
Set the uri of the playlistString
toString()
void
write(TagWriter tagWriter)
-
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 Detail
-
tags
public java.util.List<TagModel> tags
-
playlists
public java.util.List<PlaylistModel> playlists
-
headerSegment
public MediaSegmentModel headerSegment
-
mediaSegments
public java.util.List<MediaSegmentModel> mediaSegments
-
properties
public WMSProperties properties
-
-
Method Detail
-
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
public java.net.URI getUri()
Get the uri of the playlist- Returns:
- URI the playlist uri
-
setUri
public void setUri(java.net.URI uri)
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
public String 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
public 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
-
addTag
public 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
-
addAllTags
public 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
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classManifestModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classManifestModel
-
toString
public String toString()
- Overrides:
toString
in classManifestModel
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classManifestModelLogging
- Throws:
CloneNotSupportedException
-
getProperties
public WMSProperties getProperties()
-
write
public void write(TagWriter tagWriter) throws java.io.IOException
- Specified by:
write
in classManifestModel
- Throws:
java.io.IOException
-
-