views:

31

answers:

2

Hello,

I embed a mp4 video into a webpage, using the embed src script. I can view it when I browse from iphone, but not android.

I did some research and found out that I need to use html 5, which uses the tag.

However, how do I find out what version of the video I have? I tried

<video width="560" height="340" controls>
  <source src="<?php echo $video; ?>" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>

But it's not working either. Any ideas? Thank you in advance

+1  A: 
<video id="video" autobuffer height="240" width="360" controls  onclick="this.play();">
<source src="<?php echo $video; ?>">
</video>

video must be encoded properly for the device

Aaron Saunders
Hi, thanks for your reply. I tried your suggestion, but it didn't work. (I am viewing it through website now) Am I able to see if it works on the web, then it should work on mobile phone ? Anyway to debug or how do I check what am I missing? Thanks again :)
Sylph
how did you encode the video?
Aaron Saunders
The video url is auto generated from database, and encode by someone else from another company.
Sylph
Hello, the videos are all in mp4 format, but I still can't play the video. Any help? Thanks :)
Sylph