Solve the problem of automatic full-screen video playback in H5 on iOS

When using the video tag to play a video on the web control on the iOS side, the video will automatically play in full screen.

solution

The video tag on the ios side must add the webkit-playsinline and playsinline attributes.

Some videos on the Android side will also have automatic full-screen problems, so add the webkit-playsinline attribute.

Modify video tag in HTML

<video src="" autoplay="true" muted="true" webkit-playsinline playsinline>

Guess you like

Origin blog.csdn.net/watson2017/article/details/132059205