Skip to content

Commit

Permalink
chore(Demo): Add more assets from Microsoft
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Dec 26, 2024
1 parent 8764169 commit 8335002
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
84 changes: 84 additions & 0 deletions demo/common/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ shakaAssets.Feature = {
// Set if the asset requires Dolby Vision with MV-HEVC (for 3D) support.
DOLBY_VISION_3D: 'Dolby Vision 3D',

// Set if the asset requires AV1 support.
AV1: 'AV1',

// Set if the asset has at least one stream that is at least 720p.
HIGH_DEFINITION: 'High definition',
// Set if the asset has at least one stream that is at least 4k.
Expand Down Expand Up @@ -1421,6 +1424,87 @@ shakaAssets.testAssets = [
.addLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,sl:150)')
.addOfflineLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:true,sl:150)')
.setMimeType('application/vnd.ms-sstr+xml'),
new ShakaDemoAssetInfo(
/* name= */ 'Taxi3 soundtrack (MSS - Clear)',
/* iconUri= */ '',
/* manifestUri= */ 'https://test.playready.microsoft.com/media/profficialsite/Taxi3_AACHE.ism/manifest',
/* source= */ shakaAssets.Source.MICROSOFT)
.addFeature(shakaAssets.Feature.MSS)
.addFeature(shakaAssets.Feature.AUDIO_ONLY)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.OFFLINE),
new ShakaDemoAssetInfo(
/* name= */ 'Taxi3 soundtrack (MSS - PlayReady)',
/* iconUri= */ '',
/* manifestUri= */ 'https://test.playready.microsoft.com/media/profficialsite/Taxi3_AACHEPR.ism/manifest',
/* source= */ shakaAssets.Source.MICROSOFT)
.addKeySystem(shakaAssets.KeySystem.PLAYREADY)
.addFeature(shakaAssets.Feature.MSS)
.addFeature(shakaAssets.Feature.AUDIO_ONLY)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.OFFLINE)
.addLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,sl:150)')
.addOfflineLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:true,sl:150)'),
new ShakaDemoAssetInfo(
/* name= */ 'Big Buck Bunny CBCS AV1 (DASH - PlayReady)',
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/big_buck_bunny.png',
/* manifestUri= */ 'https://test.playready.microsoft.com/media/dash/BBBAV1CBC/manifest.mpd',
/* source= */ shakaAssets.Source.MICROSOFT)
.addKeySystem(shakaAssets.KeySystem.PLAYREADY)
.addFeature(shakaAssets.Feature.DASH)
.addFeature(shakaAssets.Feature.HIGH_DEFINITION)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.AV1)
.addFeature(shakaAssets.Feature.OFFLINE)
.addLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/core/rightsmanager.asmx?cfg=(ckt:AES128BitCBC)'),
new ShakaDemoAssetInfo(
/* name= */ 'Big Buck Bunny CENC AV1 (DASH - PlayReady)',
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/big_buck_bunny.png',
/* manifestUri= */ 'https://test.playready.microsoft.com/media/dash/BBBAV1/manifest.mpd',
/* source= */ shakaAssets.Source.MICROSOFT)
.addKeySystem(shakaAssets.KeySystem.PLAYREADY)
.addFeature(shakaAssets.Feature.DASH)
.addFeature(shakaAssets.Feature.HIGH_DEFINITION)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.AV1)
.addFeature(shakaAssets.Feature.OFFLINE)
.addLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/core/rightsmanager.asmx'),
new ShakaDemoAssetInfo(
/* name= */ 'Big Buck Bunny CENC (DASH - PlayReady)',
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/big_buck_bunny.png',
/* manifestUri= */ 'https://test.playready.microsoft.com/media/dash/APPLEENC_CBCS_BBB_1080p/1080p.mpd',
/* source= */ shakaAssets.Source.MICROSOFT)
.addKeySystem(shakaAssets.KeySystem.PLAYREADY)
.addFeature(shakaAssets.Feature.DASH)
.addFeature(shakaAssets.Feature.HIGH_DEFINITION)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.OFFLINE)
.addLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,ck:W31bfVt9W31bfVt9W31bfQ==,ckt:aescbc)')
.addOfflineLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:true,ck:W31bfVt9W31bfVt9W31bfQ==,ckt:aescbc)'),
new ShakaDemoAssetInfo(
/* name= */ 'Tears of Steel (DASH - PlayReady)',
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/tears_of_steel.png',
/* manifestUri= */ 'https://test.playready.microsoft.com/media/profficialsite/tearsofsteel_4k.ism/manifest.mpd',
/* source= */ shakaAssets.Source.MICROSOFT)
.addKeySystem(shakaAssets.KeySystem.PLAYREADY)
.addFeature(shakaAssets.Feature.DASH)
.addFeature(shakaAssets.Feature.ULTRA_HIGH_DEFINITION)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.OFFLINE)
.addLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,sl:150)')
.addOfflineLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:true,sl:150)'),
new ShakaDemoAssetInfo(
/* name= */ 'Tears of Steel (MSS - PlayReady)',
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/tears_of_steel.png',
/* manifestUri= */ 'https://test.playready.microsoft.com/media/profficialsite/tearsofsteel_4k.ism.smoothstreaming/manifest',
/* source= */ shakaAssets.Source.MICROSOFT)
.addKeySystem(shakaAssets.KeySystem.PLAYREADY)
.addFeature(shakaAssets.Feature.MSS)
.addFeature(shakaAssets.Feature.ULTRA_HIGH_DEFINITION)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.OFFLINE)
.addLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,sl:150)')
.addOfflineLicenseServer('com.microsoft.playready', 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:true,sl:150)'),
// }}}

// MPEG-5 LCEVC assets {{{
Expand Down
3 changes: 3 additions & 0 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,9 @@ shakaDemo.Main = class {
if (asset.features.includes(shakaAssets.Feature.DOLBY_VISION_3D)) {
mimeTypes.push('video/mp4; codecs="dvh1.20.01"');
}
if (asset.features.includes(shakaAssets.Feature.AV1)) {
mimeTypes.push('video/mp4; codecs="av01.0.01M.08"');
}
let hasSupportedMimeType = mimeTypes.some((type) => {
return this.support_.media[type];
});
Expand Down

0 comments on commit 8335002

Please sign in to comment.