VideoUIKit-Flutter
VideoUIKit-Flutter copied to clipboard
layoutType: Layout.floating error on hostcontrol and pin
E/FrameEvents(18167): updateAcquireFence: Did not find frame. D/CCodec (18167): ISConfig not changed D/CCodecConfig(18167): c2 config diff is c2::u32 coded.bitrate.value = 599000
======== Exception caught by gesture =============================================================== The following _TypeError was thrown while handling a gesture: Null check operator used on a null value
When the exception was thrown, this was the stack:
#0 hostControl (package:agora_uikit/controllers/rtm_mute_request.dart:28:41)
#1 _HostControlsState.build.
======== Exception caught by widgets library ======================================================= The following assertion was thrown building: Remote uid can not be null or 0 'package:agora_rtc_engine/src/render/video_view_controller.dart': Failed assertion: line 81 pos 16: 'canvas.uid != null && canvas.uid != 0'
When the exception was thrown, this was the stack:
#2 new VideoViewController.remote (package:agora_rtc_engine/src/render/video_view_controller.dart:81:16)
#3 _FloatingLayoutState._getRemoteViews (package:agora_uikit/src/layout/floating_layout.dart:88:39)
#4 _FloatingLayoutState._viewFloat.
uses:
void initAgoraUikit() async { client = AgoraClient( agoraConnectionData: AgoraConnectionData( appId: appId, channelName:widget.channelName, uid: widget.uid, username: widget.username, tempToken: getTokenAgora() ),
agoraChannelData: AgoraChannelData(
clientRoleType: ClientRoleType.clientRoleBroadcaster,
)
);
await client!.initialize();
}
Expanded( child: Stack( children: [ AgoraVideoViewer( client: client!, layoutType: Layout.floating, enableHostControls: widget.isHost, // Add this to enable host controls showAVState: true,
),
AgoraVideoButtons(
client: client!,
autoHideButtons: true,
autoHideButtonTime: 3,
onDisconnect: (){
Get.back();
},
addScreenSharing: true, // Add this to enable screen sharing
),
],
),
),
@BulbulH Can you please check if you're using the latest version of the UIKit. Also, it would be great if you could share steps to reproduce the error.
@Meherdeep @BulbulH @tadaspetra
Can confirm this is still occurring on agora_uikit: ^1.3.10
════════ Exception caught by widgets library ═══════════════════════════════════ Remote uid can not be null or 0 'package:agora_rtc_engine/src/render/video_view_controller.dart': Failed assertion: line 81 pos 16: 'canvas.uid != null && canvas.uid != 0' ══════════════════════════════════════════════════════════════════
Attempting to pin a user guarantees this error. However, it can also occur without any user interaction at all. This seems to be a common reoccurring issue for a long time now. I believe this should be escalated and prioritized as it is a critical error and makes the solution essentially obsolete.
There has also been minimal activity in this package/repo in a long time. If this package is deprecated, then it should be communicated to the user base so other solutions can be found/created and used instead.