diff --git a/demo/common/assets.js b/demo/common/assets.js index 6a1544ed37..acba3390de 100644 --- a/demo/common/assets.js +++ b/demo/common/assets.js @@ -41,6 +41,7 @@ shakaAssets.Source = { MICROSOFT: 'Microsoft', VNOVA: 'V-Nova', AWS: 'AWS', + BRIGHTCOVE: 'Brightcove', }; @@ -160,6 +161,9 @@ shakaAssets.Feature = { // Set if the asset has Low Latency mode. LOW_LATENCY: 'Low Latency', + + // Set if the asset has Content Steering. + CONTENT_STEERING: 'Content Steering', }; @@ -1605,5 +1609,27 @@ shakaAssets.testAssets = [ .addFeature(shakaAssets.Feature.LIVE) .setMediaTailor('https://d305rncpy6ne2q.cloudfront.net/v1/session/94063eadf7d8c56e9e2edd84fdf897826a70d0df/SFP-MediaTailor-Live-HLS-Overlays/channel/sfp-channel2/hls.m3u8'), // }}} + + // Brightcove assets {{{ + /* Brightcove Contents */ + new ShakaDemoAssetInfo( + /* name= */ 'Content Steering HLS', + /* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/big_buck_bunny.png', + /* manifestUri= */ 'https://fastly.content-steering.com/bbb_hls/master_steering_fastly_https.m3u8', + /* source= */ shakaAssets.Source.BRIGHTCOVE) + .addFeature(shakaAssets.Feature.HLS) + .addFeature(shakaAssets.Feature.HIGH_DEFINITION) + .addFeature(shakaAssets.Feature.MP4) + .addFeature(shakaAssets.Feature.CONTENT_STEERING), + new ShakaDemoAssetInfo( + /* name= */ 'Content Steering DASH', + /* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/big_buck_bunny.png', + /* manifestUri= */ 'https://fastly.content-steering.com/bbb/playlist_steering_fastly_https_cdn-a_cdn-c_cdn-b.mpd', + /* source= */ shakaAssets.Source.BRIGHTCOVE) + .addFeature(shakaAssets.Feature.DASH) + .addFeature(shakaAssets.Feature.HIGH_DEFINITION) + .addFeature(shakaAssets.Feature.MP4) + .addFeature(shakaAssets.Feature.CONTENT_STEERING), + // }}} ]; /* eslint-enable max-len */ diff --git a/demo/search.js b/demo/search.js index a37c7953c2..45fbf00284 100644 --- a/demo/search.js +++ b/demo/search.js @@ -398,6 +398,8 @@ shakaDemo.Search = class { 'Filters for assets that have a chapters track.'); this.makeBooleanInput_(specialContainer, Feature.LCEVC, FEATURE, 'Filters for assets that have an LCEVC enhancement layer.'); + this.makeBooleanInput_(specialContainer, Feature.CONTENT_STEERING, FEATURE, + 'Filters for assets that use Content Steering.'); container.appendChild(this.resultsDiv_); }