Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Stream your PBJ.live content from your iOS App.
1. Import the Live-ios-sdk package
Swift packages >
Add Package Dependency
2. Initialize the LivePlayerSDK with your credentials on App start
A good place to do this is typically the
import Live // [...] LiveSDK.initialize(withDomain: "YOUR_DOMAIN", apiKey: "YOUR_API_KEY")
3. Create a LivePlayerViewController
let livePlayerVC = LivePlayerViewController() // Optionally pass a liveStreamId. livePlayerVC.delegate = self
4. Present it like you would any `UIViewController
present(livePlayerVC, animated: true, completion: nil)
Checkout the example App provided in this repository to see a typical integration.
Got a question? Found an issue?
Create a github issue and we'll help you from there ❤️