Glitchbone / CordovaYoutubeVideoPlayer

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

Added Callback when IOS video closed and Fixed Android YouTube Bug. #25

Open JonSmart opened 8 years ago

JonSmart commented 8 years ago

I have added a callback in JS, when the IOS video player finishes, this was useful for me to be able to handle some rotation logic.

I also had issues with new YouTube videos not playing, so have merged with some other contributors D0cz and trakout, and added a further fix based on: https://code.google.com/p/gdata-issues/issues/detail?id=8244

juergengunz commented 7 years ago

@JonSmart could you please describe how to use the callback functions ?

JonSmart commented 7 years ago

@juergengunz I will aim to update the documentation. But in the mean time here is an example of how I have used it: YoutubeVideoPlayer.openVideo(videoID, (result) => { console.log('Video Finished');});

JonSmart commented 7 years ago

If you want this to work on Android, you may need to use the latest version of my branch, I will look to add another pull request to this Repository once I have performed some tidying and testing.

juergengunz commented 7 years ago

@JonSmart thanks! sounds cool. looking forward to it.

zabojad commented 6 years ago

@Glitchbone why don't you merge it ?