video.js handover source problem

What are again re-load it to replace what src, not what effect, simple and crude but effective method

Two important points

A, video problem, just replace the source of the src does not work, replace the entire video straightforward re-label the video again and again replaced with js, change the src

Two, video.js plug-in problem,

var myPlayer = videojs('my-video',{}

myPlayer.src(src)

myPlayer.load(src)

I think the Internet was written so that you do not destroy a video.js instance, has created a page will get confused? No two video? I is not take

Solutions myPlayer.dispose () trouble to look at the destruction instance, go to create a new

 

 

Everyone's not the same problem, the solution can only give others eventually encountered and ideas

Guess you like

Origin www.cnblogs.com/lishuang2243/p/12072409.html