Fallback to web player if mpv fails to run

This commit is contained in:
jeffvli 2024-02-13 02:05:59 -08:00
parent fb08502e51
commit 9b0c9ba3ac
14 changed files with 115 additions and 70 deletions

View file

@ -161,21 +161,24 @@ export const MpvSettings = () => {
</Button>
<FileInput
placeholder={mpvPath}
rightSection={
mpvPath && (
<Button
compact
tooltip={{
label: t('common.clear', { postProcess: 'titleCase' }),
openDelay: 0,
}}
variant="subtle"
onClick={() => handleSetMpvPath(null)}
>
<RiCloseLine />
</Button>
)
}
width={200}
onChange={handleSetMpvPath}
/>
{mpvPath && (
<Button
tooltip={{
label: t('common.clear', { postProcess: 'titleCase' }),
openDelay: 0,
}}
variant="default"
onClick={() => handleSetMpvPath(null)}
>
<RiCloseLine />
</Button>
)}
</Group>
),
description: t('setting.mpvExecutablePath', {