Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Choice the video in the playlist without starting

For example i have some configuration for playerInstance:

playlist: "",

You can see the contents of a playlist by the link.
How how can I specify a video to be displayed first from playlist without playing.
When i use playerInstance. playlistItem(#).stop() i doesn't see video thumbnail.

6 Community Answers


JW Player Support Agent  
0 rated :

Hi, there.

You should be able to accomplish this by using a combination of .on(“playlist”) to wait for the playlist to load in the player. Once that event fires, you can run playerInstance.load(playerInstance.getPlaylistItem()); to load whatever playlist item you would like. When the playlist item is loaded, the player does not begin playback. All together, it would look like this:

playerInstance.on("playlist", function() {

You can see this in action on this test page:

Please let me know if you need any more help or have any other questions.

Thank you!

TechVendors N/A

0 rated :

Thanks, but that's not what I need. In this example, you have load a new playlist with one the video. You lost the rest of the video from the original playlist.

Please look at the screenshot for a better understanding of about what I'm talking. Thanks.


0 rated :


I've written a plugin which would allow you to achieve what you are after. Check out the following thread:

Once the plugin is loaded, you can programmatically cue a playlist item (without it playing) using the following plugin method:

playerInstance.plugins.cueit.cueItem( indexOrMediaId, [play] );

Where "indexOrMediaId" is either the playlist item number you wish to cue (starting at 1), or the "mediaid" of the item you wish to cue. You can include the optional second parameter, set to "true", if you want the item to begin playing.

Hope that helps.

James Herrieven

Powered by Haiku
Tatami for Online Video
skype: JamesHerrieven
email: james[at]haiku[dot]co[dot]uk

TechVendors N/A

0 rated :


Thank you for a great solution! That's exactly what I wanted.

How can you estimate the probability that this plugin will stop working, after update js on the jwplatform side?


jherrieven N/A

0 rated :

Hi @TechVendors

No problem!

The plugin uses the standard JW API implementation and player methods - there is nothing particularly clever about it - it's just cleaner to apply as a plugin.

So, provided JW don't suddenly deviate from their provision of a plugin model or change fundamental events/methods, this technique should not be impacted by future JW platform updates.


TechVendors N/A

0 rated :

Thanks @jherrieven.

You helped me a lot.

This question has received the maximum number of answers.