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 Jan 31, 2024
1 parent f0c880d commit 4b28f58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions demo/config.js
Expand Up @@ -473,15 +473,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,
/* canBeZero= */ false)
/* canBeZero= */ true)
.addBoolInput_('Live Sync Panic Mode', 'streaming.liveSyncPanicMode')
.addNumberInput_('Live Sync Panic Mode Threshold',
'streaming.liveSyncPanicThreshold')
Expand All @@ -490,7 +490,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 4b28f58

Please sign in to comment.