Config
The Reach configuration object
Member Summary
Public Members | ||
public |
[key]: * |
|
public |
The default media constraints. |
|
public set |
List of TURN/STUN servers to use for ICE. |
|
public get |
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 Members
public [key]: * source
public constraints: MediaStreamConstraints source
The default media constraints. These can be overridden when subscribing to a stream.
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 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 localStreamContainer: string | Element source
The id/element dom element that will hold the local video/audio element
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:
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:
var myReach = new Reach('https://io.datasync.orange.com/base/<my_namespace>', {
preferredVideoCodec: Reach.codecs.video.VP9
});