Glitchbone / CordovaYoutubeVideoPlayer

Play Youtube Videos in a native Video Player on Android & iOS
MIT License
83 stars 133 forks source link

Video close event handler #5

Open kotromeo opened 9 years ago

kotromeo commented 9 years ago

Can you add video close event handler - some callback function for method play

zzzet commented 9 years ago

In iOS when video play is done.. it redirects to youtube.com why is that.. I think its better to add close an event handler.

trakout commented 8 years ago

Any update on this?

sesubash commented 7 years ago

You can listen for "resume" event as the app will go to background mode during video play and will be resumed once it comes back to the app view.

document.addEventListener("resume", yourCallbackFunction, false);