|
@@ -56,6 +56,8 @@ class MeetingPageState extends State<MeetingPage> with WidgetsBindingObserver {
|
|
|
int? meetId;
|
|
|
int quality = TRTCCloudDef.TRTC_AUDIO_QUALITY_DEFAULT;
|
|
|
|
|
|
+ Offset _offset = Offset(0, 0);
|
|
|
+
|
|
|
late ScrollController scrollControl;
|
|
|
@override
|
|
|
initState() {
|
|
@@ -497,7 +499,18 @@ class MeetingPageState extends State<MeetingPage> with WidgetsBindingObserver {
|
|
|
},
|
|
|
child: TRTCCloudVideoView(
|
|
|
key: valueKey,
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
viewType: TRTCCloudDef.TRTC_VideoView_Texture,
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ viewMode: TRTCCloudDef.TRTC_VideoView_Model_Virtual,
|
|
|
|
|
|
textureParam: CustomRender(
|
|
|
userId: item['userId'],
|
|
@@ -507,11 +520,13 @@ class MeetingPageState extends State<MeetingPage> with WidgetsBindingObserver {
|
|
|
: TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SUB,
|
|
|
width: 1080,
|
|
|
height: 1920,
|
|
|
+
|
|
|
+ isSubVideo: false,
|
|
|
),
|
|
|
onViewCreated: (viewId) async {
|
|
|
print('🚀 视图创建完成 viewId: $viewId');
|
|
|
if (item['userId'] == userInfo['userId']) {
|
|
|
- print('🚀 通知 Android native 创建本地预览的 Texture 通道');
|
|
|
+ print('🚀 通知 native 创建本地预览的 Texture 通道');
|
|
|
await trtcCloud.startLocalPreview(isFrontCamera, viewId);
|
|
|
setState(() {
|
|
|
localViewId = viewId;
|
|
@@ -523,7 +538,7 @@ class MeetingPageState extends State<MeetingPage> with WidgetsBindingObserver {
|
|
|
? TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG
|
|
|
: TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SUB,
|
|
|
viewId);
|
|
|
- print('🚀 通知 Android native 创建远程视频的 Texture 通道');
|
|
|
+ print('🚀 通知 native 创建远程视频的 Texture 通道');
|
|
|
print('🚀 远程用户ID: ${item['userId']}');
|
|
|
print('🚀 远程视频流类型: ${item['type']}');
|
|
|
}
|