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:
ThaUnknown 2025-02-20 21:09:42 +01:00
parent 6a8d0cbea8
commit b3db378790
No known key found for this signature in database
6 changed files with 7808 additions and 5374 deletions

View file

@ -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
}

View file

@ -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: {},

View file

@ -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.">

View file

@ -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.",

View file

@ -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",

File diff suppressed because it is too large Load diff