Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

SPD: segment length divisor exposed to variable #35

Open
JimTharioAmazon opened this issue Apr 28, 2021 · 1 comment
Open

SPD: segment length divisor exposed to variable #35

JimTharioAmazon opened this issue Apr 28, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@JimTharioAmazon
Copy link
Contributor

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 JimTharioAmazon added the enhancement New feature or request label Apr 28, 2021
@JimTharioAmazon JimTharioAmazon self-assigned this Apr 28, 2021
@JimTharioAmazon
Copy link
Contributor Author

JimTharioAmazon commented Apr 28, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant