Giter Club home page Giter Club logo

youtube_webrtc_tutorial's Introduction

YouTube WebRTC Tutorial

Here you can find the related source code to my YouTube tutorial:

Creating a web video call client with WebRTC and Angular - https://youtu.be/SWhG0VRdiW8

Description

All configuration is done within environment.ts and environment.prod.ts

If you want to deploy this to a public web server, it's required by WebRTC specification that all transport data is encrypted using TLS.

To support secure websockets, you can configure a reverse proxy with TLS Support.

E.g. for Nginx:

server {
    listen 443 ssl;
    ...
    location /ws/ {
        proxy_pass http://localhost:8081;
        ...
    }
    ssl on;
    ...
}

And the signalling server will be configured like this in environment.ts: wss://server:8081/ws/

TURN Server

There are a few public TURN Servers available. See also https://gist.github.com/sagivo/3a4b2f2c7ac6e1b5267c2f1f59ac6c6b

But I'd recommend, that you setup your own TURN Server. There is an opensource project: coturn, you can use for that purpose.

Configuration for coturn is rather simple. There are only a few settings you'll have to set:

external-ip=<external_ip>/<internal_ip>
realm=<your.host.domain>

lt-cred-mech
user=<user>:<password>

cert=/path/to/your/certificate
pkey=/path/to/your/private/key
CA-file=/path/to/a/CA.crt

Please note, that you should set up user credentials. Some WebRTC implementations might have problems, if a TURN server does not need credentials. So make sure, you set up some user.

It's also required to setup a valid certificate and private key for TLS encryption.

Questions

If you need further support, please contact me on http://openvalue.de/

youtube_webrtc_tutorial's People

Contributors

wliegel avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.