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

Default source not working


Hello, I am trying to get the "default" option in playlist > sources to work (as documented below). I am running video with 1080p, 480p, and mobile resolutions, and want 480p to be the default without having to re-order the sources array:

http://www.longtailvideo.com/support/jw-player/28842/working-with-playlists/

Per one of Ethan's post, I upgraded past 6.3 (using 6.7):

http://www.longtailvideo.com/support/forums/jw-player/using-playlists/32117/multiple-sources-default-not-working/

And I am setting the "default" option (with quotes) under the item, not the playlist, as mentioned by James here:

http://www.longtailvideo.com/support/forums/jw-player/using-playlists/31989/source-property-default-doesnt-work/

My playlist is being passed into .setup() as the following (verified in Chrome dev tools):

bc.. [{
'sources': [{
'file': 'https://example.com'
},{
'file': 'https://example.com',
'"default"': true
},{
'file': 'https://example.com'
}
}]



I see this error on Mac Chrome / FF, and Windows Chrome / FF.

This is on a private site, but am happy to provide a temporary login to Ethan or someone else from JW Player. I appreciate any help with this--I'm sure it's something silly that I'm missing, but I obviously can't see it...

Thanks!

5 Community Answers

JW Player

User  
1 rated :

What's the error you are getting?

Try changing:

bc.. '"default"'



to

bc.. 'default'


JW Player

User  
0 rated :

I get no console / web inspector error--only that the first source is used instead of the "default" one.

Thanks James, your suggestion worked! Are the docs wrong about the quotes, or does that just mean my app won't work with IE8?

Ethan Feldman

JW Player Support Agent  
0 rated :

You would user double quotes or single quotes, not mix both.

JW Player

User  
0 rated :

Oh, gotcha, thanks Ethan. I confused myself with how the docs were worded...

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.