Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to play encrypted videos on the HTML5 page

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to play encrypted videos on the HTML5 page. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

How to play encrypted videos on the HTML5 page

Polyv mobile encryption can directly support HTML5 browser playback by default. If you are worried about the video being downloaded on the mobile side,

You need to set the mobile encryption setting to "WEB Authorization" in the "Video Management"-> Video settings in the Polyv background.

In the "WEB" authorization mode, the HTML5 browser cannot play the video directly. When the video is played, you need to request the decryption key to play it.

So, how do you get the player to request decryption of key?

First of all, log in to the Polyv account, find the secretkey entry in "system Settings-> Video Interface" at the bottom left of the Polyv backend, and copy the contents.

Then, use this secretkey, the vid to be played and the current timestamp to sign the md5, and get the access signature requesting decryption of the key.

Finally, add the timestamp and signature parameters to the player code.

Here is an example of PHP:

12345678910111213141516171819202122

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report