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) {
dp.value = videojs("videoPlayer", options);
}
videojs.hook("beforeerror", (player, err) => {
// Video.js / source err=null
console.log("播放器实例", player, err);
if (err !== null) {
dp.value.src(url);
}
// videojs.hook("beforeerror", (player, err) => {
// // Video.js / source err=null
// console.log("", player, err);
// if (err !== null) {
// dp.value.src(url);
// }
// error
return null;
});
// // error
// return null;
// });
};
// 使
onMounted(() => {