mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
LibWeb: Don't send audio time updates until audio is playing
We would start the timer to send playback time updates to the element before playback had started, so in cases where the `HTMLMediaElement` (incorrectly) creates both an `AudioTrack` and `VideoTrack`, it will not cause the seek bar to flicker between the current video position and zero.
This commit is contained in:
parent
a53459192f
commit
daf3d4c6ef
1 changed files with 0 additions and 1 deletions
|
@ -78,7 +78,6 @@ AudioCodecPluginAgnostic::AudioCodecPluginAgnostic(NonnullRefPtr<Audio::Loader>
|
||||||
m_update_timer->on_timeout = [this]() {
|
m_update_timer->on_timeout = [this]() {
|
||||||
update_timestamp();
|
update_timestamp();
|
||||||
};
|
};
|
||||||
m_update_timer->start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioCodecPluginAgnostic::resume_playback()
|
void AudioCodecPluginAgnostic::resume_playback()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue