mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-13 15:46:46 +03:00
feat(Demo): Add Content Steering assets (#5888)
Related to https://github.com/shaka-project/shaka-player/issues/5704
This commit is contained in:
committed by
GitHub
parent
606d693900
commit
8e0ee8a8a7
@@ -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 */
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user