Skip to content

This is WebRTC framework for iOS that SendBird builds on top of Google WebRTC

License

Notifications You must be signed in to change notification settings

sendbird/sendbird-webrtc-ios

Repository files navigation

WebRTC framework for iOS

Platform CocoaPods compatible Carthage compatible Swift Package Manager compatible BSD License

Introduction

This is WebRTC framework for iOS that SendBird builds on top of Google WebRTC. It includes additional features required for SendBirdCall SDK, such as enabled bitcode and VP9 codec.

Prerequisite

iOS 11.0 or higher

Installation

Install WebRTC Framework from Swift Package Manager

  1. Go to your Swift Package Manager's File tab and select Swift Packages. Then choose Add package dependency

  2. Add SendBirdWebRTC into your Package Repository with the following URL: https://github.com/sendbird/sendbird-webrtc-ios

  3. To add the package, select appropriate dependency rule and click Add Package.

Install WebRTC Framework from CocoaPods

Add below into your Podfile.

platform :ios, '11.0'
use_frameworks!

target YOUR_PROJECT_TARGET do
  pod 'SendBirdWebRTC'
end

Install WebRTC Framework through CocoaPods.

pod install

Now you can see installed WebRTC framework by inspecting YOUR_PROJECT.xcworkspace.

Install WebRTC Framework from Carthage

Requires Carthage version 0.38 or higher

  1. Add binary "https://raw.githubusercontent.com/sendbird/sendbird-webrtc-ios/master/SendBirdWebRTC.json" to your Cartfile.
  2. Run carthage update --use-xcframeworks.
  3. Go to your Xcode project's "General" settings. Open <YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build/iOS in Finder and drag WebRTC.framework to the "Embedded Binaries" section in Xcode. Make sure Copy items if needed is selected and click Finish.