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

PropertyReturnsDescription
completebooleanWhether transcoding has finished for every program of this HLS primary playlist and it is ready to be served.
idlongDatabase identifier of the underlying HlsPrimary row.
programsList<HlsProgramBean>The individual quality/resolution renditions available for this video, one per encoded format.
sourceHashStringContent 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.
targetDurationintTarget 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.