navigator.audioSession.type = "play-and-record";
// Start video call
const stream = await navigator.mediaDevices.getUserMedia({
audio: true,
video: true,
});
localVideo.srcObject = stream;Navigator: audioSession property / notebook
Navigator: audioSession property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.