Interface MKPlayerEventConfig

A mapping of MKPlayerEvent values to event handler callback functions.

Events can also be dynamically added and removed through MKPlayerAPI.on and MKPlayerAPI.off.

Example:

events: {
[MKPlayerEvent.SourceLoaded]: (data) => {
console.log("Source loaded: ", data);
},
[MKPlayerEvent.Playing]: (data) => {
console.log("Video is playing: ", data);
},
[MKPlayerEvent.Error]: (data) => {
console.log("An error occurred: ", data);
}
}

Indexable