sublime_music.players.manager module
- class sublime_music.players.manager.PlayerManager(on_timepos_change, on_track_end, on_player_event, player_device_change_callback, config)[source]
Bases:
object
- Parameters
- __init__(on_timepos_change, on_track_end, on_player_event, player_device_change_callback, config)[source]
- available_player_types: List[Type] = [<class 'sublime_music.players.mpv.MPVPlayer'>, <class 'sublime_music.players.chromecast.ChromecastPlayer'>]
- current_song: Optional[sublime_music.adapters.api_objects.Song]
- play_media(uri, progress, song)[source]
- Parameters
uri (str) –
progress (datetime.timedelta) –
- seek(position)[source]
- Parameters
position (datetime.timedelta) –