Exemple #1
0
def on_slider_song_progress_pressed(_slider, audio_engine: IAudioEngine):
    audio_engine.pause()
Exemple #2
0
def on_button_play_pause_toggled(_button, audio_engine: IAudioEngine,
                                 is_toggled: bool):
    if is_toggled:
        audio_engine.pause()
    else:
        audio_engine.resume()