Uiza Documentation
2022-06-22
2022-06-22
  • Hola! 👋
  • Getting Started
    • Introduction
    • Authentication
    • Errors
    • Quick Starts
      • Live Streaming
      • Video Streaming
    • Pagination
    • Recommended Specifications
    • Sample Streaming Apps
      • NodeJS Live Streaming App
      • Java Live Streaming App
      • Python Live Streaming App
      • How to integrate live streaming into an Android App using Uiza’s Live API
    • Versioning
  • API Reference
    • Live Entities
      • Create a live entity
      • Retrieve a live entity
      • Update a live entity
      • Delete a live entity
      • List all live entities
      • Create a live relay
      • Update a live relay
      • Delete a live relay
    • Video Entities
      • Create a video entity
      • Retrieve a video entity
      • Update a video entity
      • Delete a video entity
      • List all video entities
    • Events
      • Event Types
    • Webhook Endpoints
      • Verifying signatures
      • Create a webhook endpoint
      • Update a webhook endpoint
      • Get a webhook endpoint
      • List all webhook endpoint
  • SDK REFERENCE
    • Introduction
    • Android SDK
      • Android Player SDK
      • Android Broadcast SDK
    • iOS SDK
      • iOS Player SDK
      • iOS Broadcast SDK
    • Web Player SDK
    • Flutter SDK
  • API UPGRADES
    • Release Notes
    • API Changelog
Powered by GitBook
On this page
  • Compatibility
  • Installation
  • CocoaPods
  • Livestream
  • Screen broadcast
  • Reference
  • Support
  • License

Was this helpful?

  1. SDK REFERENCE
  2. iOS SDK

iOS Broadcast SDK

PreviousiOS Player SDKNextWeb Player SDK

Last updated 2 years ago

Was this helpful?

UZBroadcast is a framework helps you to broadcast livestream

Link to the Source code here:

Compatibility

UZBroadcast requires Swift 4.2+ and iOS 9+

Installation

CocoaPods

To integrate UZBroadcast into your Xcode project using , specify it in your Podfile:

Then run the following command:

Livestream

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

Screen broadcast

let broadcaster = UZScreenBroadcast.shared
let config = UZBroadcastConfig(cameraPosition: .front, videoResolution: ._720, videoBitrate: ._3000, videoFPS: ._30, audioBitrate: ._128Kbps, audioSampleRate: ._44_1khz, adaptiveBitrate: true)
broadcaster.prepareForBroadcast(withConfig: config)s
broadcaster.isMicrophoneEnabled = true
//broadcaster.isCameraEnabled = true
broadcaster.startBroadcast(broadcastURL: BROADCAST_URL)

Remember to add these usage description keys into Info.plist file:

<key>NSCameraUsageDescription</key>
<string>App needs access to camera for broadcasting</string>
<key>NSMicrophoneUsageDescription</key>
<string>App needs access to microphone for broadcasting</string>

Reference

Support

License

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

API Reference
namnh@uiza.io
LICENSE
https://github.com/uizaio/snake.sdk.ios-broadcast
CocoaPods
Swift