The get function returns the requested read-only parameter. The provided string argument decides what parameter value to return.
For example call.get("partner") returns address of client at other end of the call as string.
call.get(key)
| callState | string containing description of state call currently is in |
| partner | string containing address of remote partner |
| partnerDisplayName | string containing display name of remote partner |
| peerConnection | peer connection object of the call |
| remoteStream | MediaStream object containing received data stream |
| transmittedAudio | MediaStream object containing our transmitted audio stream |
Nonrecognized arguments return undefined.
Requested value. Return type depends on requested value, see table above
None.
To show transmitted audio volume you can:
wrtc.adv.volumeMeter(call.get("transmittedAudio"))