3#ifndef QQnxMediaPlayer_H
4#define QQnxMediaPlayer_H
20#include <private/qplatformmediaplayer_p.h>
21#include <QtCore/qabstractnativeeventfilter.h>
22#include <QtCore/qpointer.h>
23#include <QtCore/qtimer.h>
25#include <mm/renderer.h>
26#include <mm/renderer/types.h>
68 void pause()
override;
74 void setVolume(
float volume);
75 void setMuted(
bool muted);
79 void startMonitoring();
80 void stopMonitoring();
81 void resetMonitoring();
83 void openConnection();
84 void emitMmError(
const char *msg);
85 void emitMmError(
const QString &msg);
86 void emitPError(
const QString &msg);
88 void handleMmPositionChanged(
qint64 newPosition);
99 void closeConnection();
102 bool attachVideoOutput();
103 bool attachAudioOutput();
107 void detachVideoOutput();
108 void detachAudioOutput();
111 bool isVideoOutputAttached()
const;
112 bool isAudioOutputAttached()
const;
113 bool isInputAttached()
const;
120 void flushPosition();
122 bool isPendingPositionFlush()
const;
124 void setDeferredSpeedEnabled(
bool enabled);
125 bool isDeferredSpeedEnabled()
const;
128 mmr_connection_t *m_connection =
nullptr;
143 qint64 m_pendingPosition = 0;
145 int m_bufferLevel = 0;
149 QTimer m_flushPositionTimer;
154 int m_configuredSpeed = 1000;
156 std::optional<int> m_deferredSpeed;
160 bool m_inputAttached =
false;
161 bool m_muted =
false;
162 bool m_deferredSpeedEnabled =
false;
\inmodule QtCore \reentrant
QObject * parent() const
Returns a pointer to the parent object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVideoSink class represents a generic sink for video data.
Combined button and popup list for selecting options.
n void setPosition(void) \n\
GLenum GLuint GLint level
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QUrl url("example.com")
[constructor-url-reference]