1、摄像头查看页面 增加播放错误捕获

This commit is contained in:
LiuY 2023-12-29 15:06:13 +08:00
parent 537aae0af7
commit 284b3d2005

View File

@ -326,6 +326,14 @@
});
flvPlayer.attachMediaElement(vElement)
flvPlayer.load();
flvPlayer.play();
flvPlayer.on(flvjs.Events.ERROR, function(errorType, errorDetails) {
top.dialog.msg(data.cameraName + '播放失败');
});
}
}, function(code, data) {
top.dialog.msg(data.msg);