stasel/webrtc

repository·latest·Indexed 20 days ago

https://github.com/stasel/webrtc

A community-driven distribution of precompiled WebRTC framework binaries for iOS, macOS, and macOS Catalyst. Supports integration via Swift Package Manager, Cocoapods, Carthage, or manual installation. Compatible with iOS 12+, macOS 10.11+, and macOS Catalyst 11.0+, with support for arm64 and x86_64 architectures and encodings including VP9, H264, and H265 (HEVC).

Tokens
652
Snippets
4
Records
6
Agent score
20%

What's inside stasel-webrtc

  1. Install WebRTC via Carthage

    latest
    1. Add the dependency to your Cartfile using the JSON endpoint.
    2. Run the update command with the --use-xcframeworks flag.
    3. Manually add the resulting .xcframework located at ./Carthage/Build/WebRTC.xcframework to your target's embedded frameworks.
    binary "https://raw.githubusercontent.com/stasel/WebRTC/latest/WebRTC.json"
    carthage update --use-xcframeworks
  2. Install WebRTC via Swift Package Manager

    latest

    You can add WebRTC to your Xcode project using the built-in Swift Package Manager interface (File > Swift Packages > Add Package Dependency) or by modifying your Package.swift file.

    To use a specific version, use .upToNextMajor("150.0.0"). To always use the most up-to-date binaries, point to the latest branch.

    // Using a specific version
    dependencies: [
        .package(url: "https://github.com/stasel/WebRTC.git", .upToNextMajor("150.0.0"))
    ]
    
    // Using the latest branch for up-to-date binaries
    dependencies: [
        .package(url: "https://github.com/stasel/WebRTC.git", branch: "latest")
    ]
  3. WebRTC Binary Requirements and Compatibility

    latest

    Supported Platforms

    • iOS: 12+
    • macOS: 10.11+
    • macOS Catalyst: 11.0+

    Architecture Support

    Platform / archarm64x86_64
    iOS (device)N/A
    iOS (simulator)
    macOS
    macOS Catalyst

    Important Notes

    • Bitcode: Since Xcode 14, bitcode is deprecated. Versions M103 and above do not include bitcode.
    • 32-bit support: If you require 32-bit binaries, use Version M94 or lower.
    • Encodings: Includes support for VP9, H264, and H265 (HEVC).