fix: canvas performance

This commit is contained in:
ThaUnknown 2022-09-05 17:59:08 +02:00
parent 3500988610
commit 855dddf89c
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "3.1.7",
"version": "3.1.8",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
"main": "src/index.js",

View file

@ -530,7 +530,7 @@
video.cancelVideoFrameCallback(loop)
canvas.remove()
}
container.append(canvas)
return { stream: canvas.captureStream(), destroy }
}
@ -1133,8 +1133,8 @@
}
.pip :global(canvas:not(.w-full)) {
left: 99.9% !important;
/*hack to hide the canvas but still keep it updating*/
width: 1px !important;
height: 1px !important;
}
.material-icons {
@ -1159,7 +1159,7 @@
}
.pip video {
visibility: hidden;
opacity: 0.1%;
}
.middle div[data-name='bufferingDisplay'] {