Skip to content

Commit

Permalink
feat(demo): Added demo asset with raw AAC.
Browse files Browse the repository at this point in the history
Issue shaka-project#2337

Change-Id: I010a06729658f7b1ce762d3b206180a896c5dd38
  • Loading branch information
theodab committed Feb 8, 2022
1 parent 36d0b54 commit 014c7b3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions demo/common/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ shakaAssets.Feature = {
MP4: shakaDemo.MessageIds.MP4,
// Set if the asset has at least one MPEG-2 TS stream.
MP2TS: shakaDemo.MessageIds.MP2TS,
// Set if the asset has at least one containerless stream (AAC, etc).
CONTAINERLESS: shakaDemo.MessageIds.CONTAINERLESS,

// Set if the asset has at least one stream that is at least 720p.
HIGH_DEFINITION: shakaDemo.MessageIds.HIGH_DEFINITION,
Expand Down Expand Up @@ -1188,6 +1190,14 @@ shakaAssets.testAssets = [
.addFeature(shakaAssets.Feature.HLS)
.addFeature(shakaAssets.Feature.LIVE)
.addFeature(shakaAssets.Feature.MP4),
new ShakaDemoAssetInfo(
/* name= */ 'Audio only HLS with raw AAC',
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/apple_test_pattern.png',
/* manifestUri= */ 'https://storage.googleapis.com/shaka-demo-assets/raw-hls-audio-only/manifest.m3u8',
/* source= */ shakaAssets.Source.APPLE)
.addFeature(shakaAssets.Feature.HLS)
.addFeature(shakaAssets.Feature.CONTAINERLESS)
.addFeature(shakaAssets.Feature.AUDIO_ONLY),
// }}}

// IRT assets {{{
Expand Down
1 change: 1 addition & 0 deletions demo/common/message_ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ shakaDemo.MessageIds = {
ADS: 'DEMO_ADS',
AUDIO_ONLY: 'DEMO_AUDIO_ONLY',
CAPTIONS: 'DEMO_CAPTIONS',
CONTAINERLESS: 'DEMO_CONTAINERLESS',
DASH: 'DEMO_DASH',
HIGH_DEFINITION: 'DEMO_HIGH_DEFINITION',
HLS: 'DEMO_HLS',
Expand Down
1 change: 1 addition & 0 deletions demo/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"DEMO_CONNECTION_TIMEOUT": "Connection timeout",
"DEMO_CONFIG": "Shaka Player Demo Config",
"DEMO_CONTAINER_SEARCH": "Container",
"DEMO_CONTAINERLESS": "Containerless",
"DEMO_CONTENT_ID": "Content ID",
"DEMO_CUSTOM": "Custom",
"DEMO_CUSTOM_CONTENT": "CUSTOM CONTENT",
Expand Down
4 changes: 4 additions & 0 deletions demo/locales/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@
"description": "A header on a search field that filters by container type.",
"message": "Container"
},
"DEMO_CONTAINERLESS": {
"description": "Text that describes an asset that has a stream with audio data not contained in a container.",
"message": "Containerless"
},
"DEMO_CONTENT_ID": {
"description": "The name of a configuration value.",
"message": "Content ID"
Expand Down
3 changes: 2 additions & 1 deletion demo/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ shakaDemo.Search = class {
[Feature.DASH, Feature.HLS], FEATURE);
this.makeSelectInput_(coreContainer,
shakaDemo.MessageIds.CONTAINER_SEARCH,
[Feature.MP4, Feature.MP2TS, Feature.WEBM], FEATURE);
[Feature.MP4, Feature.MP2TS, Feature.WEBM, Feature.CONTAINERLESS],
FEATURE);
this.makeSelectInput_(coreContainer,
shakaDemo.MessageIds.DRM_SEARCH,
Object.values(shakaAssets.KeySystem), DRM);
Expand Down

0 comments on commit 014c7b3

Please sign in to comment.