mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
[enhancement]: Support disabling MPV entirely
Supports running Feishin solely using web audio (useful for clients with problems with MPV). Also moves save/restore queue to utils, as MPV object is now optional
This commit is contained in:
parent
ae8fc6df13
commit
f82da2e76b
10 changed files with 127 additions and 74 deletions
|
|
@ -13,8 +13,12 @@ export const AppOutlet = () => {
|
|||
const isMpvRequired = () => {
|
||||
if (!localSettings) return false;
|
||||
const mpvPath = localSettings.get('mpv_path');
|
||||
if (mpvPath) return false;
|
||||
return true;
|
||||
if (mpvPath) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const mpvDisabled = localSettings.get('disable_mpv');
|
||||
return !mpvDisabled;
|
||||
};
|
||||
|
||||
const isServerRequired = !currentServer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue