Mike Miller
Mike Miller

Reputation: 3507

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

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

Answers (1)

KENdi
KENdi

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

Related Questions