Webkit-playsinline on iphone

后端 未结 2 1633
长情又很酷
长情又很酷 2021-01-15 08:39

I\'m currently working on a project with a lot of videos and this project needs to work on iphone.

But actually, the ios\'s video placeholder doesn\'t allows me to s

2条回答
  •  Happy的楠姐
    2021-01-15 09:27

    In iOS 10+

    Apple will finally enable the attribute playsinline in all browsers on iOS 10, so this will work seamlessly:

    In iOS 8 and iOS 9

    You can reproduce the behavior by simulating the playback by skimming the video instead of actually .play()'ing it.

    iphone-inline-video can take care of the playback and audio sync (if any), and it keeps the working as it should.

提交回复
热议问题