A supporting library for the Agora Interactive Live Streaming SDK for use with FireworkVideo live stream multi-host playback. Using this library enables low latency multi-host live streaming.
This supporting library assumes basic familiarity with Agora. If needed, read over the Agora Documentation before diving in.
This supporting library is intended to be used alongside FireworkVideo SDK. Read over the FireworkVideo SDK documentation and sample code to ensure smooth integration with Agora SDK.
Ensure your Firework content is configured and apply correct styling and/or layout before integrating the Agora supporting library. This will ensure your testing conditions will match your production environment.
- Add FireworkVideoSDK to your project; follow the Firework Video installation instructions.
- Add FireworkVideoAgoraSupporting library to your project; follow the instructions below.
- Swift Package Manager is the recommended way to install the FireworkVideo Agora Supporting Library.
Note: you can also install the library via Cocoapods
pod 'FireworkVideoAgoraSupport'
Note: alternatively you can download the binary directly and install it manually.
- Add project permissions to your Info.plist for microphone (NSMicrophoneUsageDescription) and camera usage (NSCameraUsageDescription)
Set up the SDK alongside FireworkVideo as soon as possible after app launch. See below code snippet.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// First initialize the FireworkVideoSDK
FireworkVideoSDK.initializeSDK()
FireworkVideoSDK.enableMultiHostPlayback()
return true
}
After both SDKs are initialized, FireworkVideo will make internal requests to the supporting library as determined by the Firework configuration for your App ID.