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

Multiple video formats for HTML5 fallback.

It would be nice to setup multiple formats for a player (H.264, Theora, WebM). If the flash player can be used, the H.264 video will be used. If the player falls back to HTML5, all 3 videos can be embedded in the <video> tag.

2 Community Answers


JW Player Support Agent  
1 rated :

@Ryan -

You can do this by setting a levels block in your setup code. Here’s an example:

    flashplayer: 'player.swf',
    width: 400,
    height: 300,
    image: '/thumbs/video.jpg',
    levels: [
      { file: '/videos/video.mp4' },
      { file: '/videos/video.ogv' },
      { file: '/videos/video.webm' }

In Flash mode, the player will ignore the Theora and WebM files, but in HTML5 mode, it will insert all of the levels into the <video> tag as sources, and the browser will select a playable file (based on the file extension).

JW Player

-1 rated :

Thank you so much for your helpful reply. I guess I should have specified that I'd like to see this functionality on the WordPress plugins though. Regardless your reaponse is quite helpful for my videos posted outside of WordPress.

This question has received the maximum number of answers.