Download button

You can add a download button to your player.

Video version of this guide on YouTube

Using the menu

Enable the Download option for any menu listing of the Elements / Settings window

Using the custom button

You can create the custom button with a download command. 

How it works

When you click on the Download option or button, the browser will open a new tab with a direct link to the file. If you play mp4 or mp3, 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. You need to add the download parameter to the code and specify another link for downloading.

var player = new Playerjs({id:"player", file:"//", download:"//"});
The same parameter can be used in playlists.
2024 © 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