Media URL variables


With PRO you can use file URL variables {v1} - {v5} for additional content protection. Firstly you need enable the option in the Plugins / Protection / Media URL variables in the builder and add the replacement rules. It can be just text or the name of a global variable with js: at the beginning (the player will find this variable and substitute with it value). Variable names must begin with a Latin letter.

For example the link specified in the code or playlist looks like

http://site.com/{v1}/file{v2}.mp4

The variable kkk is defined in the global space

var kkk = "123";

The URL after changing the variables inside the player is ready for playback

http://site.com/ppp/file123.mp4

17.1022022 © PlayerJS

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Restore password

Restore
Forgot email? Contact us