GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tmthecoder/WebRTC-macOS: macOS WebRTC Framework (x86 and arm)

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
WebRTC.framework
WebRTC.framework
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
WebRTC-macOS.podspec
WebRTC-macOS.podspec
 
 

Repository files navigation

WebRTC-macOS

A WebRTC port for macOS consisting of a universal library for x86 and arm (Intel and Apple Silicon)

Installation

To Install this library, you can use the WebRTC.framework attached in the releases section

Alternatively, you can use CocoaPods with the following addition to your podfile:

pod 'WebRTC-macOS', :git => 'https://github.com/tmthecoder/WebRTC-macOS.git', :tag => '8324'

Usage

The guides on the WebRTC example may be followed with all functionality present.

All you need to do is add the import statement to use for Swift:

import WebRTC

Building

To Build your own WebRTC Framework, similar to the one I have build, the instructions are as follows:

Clone the WebRTC Source:

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:/path/to/depot_tools

fetch --nohooks webrtc_ios

gclient sync

Generate the macOS Targets (x86_64 and arm64)

gn gen out/mac_x64 --args='target_os="mac" target_cpu="x64" is_component_build=false is_debug=false rtc_libvpx_build_vp9=false enable_stripping=true rtc_enable_protobuf=false'

gn gen out/mac_arm64 --args='target_os="mac" target_cpu="arm64" is_component_build=false is_debug=false rtc_libvpx_build_vp9=false enable_stripping=true rtc_enable_protobuf=false'

Build both frameworks:

ninja -C out/mac_x64 mac_framework_objc

ninja -C out/mac_arm64 mac_framework_objc

Merge the frameworks using lipo:

cd ..

cp -R src/out/mac_x64/WebRTC.framework WebRTC.framework

lipo -create -output WebRTC.framework/WebRTC src/out/mac_x64/WebRTC.framework/WebRTC src/out/mac_arm64/WebRTC.framework/WebRTC

The outputted WebRTC.framework can be imported into an Xcode Project and will support both Intel and Apple Silicon Macs

Licensing

  • This port of WebRTC, and any changes made by me will fall under the MIT License

  • WebRTC's license can be found here

About

macOS WebRTC Framework (x86 and arm)

Resources

Readme
MIT license
Activity

Stars

16 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.