Compare commits
4 Commits
509372d214
...
e1542212aa
| Author | SHA1 | Date |
|---|---|---|
|
|
e1542212aa | |
|
|
79d8d0a437 | |
|
|
a113684567 | |
|
|
437f98772d |
|
|
@ -608,6 +608,8 @@ class MeetingMainLogic extends GetxController with RequestToolMixin {
|
||||||
// 打开用户音量回调
|
// 打开用户音量回调
|
||||||
await state.rctEngine.value?.enableAudioVolumeIndication(
|
await state.rctEngine.value?.enableAudioVolumeIndication(
|
||||||
interval: 200, smooth: 3, reportVad: true);
|
interval: 200, smooth: 3, reportVad: true);
|
||||||
|
// 在发送端设置双流模式并设置视频小流
|
||||||
|
await state.rctEngine.value?.setDualStreamMode(mode: SimulcastStreamMode.enableSimulcastStream);
|
||||||
|
|
||||||
joinMeetingToRtc();
|
joinMeetingToRtc();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -164,22 +164,6 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
/// 结束发言
|
|
||||||
Visibility(
|
|
||||||
visible: state.isSpeak.value,
|
|
||||||
child: GestureDetector(
|
|
||||||
child: Image.asset(
|
|
||||||
'assets/images/meeting_main_hang_up.png',
|
|
||||||
width: 22.w,
|
|
||||||
height: 22.h,
|
|
||||||
),
|
|
||||||
onTap: () {
|
|
||||||
logic.cancelSpeak();
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(width: 16.w),
|
|
||||||
|
|
||||||
/// 退出会议
|
/// 退出会议
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
|
|
@ -288,9 +272,12 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
)
|
)
|
||||||
: Container()),
|
: Container()),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 180.w,
|
width: 200.w,
|
||||||
height: 40.h,
|
height: 40.h,
|
||||||
margin:
|
margin:
|
||||||
const EdgeInsets.only(left: 20, bottom: 40),
|
const EdgeInsets.only(left: 20, bottom: 40),
|
||||||
|
|
@ -334,6 +321,33 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
.chatController.position.maxScrollExtent);
|
.chatController.position.maxScrollExtent);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
),
|
||||||
|
|
||||||
|
Visibility(
|
||||||
|
visible: state.isSpeak.value,
|
||||||
|
child: GestureDetector(
|
||||||
|
child: Container(
|
||||||
|
width: 82.w,
|
||||||
|
height: 40.h,
|
||||||
|
margin: const EdgeInsets.only(left: 12, bottom: 40,right: 20),
|
||||||
|
alignment: Alignment.center,
|
||||||
|
decoration: const BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(99)),
|
||||||
|
color: ColorUtil.Color_255_69_69
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
'结束发言',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14.sp,
|
||||||
|
color: ColorUtil.Color_255_255_255),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
logic.cancelSpeak();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -742,9 +756,15 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
child: GestureDetector(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: ColorUtil.Color_57_57_57_08,
|
color: ColorUtil.Color_57_57_57_08,
|
||||||
))
|
),
|
||||||
|
onTap: (){
|
||||||
|
logic.changeMeetingInfoState(false);
|
||||||
|
},
|
||||||
|
)
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
@ -757,8 +777,13 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
child: GestureDetector(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: ColorUtil.Color_57_57_57_08,
|
color: ColorUtil.Color_57_57_57_08,
|
||||||
|
),
|
||||||
|
onTap: (){
|
||||||
|
logic.changeMeetingAudioState(false);
|
||||||
|
},
|
||||||
)),
|
)),
|
||||||
Container(
|
Container(
|
||||||
color: ColorUtil.Color_57_57_57_08,
|
color: ColorUtil.Color_57_57_57_08,
|
||||||
|
|
@ -777,8 +802,13 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Container(
|
child: GestureDetector(
|
||||||
|
child:Container(
|
||||||
color: ColorUtil.Color_57_57_57_08,
|
color: ColorUtil.Color_57_57_57_08,
|
||||||
|
),
|
||||||
|
onTap: (){
|
||||||
|
logic.changeMeetingAudioState(false);
|
||||||
|
},
|
||||||
))
|
))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
@ -1479,7 +1509,8 @@ class MeetingMainPageState extends State<MeetingMainPage> {
|
||||||
rtcEngine: state.rctEngine.value!,
|
rtcEngine: state.rctEngine.value!,
|
||||||
canvas: VideoCanvas(
|
canvas: VideoCanvas(
|
||||||
uid: int.tryParse(state.remoteUid.value),
|
uid: int.tryParse(state.remoteUid.value),
|
||||||
setupMode: VideoViewSetupMode.videoViewSetupAdd),
|
setupMode: VideoViewSetupMode.videoViewSetupAdd,
|
||||||
|
renderMode: state.remoteUid.value.length == 9 ? RenderModeType.renderModeFit : RenderModeType.renderModeHidden),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Container(
|
: Container(
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,8 @@ class ColorUtil {
|
||||||
|
|
||||||
static const Color_16_19_13 = Color.fromRGBO(16, 19, 13, 1);
|
static const Color_16_19_13 = Color.fromRGBO(16, 19, 13, 1);
|
||||||
|
|
||||||
|
static const Color_255_69_69 = Color.fromRGBO(255, 69, 69, 1);
|
||||||
|
|
||||||
/// 十六进制颜色,
|
/// 十六进制颜色,
|
||||||
/// hex, 十六进制值,例如:0xffffff,
|
/// hex, 十六进制值,例如:0xffffff,
|
||||||
/// alpha, 透明度 [0.0,1.0]
|
/// alpha, 透明度 [0.0,1.0]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue