简体   繁体   English

如何离线保护以加密的html格式播放加密视频,视频源是azure媒体云服务器?

[英]How to protect play encrypted video as saved html format offline , video source is azure media cloud server?

I have tried to play encrypted video using token, video media source is Azure media cloud server, it works fine. 我尝试使用令牌播放加密的视频,视频媒体源是Azure媒体云服务器,它工作正常。 I have got solution to play encrypted video How to prevent play video using file path of window azure media server without login? 我有播放加密视频的解决方案如何防止使用Window azure媒体服务器的文件路径在没有登录的情况下播放视频? But further How to prevent access as saved content as HTML format offline because it has Authentication Token as well as Encrypted Smooth url? 但是,又如何防止由于具有身份验证令牌和加密平滑URL而导致离线保存为HTML格式的已保存内容呢?

There are few solutions(or combination) you can use utilizing token authentication capabilities in Azure Media services. 可以利用Azure媒体服务中的令牌身份验证功能使用的解决方案(或组合)很少。

Integrating with Identity provider: - You can integrate your video web app to use sign in JWT token obtained from one of identity providers. 与身份提供商集成: -您可以集成视频Web应用程序,以使用从身份提供商之一获得的登录JWT令牌。 See example how to integrate with Azure active directory . 请参见示例如何与Azure活动目录集成 You can restrict access to video only to users having specific group claims. 您只能将视频访问权限限制为具有特定群组声明的用户。 In these set of scenarios you rely on token claims obtained from identity provider.Relying on identity provider gives you simplicity of not composing jwt and utilize predefined/configurable set of claims such as user group membership, geographic location and etc. Your video hosted in Azure Media Service will be playable until token will expire. 在这些情况下,您依赖于从身份提供者获得的令牌声明。依靠身份提供者使您无需编写jwt并简化使用预定义/可配置的声明集合(例如用户组成员身份,地理位置等)的简单性。您的视频托管在Azure中在令牌过期之前,媒体服务将一直可用。

Generating and signing token within your app. 在您的应用程序内生成和签名令牌。 - If you generating tokens within your web app you can define token expiration to be comparable to video playback time length. -如果您在网络应用中生成令牌,则可以将令牌过期定义为与视频播放时间长度相当。 You can have client side JavaScript event initiating a request to receive a jwt token from server before user clicks on playback. 您可以让客户端JavaScript事件在用户单击播放之前启动请求以从服务器接收jwt令牌的请求。 Once Jwt token received you can update your video player parameters with token .You have more flexibility in selecting set of jwt claims if your web application generates jwt token. 收到Jwt令牌后,您可以使用令牌更新视频播放器参数。如果您的Web应用程序生成jwt令牌,则您可以更加灵活地选择一组jwt声明。 For example you can generate authentication policies only for specific logged in user . 例如,您只能为特定的登录用户生成身份验证策略。 In this scenarios saving html will not expose a token since it is obtained dynamically based on user actions. 在这种情况下,保存html将不会公开令牌,因为它是根据用户操作动态获取的。

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

相关问题 如何在不登录的情况下使用window azure媒体服务器的文件路径防止播放视频? - How to prevent play video using file path of window azure media server without login? 如何使用WindowsMediaPlayer播放加密的视频文件? - How to play encrypted video file using WindowsMediaPlayer? AES加密的视频流无法与ios设备中的Azure Media Player一起使用 - AES encrypted video stream not working with azure media player in ios devices 如何在 Media Element UWP 中将视频作为音频播放? - How to play video as audio in Media Element UWP? Azure媒体服务-流视频(blob)到HTML5天蓝色媒体播放器 - Azure Media Services - Stream video (blob) to HTML5 azure media player 如何在网络中的共享文件夹中播放媒体元素中的视频 - how play video in media element from shared folder in networking 如何从 angularjs 正确上传视频文件到 Azure 媒体服务 - How to properly upload video files to Azure Media Services from angularjs 如何从 Azure 媒体服务获取视频的时长? - How to get the duration of a video from the Azure media services? 不使用媒体播放器播放视频 [Winform] - Play video without using media player [Winform] 如何连接 SQL 服务器中保存的视频文件的字节数组? - How to Concatenate Byte Array of a Video File saved in SQL Server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM