Skip navigation
Currently Being Moderated

can't play ogv or webm online only locally

Sep 20, 2011 8:19 PM

The following code works fine online but not after I upload  to my webhost(godaddy).


<video width="420" height="236" controls preload="false">
<source src="videos/explore_promo.mp4" type="video/mp4" />
<source src="videos/explore_promo.webm" type="video/ogg" />


the mp4 works fine  it's just ogv and webm that diesn't work


  • Currently Being Moderated
    Sep 21, 2011 7:41 AM   in reply to ratboy_Jim



    Check with your web host that these file types are supported by their server.



    Mark as:
  • Currently Being Moderated
    Sep 21, 2011 6:19 PM   in reply to pziecina

    That worked.   They told me to create a .htaccess file and uplaod it.  I had to learn what a .htaccess file was and what to write in it but it all turned out well so I'm happy. 

    For anyone who hasn't gone through this before a .htaccess file is one way to make changes on a lynux server.  It's not the prefered way but it's the way the folks at godaddy told me to do it.  Notice .htaccess starts with a dot, notepad wouldn't let me save a file if the name started with a dot so I left the dot off and renamed the file after I uploaded to the server.

    The entire contents of my .htaccess file goes like this.


    AddType  video/ogg  .ogv

    AddType  video/mp4  .mp4

    AddType  video/webm  .webm


    simply AddType followed by the mimetype fillowed by the file extention of that mime type you want to use.  I didn't need to include mp4 as that worked already.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points