Skip to content

Commit b3db378

Browse files
committed
feat: override modern WASM support [potential fix for androidTV crashes]
fix: poor download performance while streaming batches fix: minor fixes
1 parent 6a8d0cb commit b3db378

File tree

6 files changed

+7782
-5348
lines changed

6 files changed

+7782
-5348
lines changed

common/modules/subtitles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default class Subtitles {
172172
workerUrl: new URL('jassub/dist/jassub-worker.js', import.meta.url).toString(),
173173
wasmUrl: new URL('jassub/dist/jassub-worker.wasm', import.meta.url).toString(),
174174
legacyWasmUrl: new URL('jassub/dist/jassub-worker.wasm.js', import.meta.url).toString(),
175-
modernWasmUrl: new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url).toString(),
175+
modernWasmUrl: settings.value.modernWasm ? new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url).toString() : undefined,
176176
useLocalFonts: settings.value.missingFont,
177177
dropAllBlur: settings.value.disableSubtitleBlur
178178
}

common/modules/util.js

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export const defaults = {
151151
torrentPathNew: undefined,
152152
font: undefined,
153153
angle: 'default',
154+
modernWasm: true,
154155
toshoURL: SUPPORTS.extensions ? decodeURIComponent(atob('aHR0cHM6Ly9mZWVkLmFuaW1ldG9zaG8ub3JnLw==')) : '',
155156
extensions: SUPPORTS.extensions ? ['anisearch'] : [],
156157
sources: {},

common/views/Settings/PlayerSettings.svelte

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
<option value='480'>480p</option>
6767
</select>
6868
</SettingCard>
69+
<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.'>
70+
<div class='custom-switch'>
71+
<input type='checkbox' id='player-modernWasm' bind:checked={settings.modernWasm} />
72+
<label for='player-modernWasm'>{settings.modernWasm ? 'On' : 'Off'}</label>
73+
</div>
74+
</SettingCard>
6975

7076
<h4 class='mb-10 font-weight-bold'>Language Settings</h4>
7177
<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.">

electron/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Miru",
3-
"version": "5.5.9",
3+
"version": "5.5.10",
44
"private": true,
55
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
66
"description": "Stream anime torrents, real-time with no waiting for downloads.",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"webpack": "^5.91.0",
3131
"webpack-cli": "^5.1.4",
3232
"webpack-dev-server": "^5.0.2",
33-
"webtorrent": "^2.5.6"
33+
"webtorrent": "^2.5.19"
3434
},
3535
"devDependencies": {
3636
"@cloudflare/workers-types": "^4.20240222.0",

0 commit comments

Comments
 (0)