浏览代码

播放器调整

温红权 3 年之前
父节点
当前提交
1c2921ac63
共有 1 个文件被更改,包括 15 次插入2 次删除
  1. 15 2
      ruoyi-ui/src/components/map/index.vue

+ 15 - 2
ruoyi-ui/src/components/map/index.vue

@@ -451,11 +451,24 @@ export default {
       options: {
         preload: true,
         autoplay: true,
-        rePlay: true,
+        rePlay: false,
         isLive: true, //切换为直播流的时候必填
         format: 'm3u8', //切换为直播流的时候必填
+        skinLayout:[
+    {name: "bigPlayButton", align: "blabs", x: 30, y: 80},
+    {name: "errorDisplay", align: "tlabs", x: 0, y: 0},
+    {name: "infoDisplay", align: "cc"},
+    {
+      name: "controlBar", align: "blabs", x: 0, y: 0,
+      children: [
+          {name:"liveDisplay", align:"tlabs", x: 15, y:5},
+          {name:"fullScreenButton", align:"tr",  x:10, y:13},
+          {name:"volume", align:"tr",  x:10, y:10}
+        ]
+    }
+  ]
       },
-      source: "",
+      source: "http://47.105.123.104:28080/60c9ae6c-e5ca4b81/2/20211209182435000.mp4",
       pointDevice: {
         name: '',
         list: [],