Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qmediaplayer_p.h>
Static Public Member Functions | |
static QMediaPlayerPrivate * | get (QMediaPlayer *session) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(*) | StaticMetaCallFunction(QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 39 of file qmediaplayer_p.h.
|
default |
|
inlinestatic |
Definition at line 44 of file qmediaplayer_p.h.
void QMediaPlayerPrivate::setError | ( | QMediaPlayer::Error | error, |
const QString & | errorString ) |
Definition at line 121 of file qmediaplayer.cpp.
Definition at line 128 of file qmediaplayer.cpp.
References control.
void QMediaPlayerPrivate::setState | ( | QMediaPlayer::PlaybackState | toState | ) |
\qmltype MediaPlayer \nativetype QMediaPlayer
Adds media playback to a scene.
\inqmlmodule QtMultimedia
\qml Text { text: "Click Me!"; font.pointSize: 24; width: 150; height: 50;
MediaPlayer { id: playMusic source: "music.wav" audioOutput: AudioOutput {} } MouseArea { anchors.fill: parent onPressed: { playMusic.play() } } } \endqml
You can use MediaPlayer together with a MultiMedia::AudioOutput to play audio content, or you can use it in conjunction with a Multimedia::VideoOutput for rendering video.
\qml Item { MediaPlayer { id: mediaplayer source: "groovy_video.mp4" audioOutput: AudioOutput {} videoOutput: videoOutput }
VideoOutput { id: videoOutput anchors.fill: parent }
MouseArea { anchors.fill: parent onPressed: mediaplayer.play(); } } \endqml
Definition at line 102 of file qmediaplayer.cpp.
void QMediaPlayerPrivate::setStatus | ( | QMediaPlayer::MediaStatus | status | ) |
Definition at line 114 of file qmediaplayer.cpp.
|
inline |
Definition at line 72 of file qmediaplayer_p.h.
References control.
QList< QMediaMetaData > QMediaPlayerPrivate::trackMetaData | ( | QPlatformMediaPlayer::TrackType | s | ) | const |
Definition at line 206 of file qmediaplayer.cpp.
References control.
QPointer<QAudioBufferOutput> QMediaPlayerPrivate::audioBufferOutput |
Definition at line 52 of file qmediaplayer_p.h.
QPointer<QAudioOutput> QMediaPlayerPrivate::audioOutput |
Definition at line 53 of file qmediaplayer_p.h.
QPlatformMediaPlayer* QMediaPlayerPrivate::control = nullptr |
Definition at line 50 of file qmediaplayer_p.h.
Referenced by setMedia(), setVideoSink(), and trackMetaData().
QErrorInfo<QMediaPlayer::Error> QMediaPlayerPrivate::error |
Definition at line 62 of file qmediaplayer_p.h.
std::unique_ptr<QFile> QMediaPlayerPrivate::qrcFile |
Definition at line 57 of file qmediaplayer_p.h.
QUrl QMediaPlayerPrivate::qrcMedia |
Definition at line 56 of file qmediaplayer_p.h.
QUrl QMediaPlayerPrivate::source |
Definition at line 58 of file qmediaplayer_p.h.
QMediaPlayer::PlaybackState QMediaPlayerPrivate::state = QMediaPlayer::StoppedState |
Definition at line 61 of file qmediaplayer_p.h.
Definition at line 59 of file qmediaplayer_p.h.
Definition at line 55 of file qmediaplayer_p.h.
QPointer<QVideoSink> QMediaPlayerPrivate::videoSink |
Definition at line 54 of file qmediaplayer_p.h.