播放视频通过Azure的媒体服务的加密令牌 [英] Playback video encrypted by Azure Media Service with the token
问题描述
我遵循的Azure文档的步骤(使用AES-128动态加密和密钥送货服务),并通过使用.NET SDK发布的视频。但是,我不知道如何使用生成的播放加密内容的标记。在其他的话,我不知道如何使用请求密钥令牌
I follow the step in the Azure Doc(Using AES-128 Dynamic Encryption and Key Delivery Service) and published a video by using the .NET SDK. However, I don't know how to use the token generated to play the encrypted content. In the other word, I don't know how to request key with token.
我读了一些 HTTP实时流牵伸潘托斯 - HTTP的实时流媒体-13 ,并似乎在客户端(我认为这意味着它支持HLS浏览器)将自动拿到钥匙并做解密,所以我怎么能提供的令牌,而它拉从传送服务器自动关键?
I read some related parts in the HTTP Live Streaming draft-pantos-http-live-streaming-13 and it seems that the clients(I think it means the browsers which supports HLS) will automatically get the key and do the decryption, so how can I provide the token while it pull the key from the delivery server automatically?
推荐答案
好了,终于我找到了解决方案( fiddlr ),相当一大利器。
Well,finally I find out the solution by (fiddlr), quite a great tool.
只要把你的令牌标头密钥授权,就像
Just put your token in header with key authorization,just like
<$c$c>authorization:Bearer=zone=az&Audience=urn%3atest&ExpiresOn=1418623783&Issuer=http%3a%2f%2fblog.tivo.com%2f&HMACSHA256=txxxxxxxxxxxxxxcF1GYUw%3d$c$c>
我会附上有关如何令牌后产生了一些样品。
I'll attach some sample for how to generated a token later.
这篇关于播放视频通过Azure的媒体服务的加密令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!