1.报错The play() request was interrupted by a new load request
我在动态更换video的url时会报这个错。修改一下原来的代码如下,就正常了
myPlayer.pause(); myPlayer.src(u); //重置video的src myPlayer.load(u); //使video重新加载 myPlayer.play();
时间: 2024-10-13 12:21:39
1.报错The play() request was interrupted by a new load request
我在动态更换video的url时会报这个错。修改一下原来的代码如下,就正常了
myPlayer.pause(); myPlayer.src(u); //重置video的src myPlayer.load(u); //使video重新加载 myPlayer.play();