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

How to Create playlist with video keys in jw platform


Hi,

I have my videos in jw platform.

how can i create playlists in my website with video keys with jw player.

i have video keys like bRBfLPKu,bRKKPKu,bRBfJUHJ etc

i want by useing jwplayer().setup(){
video keys : 1,2,3..
}

like this


Thanks
Praveen

8 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Hi Praveen,

You can’t create a playlist by simply referencing keys, but you can use these keys to point to certain objects with our URL structure. For example, a single-item XML file with streaming/mp4 fallback would be:

http://content.jwplatform.com/jw6/XXXXXXXXX.xml

Where the X’s are replaced by your video key.

You can absolutely create a playlist within platform that can be referenced in such a way. You can directly reference this created XML file in an external jwplayer setup, though again, this can also be done in a single line javascript embed from our platform directly. We have many more articles on the support site regarding playlists which should explain things further.

michael.mccarthy

User  
0 rated :

am not getting like this

<script>
jwplayer("Video_playing2").setup({
playlist: [{'http://content.jwplatform.com/jw6/mi5B3Asi.xml'},{'http://content.jwplatform.com/jw6/pYge0s2B.xml'}],
displaytitle: false,
width: 716,
height: 404
});
</script>

Andrew

JW Player Support Agent  
0 rated :

Hi,

You’re using playlists within playlists which is not going to work. (IE an XML within a playlist object) You’d need to use either an XML set as a playlist, or use an array of files.

michael.mccarthy

User  
0 rated :

but am unable to use files.

files are in jw platform,i have only video keys with me.

how can i do it?

mbarnhill

User  
0 rated :

Hi,

I have same requirement. Please can anyone suggest anything?

Andrew

JW Player Support Agent  
0 rated :

If you would like to do this, again, you’ll need to follow the URL structure for either an M3U8 or MP4 file.
http://content.jwplatform.com/manifests/abcdefgh.m3u8 for example.

If you look within the XML file, this will tell you how the structure works for different file types.

mbarnhill

User  
0 rated :

Hi,

I tried following methods:

1) playlist: [{'http://content.jwplatform.com/manifests/rkCys8Gh.m3u8'},{'http://content.jwplatform.com/manifests/rkCys8Gh.m3u8'}],

2) playlist: [{'file':'http://content.jwplatform.com/manifests/rkCys8Gh.m3u8','title':'testing'},{'file':'http://content.jwplatform.com/manifests/rkCys8Gh.m3u8',,'title':'testing'}],

3) playlist: [{'sources':'http://content.jwplatform.com/manifests/rkCys8Gh.m3u8','title':'testing'},{'sources':'http://content.jwplatform.com/manifests/rkCys8Gh.m3u8',,'title':'testing'}],

but any of this is not working. Please could you tell me what should be the code for playlist if my video key would be rkCys5Gh, rkCys6Gh, rkCys7Gh, rkCys8Gh?


Andrew

JW Player Support Agent  
0 rated :

Option 2 should work here. You’re using two commas though in the second item between the m3u8 and title. Also, is there a reason why you’re using the same media file two times?

This question has received the maximum number of answers.