Skip to content

Commit

Permalink
chore(Demo): Add new FairPlay asset from Axinom (shaka-project#8177)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Feb 27, 2025
1 parent eda85d6 commit 62310cc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions demo/common/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,31 @@ shakaAssets.testAssets = [
},
},
}),
new ShakaDemoAssetInfo(
/* name= */ 'Tears of Steel (HLS HEVC - FairPlay)',
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/tears_of_steel.png',
/* manifestUri= */ 'https://media.axprod.net/TestVectors/H265/protected_cmaf_1080p_h265_singlekey/manifest.m3u8',
/* source= */ shakaAssets.Source.AXINOM)
.addKeySystem(shakaAssets.KeySystem.FAIRPLAY)
.addFeature(shakaAssets.Feature.HLS)
.addFeature(shakaAssets.Feature.HIGH_DEFINITION)
.addFeature(shakaAssets.Feature.MP4)
.addFeature(shakaAssets.Feature.MULTIPLE_LANGUAGES)
.addFeature(shakaAssets.Feature.SUBTITLES)
.addLicenseServer('com.apple.fps', 'https://drm-fairplay-licensing.axprod.net/AcquireLicense')
.setExtraConfig({
drm: {
advanced: {
'com.apple.fps': {
serverCertificateUri: 'https://vtb.axinom.com/FPScert/fairplay.cer',
headers: {
// cspell: disable-next-line
'X-AxDRM-Message': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJpZCI6IjY2MjNhYTAzLTA1NjQtNDhjZi04NDRlLTZlYTliN2E1NmM3OSIsImV4cGlyYXRpb25fZGF0ZSI6IjIwMjUtMDMtMjVUMTU6NDk6MzQrMDA6MDAiLCJjb21fa2V5X2lkIjoiNjllNTQwODgtZTllMC00NTMwLThjMWEtMWViNmRjZDBkMTRlIiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsInZlcnNpb24iOjIsImNvbnRlbnRfa2V5c19zb3VyY2UiOnsiaW5saW5lIjpbeyJpZCI6ImFiY2M0NGU1LWMxMjItNDVhYi1hYzgwLWE1YjM1MjJhMGEzMSJ9XX19fQ.tyhM8mgAj0w6rsxwzpWyQ0N8k4u15sbyN7Rae7F_QBU',
},
},
},
},
}),
// End Axinom assets }}}

// DASH-IF assets {{{
Expand Down

0 comments on commit 62310cc

Please sign in to comment.