4screens / brightcove-player-cordova-plugin

Native Brightcove player plugin for Cordova with IMA support
MIT License
12 stars 8 forks source link

Events need sample code #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

Trying to run the document event listeners, but it is unclear how I am supposed to run the functions in my controller. I have tried brightcovePlayer.show() by itself with no success and also, as it notes that they are run on the window, I have also tried window.brightcovePlayer.show() with no success. An example of usage will prove very useful.

kostkobv commented 9 years ago
window.addEventListener('brightcovePlayer.show', function(event){
  //your code
});