0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 627 forks source link

The callback is launched only at the end of the video and not if the video closes before #466

Open BBMO opened 4 years ago

BBMO commented 4 years ago

Hi I’m using this plugin for an ionic project but I have issues on iOS when the video shuts down before being watched completely, the callback doesn’t lunch before the video ends, therefore I have trouble with the orientation, this due to I change to landscape right when I play the video and I change the orientation to potrait in the callback, but if the callback is not launched then the device remains in landscape and makes it impossible for me to return it to potrait since there’s no way to detect the video’s shutting down.

I hope you can help me, thanks.