trying stuff with button and such

This commit is contained in:
talksik
2023-06-30 17:05:35 -07:00
parent 67b82e2261
commit deb4b41de1
+7 -2
View File
@@ -77,14 +77,19 @@ class _MyHomePageState extends State<MyHomePage> {
);
final room = await LiveKitClient.connect("ws://localhost:7880", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODgyNDk3NzEsImlzcyI6ImRldmtleSIsIm5hbWUiOiJ1c2VyMSIsIm5iZiI6MTY4ODE2MzM3MSwic3ViIjoidXNlcjEiLCJ2aWRlbyI6eyJyb29tIjoibXktZmlyc3Qtcm9vbSIsInJvb21Kb2luIjp0cnVlfX0.HLDtRZbgca9UTVjV0d8Ms1ukv_eCH11AoCqyN_fyt88", roomOptions: roomOptions);
room.participants.forEach((key, value) {
print(value.identity);
});
try {
// video will fail when running in ios simulator
await room.localParticipant?.setCameraEnabled(true);
await room.localParticipant?.setCameraEnabled(false);
} catch (error) {
print('Could not publish video, error: $error');
}
await room.localParticipant?.setMicrophoneEnabled(true);
await room.localParticipant?.setMicrophoneEnabled(false);
}
@override