mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
yWeb/Y_Tools_Screenshot: try to fix screenshot w/o grab binary
Origin commit data
------------------
Branch: ni/coolstream
Commit: 136fd4ee89
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-05 (Sun, 05 Feb 2023)
Origin message was:
------------------
- yWeb/Y_Tools_Screenshot: try to fix screenshot w/o grab binary
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -15,7 +15,11 @@ var interval;
|
|||||||
function checkEnable() {
|
function checkEnable() {
|
||||||
enableOSD = (id('checkOSD').checked == true) ? 1 : 0;
|
enableOSD = (id('checkOSD').checked == true) ? 1 : 0;
|
||||||
enableVideo = (id('checkVideo').checked == true) ? 1 : 0;
|
enableVideo = (id('checkVideo').checked == true) ? 1 : 0;
|
||||||
|
{=if-empty:{=var-get:grab=}~
|
||||||
|
enablePiP = 0;
|
||||||
|
~
|
||||||
enablePiP = (id('checkPiP').checked == true) ? 1 : 0;
|
enablePiP = (id('checkPiP').checked == true) ? 1 : 0;
|
||||||
|
=}
|
||||||
|
|
||||||
if (enableOSD == 0 && enableVideo == 0) {
|
if (enableOSD == 0 && enableVideo == 0) {
|
||||||
alert("{=L:bc.screenshot.checkenable=}");
|
alert("{=L:bc.screenshot.checkenable=}");
|
||||||
@@ -27,6 +31,7 @@ function checkEnable() {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function rcsim(_key) {
|
function rcsim(_key) {
|
||||||
if (!checkEnable()) return;
|
if (!checkEnable()) return;
|
||||||
|
|
||||||
@@ -40,6 +45,7 @@ function rcsim(_key) {
|
|||||||
loadSyncURL("/control/rcem?" + _key);
|
loadSyncURL("/control/rcem?" + _key);
|
||||||
window.setTimeout("do_snapshot()", 750);
|
window.setTimeout("do_snapshot()", 750);
|
||||||
}
|
}
|
||||||
|
|
||||||
function do_snapshot() {
|
function do_snapshot() {
|
||||||
if (!checkEnable()) return;
|
if (!checkEnable()) return;
|
||||||
|
|
||||||
@@ -73,6 +79,7 @@ function do_snapshot() {
|
|||||||
|
|
||||||
do_showshot(filename);
|
do_showshot(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
function do_showshot(_filename) {
|
function do_showshot(_filename) {
|
||||||
if (_filename == "")
|
if (_filename == "")
|
||||||
_filename = "screenshot";
|
_filename = "screenshot";
|
||||||
@@ -82,6 +89,7 @@ function do_showshot(_filename) {
|
|||||||
jQuery('#shot').attr("src", "/tmp/"+_filename+".png?" + Math.random());
|
jQuery('#shot').attr("src", "/tmp/"+_filename+".png?" + Math.random());
|
||||||
jQuery('#shot').show();
|
jQuery('#shot').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
function do_clearshot() {
|
function do_clearshot() {
|
||||||
jQuery('#shot').hide();
|
jQuery('#shot').hide();
|
||||||
jQuery('#shot').attr("src", "");
|
jQuery('#shot').attr("src", "");
|
||||||
|
Reference in New Issue
Block a user