22 #ifndef QTAV_PLAYERSUBTITLE_H 23 #define QTAV_PLAYERSUBTITLE_H 25 #include <QtCore/QObject> 26 #include <QtCore/QVariant> 27 #include <QtCore/QVector> 51 void setFile(
const QString& file);
57 void setAutoLoad(
bool value);
58 bool autoLoad()
const;
60 void autoLoadChanged(
bool value);
63 void onEnabledChanged(
bool value);
65 void onPlayerSourceChanged();
66 void onPlayerPositionChanged();
69 void tryReloadInternalSub();
70 void updateInternalSubtitleTracks(
const QVariantList& tracks);
71 void processInternalSubtitlePacket(
int track,
const QtAV::Packet& packet);
72 void processInternalSubtitleHeader(
const QByteArray &codec,
const QByteArray& data);
74 void connectSignals();
75 void disconnectSignals();
76 void tryReload(
int flag);
83 QVariantList m_tracks;
84 QVector<Packet> m_current_pkt;
88 #endif // QTAV_PLAYERSUBTITLE_H The PlayerSubtitle class Bind Subtitle to AVPlayer.
Definition: PlayerSubtitle.h:40
#define Q_AV_PRIVATE_EXPORT
Definition: QtAV_Global.h:43
Definition: Subtitle.h:50
The AVPlayer class Preload:
Definition: AVPlayer.h:62
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31