Skip to content

Commit

Permalink
fix(Demo): Allow configure some missing configs (#5918)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Nov 27, 2023
1 parent 91b669b commit 8144dd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions demo/config.js
Expand Up @@ -200,6 +200,8 @@ shakaDemo.Config = class {
'manifest.hls.ignoreImageStreamFailures')
.addTextInput_('Default Audio Codec', 'manifest.hls.defaultAudioCodec')
.addTextInput_('Default Video Codec', 'manifest.hls.defaultVideoCodec')
.addTextInput_('Default media playlist full mime type',
'manifest.hls.mediaPlaylistFullMimeType')
.addBoolInput_('Ignore Program Date Time from manifest',
'manifest.hls.ignoreManifestProgramDateTime')
.addBoolInput_('Use Safari behavior for live',
Expand Down Expand Up @@ -401,6 +403,8 @@ shakaDemo.Config = class {
'streaming.observeQualityChanges')
.addNumberInput_('Max Variant Disabled Time',
'streaming.maxDisabledTime')
.addBoolInput_('Parse PRFT box',
'streaming.parsePrftBox')
.addNumberInput_('Segment Prefetch Limit',
'streaming.segmentPrefetchLimit')
.addBoolInput_('Live Sync', 'streaming.liveSync')
Expand Down Expand Up @@ -510,6 +514,7 @@ shakaDemo.Config = class {
this.addSection_('Language', docLink)
.addTextInput_('Preferred Audio Language', 'preferredAudioLanguage')
.addTextInput_('Preferred Audio Label', 'preferredAudioLabel')
.addTextInput_('Preferred Variant Role', 'preferredVariantRole')
.addTextInput_('Preferred Text Language', 'preferredTextLanguage')
.addTextInput_('Preferred Text Role', 'preferredTextRole')
.addSelectInput_('Auto-Show Text',
Expand Down
3 changes: 0 additions & 3 deletions test/demo/demo_unit.js
Expand Up @@ -74,14 +74,11 @@ describe('Demo', () => {
function checkConfig(checkValueNameFn) {
const configPrimitives = new Set(['number', 'string', 'boolean']);
const exceptions = new Set()
.add('preferredVariantRole')
.add('playRangeStart')
.add('playRangeEnd')
.add('manifest.dash.keySystemsByURI')
.add('manifest.hls.mediaPlaylistFullMimeType')
.add('manifest.mss.keySystemsBySystemId')
.add('drm.keySystemsMapping')
.add('streaming.parsePrftBox')
.add('manifest.raiseFatalErrorOnManifestUpdateRequestFailure')
.add('drm.persistentSessionOnlinePlayback')
.add('drm.persistentSessionsMetadata');
Expand Down

0 comments on commit 8144dd3

Please sign in to comment.