Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qplatformmediaplayer.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5#include <private/qmediaplayer_p.h>
6#include "qmediaplayer.h"
8
10
12{
14}
15
17{
18}
19
21{
22 if (newState == m_state)
23 return;
24 m_state = newState;
25 player->d_func()->setState(newState);
26}
27
29{
30 if (m_status == status)
31 return;
32 m_status = status;
33 player->d_func()->setStatus(status);
34}
35
36void QPlatformMediaPlayer::error(int error, const QString &errorString)
37{
38 player->d_func()->setError(QMediaPlayer::Error(error), errorString);
39}
40
QMediaPlayer player
Definition audio.cpp:205
The QMediaPlayer class allows the playing of a media files.
MediaStatus
\qmlproperty enumeration QtMultimedia::MediaPlayer::playbackState
PlaybackState
Defines the current state of a media player.
Error
\qmlproperty enumeration QtMultimedia::MediaPlayer::mediaStatus
static QPlatformMediaDevices * instance()
void error(int error, const QString &errorString)
void stateChanged(QMediaPlayer::PlaybackState newState)
QPlatformMediaPlayer(QMediaPlayer *parent=nullptr)
void mediaStatusChanged(QMediaPlayer::MediaStatus status)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent