iOS Broadcast SDK
UZBroadcast is a framework helps you to broadcast livestream
Link to the Source code here: https://github.com/uizaio/uiza-ios-broadcast-sdk

Compatibility

UZBroadcast requires Swift 4.2+ and iOS 9+

Installation

CocoaPods

To integrate UZBroadcast into your Xcode project using CocoaPods, specify it in your Podfile:
Then run the following command:

Livestream

1
let broadcaster = UZBroadcastViewController()
2
let config = UZBroadcastConfig(cameraPosition: .front, videoResolution: ._720, videoBitrate: ._3000, videoFPS: ._30, audioBitrate: ._128Kbps, audioSampleRate: ._44_1khz, adaptiveBitrate: true)
3
broadcaster.prepareForBroadcast(withConfig: config)
4
//...
5
broadcaster.startBroadcast(broadcastURL: BROADCAST_URL)
6
present(broadcaster, animated: true, completion: nil)
Copied!

Screen broadcast

1
let broadcaster = UZScreenBroadcast.shared
2
let config = UZBroadcastConfig(cameraPosition: .front, videoResolution: ._720, videoBitrate: ._3000, videoFPS: ._30, audioBitrate: ._128Kbps, audioSampleRate: ._44_1khz, adaptiveBitrate: true)
3
broadcaster.prepareForBroadcast(withConfig: config)s
4
broadcaster.isMicrophoneEnabled = true
5
//broadcaster.isCameraEnabled = true
6
broadcaster.startBroadcast(broadcastURL: BROADCAST_URL)
Copied!
Remember to add these usage description keys into Info.plist file:
1
<key>NSCameraUsageDescription</key>
2
<string>App needs access to camera for broadcasting</string>
3
<key>NSMicrophoneUsageDescription</key>
4
<string>App needs access to microphone for broadcasting</string>
Copied!

Reference

Support

License

UZBroadcast is released under the BSD license. See LICENSE for details.