mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
开源版本,视频直播功能
This commit is contained in:
105
vue/src/api/iot/channel.js
Normal file
105
vue/src/api/iot/channel.js
Normal file
@@ -0,0 +1,105 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询监控设备通道信息列表
|
||||
export function listChannel(query) {
|
||||
return request({
|
||||
url: '/sip/channel/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询监控设备通道信息详细
|
||||
export function getChannel(channelId) {
|
||||
return request({
|
||||
url: '/sip/channel/' + channelId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增监控设备通道信息
|
||||
export function addChannel(createNum, data) {
|
||||
return request({
|
||||
url: '/sip/channel/' + createNum,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改监控设备通道信息
|
||||
export function updateChannel(data) {
|
||||
return request({
|
||||
url: '/sip/channel',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除监控设备通道信息
|
||||
export function delChannel(channelId) {
|
||||
return request({
|
||||
url: '/sip/channel/' + channelId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 开始播放
|
||||
export function startPlay(deviceId, channelId) {
|
||||
return request({
|
||||
url: '/sip/player/play/' + deviceId + "/" + channelId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取流信息
|
||||
export function getStreaminfo(deviceId, channelId) {
|
||||
return request({
|
||||
url: '/sip/player/playstream/' + deviceId + "/" + channelId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function playback(deviceId, channelId, query) {
|
||||
return request({
|
||||
url: '/sip/player/playback/' + deviceId + "/" + channelId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function closeStream(deviceId, channelId, streamId){
|
||||
return request({
|
||||
url: '/sip/player/closeStream/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackPause(deviceId, channelId, streamId) {
|
||||
return request({
|
||||
url: '/sip/player/playbackPause/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackReplay(deviceId, channelId, streamId) {
|
||||
return request({
|
||||
url: '/sip/player/playbackReplay/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackSeek(deviceId, channelId, streamId, query) {
|
||||
return request({
|
||||
url: '/sip/player/playbackSeek/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function playbackSpeed(deviceId, channelId, streamId, query) {
|
||||
return request({
|
||||
url: '/sip/player/playbackSpeed/' + deviceId + "/" + channelId + "/" + streamId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
52
vue/src/api/iot/mediaServer.js
Normal file
52
vue/src/api/iot/mediaServer.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询流媒体服务器配置列表
|
||||
export function listmediaServer(query) {
|
||||
return request({
|
||||
url: '/sip/mediaserver/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流媒体服务器配置详细
|
||||
export function getmediaServer() {
|
||||
return request({
|
||||
url: '/sip/mediaserver/',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流媒体服务器配置
|
||||
export function addmediaServer(data) {
|
||||
return request({
|
||||
url: '/sip/mediaserver',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流媒体服务器配置
|
||||
export function updatemediaServer(data) {
|
||||
return request({
|
||||
url: '/sip/mediaserver',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流媒体服务器配置
|
||||
export function delmediaServer(id) {
|
||||
return request({
|
||||
url: '/sip/mediaserver/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function checkmediaServer(query) {
|
||||
return request({
|
||||
url: '/sip/mediaserver/check' ,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
88
vue/src/api/iot/record.js
Normal file
88
vue/src/api/iot/record.js
Normal file
@@ -0,0 +1,88 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getDevRecord(deviceId,channelId,query) {
|
||||
return request({
|
||||
url: '/sip/record/devquery/' + deviceId + "/" + channelId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getRecord(channelId,sn) {
|
||||
return request({
|
||||
url: '/sip/record/query/' + channelId + "/" + sn,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecord(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByDate(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/date/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByStream(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/stream/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByApp(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/app/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByFile(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/file/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getServerRecordByDevice(query) {
|
||||
return request({
|
||||
url: '/sip/record/serverRecord/device/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function startPlayRecord(deviceId, channelId) {
|
||||
return request({
|
||||
url: '/sip/record/play/' + deviceId + "/" + channelId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function startDownloadRecord(deviceId, channelId, query) {
|
||||
return request({
|
||||
url: '/sip/record/download/' + deviceId + "/" + channelId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function uploadRecord(query) {
|
||||
return request({
|
||||
url: '/sip/record/upload',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
34
vue/src/api/iot/sipConfig.js
Normal file
34
vue/src/api/iot/sipConfig.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询sip系统配置详细
|
||||
export function getSipconfig(productId,isDefault) {
|
||||
return request({
|
||||
url: '/sip/sipconfig/' + productId+'/'+isDefault,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增sip系统配置
|
||||
export function addSipconfig(data) {
|
||||
return request({
|
||||
url: '/sip/sipconfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改sip系统配置
|
||||
export function updateSipconfig(data) {
|
||||
return request({
|
||||
url: '/sip/sipconfig',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function delSipconfigByProductId(productId) {
|
||||
return request({
|
||||
url: '/sip/sipconfig/product/' + productId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
74
vue/src/api/iot/sipdevice.js
Normal file
74
vue/src/api/iot/sipdevice.js
Normal file
@@ -0,0 +1,74 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询监控设备列表
|
||||
export function listSipDevice(query) {
|
||||
return request({
|
||||
url: '/sip/device/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function listSipDeviceChannel(deviceId) {
|
||||
return request({
|
||||
url: '/sip/device/listchannel/'+ deviceId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询监控设备详细
|
||||
export function getSipDevice(deviceId) {
|
||||
return request({
|
||||
url: '/sip/device/' + deviceId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增监控设备
|
||||
export function addSipDevice(data) {
|
||||
return request({
|
||||
url: '/sip/device',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改监控设备
|
||||
export function updateSipDevice(data) {
|
||||
return request({
|
||||
url: '/sip/device',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除监控设备
|
||||
export function delSipDevice(deviceId) {
|
||||
return request({
|
||||
url: '/sip/device/' + deviceId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function delSipDeviceBySipId(sipId) {
|
||||
return request({
|
||||
url: '/sip/device/sipid/' + sipId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function ptzdirection(deviceId,channelId,data) {
|
||||
return request({
|
||||
url: '/sip/ptz/direction/'+ deviceId + "/" + channelId,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function ptzscale(deviceId,channelId,data) {
|
||||
return request({
|
||||
url: '/sip/ptz/scale/'+ deviceId + "/" + channelId,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user