I have download a sample 5Mb mp4 video from http://www.sample-videos.com/ . I am not able to play video on chrome browser. I am using simple html5 video tag
But When I upload same video on facebook it is playing fine on chrome browser
What I've tried to do is:
<video width="560" height="340" controls> <source src="../Videos/5 Taara_HD.mp4"
type='video/mp4'></video>
Possible solution:
1) if want to autoplay=> add autoplay muted onloadedmetadata="this.muted = true";
else remove that, it will work fine in every browser.
2) Add muted
<video width="560" height="340" controls autoplay muted onloadedmetadata="this.muted = true" > <source src="../Videos/5 Taara_HD.mp4"
type='video/mp4'>
Your browser does not support the video tag.
</video>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.