Angular WebRTC Library
ngx-rtc
SSR-safe WebRTC helpers for Angular apps that want one place for local media, peer connection setup, and negotiation flow.
One focused package for browser-only media access, reusable peer helpers, and consistent RTC bootstrapping.
landing.ts
Project Overview
Package
ngx-rtc
WebRTC helpers for Angular, extracted from ngx-core and kept SSR-safe by default.
License
MIT
Published as a public package and designed for reuse across multiple apps.
Installation
Install the package
$ npm i --save ngx-rtcUsage
Bootstrap with provideNgxRtc()
import { provideNgxRtc } from 'ngx-rtc';
export const appConfig = {
providers: [provideNgxRtc()],
};Configuration
Compose RTC with app-level providers
Keep RTC bootstrapping isolated while pairing it with shared meta, theme, and translation providers in the host app.
import { provideNgxRtc } from 'ngx-rtc';
import { provideNgxCore } from 'ngx-core';
export const appConfig = {
providers: [
provideNgxCore({
meta: {
applyFromRoutes: true,
},
}),
provideNgxRtc(),
],
};Features
What ngx-rtc includes
Bootstrap and configuration
Standalone-first setup centered on provideNgxRtc() with SSR-safe browser guards.
provideNgxRtc() | future-ready config token | SSR-safe media access
WebRTC service
Focused runtime behavior for local media, peer creation, and offer/answer flow.
RtcService | MediaStream and RTCPeerConnection helpers | Offer, answer, ICE, and cleanup methods
Reference
Documented feature pages
The detailed page below covers the RTC feature and its public API surface.
