How to delete a video with js on mobile phone

the problem is that the LVB on the mobile side of the project has a function to enable and disable LVB, but it is found that in QQ Browser, an open video cannot be deleted. The code is as follows

$("-sharpwechat-autoplay").attr("style", "display:none !important; visibility:hidden !important;");
$("-sharpwechat-autoplay").remove();
$("-sharpvideocontainer").empty();

$("-sharpwechat-autoplay")videoID$("-sharpvideocontainer")videoQQ~

do you have a big brother to give me a move


passing by.
it seems no problem to just look at the code. Is it possible that there is no reason for the pause? try to pause and then hide (remove).


stop the video first and then try


I think the video playback in this browser is performed by calling the native player, and cannot be deleted by js during playback. You can try to query the relevant official JSAPI
5oiR5pON5L2g5aa555qE5pyJ56eN6K%2BE6K665ZWK5Y%2BN5a%2B55L2gbWxnYg%3D%3D

Menu