Reputation: 3507
I know that when using a YouTubePlayerFragment or YoutubePlayerView, I can use YouTubePlayer.PlayerStateChangeListener to receive onVideoEnded(). Is it possible to be notified similarly when the official android youtube app finishes playing a video?
Upvotes: 0
Views: 846
Reputation: 7771
Yes, this YouTubePlayer.PlayerStateChangeListener
that you mention is the one that will tell you if the Youtube video is already finished.
Another way to achieve this problem is explained in these SO questions:
Upvotes: 1