李勇

停止屏幕共享调用接口的时候需要判断当前MCU连接状态

... ... @@ -32,7 +32,7 @@ import QuestionApe from 'apes/QuestionApe';
import UTF8 from 'utf-8';
let loger = Loger.getLoger('McuClient');
let _sdkInfo = {"version": "v1.31.11.20170613", "author": "www.3mang.com"};
let _sdkInfo = {"version": "v1.32.0.20170613", "author": "www.3mang.com"};
//APE
let _sass;
... ...
... ... @@ -243,10 +243,10 @@ class VideoApe extends Ape {
//停止桌面共享推流
stopPublishScreenShare(_param) {
loger.log('停止桌面共享推流->',_param);
//if(!this.mcu.connected){
// loger.warn(GlobalConfig.getCurrentStatus());
// return {"code": ApeConsts.RETURN_FAILED, "data": "已经断开连接"};
//}
if(!this.mcu.connected){
loger.warn(GlobalConfig.getCurrentStatus());
return {"code": ApeConsts.RETURN_FAILED, "data": "已经断开连接"};
}
let channelInfo=this.shareApe.getDefaultChannelInfo();
channelInfo.status=ApeConsts.CHANNEL_STATUS_RELEASED;
this.sendTableUpdateHandler(channelInfo);
... ...