Screenshots


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

player.api("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 returnedfalse.

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.






2019 © PlayerJS

Login

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

Enterprise

Your name
Website
Email
Phone
Description
Order player

Restore password

Restore
Forgot email? Contact us