Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Dirvann/webrtc-video-conference-simple-peer
/ functions
Functions
10 in github.com/Dirvann/webrtc-video-conference-simple-peer
⨍
Functions
10
◇
Types & classes
0
↓ 3 callers
Function
removePeer
* Remove a peer with given socket_id. * Removes the video element and deletes the connection * @param {String} socket_id
public/js/main.js:121
↓ 2 callers
Function
addPeer
* Creates a new peer connection and sets the event listeners * @param {String} socket_id * ID of the peer * @param {Boolean} am_in
public/js/main.js:147
↓ 2 callers
Function
openPictureMode
* Opens an element in Picture-in-Picture mode * @param {HTMLVideoElement} el video element to put in pip mode
public/js/main.js:178
↓ 2 callers
Function
updateButtons
* updating text of buttons
public/js/main.js:285
↓ 1 callers
Function
init
* initialize the socket connections
public/js/main.js:84
Function
removeLocalStream
* Disables and removes the local stream and all the connections to other peers.
public/js/main.js:247
Function
setScreen
* Enable screen share
public/js/main.js:223
Function
switchMedia
* Switches the camera between user and environment. It will just enable the camera 2 cameras not supported.
public/js/main.js:186
Function
toggleMute
* Enable/disable microphone
public/js/main.js:266
Function
toggleVid
* Enable/disable video
public/js/main.js:275