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();

 

posted on 2017-03-09 18:18  坚持不懈❥  阅读(1724)  评论(0编辑  收藏  举报