mirror of https://bitbucket.org/ausocean/av.git
mjpeg-player: comments and simplification
This commit is contained in:
parent
fd5425659d
commit
902bf74871
|
@ -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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue