This repo contains the code for the a Proof of Concept (PoC) for the "Your car your way" app for the support page using WebSockets for the chat and WebRTC for the videoconference
If you have a WebRTC session starting, you're on mobile and want to switch cameras
// Assuming you already have a reference to the RTCPeerConnection and the existing track
const sender = pc.getSenders().find(s => s.track.kind === 'video');
sender?.replaceTrack(newVideoTrack);
To get the webcam or microphone:
On mobile (front & back facing camera):
To get the screen cast:
To get the local devices for the webcam and microphone: