From 60bb69f4cfc33cd0224e856afc2b00f6bc80e4d4 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Mon, 25 Sep 2023 14:24:51 +0800
Subject: [PATCH] 无人机控制区分

---
 src/components/Jessibuca/Jessibuca.vue |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/components/Jessibuca/Jessibuca.vue b/src/components/Jessibuca/Jessibuca.vue
index 3591523..618d06d 100644
--- a/src/components/Jessibuca/Jessibuca.vue
+++ b/src/components/Jessibuca/Jessibuca.vue
@@ -1,11 +1,5 @@
 <template>
-    <div>
-        <div class="root">
-            <div class="container-shell">
-                <div id="container" ref="container" style="width:200px;height:200px"></div>
-            </div>
-        </div>
-    </div>
+    <div id="container" ref="container" :style="{width,height}"></div>
 </template>
 
 <script setup lang="ts">
@@ -15,6 +9,14 @@
   videoUrl: {
     type: String,
     required: true
+  },
+  width: {
+    type: String,
+    default: '300px'
+  },
+  height: {
+    type: String,
+    default: '200px'
   }
 })
 let jessibuca: null | Jessibuca = null
@@ -35,6 +37,7 @@
     text: '',
     // background: "bg.jpg",
     loadingText: '加载中',
+    controlAutoHide: true,
     // hasAudio:false,
     debug: true,
     showBandwidth: showBandwidth.value, // 显示网速
@@ -171,4 +174,4 @@
 }
 </script>
 
-<style scoped></style>
+<style scoped lang="scss"></style>

--
Gitblit v1.9.3