From deb4b41de1d964a3daf38e04b0d6e3ffd1c97432 Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 30 Jun 2023 17:05:35 -0700 Subject: [PATCH] trying stuff with button and such --- lib/main.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 26b697c..58476df 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -77,14 +77,19 @@ class _MyHomePageState extends State { ); 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