diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-02-18 17:28:39 +0100 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-03-06 11:53:27 +0100 |
commit | 518dba2fd97be21ec49223c881a35823439cb32e (patch) | |
tree | bbc3fc522f1f3e5558ad730b9856768435aca157 /src/imports/multimedia | |
parent | 19477de84a64f412bca9ce2df62ab9adb3859da2 (diff) |
Add flushMode to Video QML element
Fixes: QTBUG-82299
Change-Id: I3516bb8bacd0df497ba4c76acd4e71d7b82ec9db
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/imports/multimedia')
-rw-r--r-- | src/imports/multimedia/Video.qml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/imports/multimedia/Video.qml b/src/imports/multimedia/Video.qml index 19c437869..24fde22e1 100644 --- a/src/imports/multimedia/Video.qml +++ b/src/imports/multimedia/Video.qml @@ -38,7 +38,7 @@ ****************************************************************************/ import QtQuick 2.0 -import QtMultimedia 5.11 +import QtMultimedia 5.13 /*! \qmltype Video @@ -125,6 +125,23 @@ Item { property alias fillMode: videoOut.fillMode /*! + \qmlproperty enumeration Video::flushMode + + Set this property to define what \c Video should show + when playback is finished or stopped. + + \list + \li VideoOutput.EmptyFrame - clears video output. + \li VideoOutput.FirstFrame - shows the first valid frame. + \li VideoOutput.LastFrame - shows the last valid frame. + \endlist + + The default flush mode is EmptyFrame. + \since 5.15 + */ + property alias flushMode: videoOut.flushMode + + /*! \qmlproperty int Video::orientation The orientation of the \c Video in degrees. Only multiples of 90 |