Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickmediaplayer_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
#
ifndef
QQUICKMEDIAPLAYER_H
5
#
define
QQUICKMEDIAPLAYER_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists for the convenience
12
// of other Qt classes. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtMultimedia
/
qmediaplayer
.
h
>
19
#
include
<
QtMultimediaQuick
/
qtmultimediaquickexports
.
h
>
20
#
include
<
QtQml
/
qqml
.
h
>
21
#
include
<
QtCore
/
qurl
.
h
>
22
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
Q_MULTIMEDIAQUICK_EXPORT
QQuickMediaPlayer
:
public
QMediaPlayer
27
{
28
Q_OBJECT
29
30
Q_PROPERTY(
bool
autoPlay READ autoPlay WRITE setAutoPlay NOTIFY autoPlayChanged FINAL)
31
32
QML_NAMED_ELEMENT(MediaPlayer)
33
34
public
:
35
QQuickMediaPlayer(QObject *parent =
nullptr
);
36
37
bool
autoPlay()
const
;
38
void
setAutoPlay(
bool
autoPlay);
39
40
private
:
41
void
onMediaStatusChanged(QMediaPlayer::MediaStatus status);
42
43
Q_SIGNALS:
44
void
autoPlayChanged(
bool
autoPlay);
45
46
private
:
47
bool
m_autoPlay =
false
;
48
bool
m_wasMediaLoaded =
false
;
49
};
50
51
QT_END_NAMESPACE
52
53
#
endif
QQuickMediaPlayer
Definition
qquickmediaplayer_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
multimediaquick
qquickmediaplayer_p.h
Generated on
for Qt by
1.18.0