From 006f792b1b0dc815a42b42ff457a07f94541a83b Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 7 Dec 2023 13:27:04 +0530 Subject: [PATCH] Updated changelog for room kit --- packages/hms_room_kit/README.md | 40 ++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/packages/hms_room_kit/README.md b/packages/hms_room_kit/README.md index 4486ec380..7de2266e2 100644 --- a/packages/hms_room_kit/README.md +++ b/packages/hms_room_kit/README.md @@ -172,8 +172,42 @@ Please follow the below instructions to test the app for iOS Platform ```json platform :ios, '12.0' ``` +2. Allow camera, recording audio and internet permissions by adding the below snippet to the `ios/Runner/info.plist` file. -2. To add PIP support in your iOS app: +
+ ```xml section=iosPermissions + NSMicrophoneUsageDescription + {YourAppName} wants to use your microphone + + NSCameraUsageDescription + {YourAppName} wants to use your camera + + NSLocalNetworkUsageDescription + {YourAppName} App wants to use your local network + + NSBluetoothAlwaysUsageDescription + {YourAppName} needs access to bluetooth to connect to nearby devices. + ``` + +3. Add the below snippet to the `ios/Podfile` in post_install section: + + ```json + target.build_configurations.each do |config| + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [ + '$(inherited)', + ## dart: PermissionGroup.camera + 'PERMISSION_CAMERA=1', + + ## dart: PermissionGroup.microphone + 'PERMISSION_MICROPHONE=1', + + ## dart: PermissionGroup.bluetooth + 'PERMISSION_BLUETOOTH=1', + ] + end + ``` + +4. To add PIP support in your iOS app: - Minimum Requirements: - Minimum iOS version required to support PiP is iOS 15 @@ -186,9 +220,9 @@ After you receive permission from Apple, add the Entitlement to your app by open ![Entitlements](https://www.100ms.live/docs/docs/v2/flutter-multitasking-camera-entitlement.png) -3. To add screen share support in iOS app, checkout the docs [here](https://www.100ms.live/docs/flutter/v2/how-to-guides/set-up-video-conferencing/screen-share#ios-setup) +5. To add screen share support in iOS app, checkout the docs [here](https://www.100ms.live/docs/flutter/v2/how-to-guides/set-up-video-conferencing/screen-share#ios-setup) -4. Pass the `iOSScreenshareConfig` in `HMSPrebuiltOptions` parameter of `HMSPrebuilt` widget to enable screen share in your app. +6. Pass the `iOSScreenshareConfig` in `HMSPrebuiltOptions` parameter of `HMSPrebuilt` widget to enable screen share in your app. ```dart // Pass the correct App Group & Preferred Extension parameters in HMSIOSScreenshareConfig class.