player events can handled over javascript e.g.:
function playerBridge(player,event,data) {
switch(event) {
case default:
console.log(event+': '+data);
break;
}
}| Event | Description | |
|---|---|---|
| onJavaScriptBridgeCreated | bridge is ready | |
| ready | video is ready | |
| playing | video is playing | |
| paused | video is paused | |
| complete | video completed | |
| volumeChange | volume changed | |
| timeChange | current position changes | |
| durationChange | length of video changes | |
| errorEvent | ||
| fullscreenChange | fullscreen state change | |
| crontrolbarChange | controlbar hides or shows | |
| advertisementStart | player starts requesting ads | |
| advertisementStop | adsrequest finished | |
| playRequest | user requested to play | |
| pauseRequest | user requested to pause | |
| seekRequest | user requested to seek to a specific position | |
| muted | video muted | |
| unmuted | video unmuted | |
| subtitleChange | int | currentIndex |
| audioChange | object | All audiotracks listed |
Back to index.