mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
playback/player/qt: Fix build with new GstPlayer API
Configuration has a separate interface now.
This commit is contained in:
parent
a8fdbf57b2
commit
5fc4fd5958
3 changed files with 0 additions and 19 deletions
|
@ -43,7 +43,6 @@ ApplicationWindow {
|
|||
id: player
|
||||
objectName: "player"
|
||||
volume: 0.5
|
||||
positionUpdateInterval: 100
|
||||
autoPlay: false
|
||||
|
||||
onStateChanged: {
|
||||
|
|
|
@ -361,13 +361,6 @@ bool Player::isSubtitleEnabled() const
|
|||
return subtitleEnabled_;
|
||||
}
|
||||
|
||||
quint32 Player::positionUpdateInterval() const
|
||||
{
|
||||
Q_ASSERT(player_ != 0);
|
||||
|
||||
return gst_player_get_position_update_interval(player_);
|
||||
}
|
||||
|
||||
void Player::setSubtitleEnabled(bool enabled)
|
||||
{
|
||||
Q_ASSERT(player_ != 0);
|
||||
|
@ -379,13 +372,6 @@ void Player::setSubtitleEnabled(bool enabled)
|
|||
emit subtitleEnabledChanged(enabled);
|
||||
}
|
||||
|
||||
void Player::setPositionUpdateInterval(quint32 interval)
|
||||
{
|
||||
Q_ASSERT(player_ != 0);
|
||||
|
||||
gst_player_set_position_update_interval(player_, interval);
|
||||
}
|
||||
|
||||
Player::Player(QObject *parent, VideoRenderer *renderer)
|
||||
: QObject(parent)
|
||||
, player_()
|
||||
|
|
|
@ -45,8 +45,6 @@ class Player : public QObject
|
|||
Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
|
||||
Q_PROPERTY(qint64 duration READ duration NOTIFY durationChanged)
|
||||
Q_PROPERTY(qint64 position READ position NOTIFY positionUpdated)
|
||||
Q_PROPERTY(quint32 positionUpdateInterval READ positionUpdateInterval
|
||||
WRITE setPositionUpdateInterval)
|
||||
Q_PROPERTY(qreal volume READ volume WRITE setVolume NOTIFY volumeChanged)
|
||||
Q_PROPERTY(bool muted READ isMuted WRITE setMuted NOTIFY mutedChanged)
|
||||
Q_PROPERTY(int buffering READ buffering NOTIFY bufferingChanged)
|
||||
|
@ -92,7 +90,6 @@ public:
|
|||
QVariant currentAudio() const;
|
||||
QVariant currentSubtitle() const;
|
||||
bool isSubtitleEnabled() const;
|
||||
quint32 positionUpdateInterval() const;
|
||||
bool autoPlay() const;
|
||||
QList<QUrl> playlist() const;
|
||||
|
||||
|
@ -123,7 +120,6 @@ public slots:
|
|||
void setCurrentAudio(QVariant track);
|
||||
void setCurrentSubtitle(QVariant track);
|
||||
void setSubtitleEnabled(bool enabled);
|
||||
void setPositionUpdateInterval(quint32 interval);
|
||||
void setPlaylist(const QList<QUrl> &playlist);
|
||||
void next();
|
||||
void previous();
|
||||
|
|
Loading…
Reference in a new issue