From 28a13382999f5227d8417001a6fe6e713a0050bf Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Fri, 23 Aug 2024 16:03:57 +0300 Subject: [PATCH 1/2] Feat: Added support for full screen when double clicking on Stream on Watch page (watch.js) Similar to #4120 --- web/skins/classic/views/js/watch.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 3141b4c25b..95e6fb34cb 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -1210,6 +1210,14 @@ function initPage() { applyMonitorControllable(); } streamPrepareStart(); + + // Event listener for double click + //var elStream = document.querySelectorAll('[id ^= "liveStream"], [id ^= "evtStream"]'); + var elStream = document.querySelectorAll('[id = "wrapperMonitor"]'); + Array.prototype.forEach.call(elStream, (el) => { + el.addEventListener('touchstart', doubleTouch); + el.addEventListener('dblclick', doubleClickOnStream); + }); } // initPage function watchFullscreen() { From 7956c38e86ffdaeb567dea53820ba98a1e78ccd0 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Fri, 23 Aug 2024 16:05:45 +0300 Subject: [PATCH 2/2] Remove extra space (watch.js) --- web/skins/classic/views/js/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 95e6fb34cb..4e255257cd 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -1211,7 +1211,7 @@ function initPage() { } streamPrepareStart(); - // Event listener for double click + // Event listener for double click //var elStream = document.querySelectorAll('[id ^= "liveStream"], [id ^= "evtStream"]'); var elStream = document.querySelectorAll('[id = "wrapperMonitor"]'); Array.prototype.forEach.call(elStream, (el) => {