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:

playerInstance.setup({
playlist: "http://content.jwplatform.com/jw6/aNPAGfP5.xml",
});

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

Alex

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() {
  playerInstance.load(playerInstance.getPlaylistItem(2));
});

You can see this in action on this test page: http://qa.jwplayer.com/~abussey/demos/64552-playlistitem-stop.html

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

Thank you!

TechVendors N/A

User  
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.

http://take.ms/j85FL

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

jherrieven

User  
0 rated :

@TechVendors

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

http://support.jwplayer.com/customer/portal/questions/15276793-external-link-to-specific-item-in-playlist

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
http://powered-by-haiku.co.uk/
---------------------------------------------------
Tatami for Online Video
http://dev.powered-by-haiku.co.uk/solutions/tatami/
---------------------------------------------------
skype: JamesHerrieven
email: james[at]haiku[dot]co[dot]uk
===================================================

TechVendors N/A

User  
0 rated :

@jherrieven

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?

Thanks.

jherrieven N/A

User  
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.

Cheers
James

TechVendors N/A

User  
0 rated :

Thanks @jherrieven.

You helped me a lot.

This question has received the maximum number of answers.