Events
Events des Player können mittels JavaScript empfangen und ausgelesen werden.
-
Verwendung
function playerBridge(player,event,data) {
switch(event) {
case default:
console.log(event+': '+data);
break;
}
}
-
Liste der verfügbaren Events
Event | Beschreibung | |
---|---|---|
onJavaScriptBridgeCreated | bridge is ready | |
ready | video is ready | |
playing | video is playing | |
paused | video is paused | |
complete | video completed | |
volumeChange | (int) 0.1 .. 1.0 | volume changed |
timeChange | (int) seconds | current position changes |
durationChange | (int) seconds | 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 (index) | currentIndex |
audioChange | [Object] | All audiotracks listed |
Back to index.