mjpeg-player: comments and simplification

This commit is contained in:
Trek H 2020-01-28 14:32:45 +10:30
parent fd5425659d
commit 902bf74871
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ LICENSE
for more details. for more details.
You should have received a copy of the GNU General Public License in gpl.txt. You should have received a copy of the GNU General Public License in gpl.txt.
If not, see http://www.gnu.org/licenses.. If not, see http://www.gnu.org/licenses.
*/ */
import Hls from "./hlsjs/hls.js"; import Hls from "./hlsjs/hls.js";
@ -86,7 +86,7 @@ function play() {
const player = new Worker("player.js"); const player = new Worker("player.js");
let rate = document.getElementById('rate'); let rate = document.getElementById('rate');
if (rate.value && rate.value > 0) { if (rate.value > 0) {
player.postMessage({ msg: "setFrameRate", data: rate.value }); player.postMessage({ msg: "setFrameRate", data: rate.value });
} }