How to enable Download option

If you want to enable to download content, simply enable the Download option in any of the menu items

In PRO you can also add custom button to the toolbar. Create custom element SVG or Text and enter download to the Action / Command filed. 

How it works

When you click on the Download option in the menu or on your button, the browser will open a new tab with a direct link to the file. If mp4 or mp3 is played, the file will open in the browser player and the user will need to save the file via the browser menu, or press Ctrl + S (Command + S for Mac). You can immediately initiate the download if the file is sent from the server, as an application/octet-stream or binary file in a header.

You can give to download another file. This is especially true for HLS or DASH. To specify another link for downloading, you need to add the download parameter to the code. 

var player = new Playerjs({file:"//", download:"//"
The same parameter can be used in playlists.
18.12.22023 © PlayerJS

Sign up free

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

Restore password

Forgot email? Contact us