Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
pbj-apps/Live-ios-sdk
Live Player
Stream your PBJ.live content from your iOS App.
Installation
1. Import the Live-ios-sdk package
Xcode
> File
> Swift packages
> Add Package Dependency
https://github.com/pbj-apps/Live-ios-sdk
2. Initialize the LivePlayerSDK with your credentials on App start
A good place to do this is typically the AppDelegate
.
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)
Example App
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 ❤️
Github
link |
Stars: 0 |
Last commit: 2 days ago |