10#include <QtCore/QMimeType>
13#include <private/qmediastoragelocation_p.h>
14#include <private/qmediarecorder_p.h>
41 if (!m_captureService || !m_mediaDeviceSession) {
50 if (!m_sessionWasActive) {
65 settings.mimeType().preferredSuffix());
109 if (!m_sessionWasActive)
119 if (m_captureService == captureSession)
122 if (m_captureService)
125 m_captureService = captureSession;
126 if (!m_captureService) {
127 m_mediaDeviceSession =
nullptr;
131 m_mediaDeviceSession = m_captureService->
session();
153void QWindowsMediaEncoder::saveMetadata()
159 IPropertyStore *store =
nullptr;
161 if (SUCCEEDED(SHGetPropertyStoreFromParsingName(
reinterpret_cast<LPCWSTR
>(nativeFileName.
utf16()),
162 nullptr, GPS_READWRITE, IID_PPV_ARGS(&store)))) {
172void QWindowsMediaEncoder::onDurationChanged(
qint64 duration)
178void QWindowsMediaEncoder::onStreamingError(
int errorCode)
180 if (errorCode == MF_E_VIDEO_RECORDING_DEVICE_INVALIDATED)
182 else if (errorCode == MF_E_AUDIO_RECORDING_DEVICE_INVALIDATED)
189 if (!m_sessionWasActive)
194void QWindowsMediaEncoder::onRecordingError(
int errorCode)
199 auto lastState = m_state;
201 if (m_state != lastState)
205void QWindowsMediaEncoder::onCameraChanged()
209void QWindowsMediaEncoder::onRecordingStarted()
213void QWindowsMediaEncoder::onRecordingStopped()
217 auto lastState = m_state;
219 if (m_state != lastState)
225#include "moc_qwindowsmediaencoder_p.cpp"
static QString toNativeSeparators(const QString &pathName)
constexpr bool isEmpty() const noexcept
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
Combined button and popup list for selecting options.
static QString toLocalFile(const QString &url)
QLatin1StringView QLatin1String
QSettings settings("MySoft", "Star Runner")
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent