set mpv audio device to auto if undefined

This commit is contained in:
jeffvli
2026-03-15 20:17:59 -07:00
parent e987049f20
commit ee04878580
@@ -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,