RtcEngine修改为RtcEngineEx
This commit is contained in:
parent
19c46516f3
commit
674a5f8a53
Binary file not shown.
|
After Width: | Height: | Size: 618 B |
Binary file not shown.
|
After Width: | Height: | Size: 863 B |
Binary file not shown.
|
After Width: | Height: | Size: 362 B |
|
|
@ -201,7 +201,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
|
|||
Future<void> doHttpGetTvAnchor() async {
|
||||
BaseStructureResult res = await getClient().getTvAnchor(state.roomNumber.value);
|
||||
/*var s = 2;
|
||||
// if(res.data!.toString().length != 9){
|
||||
if(res.data!.toString().length != 9){
|
||||
if(s == 2){
|
||||
state.remoteUid.value = "18";
|
||||
setEnableVideo();
|
||||
|
|
@ -222,12 +222,12 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
|
|||
changePageState(1);
|
||||
}*//*
|
||||
}*/
|
||||
Future.delayed(const Duration(milliseconds: 500), () {
|
||||
state.remoteUid.value = "18";
|
||||
setEnableVideo();
|
||||
changePageState(1);
|
||||
});
|
||||
|
||||
state.remoteUid.value = res.data!.toString();
|
||||
if(res.data!.toString().length != 9){
|
||||
Future.delayed(const Duration(milliseconds: 1000), () {
|
||||
changePageState(1);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// --------------------------signalR Socket相关
|
||||
|
|
@ -463,7 +463,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
|
|||
PermissionHandler.requestMicrophonePermission();
|
||||
|
||||
// 创建 RtcEngine 对象
|
||||
state.rctEngine.value = createAgoraRtcEngine();
|
||||
state.rctEngine.value = createAgoraRtcEngineEx();
|
||||
|
||||
// 初始化 RtcEngine,设置频道场景为 channelProfileLiveBroadcasting(直播场景)
|
||||
await state.rctEngine.value?.initialize(RtcEngineContext(
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class MeetingMainState {
|
|||
|
||||
/// 声网相关
|
||||
final String appId = "4a4f7be64fa1404ebda74784fe9ac381";
|
||||
late Rx<RtcEngine?> rctEngine = Rx(null);
|
||||
late Rx<RtcEngineEx?> rctEngine = Rx(null);
|
||||
/// 是否自动订阅所有视频流
|
||||
late RxBool isAutoSubscribeVideo = false.obs;
|
||||
/// 是否自动订阅所有音频流
|
||||
|
|
|
|||
Loading…
Reference in New Issue