Skip to content

Commit

Permalink
feat(Demo): Add Content Steering assets (#5888)
Browse files Browse the repository at this point in the history
Related to #5704
  • Loading branch information
avelad committed Nov 16, 2023
1 parent 606d693 commit 8e0ee8a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions demo/common/assets.js
Expand Up @@ -41,6 +41,7 @@ shakaAssets.Source = {
MICROSOFT: 'Microsoft',
VNOVA: 'V-Nova',
AWS: 'AWS',
BRIGHTCOVE: 'Brightcove',
};


Expand Down Expand Up @@ -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',
};


Expand Down Expand Up @@ -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 */
2 changes: 2 additions & 0 deletions demo/search.js
Expand Up @@ -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_);
}
Expand Down

0 comments on commit 8e0ee8a

Please sign in to comment.