mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +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];
|
const extraParameters: string[] = [...mpvExtraParameters];
|
||||||
|
|
||||||
if (mpvAudioDeviceId) {
|
const audioDevice = mpvAudioDeviceId?.trim() || 'auto';
|
||||||
extraParameters.push(`--audio-device=${mpvAudioDeviceId}`);
|
extraParameters.push(`--audio-device=${audioDevice}`);
|
||||||
}
|
|
||||||
|
|
||||||
await mpvPlayer?.initialize({
|
await mpvPlayer?.initialize({
|
||||||
extraParameters,
|
extraParameters,
|
||||||
|
|||||||
Reference in New Issue
Block a user