mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +00:00
fix: hanging when playing video on smart TV's
This commit is contained in:
parent
e3c64e1ead
commit
9cbdfd876b
3 changed files with 6 additions and 3 deletions
|
|
@ -32,8 +32,8 @@ export default class Parser {
|
|||
if (this.destroyed) return
|
||||
for (const file of files) {
|
||||
if (fontRx.test(file.filename) || file.mimetype.toLowerCase().includes('font')) {
|
||||
const data = new Uint8Array(file.data)
|
||||
this.client.dispatch('file', { data }, [data.buffer])
|
||||
// this is cursed, but required, as capacitor-node's IPC hangs for 2mins when runnig on 32bit android when sending uint8's
|
||||
this.client.dispatch('file', { data: JSON.stringify([...file.data]) })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export default class Subtitles {
|
|||
this.timeout = null
|
||||
this.handleFile = ({ detail }) => {
|
||||
if (this.selected) {
|
||||
const uint8 = new Uint8Array(detail.data)
|
||||
const uint8 = new Uint8Array(JSON.parse(detail.data))
|
||||
this.fonts.push(uint8)
|
||||
this.renderer?.addFont(uint8)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1433,6 +1433,9 @@
|
|||
.toggle-fullscreen {
|
||||
display: none !important;
|
||||
}
|
||||
.volume {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue