Skip to main content
Version: 8.10.0

Getting started with Millicast for iOS

Dolby Millicast delivers broadcast quality live streaming at sub-second latency, enabling interactivity and fan engagement. Using the THEOplayer Millicast integration, you can play your Millicast streams directly through THEOplayer.

Usage

  1. Follow our Getting Started guide to set up THEOplayer in your iOS app.
  2. Add the THEOplayer-Integration-Millicast dependency to your project.
  3. Add the THEOplayerMillicastIntegration to the player.
  4. Add a MillicastSource to your player's source.

Add the THEOplayer-Integration-Millicast dependency

Add the Millicast integration as a dependency in to your project:

.package(url: "https://github.com/theoplayer/theoplayer-sdk-spm.git", from: "8.10.0")
.product(name: "THEOplayerMillicastIntegration", package: "theoplayer-sdk-spm")

Add the Millicast integration to the player

First import the integration into your project:

import THEOplayerMillicastIntegration

Create and add the THEOplayerMillicastIntegration to your THEOplayer:

let millicastIntegration = MillicastIntegrationFactory.createIntegration()
theoplayer.addIntegration(millicastIntegration)

Add a MillicastSource

After setting up a THEOplayer in your app, set its source to a SourceDescription containing a MillicastSource. You'll need a Millicast account ID and stream name to identify your Millicast stream:

let millicastSource = SourceDescription(source: MillicastSource(streamName: "multiview", accountID: "k9Mwad"))
theoplayer.source = millicastSource

Make sure to replace the above streamName and accountID with your own. If your source is a secure stream, then you will also need to add a subscriber token to the source as follows:

MillicastSource(streamName: ..., accountID: ..., token: "Your token")

More information