增加新版本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

34
web/src/api/playback.js Normal file
View File

@@ -0,0 +1,34 @@
import request from '@/utils/request'
// 回放流播放API
export function play([deviceId, channelId, startTime, endTime]) {
return request({
method: 'get',
url: '/api/playback/start/' + deviceId + '/' + channelId + '?startTime=' + startTime + '&endTime=' + endTime
})
}
export function resume(streamId) {
return request({
method: 'get',
url: '/api/playback/resume/' + streamId
})
}
export function pause(streamId) {
return request({
method: 'get',
url: '/api/playback/pause/' + streamId
})
}
export function setSpeed([streamId, speed]) {
return request({
method: 'get',
url: `/api/playback/speed/${streamId}/${speed}`
})
}
export function stop(deviceId, channelId, streamId) {
return request({
method: 'get',
url: '/api/playback/stop/' + deviceId + '/' + channelId + '/' + streamId
})
}