mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
set mpv audio device to auto if undefined
This commit is contained in:
@@ -109,9 +109,8 @@ export const MpvPlayerEngine = (props: MpvPlayerEngineProps) => {
|
||||
|
||||
const extraParameters: string[] = [...mpvExtraParameters];
|
||||
|
||||
if (mpvAudioDeviceId) {
|
||||
extraParameters.push(`--audio-device=${mpvAudioDeviceId}`);
|
||||
}
|
||||
const audioDevice = mpvAudioDeviceId?.trim() || 'auto';
|
||||
extraParameters.push(`--audio-device=${audioDevice}`);
|
||||
|
||||
await mpvPlayer?.initialize({
|
||||
extraParameters,
|
||||
|
||||
Reference in New Issue
Block a user