WebRTC framework for iOS
Introduction
This is WebRTC framework for iOS that SendBird builds. Every feature is identical to Google WebRTC, but this framework is the bitcode-enabled and includes VP9 codec.
Prerequisite
iOS 9.0 or higher
Installation
The size of the framework is huge. In order to install on your project, you can use CocoaPods or Carthage. If you want to use CocoaPods, then you have to install git-lfs first. Please refer to the git-lfs document.
Install WebRTC Framework from CocoaPods
Add below into your Podfile.
platform :ios, '9.0'
use_frameworks!
target YOUR_PROJECT_TARGET do
pod 'SendBirdWebRTC', :git => 'https://github.com/sendbird/sendbird-webrtc-ios.git', :tag => 'v1.0'
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
- Add
github "sendbird/sendbird-webrtc-ios.git"
to your Cartfile. - Run
carthage update
. - Go to your Xcode project's
"General"
settings. Open<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build/iOS
in Finder and dragWebRTC.framework
to the"Embedded Binaries"
section in Xcode. Make sureCopy items if needed
is selected and clickFinish
.