From 8a3acd57eefc385f71776ab4b88466901c7057b2 Mon Sep 17 00:00:00 2001 From: JiangQiming <291854119@qq.com> Date: Thu, 2 Mar 2023 20:23:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/media/channel.ts | 4 +- src/components/Player/index.vue | 25 +++-- src/components/Player/mediaTool.vue | 44 ++++++-- src/views/media/Device/Channel/Live/index.vue | 106 ++++++++++++++++-- src/views/media/Device/Channel/index.vue | 3 +- 5 files changed, 153 insertions(+), 29 deletions(-) diff --git a/src/api/media/channel.ts b/src/api/media/channel.ts index 027faf8c..b603cd03 100644 --- a/src/api/media/channel.ts +++ b/src/api/media/channel.ts @@ -1,6 +1,6 @@ import server from '@/utils/request'; import { LocalStore } from '@/utils/comm'; -import { TOKEN_KEY } from '@/utils/variable'; +import { BASE_API_PATH, TOKEN_KEY } from '@/utils/variable'; export default { // 列表 @@ -19,7 +19,7 @@ export default { // ========== 视频播放 ========== // 开始直播 ptzStart: (deviceId: string, channelId: string, type: string) => - `/media/device/${deviceId}/${channelId}/live.${type}?:X_Access_Token=${LocalStore.get(TOKEN_KEY)}`, + `${BASE_API_PATH}/media/device/${deviceId}/${channelId}/live.${type}?:X_Access_Token=${LocalStore.get(TOKEN_KEY)}`, // 云台控制-停止 ptzStop: (deviceId: string, channelId: string) => server.post(`/media/device/${deviceId}/${channelId}/_ptz/STOP`), diff --git a/src/components/Player/index.vue b/src/components/Player/index.vue index a23db048..1eff1f56 100644 --- a/src/components/Player/index.vue +++ b/src/components/Player/index.vue @@ -1,25 +1,36 @@ - - diff --git a/src/components/Player/mediaTool.vue b/src/components/Player/mediaTool.vue index 64a2b6ab..c5f707d0 100644 --- a/src/components/Player/mediaTool.vue +++ b/src/components/Player/mediaTool.vue @@ -2,16 +2,32 @@ - +