1、摄像头查看页面 增加播放错误捕获
This commit is contained in:
parent
537aae0af7
commit
284b3d2005
@ -326,6 +326,14 @@
|
|||||||
});
|
});
|
||||||
flvPlayer.attachMediaElement(vElement)
|
flvPlayer.attachMediaElement(vElement)
|
||||||
flvPlayer.load();
|
flvPlayer.load();
|
||||||
|
flvPlayer.play();
|
||||||
|
|
||||||
|
flvPlayer.on(flvjs.Events.ERROR, function(errorType, errorDetails) {
|
||||||
|
top.dialog.msg(data.cameraName + '播放失败');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user