fix(windows): media control not working #641

This commit is contained in:
Kingkor Roy Tirtho 2023-11-21 21:23:08 +06:00
parent 75c0c4fff4
commit 7818574356

View File

@ -51,11 +51,9 @@ class WindowsAudioService {
break;
case AudioPlaybackState.stopped:
await smtc.setPlaybackStatus(PlaybackStatus.Stopped);
await smtc.disableSmtc();
break;
case AudioPlaybackState.completed:
await smtc.setPlaybackStatus(PlaybackStatus.Changing);
await smtc.disableSmtc();
break;
default:
break;