简体   繁体   English

如何在不登录的情况下使用window azure媒体服务器的文件路径防止播放视频?

[英]How to prevent play video using file path of window azure media server without login?

Currently doing one project basis on Windows Azure Media Service . 当前在Windows Azure Media Service上做一个项目基础。

Scenario- There is a media player on website, which play video source file of media contains on Azure media server. 方案-网站上有一个媒体播放器,用于播放Azure媒体服务器上包含的媒体的视频源文件。

Requirement - 要求-

1) Unregistered user or without login user can't play video using azure media file path . 1)未注册用户或未登录的用户无法使用azure媒体文件路径播放视频 (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) (对我来说,最好不使用Active Directory凭据,并且如果我们可以上传该视频加密格式并在用户登录时播放解密文件,则对我来说是更好的选择)

Please provide proper guidance which satisfy above requirement. 请提供满足以上要求的适当指导。

What we have done - Flag/notify me if I am doing wrong way 我们已完成的操作-如果我做错方法,请举报/通知我

1) Tried to media upload as encrypted format and using token but unable to decrypt that video using token access. 1)尝试将媒体以加密格式并使用令牌上传,但无法使用令牌访问来解密该视频。

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 ? 2)我认为,如果有某种机制像会话变量维护azure媒体服务器来检查用户是否通过身份验证,然后授予访问权限,那么问题就解决了? But don't know how to use that. 但是不知道该如何使用。

I have read many of articles/blog , gone through many of internet available source code but unable to find best way. 我已经阅读了许多文章/博客,并遍历了许多Internet可用的源代码,但找不到最佳方法。 or What we do next ? 或接下来我们要做什么?

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. 您可以使用AES或PlayReady对视频文件进行加密,并为内容密钥配置Token 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 . 我有一个博客,用于对AES加密配置进行故障排除: http : //mingfeiy.com/debug-aes-encrypted-stream-azure-media-services And let me know whether you made it work. 让我知道您是否成功了。

Cheers, Mingfei Yan 干杯,严明飞

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

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