4

I am currently deploying a video platform. Videos are currently listed with the JWPlayer's plugin integration. I would like to set by default the <video> html5 tag, only if the guest's web browser supports it. How can I do to check if the .flv (encoded video format) is supported by the <video> tag of the guest's web browser ?

Should I implement a javascript function ?

Sense
  • 1,096
  • 8
  • 20
  • 2
    See here http://stackoverflow.com/questions/3572113/how-to-check-if-the-browser-can-play-mp4-via-html5-video-tag – Brendan May 01 '12 at 13:22

1 Answers1

3

<video> tags allow content between the tags. Only when the browser does not support <video> will the content within be rendered on the page.

<video> 
    <source ogg>
    <source mp4>
    <embed flv /> <!-- embed only rendered if video not supported-->
</video>
Joseph
  • 117,725
  • 30
  • 181
  • 234