title | nav |
---|---|
Integrating The SDK |
3.1 |
<Tabs id="sample-code" items={["UIKit", "SwiftUI"]} />
HMSSDK is distributed via [Cocoapods](https://cocoapods.org/) and Swift Package Manager.Use https://github.com/100mslive/100ms-ios-sdk.git as the package source.
Add the pod 'HMSSDK'
to your Podfile as follows:
// Podfile
platform :ios, '12.0'
target 'MyAwesomeApp' do
use_frameworks!
pod 'HMSSDK'
end
then run pod install --repo-update
- Open your Xcode project.
- Navigate to File > Add Package Dependency.
- In the dialog that appears, enter the following URL as the package source: https://github.com/100mslive/100ms-roomkit-models-ios
- Click Next and follow the prompts to add the package to your project.
Add the entitlements for video, audio and network access to your Info.plist
<key>NSCameraUsageDescription</key>
<string>Allow access to camera to enable video calling.</string>
<key>NSLocalNetworkUsageDescription</key>
<string>Allow access to local network to enable video calling.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow access to mic to enable video calling.</string>
Enable the checkbox under Background Modes named Audio, AirPlay, and Picture in Picture.
To understand about the background modes check out Background Modes