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:
parent
aa0f7d9c89
commit
a6b938b407
3 changed files with 7 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue