awslabs / aws-clustered-video-streams

A clustered video stream is an AWS architecture that increases the quality and reliability of live events by providing seamless regional failover capabilities for live video steams. Operators can monitor the status of the clustered stream from a single pane of glass and dynamically control from which region the stream consumed by a player originates.
Apache License 2.0
42 stars 9 forks source link

SPD: segment length divisor exposed to variable #35

Open JimTharioAmazon opened 3 years ago

JimTharioAmazon commented 3 years ago

The segment time divisor has been hardcoded as 5 in the SPD. This means the interval between samples of playlists is (segment-time / 5) = 1.2s for 6s segments, 0.8s for 4s segments, and 0.4s for 2s segments.

We should expose this as an optional setting with the current default for backward compatibility.

JimTharioAmazon commented 3 years ago

The new environment variable is documented here: https://github.com/awslabs/aws-clustered-video-streams/blob/development/source/stale-playlist-detector/main.js#L19

Tested with values of 2, 5 and 10 for 6s segments.

Example: export SPD_SEGMENT_PAUSE_DIVISOR=2