Skip to content
forked from stasel/WebRTC

Unofficial distribution of WebRTC framework binaries for iOS.

License

Notifications You must be signed in to change notification settings

Meonardo/WebRTC

This branch is 19 commits ahead of, 102 commits behind stasel/WebRTC:latest.

Repository files navigation

Changelog

Add a delegate method - (RTCVideoRotation)rotationForCameraVideoCapturer for RTCCameraVideoCapturer to handle device orientation update events. Add renderers property in class RTCVideoTrack.


WebRTC Binaries for iOS

This repository contains unofficial distribution of WebRTC framework binaries for iOS.

Since version M80, Google has deprecated their mobile binary libraries distributions (Was officially using the GoogleWebRTC pod). To get the most up to date WebRTC library, you can compile it on your own, or you can use precompiled binaries from other sources.

πŸ“¦ Releases

The binary releases correspond with official Chromium releases and branches as specified in the Chromium dashboard.

πŸ’‘ Things to know

  • All binaries in this repository are compiled from the official WebRTC source code.
  • Dynamic framework (xcframework format) which contains binaries for arm64, x86 and x86_x64.
  • Bitcode is included and this is the reason for the larger file size.
  • Supports 64 bit only.

πŸ“’ Requirements

  • iOS 11+

🚚 Installation

Swift package manager

Xcode has a built-in support for Swift package manager. You can easily add the package by selecting File > Swift Packages > Add Package Dependency. Read more in Apple documentation.

Or, you can add the following dependency to your Package.swift file:

dependencies: [
    .Package(url: "https://github.com/stasel/WebRTC.git", .upToNextMajor("90.0.0"))
]

Use the latest branch to get the most up to date binary:

dependencies: [
    .Package(url: "https://github.com/stasel/WebRTC.git", .branch("latest"))
]

Manual

  1. Download the framework from the releases section.
  2. Unzip the file.
  3. Add the xcframework to your target(s) embedded frameworks.

πŸ‘· Usage

To import WebRTC to your code add the following import statement

import WebRTC

If you wish to see how to use WebRTC I highly recommend checking out my WebRTC demo iOS app: https://github.com/stasel/WebRTC-iOS

πŸ›  Compile your own WebRTC Frameworks

If you wish to compile your own WebRTC binary framework, please refer to the following official guide: https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/ios/index.md

You can also take a look at the build script I created for more details.

πŸ“ƒ License

About

Unofficial distribution of WebRTC framework binaries for iOS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 49.9%
  • Python 46.7%
  • Swift 3.4%