Swiftpack.co - Meonardo/WebRTC-OSX as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Meonardo.
Meonardo/WebRTC-OSX 91.1.2
Unofficial distribution of WebRTC framework binaries for macOS.
⭐️ 1
🕓 2 years ago
macOS
.package(url: "https://github.com/Meonardo/WebRTC-OSX.git", from: "91.1.2")

Changelog

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


WebRTC Binaries for macOS

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

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

  • The building scripts are based on Stasel' repo.
  • 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.

🚚 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/Meonardo/WebRTC-OSX.git", .upToNextMajor("91.1.1"))
]

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

dependencies: [
    .Package(url: "https://github.com/Meonardo/WebRTC-OSX.git", .branch("main"))
]

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

📃 License

GitHub

link
Stars: 1
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

M91.1.2
2 years ago

Release notes: Custom branch based on Master, time: 2021-06-16 09:21:34 GMT+8 WebRTC Branch: master WebRTC Commit: ae881da82822b4e73c119c37d1d6986c8eb68b49 SHA 256 checksum: 1123cac9d41cf560994a188c52ebe7d9e68301b52b8e78236a125e54d91245d7

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics