
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?
Hi,
If flash isn't support, youtube videos doesn't works with jwplayer.
Is there any option to set fallback to youtube videos?
YouTube HTML5 only works on devices for the time being.
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.
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
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.
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.
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.
@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!
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.
Yeah