简体   繁体   English

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

[英]AES encrypted video stream not working with azure media player in ios devices

We are facing blocker while playing aes encrypted content in ios devices. 在ios设备中播放AES加密内容时,我们面临着阻碍。 We have already referred below links - 我们已经引用了以下链接-

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

Azure Media Player does not work with AES protection on iPhone Azure Media Player不适用于iPhone上的AES保护

https://github.com/AzureMediaServicesSamples/HLSSafariProxy https://github.com/AzureMediaServicesSamples/HLSSafariProxy

Issue is that i am unable to call the proxy server (as explained in above links) from azure media player. 问题是我无法从azure媒体播放器调用代理服务器(如以上链接中所述)。 Below is the code to call proxy server from player - 以下是从播放器调用代理服务器的代码-

        <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>

I am getting error "No compatible source was found for this media" Please help in this regard. 我收到错误消息“找不到与此媒体兼容的源”,请为此提供帮助。

It looks like you're setting the source multiple times which is confusing the iOS player. 您似乎多次设置了源,这使iOS播放器感到困惑。 can you try setting the source just with the proxy URL? 您可以尝试仅使用代理URL设置源吗?

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

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