Read-only snapshot of a HLS (HTTP Live Streaming) primary playlist, wrapping the persisted HlsPrimary entity and its programs and segments for use by templates and server-side scripts. Built by AssetManager.findHlsPrimaries when looking up the HLS streaming metadata generated for a video asset's content hash.
Properties
| Property | Returns | Description |
|---|---|---|
| complete | boolean | Whether transcoding has finished for every program of this HLS primary playlist and it is ready to be served. |
| id | long | Database identifier of the underlying HlsPrimary row. |
| programs | List<HlsProgramBean> | The individual quality/resolution renditions available for this video, one per encoded format. |
| sourceHash | String | Content hash of the source video that this HLS primary playlist was generated from. Used to look the playlist up again for the same source video. |
| targetDuration | int | Target segment duration, in seconds, advertised in the HLS playlist for this video. |
Methods
getId()
Returns: long
Database identifier of the underlying HlsPrimary row.
isComplete()
Returns: boolean
Whether transcoding has finished for every program of this HLS primary playlist and it is ready to be served.
getSourceHash()
Returns: String
Content hash of the source video that this HLS primary playlist was generated from. Used to look the playlist up again for the same source video.
getTargetDuration()
Returns: int
Target segment duration, in seconds, advertised in the HLS playlist for this video.
getPrograms()
Returns: List<HlsProgramBean>
The individual quality/resolution renditions available for this video, one per encoded format.