How to be notified when a video finishes playing in the official Android YouTube app

847 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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: