Node.js

Creating a relayed session

Here is Node.js sample code that creates a new session with the media mode set to relayed:

In a relayed session, clients will attempt to send streams directly between each other. However, if clients cannot connect due to firewall restrictions, the session uses the Vonage Video TURN server to relay audio-video streams.

Important: Some features, such as archiving, are only available in routed (not relayed) sessions. See the previous section for instructions on creating a routed session.

Create Session

Use the Vonage Video Node.js SDK to learn how to create a session. Sessions allow participants to use audio, video, and messaging functionality in your application.

Available on:
Node.js
Steps
1
Introduction
2
Prerequisites
3
Create a Session that uses Vonage Video Media Router
4
Create a relayed session
5
Create an automatically archived session
6
Using sessions in client applications
7
What's next?