get()
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.
Arguments
call.get(key)
- key - string containing what argument to return:
| 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.
Returns
Requested value. Return type depends on requested value, see table above
Events
None.
Example
To show transmitted audio volume you can:
wrtc.adv.volumeMeter(call.get("transmittedAudio"))