webRTC Flashcards

1
Q

Pros

A

No need to download plug-ins

Peer to peer connection reduces load on server and reduces chance of man in the middle attack

Encryption improves privacy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which browsers does not support webRTC?

A

Safari
Internet Explorere
IOS browsers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cons

A

Doesn’t work on every browser

Scaling can be hard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Getting your own media

A
const startStream = ()=>{
            //getUserMedia API setup
            navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
            //Constraints
            const constraints = {
                audio:false,
                video: {
                    mandatory:{
                        minWidth:640,
                        maxWidth:640,
                        minHeight:360,
                        maxHeight:480,
                    }
                }
            };
            //GetUser
            navigator.mediaDevices.getUserMedia(constraints).then((stream)=>{
                $videoArea.srcObject = stream
                $videoArea.className = 'grayscale_filter';
                $videoArea.play()
            }).catch((error)=>{
                console.log("Error with getting user media: " + error)
            });
    }

    startStream()

    $videoSelect.onchange = startstream()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

3 Ways to establish a connection via signalling?

A

Public IP’s

STUN server

TURN server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is signaling?

A

Signallng is the process of sharing ICE candidates, and SDP or session description protocol offers and answers between 2 or more participants in a webRTC session

Before a peer to peer connection can be established, a signal server is required to establish the connection before a call

Signalling is the process of coordinating communication through an exchange of messages.

SDP (session description protocol) is used to send offers and answers as well as ICE candidates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ICE Framework

A

Interactive connectivity Establishment Framework

The ICE framework finds the best path to connect peers. It tries all possibilities in parallel and chooses the most efficient option that works.

first ICE tries to a direct connection using the host address abtained from a diveice’s operating system

if that fails, A stun server is used to get an external (public) network address

if that fails, a TURN server is used to relay traffic.

For this to happen the applicaiton must pass ICE server URL’s to RTCPeerConnection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Controlling peer

A

The peer that is controlling the session. Decided by ICE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

STO

A

Signaling Transport Options

HTTP
WebSockets
MQTT
Carrier Pigeons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is webRTC?

A

Framework that enables realtime communication in the browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

3 major api’s

A

getUserMedia()
RTCPeerConnection()
Data channel
.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Typical architecture topologies

A

peer to peer

Mesh

Mixer(MCU) -uses a media server

Routing(SFU) - uses a server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly