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 object, which should be in form of {"label":"DataLabel", "reliable" : false }

Example
 var audioMediaDirection = wsc.MEDIADIRECTION.SENDRECV;
 var videoMediaDirection = wsc.MEDIADIRECTION.NONE;
 var dtConfigs = new Array();
 dtConfigs[0] = {"label":"DataLabel", "reliable" : false };
 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

videoConfig :String

The video config.

Type:
  • String
Oracle® Communications WebRTC Session Controller JavaScript API Reference, E55131-03
Copyright © 2013, 2015, Oracle and/or its affiliates. All rights reserved.