index.js 773 Bytes
import req from '@/api/http.js'
const tourApi = {
	// 获取通道的视频直播与回放地址
	getLiveAndPlaybackAddress(params, config){
	  return req('GET', `/patrol/patrolDeviceChannel/getLiveAndPlaybackAddress`, params, config)
	},
	// 获取直播回放地址
	getThroughVideoUrl(params, config){
	  return req('POST', `/patrol/through/video/url`, params, config)
	},
    // 云控制
    ptzStart(params,config) {
        return req('PUT', `/patrol/through/ptzStart`, params, config)
    },
    ptzStop(params,config) {
        return req('PUT', `/patrol/through/ptzStop`, params, config)
    },
	// 获取设备录像记录
	getThroughVideoRecord(params, config){
	  return req('POST', `/patrol/through/video/record`, params, config)
	},
}
export default tourApi;