mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +00:00
feat: override modern WASM support [potential fix for androidTV crashes]
fix: poor download performance while streaming batches fix: minor fixes
This commit is contained in:
parent
6a8d0cbea8
commit
b3db378790
6 changed files with 7808 additions and 5374 deletions
|
|
@ -172,7 +172,7 @@ export default class Subtitles {
|
|||
workerUrl: new URL('jassub/dist/jassub-worker.js', import.meta.url).toString(),
|
||||
wasmUrl: new URL('jassub/dist/jassub-worker.wasm', import.meta.url).toString(),
|
||||
legacyWasmUrl: new URL('jassub/dist/jassub-worker.wasm.js', import.meta.url).toString(),
|
||||
modernWasmUrl: new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url).toString(),
|
||||
modernWasmUrl: settings.value.modernWasm ? new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url).toString() : undefined,
|
||||
useLocalFonts: settings.value.missingFont,
|
||||
dropAllBlur: settings.value.disableSubtitleBlur
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,6 +151,7 @@ export const defaults = {
|
|||
torrentPathNew: undefined,
|
||||
font: undefined,
|
||||
angle: 'default',
|
||||
modernWasm: true,
|
||||
toshoURL: SUPPORTS.extensions ? decodeURIComponent(atob('aHR0cHM6Ly9mZWVkLmFuaW1ldG9zaG8ub3JnLw==')) : '',
|
||||
extensions: SUPPORTS.extensions ? ['anisearch'] : [],
|
||||
sources: {},
|
||||
|
|
|
|||
|
|
@ -66,6 +66,12 @@
|
|||
<option value='480'>480p</option>
|
||||
</select>
|
||||
</SettingCard>
|
||||
<SettingCard title='Modern WASM Support' description='Forcefully override device WASM support. This can fix potential crash issues on some devices that incorrectly report WASM support. Turning this off will reduce performance when rendering complex subtitles.'>
|
||||
<div class='custom-switch'>
|
||||
<input type='checkbox' id='player-modernWasm' bind:checked={settings.modernWasm} />
|
||||
<label for='player-modernWasm'>{settings.modernWasm ? 'On' : 'Off'}</label>
|
||||
</div>
|
||||
</SettingCard>
|
||||
|
||||
<h4 class='mb-10 font-weight-bold'>Language Settings</h4>
|
||||
<SettingCard title='Preferred Subtitle Language' description="What subtitle language to automatically select when a video is loaded if it exists. This won't find torrents with this language automatically. If not found defaults to English.">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "5.5.9",
|
||||
"version": "5.5.10",
|
||||
"private": true,
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
"webpack": "^5.91.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"webpack-dev-server": "^5.0.2",
|
||||
"webtorrent": "^2.5.6"
|
||||
"webtorrent": "^2.5.19"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^4.20240222.0",
|
||||
|
|
|
|||
13169
pnpm-lock.yaml
13169
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue