
Set Non Autoplay Playlist Index
I am trying to setup a player that does not autoplay, and has a playlist of 10 items, where i would like the 3rd item to be the first item to play.
I have explored 2 options for how to make this work:
1) call jwplayer().playlistItem(2) in the FIRST onPlaylistItem callback
2) call jwplayer().playlistItem(2) in the FIRST onPlay callback
Issues with option 1: is that I can use a flag to detect when the player trys to set the playlistitem for the first time and then force the playlist to start on the 3rd item. The problem is this then starts the player playing, and we see a flash of the thumbnail for the first item (not really a big problem)
Issues with option 2: is that I can use a flag to detect when the player has started playing for the first time and then force the playlist to start on the 3rd item. This works fine. The downside is then the 'thumbnail' on the 'stopped' player is that of the first item.
I am looking for a way to have the 3rd item be the first video to play, and have its thumbnail be the visible when the player is in the stopped state.
Is there a way to do this without having to be really 'hacky' and calling `jwplayer().stop()` after setting the playlist index?
PS. I can see a similar question has been asked in regards to mobile playlist stuff here: http://support.jwplayer.com/customer/portal/questions/8547131-start-on-specific-playlist-index- but the answer was never published if one was found