1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

LibVideo/VideoPlayer: Dispatch state change events and update play icon

The PlaybackStateChangeEvent wasn't connected up anymore, so the player
wouldn't change icons when stopping playback due to reaching the end of
the stream or encountering an error.
This commit is contained in:
Zaggy1024 2023-02-12 02:25:25 -06:00 committed by Andreas Kling
parent aa0f7d9c89
commit a6b938b407
3 changed files with 7 additions and 2 deletions

View file

@ -129,7 +129,6 @@ void VideoPlayerWidget::resume_playback()
if (!m_playback_manager || m_seek_slider->knob_dragging())
return;
m_playback_manager->resume_playback();
update_play_pause_icon();
}
void VideoPlayerWidget::pause_playback()
@ -137,7 +136,6 @@ void VideoPlayerWidget::pause_playback()
if (!m_playback_manager || m_seek_slider->knob_dragging())
return;
m_playback_manager->pause_playback();
update_play_pause_icon();
}
void VideoPlayerWidget::toggle_pause()