From 284b3d2005cd8c4aea0fc0ae37efd3cbd8814577 Mon Sep 17 00:00:00 2001 From: LiuY <1622779752@qq.com> Date: Fri, 29 Dec 2023 15:06:13 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=91=84=E5=83=8F=E5=A4=B4=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E9=A1=B5=E9=9D=A2=20=E5=A2=9E=E5=8A=A0=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E9=94=99=E8=AF=AF=E6=8D=95=E8=8E=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/camera/view-console.html | 8 ++++++++ 1 file changed, 8 insertions(+) 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);