Compare commits

...
Author SHA1 Message Date
jt0404 577e6e6d7f Fix 6172 (#6186)
* fix 6172

* remove link

* use document.exitFullscreen()
2026-11-29 02:32:18 -03:00
+6
View File
@@ -615,6 +615,12 @@ function update_captions() {
}
function toggle_fullscreen() {
// if fullscreen is handled by the browser
if (document.fullscreenElement === document.querySelector('#player_html5_api')) {
document.exitFullscreen();
return;
}
// otherwise handle by videojs
player.isFullscreen() ? player.exitFullscreen() : player.requestFullscreen();
}