• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 462
  • Last Modified:

HTML 5 Video Not Working

Hello, i migrate from html4 to html5, it also mean i convert my swf/flv to mp4. But i cannot make it works in my local and my testing server:

you can check here:
http://www.dxc-server.com/video/dummy.php

i googled and found that i must add AddType in .htaccess. I already add :
"AddType video/mp4 .mp4"

in .htaccess

Do i miss something here ?

Thanks
0
veematics
Asked:
veematics
  • 2
1 Solution
 
jrm213jrm213Commented:
Hi veematics,

unfortunately HTML5 Video isn't really all that great because it isn't implemented the same across browsers and you have to use the specific filetype and encoding for it to work at all.

Check this out: http://www.robwalshonline.com/posts/tutorial-serving-html5-video-cross-browser-including-ipad/

I believe your mp4 needs to be encoded in h.264 for webkit and ogg for firefox.

also iirc firefox and opera can not play mp3 so I think the audio for the video can't be encoded in that.

Eventually if all the browsers can implement the same filetypes/encodings then our lives would be much easier. Until then you will probably need multiple copies of the same video in separate filetypes/encodings to get it to work on the majority of browsers.
0
 
Mohamed AbowardaSoftware EngineerCommented:
The best choice for you right now is that you use flash video player for video streaming and use .flv file extension for your videos so that you don't have problems with cross browsers.

There are many flash players to play FLV files online, you can try:
http://www.flvplayer.com
http://www.moyea.com/flv-player/

Or you can create your own.
0
 
veematicsAuthor Commented:
@Medo3337
the reason i move from flash, is the compatibily in Ipad/Iphone and "Upcoming" Android, which not support swf file.

i found mediaelementjs.com is the right solution for me, since it have fallback feature for desktop.
0
 
veematicsAuthor Commented:
@jrm213jrm213, i thought it would be "easy migration" it turns out it quite lots of task since no 'standard' in video streaming
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now