AES加密的视频流无法与ios设备中的Azure Media Player一起使用

时间:2018-08-17 05:16:05

标签: c# ios azure encryption azure-media-services

在ios设备中播放AES加密内容时,我们面临着阻碍。 我们已经引用了以下链接-

https://azure.microsoft.com/en-us/blog/how-to-make-token-authorized-aes-encrypted-hls-stream-working-in-safari/

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&amp;token=Bearer XXXXX-XXXXX" (proxy server api) 
type="application/vnd.apple.mpegurl" data-setup="{"disableUrlRewriter": true}"/>
</video>

我收到错误消息“找不到与此媒体兼容的源” 请对此提供帮助。

1 个答案:

答案 0 :(得分:0)

您似乎多次设置了源,这使iOS播放器感到困惑。您可以尝试仅使用代理URL设置源吗?