Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Demo): Add Content Steering assets #5888

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions demo/common/assets.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading