You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat: allow clients to limit the number of times a playlist attempts to reload following an error (#1098)
Introduce a new option `maxPlaylistRetries`, which defaults to Infinity to match existing behavior. If set, this will cause a playlist to be excluded indefinitely when the threshold is crossed. When a playlist is requested successfully, the count is reset.
If a stream has multiple playlists, all playlists will need to cross the max retries threshold for playback to completely fail.
Co-authored-by: Evan farina <efarina@linkedin.com>
Co-authored-by: Gary Katsevman <git@gkatsev.com>
Co-authored-by: brandonocasey <brandonocasey@gmail.com>
@@ -362,6 +363,14 @@ if a playlist is blacklisted, it will be blacklisted for a period of that
362
363
customized duration. This enables the blacklist duration to be configured
363
364
by the user.
364
365
366
+
#### maxPlaylistRetries
367
+
* Type: `number`
368
+
* Default: `Infinity`
369
+
* can be used as an initialization option
370
+
371
+
The max number of times that a playlist will retry loading following an error
372
+
before being indefinitely excluded from the rendition selection algorithm. Note: the number of retry attempts needs to _exceed_ this value before a playlist will be excluded.
0 commit comments