/

Segmentation


Segmentation

The segmentation engine relies on key frames provided by the publisher.

You can configure the threshold point at which the key frame creates a new segment. A lower threshold allows shorter duration in the segments; with a target duration of 10 seconds and a threshold of 0.7, the HLS plugin will start a new segment at the next key frame occuring at or after the 7 second mark:

10 X 0.7 = 7.0 seconds minimum segment duration

Use the threshold variable to prevent stalling the HLS subscribers when the broadcaster key frame interval does not match the segment duration.

The segment duration should not be shorter than the expected minimum keyframe interval