new CallConfig(audioMediaDirection, videoMediaDirection, dataChannelConfig)
Parameters:
Name | Type | Description |
---|---|---|
audioMediaDirection |
wsc.MEDIADIRECTION | The direction of local audio media stream |
videoMediaDirection |
wsc.MEDIADIRECTION | The direction of local video media stream |
dataChannelConfig |
Array | An array of JSON objects, which should be
in the format: |
Example
var audioMediaDirection = wsc.MEDIADIRECTION.SENDRECV; var videoMediaDirection = wsc.MEDIADIRECTION.NONE; var dtConfigs = new Array(); dtConfigs[0] = {"label":"DataLabel", "ordered" : true }; var callConfig = new wsc.CallConfig(audioMediaDirection,videoMediaDirection, dtConfigs);
Members
-
audioConfig :String
-
The audio config
Type:
- String
-
dataChannelConfig :Array
-
The data channel config array
Type:
- Array
-
maxAudioBitrate :Number
-
The value of the maximum average bitrate for the audio stream
Type:
- Number
-
videoConfig :String
-
The video config
Type:
- String