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