| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import request from '@/utils/request'
- import { update } from './base'
- // 获取摄像头人流量
- export function getStatistic (params) {
- return request({
- url: `/camera/statistic`,
- method: 'GET',
- params
- })
- }
- // 获取摄像头当前的视频参数
- export function getVideoInfo (deviceId) {
- return request({
- url: `/camera/${deviceId}/video/param`,
- method: 'GET'
- })
- }
- // 获取摄像头可用的视频参数
- export function getAvailableParams () {
- return request({
- url: `/camera/video/availableParam`,
- method: 'GET'
- })
- }
- // 设置摄像头参数
- export function setCameraParams (data) {
- const { deviceId, ...params } = data
- return update({
- url: `/camera/${deviceId}/video/param`,
- method: 'PUT',
- data: params
- })
- }
- // 摄像头在线状态
- export function isOnline (identifier, options) {
- return request({
- url: `/camera/${identifier}/online`,
- method: 'GET',
- ...options
- })
- }
- // 直播流详情
- export function getStreamDetail (stream) {
- return request({
- url: `/${stream}/detail`,
- method: 'GET'
- })
- }
|