mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2025-09-26 21:15:56 +08:00
29 lines
742 B
JavaScript
29 lines
742 B
JavaScript
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
|
|
})
|
|
}
|