Can switch to full screen by double clicking on videos

This commit is contained in:
Pierre HUBERT 2020-04-14 18:27:30 +02:00
parent 6fa34d8896
commit 2c639df21b

View File

@ -719,6 +719,11 @@ class CallWindow extends CustomEvents {
once: true
})
}
// Request fullscreen on double click
videoEl.addEventListener("dblclick", () => {
RequestFullScreen(this.rootEl);
})
this.videoEls.set(peerID, videoEl)