Live Stream Support (iOS)

We support live stream on iOS by default. And you could also follow the instructions below to enhance the function of live stream.

Support low latency live stream

Install support library

Firstly, you need to install FireworkVideoIVSSupport. Please refer to https://github.com/loopsocial/firework_ios_sdk_ivs_support#installation

Integration

In your iOS project, you need to call FireworkVideoSDK.enableIVSPlayback() in application(:, didFinishLaunchingWithOptions:) -> Bool method.

import FireworkVideo
import FireworkVideoIVSSupport

func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
    FireworkVideoSDK.initializeSDK()
    FireworkVideoSDK.enableIVSPlayback()
    
    return true
}

Support low latency multi-host live stream

Install support library

Firstly, you need to install FireworkVideoAgoraSupport. Please refer to https://github.com/loopsocial/firework_ios_sdk_agora_support#installation

Integration

In your iOS project, you need to call FireworkVideoSDK.enableMultiHostPlayback() in application(:, didFinishLaunchingWithOptions:) -> Bool method.

import FireworkVideo
import FireworkVideoAgoraSupport

func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
    FireworkVideoSDK.initializeSDK()
    FireworkVideoSDK.enableMultiHostPlayback()
    
    return true
}

Use new livestream player design

FireworkVideoSDK.livestreamPlayerDesignVersion = .v2

Last updated

Was this helpful?