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

Loading JW library content with auto quality


We have an account with a few vidoes uploaded to the library.

Given an already loaded player (v7), to change to a new video, we do something like

player.load([
{ sources: [
{ file: 'http://content.jwplatform.com/videos/playerId-video_id_720.mp4' },
{ file: 'http://content.jwplatform.com/videos/playerId-video_id_480.mp4' },
{ file: 'http://content.jwplatform.com/videos/playerId-video_id_240.mp4' }
] }
]);

This format allows manual toggling of the quality. However, I can see that if I use the embed code provided for the uploaded video (in the content tab), there is an 'auto' option. Is there a way to reference the content source through the api without changing the embed url to achieve the same thing?

5 Community Answers

Todd

JW Player Support Agent  
1 rated :

Do you have a specific need for creating manual embeds with the static links directly to the different transcodes? My suggestion would be to load the direct JW Platform XML playlist that contains all those links, as well as the HLS stream URL. The template for the XML playlist is:

http://content.jwplatform.com/jw6/[video_ID].xml

The correct syntax for this would be:

player.load(‘http://content.jwplatform.com/jw6/[video_ID].xml’);

geek

User  
0 rated :

Ah that's perfect. That's exactly what I wanted. Does the jw6 refer to version 6? I'm using version 7, will there be any problems with that going forward?

I was using the direct transcodes because that was the only urls I could find on the content panel of my account. I also couldn't find any documentation about how to access the xml. Could I get a link to it?

Todd

JW Player Support Agent  
1 rated :

That playlist URL will work perfectly in JW7

Now that you mention it, I cannot find the document that refers to the XML playlists, but I will find one for you.

geek

User  
2 rated :

Any luck finding that doc link?

Switching to the xml has introduced a new problem into my code, and I've put a ticket about it here

http://support.jwplayer.com/customer/en/portal/questions/14419735-player-breaks-when-display-none?new=14419735

Todd

JW Player Support Agent  
0 rated :

I replied directly in that thread.

This question has received the maximum number of answers.