1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +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:
Zaggy1024 2023-09-02 17:53:31 -05:00 committed by Tim Flynn
parent a53459192f
commit daf3d4c6ef

View file

@ -78,7 +78,6 @@ AudioCodecPluginAgnostic::AudioCodecPluginAgnostic(NonnullRefPtr<Audio::Loader>
m_update_timer->on_timeout = [this]() {
update_timestamp();
};
m_update_timer->start();
}
void AudioCodecPluginAgnostic::resume_playback()