无法流式传输通过Azure Media Service v3上传的MP4-.Net [英] Unable to stream MP4 uploaded with azure media service v3 - .Net
问题描述
我已经通过.Net上传了MP4文件,并且尝试对它进行加密和流式传输,
我的流媒体 https://ampdemo.azureedge.net/?url=https://ganevickyservice-inso.streaming.media.azure.net/051fb784-9c4e-4c4c-8d14-47debe4ea8c0/TP_Final_Old. ISM/清单(格式= MPD-时间-CSF,加密= CENC)及的PlayReady =真安培; playreadytoken =承载%3DeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cm46bWljcm9zb2Z0OmF6dXJlOm1lZGlhc2VydmljZXM6Y29udGVudGtleWlkZW50aWZpZXIiOiIzZjkyODZiNy1iNjIzLTRkOWUtOTQ4ZS1iNzAzZGQ1MjkxNjYiLCJuYmYiOjE1NDAyODY2MTgsImV4cCI6MTU0MDI4NzgxOCwiaXNzIjoiaHR0cHM6Ly9zdHMuZ2FuZXZpY2t5c2VydmljZS5jb20iLCJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8ifQ.fUUs1IXTKfIBFk3jEiweeyH2durlzGmrXcXyTBeqsIc
I have uploaded MP4 file through .Net and i had tried to encrypt and stream the same,
my streaming https://ampdemo.azureedge.net/?url=https://ganevickyservice-inso.streaming.media.azure.net/051fb784-9c4e-4c4c-8d14-47debe4ea8c0/TP_Final_Old.ism/manifest(format=mpd-time-csf,encryption=cenc)&playready=true&playreadytoken=Bearer%3DeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cm46bWljcm9zb2Z0OmF6dXJlOm1lZGlhc2VydmljZXM6Y29udGVudGtleWlkZW50aWZpZXIiOiIzZjkyODZiNy1iNjIzLTRkOWUtOTQ4ZS1iNzAzZGQ1MjkxNjYiLCJuYmYiOjE1NDAyODY2MTgsImV4cCI6MTU0MDI4NzgxOCwiaXNzIjoiaHR0cHM6Ly9zdHMuZ2FuZXZpY2t5c2VydmljZS5jb20iLCJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8ifQ.fUUs1IXTKfIBFk3jEiweeyH2durlzGmrXcXyTBeqsIc
我正在获得 例外 :
用户代理:Mozilla/5.0(Windows NT 6.1; Win64; x64)AppleWebKit/537.36(KHTML,例如Gecko)Chrome/70.0.3538.67 Safari/537.36
来源:
14:59:03.606 | amp:错误代码:0x10600002,currentTime:0
user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36
source:
14:59:03.606 | amp: error code: 0x10600002, currentTime: 0
为什么我会收到此例外?如何以加密方式流式传输视频
Why am i getting this exception? how to stream the video with encryption
下载上传的文件
推荐答案
您的令牌仅在星期二,格林尼治标准时间2018年10月23日09:43:38.如果请求是在该时间之外进行的,则令牌将无效,并且PlayReady DRM将 不会被解密.
Your token was only valid between Tue, 23 Oct 2018 09:23:38 GMT and Tue, 23 Oct 2018 09:43:38 GMT. If the request was made outside of that time then the token would not be valid and the PlayReady DRM would not be decrypted.
但是,该错误表明DRM类型与您使用的浏览器/插件之间可能存在不匹配.确保您使用的浏览器能够按照 http://amp.azure.net/libs/amp/latest/docs/index.html#compatibility-matrix .
However, that error indicates that there is a possible mismatch between the DRM type and the browser / plugin you're using. Make sure the browser you are using is able to play the type of DRM you're using as per http://amp.azure.net/libs/amp/latest/docs/index.html#compatibility-matrix.
这篇关于无法流式传输通过Azure Media Service v3上传的MP4-.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!