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();
70 void parseDevices(emscripten::val
devices);
72 QMap <std::string, QAudioDevice> m_audioOutputs;
73 QMap <std::string, QAudioDevice> m_audioInputs;
74 QMap <std::string, QCameraDevice> m_cameraDevices;
77 std::unique_ptr<qstdweb::EventCallback> m_deviceChangedCallback;
79 bool m_videoInputsAdded =
false;
80 bool m_audioInputsAdded =
false;
81 bool m_audioOutputsAdded =
false;
82 emscripten::val m_jsMediaDevicesInterface = emscripten::val::undefined();
83 bool m_initDone =
false;
84 bool m_firstInit =
false;
The QAudioDevice class provides an information about audio devices and their functionality.
QObject * parent() const
Returns a pointer to the parent object.
QWasmCameraDevices(QPlatformMediaIntegration *integration)
QList< QCameraDevice > videoDevices() const override
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)