From 02e490ddec0600681992f17bca6199f5064bc3ff Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sun, 14 Aug 2022 09:28:07 -0700 Subject: [PATCH] Note about iOS screen sharing in README (#145) --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5db835..84c5162 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ We built a multi-user conferencing app as an example in the [example/](example/) Include this package to your `pubspec.yaml` ```yaml - --- dependencies: livekit_client: @@ -123,10 +122,14 @@ await room.localParticipant.setMicrophoneEnabled(true); ### Screen sharing +Screen sharing is supported across all platforms. You can enable it with: + ```dart room.localParticipant.setScreenShareEnabled(true); ``` +#### Android + On Android, you would have to define a foreground service in your AndroidManifest.xml. ```xml title="AndroidManifest.xml" @@ -142,6 +145,11 @@ On Android, you would have to define a foreground service in your AndroidManifes ``` +#### iOS + +On iOS, a broadcast extension is needed in order to capture screen content from +other apps. See [setup guide](https://github.com/flutter-webrtc/flutter-webrtc/wiki/iOS-Screen-Sharing#broadcast-extension-quick-setup) for instructions. + ### Advanced track manipulation The setCameraEnabled/setMicrophoneEnabled helpers are wrappers around the Track API.