This commit is contained in:
duanxiaohai 2024-08-27 14:41:55 +08:00
parent 9e90543007
commit ea865d5ccd
1 changed files with 9 additions and 9 deletions

View File

@ -167,16 +167,16 @@ const loadVideo = () => {
if (videoPlayer) { if (videoPlayer) {
dp.value = videojs("videoPlayer", options); dp.value = videojs("videoPlayer", options);
} }
videojs.hook("beforeerror", (player, err) => { // videojs.hook("beforeerror", (player, err) => {
// Video.js / source err=null // // Video.js / source err=null
console.log("播放器实例", player, err); // console.log("", player, err);
if (err !== null) { // if (err !== null) {
dp.value.src(url); // dp.value.src(url);
} // }
// error // // error
return null; // return null;
}); // });
}; };
// 使 // 使
onMounted(() => { onMounted(() => {