4#ifndef QMEDIAPLAYER_P_H
5#define QMEDIAPLAYER_P_H
24#include <private/qplatformmediaplayer_p.h>
25#include <private/qerrorinfo_p.h>
27#include "private/qobject_p.h"
28#include <QtCore/qobject.h>
29#include <QtCore/qpointer.h>
30#include <QtCore/qurl.h>
31#include <QtCore/qfile.h>
32#include <QtCore/qtimer.h>
38class QPlatformMediaPlayer;
42 Q_DECLARE_PUBLIC(QMediaPlayer)
66 void setMedia(
const QUrl &media, QIODevice *stream =
nullptr);
70 void setState(QMediaPlayer::PlaybackState state);
71 void setStatus(QMediaPlayer::MediaStatus status);
72 void setError(QMediaPlayer::Error error,
const QString &errorString);
77 if (sink == videoSink)
80 videoSink->setSource(
nullptr);
86 emit q->videoOutputChanged();
The QPlaybackOptions class enables low-level control of media playback options.