- Knowledge of HTML
- The "Pro" version of the player
You probably noticed that there are control buttons to start an stop the playback of the video. There are also volume controls, subtitles and several other use-full controls.
If you have the "Pro" version of the player you can control the video inside the iFrame that gets loaded. Normally it is not possible to communicate with the page inside the iFrame, but if you use our SDK and have the licence for a "Pro" version of the player, you can!
First you should embed the video almost like in the getting started guide.
Please note that we are using
PrivacyPlayerPro and not
PrivacyPlayer like in
the Getting started example.
You need some buttons, we will assume you use Bootstrap as an CSS framework, but in reality it does not matter what you use.
When you click the play and pause you will see that the video start playing stops.
This is the full list of controls and their parameters.
Play the video and seeking.
Pause a playing video.
Toggle the play and pause.
Check if the player is currently playing a video.
Volume up and down, by 10% increments.
You can also set the volume to a certain level. Note that full volume is
1, and half volume is
You can also mute the video with one function call:
To see if the video is muted (volume 0):
You can force the player to go into full screen mode (takeover the entire screen):
Same goes for the Picture in Picture mode. This is not available on all platforms by the way, but most modern browsers have build in support.
If you want to know for sure your action has worked, you can check the state with
isFullscreen. There are also events fired when this happened, you can also listen to that.