HTML5 Video working properly locally but not on hosted server

I am working with HTML5 video, its working fine locally but as I host the files on to the server its not getting any video file to be access at the browser. That’s why video is not working with HTML5 Video tag.

I see the inspector then I revealed that the file isn’t come to the browser end its showing the error that file is not present on to it.

from the header we can find that the contain type is text/html even I hosted the mp4 file at the server.

I am totally hanged finding the actual issue… Please help.

1 thought on “HTML5 Video working properly locally but not on hosted server”

  1. Sounds like the server doesn’t have the correct MIME types configured for video. If you have access to the .htaccess file, you need to add the following lines:

    AddType video/ogg .ogv
    AddType video/ogg .ogg
    AddType video/mp4 .mp4
    AddType video/mp4 .m4v
    AddType video/mp4 .m4p
    AddType video/webm .webm    
    
    Reply

Leave a Comment