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 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 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
});
public remoteStreamContainer: string | Element source
The id/element dom element that will hold the remote video/audio element