Wechat HTML5 page, after dynamically modifying the src of Video, the video will not be loaded in IOS?

when performing LVB joint broadcasting, video plays a single stream. After joint broadcasting, the backend pushes a multi-person stream mixing link. After modifying the src of video,

video.pause();
source.setAttribute("src", newSrc); 
video.load();
video.play();

you can continue to play in Android Wechat, but the video is always loaded in ios Wechat.

after joint broadcasting, the stream mixing is switched back to the original single stream, which can be played normally in Android Wechat and ios Wechat.

when you do not join broadcasting, you can switch directly from the current single-player stream to other single-player streams.

it has been tried. After switching to stream mixing src, check whether the pull is successful every second. If it is not successful, reload and play it again. This operation can pull down the stream successfully, but the loading time can be up to 7 seconds.

ask for advice on what went wrong.

Aug.27,2021
Menu