Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.65 KB

integration.mdx

File metadata and controls

62 lines (44 loc) · 1.65 KB
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.

Swift Package Manager

Use https://github.com/100mslive/100ms-ios-sdk.git as the package source.

Cocoapods

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

You can integrate `HMSRoomModels` SDK into your project using Swift Package Manager (SPM). Follow these steps:
  1. Open your Xcode project.
  2. Navigate to File > Add Package Dependency.
  3. In the dialog that appears, enter the following URL as the package source: https://github.com/100mslive/100ms-roomkit-models-ios
  4. 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 Background Mode

Enable the checkbox under Background Modes named Audio, AirPlay, and Picture in Picture.

backgroundProcessing

To understand about the background modes check out Background Modes