Merge remote-tracking branch 'origin/live_sdk' into live_sdk
# Conflicts: # foudations/mogo-live/src/main/java/com/mogo/cloud/live/manager/MoGoLiveManager.java
This commit is contained in:
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -26,6 +26,7 @@
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveModulePerSourceSet" value="false" />
|
||||
<option name="useQualifiedModuleNames" value="true" />
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
|
||||
@@ -48,6 +48,7 @@ dependencies {
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
implementation "com.mogo.cloud:tanlu:${MOGO_TANLU_VERSION}"
|
||||
implementation "com.mogo.cloud:realtime:${MOGO_REALTIME_VERSION}"
|
||||
implementation "com.mogo.cloud:realtime:${MOGO_TRAFFICLIVE_VERSION}"
|
||||
} else {
|
||||
implementation project(":modules:mogo-tanlu")
|
||||
implementation project(":modules:mogo-realtime")
|
||||
|
||||
@@ -166,7 +166,7 @@ public class MoGoLiveManager {
|
||||
/**
|
||||
* 事件回调用
|
||||
*/
|
||||
private IZegoEventHandler mEventHandler = new IZegoEventHandler() {
|
||||
private final IZegoEventHandler mEventHandler = new IZegoEventHandler() {
|
||||
|
||||
// 调试错误信息回调
|
||||
@Override
|
||||
@@ -397,7 +397,7 @@ public class MoGoLiveManager {
|
||||
* 停止直播
|
||||
*/
|
||||
public void stopLive() {
|
||||
if (!TextUtils.isEmpty(currentStreamId)) {
|
||||
if (!TextUtils.isEmpty(currentStreamId) && mExpressEngine != null) {
|
||||
mExpressEngine.stopPlayingStream(currentStreamId);
|
||||
}
|
||||
stopPreview();
|
||||
@@ -476,7 +476,6 @@ public class MoGoLiveManager {
|
||||
* 停止观看直播
|
||||
*/
|
||||
public void onDestroyLive() {
|
||||
logOutRoom();
|
||||
destroyEngine();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,15 +87,14 @@ public class TrafficLiveManager implements ILiveProgressListener {
|
||||
requestLiveManager.requestVehicleHeadLive(LIVE_TYPE_CLOSE, liveSn, new IRequestLiveListener() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
MoGoLiveManager.getInstance().stopLive();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
MoGoLiveManager.getInstance().stopLive();
|
||||
callBack.onError(e.getMessage());
|
||||
}
|
||||
});
|
||||
MoGoLiveManager.getInstance().stopLive();
|
||||
surfaceView = null;
|
||||
callBack = null;
|
||||
isLoginSuccess = false;
|
||||
|
||||
Reference in New Issue
Block a user