2017年11月20日 星期一

mp4

Hi Anderson,
I wrote that article a long time ago! If I understand correctly, you want it to autoplay? It plays OK if you use the play button?
The problem may be that you need the `playsinline` attribute—Apple made some changes in iOS10 to how video autoplays. It’s all explained here: https://webkit.org/blog/6784/new-video-policies-for-ios/
So the code you should need would be:

<video  width="880" height="350" autoplay loop muted playsinline>
  <source src="index.mp4">
  Your browser does not support the video tag.
</video>

沒有留言:

張貼留言