RemcoB00 / cordova-phonegap_youtube_player_api_android

YouTube Android Player API plugin for Cordova & Phonegap.
15 stars 14 forks source link

Youtube Playlist jump to index problem #8

Open devshisiyani opened 8 years ago

devshisiyani commented 8 years ago

I have a playlist on the youtube. I have used the youtube api in my phonegap application. Have used the "youtube.playPlaylist" API. Used the param to specified the index, this fails to work. Does not matter what index I set.
The code is below. The playlist is displayed but it always start with the first video. The index is ignored. Also noticed that the autoplay is ignored. The youtube video is displayed and you can play the video. You can also use the next button to move to the next video and you can move back video.

window.youtube.playPlaylist('PLtlVJniJbyNndiwRUE8WMc-zhmp0lrm58', 3, 60000, true); window.youtube.playPlaylist('PLtlVJniJbyNndiwRUE8WMc-zhmp0lrm58', 4, 60000, true);