Mihir
Mihir

Reputation: 557

Youtube API list with videos, android

How can i have a list of videos play like playlist? I have a string of videoID not playlistID which acts like playlist, that is video play one after other, next video button to display on youtubeplayer.

private static final String1[] arry = { 
          new String1("Androidify App", "irH3OSOskcE", false),
          new String1("Chrome Speed Tests", "nCgQDjiotG0", false),
          new String1("Playlist: Google I/O 2012", "PL56D792A831D0C362", true)};

Upvotes: 0

Views: 404

Answers (1)

MohK
MohK

Reputation: 1933

You can use onVideoEnded() method of YouTubePlayer.PlayerStateChangeListener interface to play it one by one.

Have a look here YouTubePlayer.PlayerStateChangeListener

Upvotes: 3

Related Questions