4#ifndef QWASMMEDIARECORDER_H
5#define QWASMMEDIARECORDER_H
18#include <private/qplatformmediarecorder_p.h>
19#include <private/qplatformmediacapture_p.h>
20#include <QtCore/qglobal.h>
21#include <QtCore/qloggingcategory.h>
22#include <QElapsedTimer>
24#include <emscripten.h>
25#include <emscripten/val.h>
26#include <emscripten/bind.h>
27#include <private/qstdweb_p.h>
47 void pause()
override;
55 bool hasCamera()
const;
56 void startAudioRecording();
57 void setStream(emscripten::val
stream);
58 void streamCallback(emscripten::val
event);
59 void exceptionCallback(emscripten::val
event);
60 void dataAvailableCallback(emscripten::val dataEvent);
64 void audioDataAvailable(emscripten::val
Blob,
double timeCodeDifference);
67 emscripten::val m_mediaRecorder = emscripten::val::undefined();
68 emscripten::val m_mediaStream = emscripten::val::undefined();
81 bool m_isRecording =
false;
82 QScopedPointer <QElapsedTimer> m_durationTimer;
\inmodule QtCore \reentrant
QObject * parent() const
Returns a pointer to the parent object.
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
QSettings settings("MySoft", "Star Runner")
[0]