简体   繁体   English

如何从 Azure 媒体服务 DRM 获取许可证 URL

[英]How to get licenese URL from Azure Media Service DRM

I am using Azure Media Services v3 to create a VoD player application, and I am using the built-in DRM support (Widevine, PlayReady, FairPlay) to encrypt the data.我正在使用Azure Media Services v3来创建 VoD 播放器应用程序,并且我正在使用内置的 DRM 支持(Widevine、PlayReady、FairPlay)来加密数据。 My solution uses Video.js player on the client side with the videojs-contrib-eme package to play the content.我的解决方案在客户端使用Video.js播放器和videojs-contrib-eme eme package 来播放内容。

My problem is that for the DRM configuration I have to provide a license URL for the player, but I have not found any API to get the license URL.我的问题是,对于 DRM 配置,我必须为播放器提供许可证 URL,但我还没有找到任何 API 来获得许可证 ZE6B391A8D2C4D45902A23A8B6585703D。

The only solution I found is getting the url from the DASH manifest, and then replace parts of the URL with the correct DRM typename, like described here: Github repo in section 9 of the setup-vod.ps1 description.我发现的唯一解决方案是从 DASH 清单中获取 url,然后用正确的 DRM 类型名替换 URL 的部分内容,如下所述: ZE1ADBCBB92C622D0B3E619F9D0730中的setup-vod.ps1描述部分。 It seems like a sketchy workaround and I am courious if there is any documentation or API to do this correctly.这似乎是一个粗略的解决方法,如果有任何文档或 API 可以正确执行此操作,我很高兴。 Does anyone have any tutorial, example, or docs for a correct solution or I am already using the best one with the linked solution?有没有人有任何教程、示例或文档来获得正确的解决方案,或者我已经在使用最好的链接解决方案?

For production systems, customers usually have a CMS storing LA_URLs and players can rely on CMS for these info.对于生产系统,客户通常有一个存储 LA_URL 的 CMS,玩家可以依赖 CMS 来获取这些信息。

For cases without such CMS, you have to parse DASH MPD for PlayReady and Widevine LA_URLs and HLS playlist for FairPlay LA_URL.对于没有此类 CMS 的情况,您必须为 PlayReady 和 Widevine LA_URL 解析 DASH MPD,为 FairPlay LA_URL 解析 HLS 播放列表。

This test player does exactly this (dropdown to DRM at the bottom of the diagnostic overlay): https://openidconnectweb.azurewebsites.net/AMTestPlayer?url=https://eventgridmediaservice-usw22.streaming.media.azure.net/2fa069bd-2b0c-4674-bff7-26ebd6cdc224/MicrosoftElite01.ism/manifest(format=mpd-time-csf,encryption=cenc)这个测试播放器正是这样做的(在诊断覆盖的底部下拉到 DRM): https://openidconnectweb.azurewebsites.net/AMTestPlayer?url=https://eventgridmediaservice-usw22.streaming.media.azure.net/2fa069bd -2b0c-4674-bff7-26ebd6cdc224/MicrosoftElite01.ism/manifest(格式=mpd-time-csf,加密=cenc)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM