====== adv.createLoopBackCall() ====== wrtc.adv.createLoopBackCall() is used to start a local call (client calling itself). Usually it is used to measure local microphone volume. Once started volume information will be reported using [[ixnx:wrtc:js:api:wrtc:onvolume|wrtc.onVolume()]] events. As [[ixnx:wrtc:js:api:wrtc:adv.volumemeter|wrtc.adv.volumeMeter()]] only works when a call is in progress a local loopback call can be started to create a special call that can be used for microphone volume measurements. The local loopback call will not be included in [[ixnx:wrtc:js:api:wrtc:getcall|wrtc.getCall()]], [[ixnx:wrtc:js:api:wrtc:getcalls|wrtc.getCalls()]] and similar lists of active calls. ===== Arguments ===== wrtc.adv.createLoopBackCall(video, volume): * video - (optional, default false) make a video or just an audio only call * volume - (optional, default true) measure volume of loopback call Usually you call wrtc.adv.createLoopBackCall() without any arguments and it will then start an audio only local loopback call and start measuring its microphone volume. ===== Returns ===== Nothing. ===== Events ===== [[ixnx:wrtc:js:api:wrtc:onvolume|wrtc.onVolume()]] events reporting current audio volume. ===== See Also ===== [[ixnx:wrtc:js:api:wrtc:adv.stoploopbackcall|wrtc.adv.stopLoopBackCall()]] [[ixnx:wrtc:js:api:wrtc:adv.volumemeter|wrtc.adv.volumeMeter()]]