summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Goddard <michael.goddard@nokia.com>2012-02-17 17:43:04 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-17 09:16:06 +0100
commitacbefbf5c6ebfe1987f861737687379c65dc9709 (patch)
treef62e8a2957bfa9b6ff0bac95f1494e3837f6acf9
parent6468334eb922af18f02ea196d2ac0aff00c71a74 (diff)
Add the hasAudio/hasVideo properties from MediaPlayer to Video.
Change-Id: I167184c3622c4fcb0843b17f2ab803b0bbf104fa Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
-rw-r--r--src/imports/multimedia/Video.qml14
-rw-r--r--src/imports/multimedia/Video_4.qml2
2 files changed, 16 insertions, 0 deletions
diff --git a/src/imports/multimedia/Video.qml b/src/imports/multimedia/Video.qml
index a8f67e79..b9d01ff2 100644
--- a/src/imports/multimedia/Video.qml
+++ b/src/imports/multimedia/Video.qml
@@ -192,6 +192,20 @@ Item {
*/
property alias errorString: player.errorString
+ /*!
+ \qmlproperty bool Video::hasAudio
+
+ This property holds whether the current media has audio content.
+ */
+ property alias hasAudio: player.hasAudio
+
+ /*!
+ \qmlproperty bool Video::hasVideo
+
+ This property holds whether the current media has video content.
+ */
+ property alias hasVideo: player.hasVideo
+
/* documented below due to length of metaData documentation */
property alias metaData: player.metaData
diff --git a/src/imports/multimedia/Video_4.qml b/src/imports/multimedia/Video_4.qml
index aab44515..c8c47fa5 100644
--- a/src/imports/multimedia/Video_4.qml
+++ b/src/imports/multimedia/Video_4.qml
@@ -57,6 +57,8 @@ Item {
property alias duration: player.duration
property alias error: player.error
property alias errorString: player.errorString
+ property alias hasAudio: player.hasAudio
+ property alias hasVideo: player.hasVideo
property alias metaData: player.metaData
property alias muted: player.muted
property alias paused: player.paused