From 54849757852f6ab40eb17afbd03d1d839b60a38d Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 13 Nov 2023 17:09:15 +0800
Subject: [PATCH] 重复定时和连续执行

---
 src/components/livestream-agora.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/components/livestream-agora.vue b/src/components/livestream-agora.vue
index b9b531e..63b40bc 100644
--- a/src/components/livestream-agora.vue
+++ b/src/components/livestream-agora.vue
@@ -66,7 +66,7 @@
       </a-select>
     </div>
     <p class="fz16 mt10">
-      注意:从中获取以下参数https://console.agora.io
+      <!-- 注意:从中获取以下参数https://console.agora.io -->
     </p>
     <div class="flex-row flex-justify-center flex-align-center">
       <span class="mr10">AppId:</span>
@@ -209,7 +209,7 @@
   }
   // Subscribe when a remote user publishes a stream
   agoraClient.on('user-joined', async (user: IAgoraRTCRemoteUser) => {
-    message.info('user[' + user.uid + '] join')
+    message.info('用户[' + user.uid + '] 加入')
   })
   agoraClient.on('user-published', async (user: IAgoraRTCRemoteUser, mediaType: 'audio' | 'video') => {
     await agoraClient.subscribe(user, mediaType)
@@ -223,7 +223,7 @@
   })
   agoraClient.on('user-unpublished', async (user: any) => {
     console.log('unpublish live:', user)
-    message.info('unpublish live')
+    message.info('取消发布')
   })
   agoraClient.on('exception', async (e: any) => {
     console.log(e)
@@ -364,7 +364,7 @@
 }
 const onUpdateQuality = () => {
   if (!livePara.liveState) {
-    message.info('Please turn on the livestream first.')
+    message.info('请先打开直播')
     return
   }
   setLivestreamQuality({
@@ -372,14 +372,14 @@
     video_quality: dronePara.claritySelected
   }).then(res => {
     if (res.code === 0) {
-      message.success('Set the clarity to ' + clarityList[dronePara.claritySelected].label)
+      message.success('将清晰度设置为 ' + clarityList[dronePara.claritySelected].label)
     }
   })
 }
 
 const onSwitch = () => {
   if (dronePara.lensSelected === undefined || dronePara.lensSelected === nonSwitchable) {
-    message.info('The ' + nonSwitchable + ' lens cannot be switched, please select the lens to be switched.', 8)
+    message.info('当前 ' + nonSwitchable + ' 镜头无法切换,请选择要切换的镜头', 8)
     return
   }
   changeLivestreamLens({
@@ -387,7 +387,7 @@
     video_type: dronePara.lensSelected
   }).then(res => {
     if (res.code === 0) {
-      message.success('Switching live camera successfully.')
+      message.success('切换实时摄像头成功')
     }
   })
 }

--
Gitblit v1.9.3