The Native SDK for creating iOS applications. The SDK provides an Objective-C API that can be wrapped in Swift for iOS, iPadOS, and tvOS. You may use it to connect, capture, publish, or subscribe to streams using the Dolby.io Streaming Platform.

The package name of the Native SDK for iOS is millicast-native-sdk-version-XCFramework.zip.

📘

Note

If you want to use Streaming APIs on Android and iOS, you can also use the Flutter SDK or the React Native plugin.

Requirements

  • Sign up for a free Dolby.io account.
  • Make sure that you have a working video camera and microphone.
  • Make sure that you use the iOS 14.5 or later.

Adding the SDK to a project

To add the SDK to your project, you can either use Swift Package Manager or CocoaPods.

Swift Package Manager

  1. Go to your project settings in Xcode.

  2. Go to the Package Dependencies tab and click on the + icon to add a new dependency.

  3. In the line edit, enter the following package URL: https://github.com/millicast/millicast-sdk-swift-package. You should see the package appear.

  4. Choose the version you want to use and click on add package.

CocoaPods

  1. Install CocoaPods if you have not already.

  2. Open a terminal in the root of your XCode project.

  3. Type pod init to create a Podfile.

  4. Open the created file in a text editor and add the Millicast SDK as a dependency.

target 'MyProject' do
  platform :ios, '14.5'
  # Comment the next line if you do not want to use dynamic frameworks
  use_frameworks!
  pod 'MillicastSDK' => '1.1.2'
  # Pods for MyProject iOS
end
  1. Type pod install in the terminal to install the SDK.

This step downloads and installs all needed dependencies and creates a .xcworkspace file. From now on, use this file instead of .xcodeproj.

  1. You can update the SDK version in the podfile and then type pod update in the terminal.