@@ -862,15 +862,18 @@ class WebRtcApe extends Emiter {
});
}
//调用媒体服务停止录制
stopRecordingMedia() {
//192.168.31.8:3000/recordInfo/stopRecording/
if (!GlobalConfig.stopRecordingInterfaces) {
loger.log("调用服务器端开启录制->失败->接口地址无效");
/*
* 切换音视频的录制状态
* */
changeMediaRecordStatus(_params) {
if (!GlobalConfig.recordInterfaces||!_params) {
loger.warn("切换音视频的录制状态->失败->接口地址无效",_params);
return;
}
let url = GlobalConfig.locationProtocol + GlobalConfig.stopRecordingInterfaces;
let data = this.packMediaInfoData(WebRtcApe.RECORD_STATUS_2);
loger.warn("切换音视频的录制状态->"+_params);
let url = GlobalConfig.locationProtocol + GlobalConfig.recordInterfaces;
let curTimestamp = new Date().getTime();
let data = `appId=${GlobalConfig.appId}&channel=${GlobalConfig.channelId}&channelKey=${GlobalConfig.appCertificate}&uid=${GlobalConfig.userUid}&status=${_params.status}&userId=${GlobalConfig.userId}&userName=${GlobalConfig.userName}&userRole=${GlobalConfig.userRole}×tamp=${curTimestamp}&recordTimestamp=${GlobalConfig.recordTimestamp}`;
fetch(encodeURI(url), {
method: 'POST',
headers: {
...
...
@@ -883,19 +886,19 @@ class WebRtcApe extends Emiter {