4#ifndef QWASMMEDIADEVICES_H
5#define QWASMMEDIADEVICES_H
18#include <private/qplatformmediadevices_p.h>
20#include <private/qplatformvideodevices_p.h>
22#include <QtCore/private/qstdweb_p.h>
27#include <QtCore/qloggingcategory.h>
29#include <emscripten.h>
30#include <emscripten/val.h>
31#include <emscripten/bind.h>
32#include <QMapIterator>
37class QWasmAudioEngine;
67 void updateCameraDevices();
68 void getMediaDevices();
69 void getOpenALAudioDevices();
71 QMap <std::string, QAudioDevice> m_audioOutputs;
72 QMap <std::string, QAudioDevice> m_audioInputs;
73 QMap <std::string, QCameraDevice> m_cameraDevices;
76 std::unique_ptr<qstdweb::EventCallback> m_deviceChangedCallback;
78 bool m_videoInputsAdded =
false;
79 bool m_audioInputsAdded =
false;
80 bool m_audioOutputsAdded =
false;
81 emscripten::val m_jsMediaDevicesInterface = emscripten::val::undefined();
82 bool m_initDone =
false;
The QAudioDevice class provides an information about audio devices and their functionality.
QObject * parent() const
Returns a pointer to the parent object.
QList< QCameraDevice > videoDevices() const override
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)