Read-only snapshot of a single HLS segment, wrapping a persisted HlsSegment entity. A segment is a short chunk of encoded video/audio belonging to a program, identified by its position (sequence number) in the stream.


Properties

PropertyReturnsDescription
cdnUrlStringURL from which this segment can be fetched via the CDN, or null if it has not been assigned one.
durationSecsDoublePlayback duration of this segment, in seconds, as advertised in the HLS playlist.
idlongDatabase identifier of the underlying HlsSegment row.
segmentHashStringContent hash identifying this segment's encoded bytes, used to locate the segment file in storage.
sequenceNumintPosition of this segment within its program's playlist, starting at zero and increasing in playback order.

Methods

getId()

Returns: long

Database identifier of the underlying HlsSegment row.

getSegmentHash()

Returns: String

Content hash identifying this segment's encoded bytes, used to locate the segment file in storage.

getDurationSecs()

Returns: Double

Playback duration of this segment, in seconds, as advertised in the HLS playlist.

getSequenceNum()

Returns: int

Position of this segment within its program's playlist, starting at zero and increasing in playback order.

getCdnUrl()

Returns: String

URL from which this segment can be fetched via the CDN, or null if it has not been assigned one.

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