Home Manual Reference Source
import Config from 'webcom-reach/src/core/Config.js'
public class | source

Config

The Reach configuration object

Member Summary

Public Members
public

[key]: *

public

The bitrate max for the audio

public

Set the communication quality (BAD, LOW, HIGH)

public

The default media constraints.

public get

List of TURN/STUN servers to use for ICE.

public set

List of TURN/STUN servers to use for ICE.

public

The id/element dom element that will hold the local video/audio element

public set

The log level (DEBUG, INFO, WARN, ERROR)

public get

The log level (DEBUG, INFO, WARN, ERROR)

public

The preferred audio Codec.

public

The preferred video Codec.

public

The id/element dom element that will hold the remote video/audio element

public set
public get

stats: *

public

The bitrate max for the video

Public Members

public [key]: * source

public audioBitrateMax: string | Element source

The bitrate max for the audio

public communicationQuality: Element source

Set the communication quality (BAD, LOW, HIGH)

Example:

communicationQuality: Reach.communicationQuality.LOW

public constraints: MediaStreamConstraints source

The default media constraints. These can be overridden when subscribing to a stream.

public get iceServers: ICEServer[] source

List of TURN/STUN servers to use for ICE. This list will be merged with the ICE servers declared in the namespace (_/ice).

public set iceServers: ICEServer[] source

List of TURN/STUN servers to use for ICE. This list will be merged with the ICE servers declared in the namespace (_/ice).

public localStreamContainer: string | Element source

The id/element dom element that will hold the local video/audio element

public set logLevel: string source

The log level (DEBUG, INFO, WARN, ERROR)

public get logLevel: string: * source

The log level (DEBUG, INFO, WARN, ERROR)

Return:

string

public preferredAudioCodec: RegExp source

The preferred audio Codec. Takes a RegExp matching the codec name and sample rate. Predefined values can be found in Codec/audio

Example:

Prefer opus
var myReach = new Reach('https://io.datasync.orange.com/base/<my_namespace>', {
 preferredAudioCodec: Reach.codecs.audio.OPUS
});

public preferredVideoCodec: RegExp source

The preferred video Codec. Takes a RegExp matching the codec name and sample rate. Predefined values can be found in Codec/video

Example:

Prefer VP9
var myReach = new Reach('https://io.datasync.orange.com/base/<my_namespace>', {
 preferredVideoCodec: Reach.codecs.video.VP9
});

public remoteStreamContainer: string | Element source

The id/element dom element that will hold the remote video/audio element

public set stats source

public get stats: * source

public videoBitrateMax: string | Element source

The bitrate max for the video