Merge remote-tracking branch 'origin/live_sdk' into live_sdk
This commit is contained in:
@@ -369,6 +369,9 @@ public class MoGoLiveManager {
|
||||
* 退出房间
|
||||
*/
|
||||
private void logOutRoom() {
|
||||
if (mExpressEngine == null) {
|
||||
return;
|
||||
}
|
||||
if (!TextUtils.isEmpty(currentRoomId)) {
|
||||
mExpressEngine.logoutRoom(currentRoomId);
|
||||
}
|
||||
@@ -461,7 +464,10 @@ public class MoGoLiveManager {
|
||||
* 停止预览
|
||||
*/
|
||||
private void stopPreview() {
|
||||
ZegoExpressEngine.getEngine().stopPreview();
|
||||
if(mExpressEngine == null){
|
||||
return;
|
||||
}
|
||||
mExpressEngine.stopPreview();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -476,8 +482,11 @@ public class MoGoLiveManager {
|
||||
* 停止推送数据
|
||||
*/
|
||||
private void stopPublishingStream() {
|
||||
if(mExpressEngine == null){
|
||||
return;
|
||||
}
|
||||
// 停止推送
|
||||
ZegoExpressEngine.getEngine().stopPublishingStream();
|
||||
mExpressEngine.stopPublishingStream();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user