如何使用窗口蔚蓝的媒体服务器的文件路径,而不登录到prevent播放视频?而不、如何使用、蔚蓝、路径

2023-09-04 03:34:12 作者:這謌丶确实帥

目前在Windows Azure上媒体服务做一个项目的基础。

Currently doing one project basis on Windows Azure Media Service .

Scenario- 有媒体播放器的网站,该网站播放的媒体视频源文件中包含Azure的介质服务器上。

Scenario- There is a media player on website, which play video source file of media contains on Azure media server.

要求 -

1)未注册的用户或没有登录的用户无法使用天蓝色的媒体文件的路径播放视频。 (这对我来说是更好地不使用Active Directory的凭据,如果我们可以上传加密的视频格式和解码播放时,用户登录)

1) Unregistered user or without login user can't play video using azure media file path. (It is better for me without use of Active directory credential and If we can upload that video encrypted format and play with decryption when user is logged in)

我们所做的 - 旗/通知我,如果我做错了路

What we have done - Flag/notify me if I am doing wrong way

1)试图以媒体上传为加密格式,并使用令牌,但不能用令牌获得解密的视频。

1) Tried to media upload as encrypted format and using token but unable to decrypt that video using token access.

2)我想,如果有喜欢会话变量的一些机制来维护蔚蓝的媒体服务器,检查用户进行身份验证,然后给权限访问 那么问题成为解决?但不知道如何使用。

2) I think, if there is some mechanism like session variable maintain azure media server which check user is authenticated then give rights to access then problem become solve ? But don't know how to use that.

我看了很多文章/博客,经历了许多的网络可用的源$ C ​​$ C,但未能找到最好的方法了。 或者我们做的下一步是什么?

I have read many of articles/blog , gone through many of internet available source code but unable to find best way. or What we do next ?

推荐答案

你把应该工作的第一个选项。你可以使用加密AES或PlayReady的,和配置令牌认证您的视频文件为您的内容密钥 - 这意味着解密密钥只发给在您的播放器present正确的标记。你可以指定为什么视频不能被解密?是你的令牌或错误的关键是错了吗?我有一个博客,故障排除AES加密配置: http://mingfeiy.com /调试-AES加密的数据流,Azure的媒体服务。让我知道你是否做它的工作。

The first option you took should work. You could encrypt your video file using either AES or PlayReady, and config Token Authentication for your content key - which means decryption key is only issued when your player present the correct token. Could you specify why the video can't be decrypted? was your token wrong or the key was wrong? I have a blog for troubleshooting AES encryption configuration: http://mingfeiy.com/debug-aes-encrypted-stream-azure-media-services. And let me know whether you made it work.

干杯, 鸣飞燕

 
精彩推荐
图片推荐