Skip to content

Latest commit

 

History

History
131 lines (125 loc) · 2.05 KB

File metadata and controls

131 lines (125 loc) · 2.05 KB

Events

player events can handled over javascript e.g.:

  • Usage

function playerBridge(player,event,data) {
    switch(event) {
        case default:
            console.log(event+': '+data);
        break;
    }
}
  • List of events

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.