Skip to content

Commit

Permalink
make some demo items as "can be zero" so that error wont show up for …
Browse files Browse the repository at this point in the history
…number <1
  • Loading branch information
gkatsev committed Feb 2, 2024
1 parent e4b2818 commit 96d5b79
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions demo/config.js
Expand Up @@ -477,14 +477,15 @@ shakaDemo.Config = class {
.addNumberInput_('Playback rate for live sync',
'streaming.liveSyncPlaybackRate',
/* canBeDecimal= */ true,
/* canBeZero= */ false)
/* canBeZero= */ true)
.addNumberInput_('Min latency for live sync',
'streaming.liveSyncMinLatency',
/* canBeDecimal= */ true,
/* canBeZero= */ true)
.addNumberInput_('Min playback rate for live sync',
'streaming.liveSyncMinPlaybackRate',
/* canBeDecimal= */ true)
/* canBeDecimal= */ true,
/* canBeZero= */ true)
.addBoolInput_('Live Sync Panic Mode', 'streaming.liveSyncPanicMode')
.addNumberInput_('Live Sync Panic Mode Threshold',
'streaming.liveSyncPanicThreshold')
Expand All @@ -493,7 +494,9 @@ shakaDemo.Config = class {
.addNumberInput_('Dynamic Target Latency Stability Threshold',
'streaming.liveSyncDynamicTargetLatencyStabilityThreshold')
.addNumberInput_('Dynamic Target Latency Rebuffer Increment',
'streaming.liveSyncDynamicTargetLatencyRebufferIncrement')
'streaming.liveSyncDynamicTargetLatencyRebufferIncrement',
/* canBeDecimal= */ true,
/* canBeZero= */ true)
.addBoolInput_('Allow Media Source recoveries',
'streaming.allowMediaSourceRecoveries')
.addNumberInput_('Minimum time between recoveries',
Expand Down

0 comments on commit 96d5b79

Please sign in to comment.