Skip to content
프로젝트

소개

WebRTC implementation in zig

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • SDP parsing and generation
  • ICE (Interactive Connectivity Establishment): Support IPv4/IPv6, STUN and TURN candidates. Only UDP is supported for now.
  • DTLS using mbedtls.
  • SRTP encryption and decryption with AES_CM_HMAC_SHA1_80 and AES_CM_HMAC_SHA1_32 profiles.

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

WebRTC

A sans-io zig implementation of the WebRTC API.

Status

The project is under active development. The API and even the whole architecture may change in the future. The current implementation is not yet production-ready.

Supported Zig/Platforms

Supported Zig version: 0.17.1.

Tested platforms:

  • Linux x86_64/aarch64
  • macOS x86_64/aarch64
  • Windows x86_64 (with zio)

Other platforms may work but are not tested yet.

Architecture

The implementation is a sans-io, the library will not do any I/O, it will only provide the WebRTC API and the user will have to implement the I/O themselves (e.g. sockets, timers, ...etc.).

Features

The end goal is to implement the whole WebRTC API in pure Zig, the current implementation has the following features:

  • SDP parsing and generation
  • ICE (Interactive Connectivity Establishment): Support IPv4/IPv6, STUN and TURN candidates. Only UDP is supported for now.
  • DTLS using mbedtls.
  • SRTP encryption and decryption with AES_CM_HMAC_SHA1_80 and AES_CM_HMAC_SHA1_32 profiles.
  • Sending and receiving H264 and VP8 video streams.
  • Sending and receiving Opus audio streams.
  • Bundling of the above features into a PeerConnection API. (Note: only bundling is supported for now, no unbundling yet)
  • RTCP sender report, PLI feedback and NACK/RTX support.
  • Data channels.

Installation

Add webrtc as a dependency in your build.zig.zon file:

zig fetch --save git+https://github.com/zigouat/webrtc.git#v0.3.0

Then, in your build.zig file, add the following:

const webrtc = b.dependency("webrtc", .{ .target = target, .optimize = optimize });
exe.root_module.addImport("webrtc", webrtc.module("webrtc"));

Usage

Check the examples folder.

Note For Windows Users

Some of the examples may not work on Windows because std.Io.net.Socket.receiveTimeout is not implemented. You can still run the examples by depending on third party package like zio.

Other related projects

The following projects are related to WebRTC and some of them used as dependencies in this project:

  • media - A zig library for media common structures and codecs.
  • media-protocols - A zig library for media protocols (RTP, RTCP, SDP, etc.).
  • media-formats - A zig library for muxers/demuxers (MP4, IVF, etc.).
  • sctp - A zig implementation of the SCTP protocol.

관련 프로젝트 살펴보기

불러오는 중…