website logo
CommunityDocumentation
JavaScript SDK
Web App Plugins
Cloud One-Touch Join
Request License
Navigate through spaces
JavaScript SDK
Web App Plugins
Cloud One-Touch Join
Request License
⌘K
Using PexRTC with React
Using PexRTC with VanillaJS
Getting Started
Testing your Code
Creating the Vanilla JS Project
Controlling the Call
Where to Get Sample Code
Examples
PexMe
Docs powered by archbee 
8min

Controlling the Call

The PexRTC library has many methods that can be called to manage the call.

Hangup Method

The hangup method is used to disconnect the call for the local participant.

JS
|

Mute Audio Method

The PexRTC library allows the user to mute the microphone so that the far end cannot hear them. This can either be done by specifying the expected state, e.g. pextRTC.muteAudio(true), or by toggling without specifying the state, e.g. pexRTC.muteAudio().

JS
|

Mute Video Method

The PexRTC library allows the user to mute their video so that the far end cannot see them. This can either be done by specifying the expected state, e.g. pextRTC.muteVideo(true), or by toggling without specifying the state, e.g. pexRTC.muteVideo().

JS
|

Entering the Call

When the pin is optional/required we need to connect to the call with the supplied pin, to do this we call the connect method and pass in the pin

JS
|

Selecting Media

When a device is selected we need to stop the currently streamed device and then attach the new device. If we don't call the stopStreamedMedia method the video will stay active during the call.

JS
|



Updated 13 Sep 2022
Did this page help you?
Yes
No
UP NEXT
Where to Get Sample Code
Docs powered by archbee 
TABLE OF CONTENTS
Hangup Method
Mute Audio Method
Mute Video Method
Entering the Call
Selecting Media