增加新版本web页面

This commit is contained in:
lin
2025-04-28 15:04:06 +08:00
parent 3c1c68d327
commit 113743a065
268 changed files with 45419 additions and 3 deletions

28
web/src/api/play.js Normal file
View File

@@ -0,0 +1,28 @@
import request from '@/utils/request'
// 实时流播放API
export function play(deviceId, channelId) {
return request({
method: 'get',
url: '/api/play/start/' + deviceId + '/' + channelId
})
}
export function stop(deviceId, channelId) {
return request({
method: 'get',
url: '/api/play/stop/' + deviceId + "/" + channelId,
})
}
export function broadcastStart(deviceId, channelId, broadcastMode) {
return request({
method: 'get',
url: '/api/play/broadcast/' + deviceId + '/' + channelId + "?timeout=30&broadcastMode=" + broadcastMode
})
}
export function broadcastStop(deviceId, channelId, ) {
return request({
method: 'get',
url: '/api/play/broadcast/stop/' + deviceId + '/' + channelId
})
}