4#ifndef QWASMAUDIOOUTPUT_H
5#define QWASMAUDIOOUTPUT_H
18#include <private/qplatformaudiooutput_p.h>
21#include <emscripten/val.h>
22#include <private/qstdweb_p.h>
23#include <private/qwasmaudiosink_p.h>
38 MEDIA_ERR_ABORTED = 1,
41 MEDIA_ERR_SRC_NOT_SUPPORTED
45 void setMuted(
bool muted)
override;
46 void setVolume(
float volume)
override;
52 void setSource(
const QUrl &
url);
54 void setVideoElement(emscripten::val videoElement);
68 void doElementCallbacks();
69 void createAudioElement(
const std::string &
id);
71 emscripten::val videoElement();
73 QScopedPointer<QWasmAudioSink> m_sink;
74 QScopedPointer<qstdweb::EventCallback> m_playEvent;
75 QScopedPointer<qstdweb::EventCallback> m_endedEvent;
76 QScopedPointer<qstdweb::EventCallback> m_durationChangeEvent;
77 QScopedPointer<qstdweb::EventCallback> m_errorChangeEvent;
78 QScopedPointer<qstdweb::EventCallback> m_canPlayChangeEvent;
79 QScopedPointer<qstdweb::EventCallback> m_canPlayThroughChangeEvent;
81 QScopedPointer<qstdweb::EventCallback> m_playingChangeEvent;
82 QScopedPointer<qstdweb::EventCallback> m_progressChangeEvent;
83 QScopedPointer<qstdweb::EventCallback> m_pauseChangeEvent;
84 QScopedPointer<qstdweb::EventCallback> m_timeUpdateEvent;
85 QScopedPointer<qstdweb::EventCallback> m_loadedDataEvent;
89 emscripten::val m_audio = emscripten::val::undefined();
90 emscripten::val m_videoElement = emscripten::val::undefined();
92 qreal m_currentBufferedValue;
IOBluetoothDevice * device
The QAudioDevice class provides an information about audio devices and their functionality.
\qmltype AudioOutput \instantiates QAudioOutput
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
void progressChanged(qint32 position)
void sizeChange(qint32 width, qint32 height)
void bufferingChanged(qint32 percent)
void errorOccured(qint32 code, const QString &message)
void stateChanged(QWasmMediaPlayer::QWasmMediaPlayerState newState)
void statusChanged(QMediaPlayer::MediaStatus status)
QWasmAudioOutput(QAudioOutput *qq)
void durationChanged(qint64 duration)
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLuint GLsizei const GLchar * message
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
QUrl url("example.com")
[constructor-url-reference]