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

Play HTML5 as default, fallback to Flash


Is there a way to make the JW Player to play as HTML5 per default, and fallback to Flash, if the first condition isn't possible? If so, how? Can someone provide an example? Thanks!

2 Community Answers

JW Player

User  
1 rated :

@David

There are a couple of things I'd like to suggest
bc.. 1. go to this link and view the documentation on the JWPlayer
http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5


2. have a peek at the following code, there you see that the order
has been switched whereby html5 is the first in the order of the
modes. It is an example taken from my web site

3. the only benefit that I see in switched order the modes
html5 - flash is lies in the support for the mobile devices
namely; iPhone, iPAD, iPOD and Android

4. the benefit is further noticed when using html5 the elements
video and audio


<!-- JavaScript -->
<script src="js/jwplayer.js"></script>
<script>
var options =
{
image:'contents/stars3a.png',
file:'video/miranacrawl2.mp4',
width:'800',
height:'340',
bufferlength:'1',
controlbar:'none',
stretching:'fill',
'logo': 'images/smiranalogo.png',
'logo.hide': 'true',
'logo.over': '0.75',
'logo.out': '0.9',
'logo.timeout': '10',
'logo.margin': '10',
autostart:'false',
modes: [
{ type: "html5" },
{ type: "flash", src: "player.swf" }
]
};

$jw('div1').setup(options).onPlay();

</script>



I am really not quite sure if this is helpful for you as it is always the better to provide a link for assessment of either the issues or what is still required.

Ethan Feldman

JW Player Support Agent  
-1 rated :

More reference – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18508/jw-embedder-modes

This question has received the maximum number of answers.