Class: CallConfig

wsc. CallConfig

Call Configuration describes the capabilities (audio/video/data channel) of a call.

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: {"label":"DataLabel", "ordered" : true }. The keys include "label", "ordered", "maxPacketLifeTime", "maxRetransmits", "protocol", "negotiated" and "id". The "label" is mandatory, and it represents a label that can be used to distinguish this RTCDataChannel object from other RTCDataChannel objects. Except for "label", the other keys are optional. The keys are defined in http://www.w3.org/TR/webrtc/#idl-def-RTCDataChannelInit.

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
Oracle® Communications WebRTC Session Controller Javascript API Reference 7.2.0.1.1, E69512-02
Copyright © 2013, 2017, Oracle and/or its affiliates. All rights reserved.