diff --git a/src/main/resources/templates/camera/view-console.html b/src/main/resources/templates/camera/view-console.html index e3c97de..8efd93c 100644 --- a/src/main/resources/templates/camera/view-console.html +++ b/src/main/resources/templates/camera/view-console.html @@ -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);