play when switch
This commit is contained in:
parent
f0bba3a390
commit
2ac979e207
@ -203,6 +203,8 @@ class MediaController(QObject):
|
|||||||
# Если переключаемся с Bluetooth на CarPlay - ставим паузу
|
# Если переключаемся с Bluetooth на CarPlay - ставим паузу
|
||||||
if self._current_mode == "bluetooth" and mode == "carplay":
|
if self._current_mode == "bluetooth" and mode == "carplay":
|
||||||
self._controllers["bluetooth"].pause()
|
self._controllers["bluetooth"].pause()
|
||||||
|
elif self._current_mode == "carplay" and mode == "bluetooth":
|
||||||
|
self._controllers["bluetooth"].play()
|
||||||
self._current_mode = mode
|
self._current_mode = mode
|
||||||
# Сигнал о смене режима для обновления UI
|
# Сигнал о смене режима для обновления UI
|
||||||
self.metadata_changed.emit(self.get_metadata())
|
self.metadata_changed.emit(self.get_metadata())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user