Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
4
#
include
"qplatformmediaplayer_p.h"
5
#
include
<
private
/
qmediaplayer_p
.
h
>
6
#
include
"qmediaplayer.h"
7
#
include
"qplatformmediaintegration_p.h"
8
9
QT_BEGIN_NAMESPACE
10
11
QPlatformMediaPlayer::QPlatformMediaPlayer(QMediaPlayer *parent) : player(parent)
12
{
13
}
14
15
QPlatformMediaPlayer::~QPlatformMediaPlayer() =
default
;
16
17
void
QPlatformMediaPlayer::stateChanged(QMediaPlayer::PlaybackState newState)
18
{
19
if
(newState == m_state)
20
return
;
21
m_state = newState;
22
player->d_func()->setState(newState);
23
}
24
25
void
QPlatformMediaPlayer::mediaStatusChanged(QMediaPlayer::MediaStatus status)
26
{
27
if
(m_status == status)
28
return
;
29
m_status = status;
30
player->d_func()->setStatus(status);
31
}
32
33
void
QPlatformMediaPlayer::error(QMediaPlayer::Error error,
const
QString &errorString)
34
{
35
player->d_func()->setError(error, errorString);
36
}
37
38
QPlatformMediaPlayer::PitchCompensationAvailability
39
QPlatformMediaPlayer::pitchCompensationAvailability()
const
40
{
41
return
PitchCompensationAvailability::Unavailable;
42
}
43
44
void
QPlatformMediaPlayer::setPitchCompensation(
bool
/*enabled*/
)
45
{
46
qWarning() <<
"QMediaPlayer::setPitchCompensation not supported on this QtMultimedia "
47
"backend"
;
48
}
49
50
bool
QPlatformMediaPlayer::pitchCompensation()
const
51
{
52
return
false
;
53
}
54
55
void
QPlatformMediaPlayer::pitchCompensationChanged(
bool
enabled)
const
56
{
57
emit player->pitchCompensationChanged(enabled);
58
}
59
60
QPlaybackOptions QPlatformMediaPlayer::playbackOptions()
const
61
{
62
return
player->playbackOptions();
63
}
64
65
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtmultimedia
src
multimedia
platform
qplatformmediaplayer.cpp
Generated on
for Qt by
1.16.1