Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

html5 video tag

Discussion in 'Website Design Forum:' started by br3n, Sep 16, 2011.

  1. br3n

    br3n Senior Member

    Just reading up on the video tag for html5 and although its clear that text within the tag appears if the browser doesn't support the video... how could you make it display something else instead... for example a youtube video.

    So in simple terms:

    Display the video if video tag supported
    if it isnt... display an embedded youtube video.

    thanks :)
     
  2. Kevin

    Kevin Senior Member

    Put the embed code inside the <video> element ;)

    Also remember to define multiple sources inside your element to accomodate all modern browsers too. I don't know which ones you need from the top of my head, but it should be easy enough to find back on google.

    EDIT: here we go Quick Tip: HTML5 Video with a Fallback to Flash | Nettuts+
     
  3. br3n

    br3n Senior Member

    nice one thanks! makes sense I guess *blushing*
     

Share This Page