diff options
author | Joni Poikelin <joni.poikelin@theqtcompany.com> | 2016-04-15 18:35:33 +0300 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@qt.io> | 2016-09-07 12:48:40 +0000 |
commit | 62f1899a23b456f03cfccfaefcdf670d3cbb0f35 (patch) | |
tree | 236543eb24917fe4e153567a20b46dbd6a8ef612 /src/imports/multimedia/Video.qml | |
parent | 2d1c728c4c4522d0e405da514b6ce1a3580239f5 (diff) |
Add notifyInterval for MediaPlayer QML API
Expose notifyInterval as a property from QMediaPlayer.
Task-number: QTBUG-44961
Change-Id: Ia6c671eb68754e5c9a60032289bd821884824c78
Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'src/imports/multimedia/Video.qml')
-rw-r--r-- | src/imports/multimedia/Video.qml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/imports/multimedia/Video.qml b/src/imports/multimedia/Video.qml index 2188d17b9..70bd2ccf4 100644 --- a/src/imports/multimedia/Video.qml +++ b/src/imports/multimedia/Video.qml @@ -38,7 +38,7 @@ ****************************************************************************/ import QtQuick 2.0 -import QtMultimedia 5.6 +import QtMultimedia 5.9 /*! \qmltype Video @@ -374,6 +374,19 @@ Item { property alias autoPlay: player.autoPlay /*! + \qmlproperty int Video::notifyInterval + + The interval at which notifiable properties will update. + + The notifiable properties are \l position and \l bufferProgress. + + The interval is expressed in milliseconds, the default value is 1000. + + \since 5.9 + */ + property alias notifyInterval: player.notifyInterval + + /*! \qmlsignal Video::paused() This signal is emitted when playback is paused. |