Open JonSmart opened 8 years ago
@JonSmart could you please describe how to use the callback functions ?
@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');});
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.
@JonSmart thanks! sounds cool. looking forward to it.
@Glitchbone why don't you merge it ?
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