Note about iOS screen sharing in README (#145)

This commit is contained in:
David Zhao
2022-08-14 09:28:07 -07:00
committed by GitHub
parent 1bdf37a8a5
commit 02e490ddec
+9 -1
View File
@@ -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: <version>
@@ -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
</manifest>
```
#### 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.