Playlist-level retry configuration
This commit is contained in:
@@ -17,6 +17,21 @@ func resolveDomain(shared, override string) string {
|
||||
return shared
|
||||
}
|
||||
|
||||
func resolveRetryPolicy(
|
||||
cli playback.RetryPolicy,
|
||||
cliMaxAttemptsSet bool,
|
||||
playlist playback.Playlist,
|
||||
) playback.RetryPolicy {
|
||||
if playlist.Retry == nil {
|
||||
return cli
|
||||
}
|
||||
resolved := *playlist.Retry
|
||||
if cliMaxAttemptsSet {
|
||||
resolved.MaxAttempts = cli.MaxAttempts
|
||||
}
|
||||
return resolved
|
||||
}
|
||||
|
||||
func (a appArgs) playbackConfig() playback.SessionConfig {
|
||||
return playback.SessionConfig{
|
||||
Video: playback.FeedConfig{
|
||||
|
||||
Reference in New Issue
Block a user