You can make a screenshot of the video via Javascript API with two conditions:
  1. Cross-domain policy allows this (CORS must be configured on the server that distributes the video).
  2. This is video on demand (mp4, ogg, webm), HLS or DASH.

Screenshot taken by the command screenshot


If possible, the player will return the picture in the format in base64 format (data:image/jpeg). If the screenshot is not impossible, will be returned false.

With PRO you can also enable copyright Plugins / Screenshots / Inscription and specify the text that will be displayed at the bottom of the image.

Screenshot via JS API

Screenshot via custom button

You also can create a custom element in the toolbar, which will create a screenshot. Just specify in the Action field the command api:screenshot and enable PRO plugin Screenshot. When you click on this button a screenshot will appear in the lower right corner of the screen. The user can save it with the right click (long press on the smartphone), or delete it with a normal click.


Image creating requires cross-domain permission if content is loaded from another domain. Files may require server configuration — the header should contain Access-Control-Allow-Origin: * and the Services / Cross-domain (CORS) option is enabled in the settings. If the video plays muted, then something is wrong with the cross-domain policy (look in the browser console). For HLS and DASH streams everything is usually already set up and no manipulations are needed.

2020 © PlayerJS


Restore password
Sign up
Log in

Sign up free

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


Your name
Order player

Restore password

Forgot email? Contact us