public class MediaPlaylist extends ManifestModel
| Constructor | Description |
|---|---|
MediaPlaylist() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAllTags(java.util.Collection<? extends TagModel> tags) |
Add a list of tags to the MediaPlaylist and propagate context and debug settings
|
void |
addRenditionReportTags(java.util.Collection<TagModelRenditionReport> renditionReports) |
Adds EXT-X-RENDITION-REPORT tags.
|
void |
addSegment(Segment segment,
long segmentId) |
Add a new segment to the end of the segment list.
|
TagModel |
addTag(TagModel tag) |
Add a tag to the playlist model and propagate context and debug settings
|
Object |
clone() |
|
void |
doSubs(java.util.Map<String,Object> params,
IHTTPStreamerSession httpStreamerSession,
IHTTPRequest req,
com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.RequestInfo requestInfo) |
Does variable replacement within the manifest model based on http request coming in
|
boolean |
equals(Object obj) |
|
<T extends TagModel> |
findTag(Class<T> tagType) |
|
String |
getContextStr() |
Get the context string associated with the Model to include with the log statements
|
SegmentPartId |
getLastSegmentPart() |
Retrieves the last segment's media sequence number and its last partial segment number (if any).
|
String |
getManifest() |
|
int |
getPlaylistCount() |
|
java.util.TreeMap<Long,Segment> |
getSegments() |
|
java.util.Collection<TagModel> |
getTags() |
|
int |
hashCode() |
|
void |
setContextStr(String context) |
Specific to Playlist reader to set the context in which the playlist is reading.
|
void |
setPlaylistCount(int playlistCount) |
|
void |
skipSegments(Float duration) |
Trims segments off the beginning of the list to the point that the duration of the remaining segments is @duration or slightly over
|
String |
toString() |
|
void |
write(TagWriter tagWriter) |
setManifestgetDebugLog, logDebug, logError, logError, logError, logInfo, logWarn, setDebugLog, setUseSystemOut, usingSystemOutpublic void addAllTags(java.util.Collection<? extends TagModel> tags)
tags - - list of tags to be added to the playlist modelpublic void addRenditionReportTags(java.util.Collection<TagModelRenditionReport> renditionReports)
renditionReports - - ordered list of the variant rendition report tag models to add.public void addSegment(Segment segment, long segmentId)
segment - - new segment to add. Should be fully setup before calling this methodpublic TagModel addTag(TagModel tag)
tag - to be added to the playlist modelpublic Object clone()
throws CloneNotSupportedException
clone in class ManifestModelLoggingCloneNotSupportedExceptionpublic void doSubs(java.util.Map<String,Object> params,
IHTTPStreamerSession httpStreamerSession,
IHTTPRequest req,
com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.RequestInfo requestInfo)
ManifestModeldoSubs in class ManifestModelpublic boolean equals(Object obj)
equals in class ManifestModelpublic <T extends TagModel> T findTag(Class<T> tagType)
public String getContextStr()
ManifestModelLogginggetContextStr in class ManifestModelLoggingpublic SegmentPartId getLastSegmentPart()
segPartId - the SegmentPartId object identifying the last segment/part of the playlistpublic String getManifest()
getManifest in class ManifestModelpublic int getPlaylistCount()
public java.util.TreeMap<Long,Segment> getSegments()
public java.util.Collection<TagModel> getTags()
public int hashCode()
hashCode in class ManifestModelpublic void setContextStr(String context)
context - context of the readerpublic void setPlaylistCount(int playlistCount)
playlistCount - the playlistCount to setpublic void skipSegments(Float duration)
duration - the minimum length of remaining segments.public String toString()
toString in class ManifestModelpublic void write(TagWriter tagWriter) throws java.io.IOException
write in class ManifestModeljava.io.IOException