Browse Source

视频相关

Lita-Tako 5 months ago
parent
commit
e87f11d412
2 changed files with 5 additions and 1 deletions
  1. 4 0
      src/api/previewPlayback/index.js
  2. 1 1
      src/components/video/Live.vue

+ 4 - 0
src/api/previewPlayback/index.js

@@ -5,3 +5,7 @@ const request = (url, ...arg) => baseRequest(`/previewPlayback` + url, ...arg)
5
 export const getPreview = (query) => {
5
 export const getPreview = (query) => {
6
 	return request('/getPreview', query, 'get')
6
 	return request('/getPreview', query, 'get')
7
 }
7
 }
8
+
9
+export const controlling = (data) => {
10
+	return request('/controlling', data, 'get')
11
+}

+ 1 - 1
src/components/video/Live.vue

@@ -1,6 +1,6 @@
1
 <!-- 实时视频监控 -->
1
 <!-- 实时视频监控 -->
2
 <script setup>
2
 <script setup>
3
-	import { getPreview } from '@/api/previewPlayback'
3
+	import { getPreview, controlling } from '@/api/previewPlayback'
4
 	import { useRoute } from 'vue-router'
4
 	import { useRoute } from 'vue-router'
5
 	import commonSelect from '@/components/CommonSelector/index.vue'
5
 	import commonSelect from '@/components/CommonSelector/index.vue'
6
 	import api from '@/api/orgInfo/info'
6
 	import api from '@/api/orgInfo/info'