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
qmediaenginetimedtextnotify_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QMEDIAENGINETIMEDTEXTNOTIFY_P_H
5#define QMEDIAENGINETIMEDTEXTNOTIFY_P_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 purely as an
12// implementation detail. 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 <qwindowsmfdefs_p.h>
19
20#include <QtCore/qobject.h>
21
22#include <QtCore/private/qcomobject_p.h>
23
25
26class QMediaEngineTimedTextNotify : public QObject, public QComObject<IMFTimedTextNotify>
27{
28 Q_OBJECT
29public:
30 // IMFTimedTextNotify
31 void STDMETHODCALLTYPE TrackAdded(DWORD trackId) override;
32 void STDMETHODCALLTYPE TrackRemoved(DWORD trackId) override;
33 void STDMETHODCALLTYPE TrackSelected(DWORD trackId, BOOL selected) override;
34 void STDMETHODCALLTYPE TrackReadyStateChanged(DWORD trackId) override;
35 void STDMETHODCALLTYPE Error(MF_TIMED_TEXT_ERROR_CODE errorCode, HRESULT extendedErrorCode,
36 DWORD sourceTrackId) override;
37 void STDMETHODCALLTYPE Cue(MF_TIMED_TEXT_CUE_EVENT cueEvent, double currentTime,
38 IMFTimedTextCue *cue) override;
39 void STDMETHODCALLTYPE Reset() override;
40
41Q_SIGNALS:
42 void trackAdded(DWORD trackId);
43 void subtitleTextChanged(const QString &text);
44};
45
46QT_END_NAMESPACE
47
48#endif // QMEDIAENGINETIMEDTEXTNOTIFY_P_H
float bufferProgress() const override
void setPlaybackRate(qreal rate) override
void setActiveTrack(TrackType type, int index) override
void setAudioOutput(QPlatformAudioOutput *output) override
qint64 duration() const override
void setMedia(const QUrl &media, QIODevice *stream) override
QMediaTimeRange availablePlaybackRanges() const override
qint64 position() const override
qreal playbackRate() const override
int activeTrack(TrackType type) override
QMediaEnginePlayer(QMediaPlayer *player)
void setVideoSink(QVideoSink *sink) override
QUrl media() const override
void setPosition(qint64 position) override
QMediaMetaData trackMetaData(TrackType type, int trackNumber) override
PitchCompensationAvailability pitchCompensationAvailability() const override
const QIODevice * mediaStream() const override
QMediaMetaData metaData() const override
int trackCount(TrackType type) override
Combined button and popup list for selecting options.
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")