注释共享屏幕

This commit is contained in:
fuenmao 2024-12-11 15:21:28 +08:00
parent 4ff88ab8ba
commit 81f4d98449
2 changed files with 9 additions and 20 deletions

View File

@ -265,7 +265,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
}
///
Future<void> startScreenCapture() async {
/*Future<void> startScreenCapture() async {
debugPrint("wgs输出===RTC-启动屏幕共享");
state.isOpenShare.value = true;
final shareShareUid = int.tryParse(UserStore.to.userInfoEntity.value!.screenShareId);
@ -286,10 +286,10 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
clientRoleType: ClientRoleType.clientRoleBroadcaster,
));
doHttpSetTvAnchor(UserStore.to.userInfoEntity.value!.screenShareId);
}
}*/
///
Future<void> stopScreenCapture() async {
/*Future<void> stopScreenCapture() async {
debugPrint("wgs输出===RTC-停止屏幕共享");
state.isOpenShare.value = false;
final shareShareUid = int.tryParse(UserStore.to.userInfoEntity.value!.screenShareId);
@ -304,7 +304,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
stopAllEffect: false
));
doHttpSetTvAnchor(UserStore.to.userInfoEntity.value!.uid);
}
}*/
/// ------------------------------------------------------------------------------signalR Socket相关
@ -374,7 +374,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
//
changePageState(0);
//
stopScreenCapture();
// stopScreenCapture();
debugPrint("wgs输出===Socket-关闭发言权限:观众");
@ -723,14 +723,14 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
},
//
onPermissionError: (PermissionType permissionType){
/*onPermissionError: (PermissionType permissionType){
debugPrint("wgs输出===RTC-获取设备权限出错:$permissionType");
if(permissionType == PermissionType.screenCapture){
//
state.isOpenShare.value = false;
stopScreenCapture();
}
}
}*/
),
);
}

View File

@ -320,17 +320,6 @@ class MeetingMainPageState extends State<MeetingMainPage> {
)
: Container()),
//
Visibility(
visible: state.pageState.value == 2,
child: null != state.rctEngine.value
? MeetingMainShareComponent(
rtcEngine: state.rctEngine.value!,
channelId: state.roomNumber.value,
remoteUid: state.remoteUid.value,
)
: Container()),
GestureDetector(
child: Container(
width: 180.w,
@ -494,7 +483,7 @@ class MeetingMainPageState extends State<MeetingMainPage> {
),
///
GestureDetector(
/*GestureDetector(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
@ -525,7 +514,7 @@ class MeetingMainPageState extends State<MeetingMainPage> {
}
}
},
),
),*/
///
GestureDetector(