Wechat applet video playback, when wechat enters the background and then returns to the foreground, the live video stops playing and the problem is solved.

default-user-image.png

Add onpause=”this.play();” to the video tag.

as follows

<video playsinline autoplay controls style=”width: 1600px;height: 920px;” onpause=”this.play();” id=”videoid”></video>

This article is reprinted from https://blog.p2hp.com/archives/8540
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment