-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hosting view in view hierarchy for platform view: 0 [BUG] #112
Comments
This error should not cause any problem in the running of the UIKit. Is there something that is not working for you properly? |
when i click join import 'package:flutter/material.dart'; import 'package:agora_rtc_engine/agora_rtc_engine.dart'; const String appId = "756d0451e027460dbb9212a2f46c141a"; class MyApp extends StatefulWidget { @OverRide class _MyAppState extends State { String token = "9088f484799548efba2ac5f987c63df9"; bool _isHost = bool _isJoined = false; // Indicates if the local user has joined the channel @OverRide @OverRide showMessage(String message) { Future setupVideoSDKEngine() async {
} void join() async {
} void leave() { Widget _videoPanel() { // Set the client role when a radio button is selected @OverRide |
@mohamedELamine Looks like you're using the agora_rtc_engine package and not the UIKit. For any issue with the core SDK please submit an issue here |
when I use agora Uikit, I found this Error
E/FrameEvents(21365): updateAcquireFence: Did not find frame.
this is code:
import 'package:agora_uikit/agora_uikit.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@OverRide
State createState() => _MyAppState();
}
class _MyAppState extends State {
final AgoraClient client = AgoraClient(
agoraConnectionData: AgoraConnectionData(
appId: "My appId",
channelName: "test",
username: "user",
),
enabledPermission: [Permission.camera, Permission.microphone],
agoraChannelData: AgoraChannelData(
channelProfileType: ChannelProfileType.channelProfileLiveBroadcasting,
clientRoleType: ClientRoleType.clientRoleBroadcaster,
),
);
@OverRide
void initState() {
super.initState();
initAgora();
}
void initAgora() async {
await client.initialize();
}
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Agora VideoUIKit'),
centerTitle: true,
),
body: SafeArea(
child: Stack(
children: [
AgoraVideoViewer(
client: client,
layoutType: Layout.floating,
floatingLayoutContainerHeight: 100,
floatingLayoutContainerWidth: 100,
showNumberOfUsers: true,
showAVState: true,
enableHostControls: true, // Add this to enable host controls
),
AgoraVideoButtons(
client: client,
enabledButtons: [
BuiltInButtons.toggleMic,
BuiltInButtons.callEnd,
BuiltInButtons.switchCamera
],
)
],
),
),
),
);
}
}
The text was updated successfully, but these errors were encountered: