diff --git a/static/sfu.js b/static/sfu.js index 3cde988..b147154 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -1195,11 +1195,17 @@ function registerControlHandlers(media, container) { let fs = getVideoButton(container, 'fullscreen'); if(fs) { - if(HTMLVideoElement.prototype.requestFullscreen) { + if(HTMLVideoElement.prototype.requestFullscreen || + /** @ts-ignore */ + HTMLVideoElement.prototype.webkitRequestFullscreen) { fs.onclick = function(e) { e.preventDefault(); if(media.requestFullscreen) { media.requestFullscreen(); + /** @ts-ignore */ + } else if(media.webkitRequestFullscreen) { + /** @ts-ignore */ + media.webkitRequestFullscreen(); } else { displayWarning('Full screen not supported!'); }