在ios设备中播放AES加密内容时,我们面临着阻碍。 我们已经引用了以下链接-
Azure Media Player does not work with AES protection on iPhone
https://github.com/AzureMediaServicesSamples/HLSSafariProxy
问题是我无法从azure媒体播放器调用代理服务器(如以上链接中所述)。下面是从播放器调用代理服务器的代码-
<video id="vid1" class="azuremediaplayer amp-default-skin" autoplay="" controls="" width="640" height="400" data-setup="{"techOrder": ["azureHtml5JS", "flashSS","html5FairPlayHLS","silverlightSS", "html5"], "nativeControlsForTouch": false}">
<source src="XXXX-XXXXX" type="application/vnd.ms-sstr+xml" data-setup="{"protectionInfo": [{"type": "AES", "authenticationToken": "Bearer XXXXX"}],"streamingFormats":["SMOOTH","DASH","HLS"]}"/>
<source src="http://localhost:5002/api/AzureMediaServicesManifestProxy/TopLevel?playbackUrl=XXXX-XXXX/manifest&token=Bearer XXXXX-XXXXX" (proxy server api)
type="application/vnd.apple.mpegurl" data-setup="{"disableUrlRewriter": true}"/>
</video>
我收到错误消息“找不到与此媒体兼容的源” 请对此提供帮助。
答案 0 :(得分:0)
您似乎多次设置了源,这使iOS播放器感到困惑。您可以尝试仅使用代理URL设置源吗?