瀏覽代碼

修复播放页面

648540858 3 年之前
父節點
當前提交
b9ffcd1d38
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 3 1
      web_src/src/components/channelList.vue
  2. 1 1
      web_src/src/components/dialog/devicePlayer.vue

+ 3 - 1
web_src/src/components/channelList.vue

@@ -220,6 +220,7 @@ export default {
         method: 'get',
         url: '/api/play/start/' + deviceId + '/' + channelId
       }).then(function (res) {
+        console.log(res)
         that.isLoging = false;
         if (res.data.code === 0) {
 
@@ -241,8 +242,9 @@ export default {
           that.$message.error(res.data.msg);
         }
       }).catch(function (e) {
+        console.error(e)
         that.isLoging = false;
-        that.$message.error("请求超时");
+        // that.$message.error("请求超时");
       });
     },
     queryRecords: function (itemData) {

+ 1 - 1
web_src/src/components/dialog/devicePlayer.vue

@@ -313,7 +313,7 @@ export default {
             activePlayer: "jessibuca",
             // 如何你只是用一种播放器,直接注释掉不用的部分即可
             player: {
-              // jessibuca : ["ws_flv", "wss_flv"],
+              jessibuca : ["ws_flv", "wss_flv"],
               webRTC: ["rtc", "rtc"],
             },
             videoHistory: {