Skip to content

Commit

Permalink
feat: override modern WASM support [potential fix for androidTV crashes]
Browse files Browse the repository at this point in the history
fix: poor download performance while streaming batches
fix: minor fixes
  • Loading branch information
ThaUnknown committed Feb 20, 2025
1 parent 6a8d0cb commit b3db378
Show file tree
Hide file tree
Showing 6 changed files with 7,782 additions and 5,348 deletions.
2 changes: 1 addition & 1 deletion common/modules/subtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions common/modules/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
Expand Down
6 changes: 6 additions & 0 deletions common/views/Settings/PlayerSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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.">
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.5.9",
"version": "5.5.10",
"private": true,
"author": "ThaUnknown_ <[email protected]>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit b3db378

Please sign in to comment.