51 lines
1.8 KiB
JavaScript
51 lines
1.8 KiB
JavaScript
|
//播放器
|
||
|
const http = uni.$u.http;
|
||
|
export function startPlay(deviceId, channelId) {
|
||
|
return http.get('/sip/player/play/' + deviceId + "/" + channelId);
|
||
|
}
|
||
|
|
||
|
export function closeStream(deviceId, channelId, streamId) {
|
||
|
return http.get('/sip/player/closeStream/' + deviceId + "/" + channelId + "/" + streamId);
|
||
|
}
|
||
|
|
||
|
export function playback(deviceId, channelId, query) {
|
||
|
return http.get('/sip/player/playback/' + deviceId + "/" + channelId,{params: query});
|
||
|
}
|
||
|
|
||
|
export function playbackPause(deviceId, channelId, streamId) {
|
||
|
return http.get('/sip/player/playbackPause/' + deviceId + "/" + channelId + "/" + streamId);
|
||
|
}
|
||
|
|
||
|
export function playbackReplay(deviceId, channelId, streamId) {
|
||
|
return http.get('/sip/player/playbackReplay/' + deviceId + "/" + channelId + "/" + streamId);
|
||
|
}
|
||
|
|
||
|
export function playbackSeek(deviceId, channelId, streamId, query) {
|
||
|
return http.get('/sip/player/playbackSeek/' + deviceId + "/" + channelId + "/" + streamId,{params: query});
|
||
|
}
|
||
|
|
||
|
export function playbackSpeed(deviceId, channelId, streamId, query) {
|
||
|
return http.get('/sip/player/playbackSpeed/' + deviceId + "/" + channelId + "/" + streamId,{params: query});
|
||
|
}
|
||
|
|
||
|
// record
|
||
|
export function getDevRecord(deviceId,channelId,query) {
|
||
|
return http.get('/sip/record/devquery/' + deviceId + "/" + channelId,{params: query});
|
||
|
}
|
||
|
|
||
|
export function getRecord(channelId,sn) {
|
||
|
return http.get('/sip/record/query/' + channelId + "/" + sn);
|
||
|
}
|
||
|
|
||
|
export function getPushUrl(deviceId, channelId) {
|
||
|
return http.get('/sip/talk/getPushUrl/' + deviceId + "/" + channelId);
|
||
|
}
|
||
|
|
||
|
export function startBroadcast(deviceId, channelId) {
|
||
|
return http.get('/sip/talk/broadcast/' + deviceId + "/" + channelId);
|
||
|
}
|
||
|
|
||
|
export function stopBroadcast(deviceId, channelId) {
|
||
|
return http.get('/sip/talk/broadcast/stop/' + deviceId + "/" + channelId);
|
||
|
}
|