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

YouTube html5 fallback


Hi,
If flash isn't support, youtube videos doesn't works with jwplayer.
Is there any option to set fallback to youtube videos?

9 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

YouTube HTML5 only works on devices for the time being.

JW Player

User  
0 rated :

Is there a way to detect this and announce to the user? Right now no error is thrown with the player's onError callback and nothing is displayed to the user beyond the message in the browser's console that says no suitable player are found. I seem to recall late editions of JW 5 would fall back to a link to YouTube at least.

JW Player

User  
0 rated :

Ben / Aaron

I've developed a JW HTML Config library which makes JW6 work like JW5 used to when it comes to YouTube videos + with the fallback to YouTube's HTML5 player if flash is not detected. There are a number of other features such as making JW responsive without extra CSS or iFrames. You may find this useful and can find details here: http://powered-by-haiku.co.uk/?p=189

James

JW Player

User  
0 rated :

That's a bit too much of a departure from the default embedding method for me, though I just noticed getRenderingMode() which will work fine for my purposes.

JW Player

User  
0 rated :

Nevermind, it doesn't.

While the player object is available immediately after setup, it always returns undefined at that instant of execution whether or not suitable players are available. If there are no suitable players found, the onReady function is not called which is where getRenderingMode() is reliably able to tell what rendering mode is being used.

JW Player

User  
0 rated :

Jeroen's comment here (http://developer.longtailvideo.com/trac/ticket/1450) is rendered relatively invalid because of the timing issue and makes this higher priority.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Ben/Aaron – You might be able to use your own userAgent detection here. We are planning on officially adding in YouTube HTML5 support though – http://developer.longtailvideo.com/trac/ticket/1214

@James – Your config is really cool!

JW Player

User  
0 rated :

Yeah, in this instance you would need to do some flash detection pre-JW setup and only proceed if you are happy the YouTube video would be playable.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah

This question has received the maximum number of answers.