diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2023-04-06 10:14:43 +1000 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-04-17 02:46:06 +0000 |
commit | 4f803ca82633d7d7c01a751e314b4a0a98a8ca73 (patch) | |
tree | 447887f454c653a4af311b9adcc5ffb89bdc9ae8 | |
parent | 5c4a9e10a20da14d082cef00b2a29ff5ccdacbfd (diff) | |
download | qtmultimedia-4f803ca82633d7d7c01a751e314b4a0a98a8ca73.tar.gz |
wasm: assign the stalled callback to the stalled event
Change-Id: Id93fe26883f3f3afb70ac18b40da0c9cd715f704
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
(cherry picked from commit 265cb20bc6e2b6895ff006f04e97722f44a03fca)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp b/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp index 91264172f..ba6127176 100644 --- a/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp +++ b/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp @@ -669,7 +669,7 @@ void QWasmVideoOutput::doElementCallbacks() m_currentMediaStatus = QMediaPlayer::StalledMedia; emit statusChanged(m_currentMediaStatus); }; - m_stalledChangeEvent.reset(new qstdweb::EventCallback(m_video, "waiting", stalledCallback)); + m_stalledChangeEvent.reset(new qstdweb::EventCallback(m_video, "stalled", stalledCallback)); // waiting auto waitingCallback = [=](emscripten::val event) { |