SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    toronto
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML 5 Video Compatibility Problem/Puzzle

    So I have read a lot about the subject, and thought that the following code would work with all up to date browsers:

    <video width="640" height="480" controls="controls">
    <source src="video/filename.mp4" type="video/mp4" />
    <source src="video/filename.webm" type="video/webm" />
    Your browser does not support the video tag.
    </video>

    The mp4 file is coded in H.264.

    I have a LAMP server at home and this works with my Linux client computer with Firefox, Chromium and Epiphany.

    However when I load to my Web host, it fails with Firefox. On the same client I use for testing with my home server. I get an Firefox error saying "No video with supported format and MIME type found"

    If I remove the mp4 line, Firefox is happy to render the webm file.

    So when I access my web server, the Firefox client is dying at the mp4 file and not skipping it to use the webm file.

    Yet the same browser does this on my test server.

    Any thoughts on how to deal with this?

    Thanks
    Stephen
    Stephen

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    I suspect it's the H.264 codec or your server MIME is not setup correctly, e.g. AddType video/mp4 .mp4 within Apache. Have you tried swapping the order of those two formats.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    toronto
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xhtmlcoder View Post
    I suspect it's the H.264 codec or your server MIME is not setup correctly, e.g. AddType video/mp4 .mp4 within Apache. Have you tried swapping the order of those two formats.
    Swaping the order of the lines made no difference.

    And while the Apache server is what is defferent in the two cases, I don't see why that would make a difference. The MIME type is specified in the source tag itself.
    Stephen

  4. #4
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stephend View Post
    And while the Apache server is what is defferent in the two cases, I don't see why that would make a difference. The MIME type is specified in the source tag itself.
    It makes a difference. The server also specifies the MIME type in the Content-Type header. Firefox respects it -- if it says, say, text/plain for both videos, Firefox will fail to load both of them. (Opera used to do this as well.)
    Simon Pieters

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    toronto
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the explamation.

    Now I use a shared server, and getting the host to change settings may be like pulling teeth.

    How can I see the Content-Type header so that I can send it to tech support?

    Thanks
    Stephen

  6. #6
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    I would suspect it is too late by the time you've suggested it in the browser and since according to #1 it seems to work locally but not when externally live? Those are the only two differences so adding the correct MIME on the server might work. This is presuming it isn't a plugin bug, which again will be MIME or codec related albeit I thought there were issues anyway regarding that codec and you might need to be more specific in the markup attributes.

  7. #7
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use e.g. http://www.rexswain.com/httpview.html (the result page also has a permalink that you can send to tech support if you like).
    Simon Pieters

  8. #8
    SitePoint Member
    Join Date
    Aug 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is not working for me i am also having that problem, and more problem about video etc..friends suggest me this videocap software but its not free so am a bit skeptic...what are you think guys?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •