加入了多房间登录操作来解决同一设备推流同时拉流
This commit is contained in:
@@ -21,8 +21,10 @@ public class LivePushActivity extends BaseLiveActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
// 初始化直播流管理
|
||||
liveStreamManager = LiveStreamManagerImpl.getInstance(this,
|
||||
liveStreamManager = LiveStreamManagerImpl.getInstance(this.getApplication(),
|
||||
MoGoAiCloudClientConfig.getInstance().getThirdPartyDeviceId());
|
||||
|
||||
// 设置状态回调
|
||||
liveStreamManager.setLiveStatusChangeCallback(new ILiveStatusListener() {
|
||||
@Override
|
||||
public void onChange(String camId, int status) {
|
||||
@@ -67,6 +69,11 @@ public class LivePushActivity extends BaseLiveActivity {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void togglePlay(boolean isPlay) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
||||
Reference in New Issue
Block a user