增加新版本web页面
This commit is contained in:
34
web/src/api/playback.js
Normal file
34
web/src/api/playback.js
Normal 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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user