mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Set decoder error when decoding fails
This commit is contained in:
parent
2f10243fa2
commit
7c54a32870
Notes:
sideshowbarker
2024-07-17 00:53:02 +09:00
Author: https://github.com/MINAqwq
Commit: 7c54a32870
Pull-request: https://github.com/SerenityOS/serenity/pull/23936
Reviewed-by: https://github.com/Zaggy1024
Reviewed-by: https://github.com/trflynn89
3 changed files with 15 additions and 1 deletions
|
@ -37,6 +37,10 @@ AudioTrack::AudioTrack(JS::Realm& realm, JS::NonnullGCPtr<HTMLMediaElement> medi
|
|||
auto playback_position = static_cast<double>(position.to_milliseconds()) / 1000.0;
|
||||
m_media_element->set_current_playback_position(playback_position);
|
||||
};
|
||||
|
||||
m_audio_plugin->on_decoder_error = [this](String error_message) {
|
||||
m_media_element->set_decoder_error(error_message).release_value_but_fixme_should_propagate_errors();
|
||||
};
|
||||
}
|
||||
|
||||
AudioTrack::~AudioTrack()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue