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

External link to specific item in playlist


Hi. I would like to be able to use external links to point to a specific video in a playlist. For instance so that on Twitter you can share a link to a video in a playlist. Like http://website.com/playlist#video

SInce I'm completely ignorant of JavaScript, I was wondering if somebody could put me on the right track.
I've started of with the idea's on http://support.jwplayer.com/customer/en/portal/articles/1439375-example-linking-to-a-time-offset, but I don't really know how to proceed.

Any tips?

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

We have a built-in sharing plugin that would allow you share videos to Facebook and Twitter. This includes the ability to link to specific videos within a playlist. Please see our Social Sharing Overlay support article for more information.

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

Thank you!

jsteeman

User  
0 rated :

Thanks for that info.

I'm however trying to find a way to link to the specific video inside the playlist on the same page. I'm not creating different pages for each video, but just one page with only this playlist.

Is there a way I can include the mediaid in the url to the page with the playlist, so that it starts with this specific video? For instance with a # in the url?

Draft is on http://start.groenlinks.nl/video/index.html.

Ideally it would play the video "vogel" in the playlist if somebody visits http://start.groenlinks.nl/video#vogel.

Alex

JW Player Support Agent  
0 rated :

Hi, there.

I definitely understand now and have been working all morning on a solution, but there doesn’t look like there is currently a way to do this. I will pass it along to our Engineers as a feature request.

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

Thank you!

jherrieven

User  
0 rated :

@jsteeman

This is simple enough to do - and you are not too far from a solution with your existing code.

However, to make things easier to implement, and a bit more robust, I've written a plugin to handle this functionality.

Check out:

http://dev.powered-by-haiku.co.uk/debug/jsteeman/?vogel

This plugin allows you to use either the hash (#) or the query string (?) to provide instruction about which playlist item to cue - using ? tends to be better practise.

You can specify the playlist item to cue using any of the following formats:

[url]?[index] - for example: http://dev.powered-by-haiku.co.uk/debug/jsteeman/?2
[url]?[mediaid] - for example: http://dev.powered-by-haiku.co.uk/debug/jsteeman/?vogel
[url]?index=[index] - for example: http://dev.powered-by-haiku.co.uk/debug/jsteeman/?index=2
[url]?mediaid=[mediaid] - for example: http://dev.powered-by-haiku.co.uk/debug/jsteeman/?mediaid=vogel

These instructions will simply cue the playlist item. To then play the cued item you simply add "&play" to the end of the URL, such as:

http://dev.powered-by-haiku.co.uk/debug/jsteeman/?vogel&play

You can register the plugin using the following code as part of your setup:

"plugins":{
"http://www.dev.powered-by-haiku.co.uk/solutions/cueit/code/cueit.js":{}
}

Hope you find this useful.

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
===================================================

jsteeman

User  
0 rated :

@jherrieven

Wow, that just solved all my problemens (well connected with this issue at least.) Thanks for your help!

Regards, Jeroen

This question has received the maximum number of answers.