I’m using JWPlayer to serve an html5 video with a flash fallback.
I’d also like to have an image fallback if there is neither html5 nor flash support but I can’t see how to do this.
My code is as follows:
modes: [
{ type: "html5", },
{ type: "flash", src="http://www.mysite.com/jwplayer/player.swf"}
],
levels: [
{ file: "myvideo.mp4" }, // H.264 version
{ file: "myvideo.webm" }, // WebM version
{ file: "myvideo.ogg" } // Ogg Theroa version
],
Any ideas? Thanks
There are two utils functions you can use to check for HTML5 and Flash. You can find them here in the source (copy & paste the url: http://developer.longtailvideo.com/trac/browser/trunk/js/src/utils/jwplayer.utils.js?rev=1311):