From acbefbf5c6ebfe1987f861737687379c65dc9709 Mon Sep 17 00:00:00 2001 From: Michael Goddard Date: Fri, 17 Feb 2012 17:43:04 +1000 Subject: Add the hasAudio/hasVideo properties from MediaPlayer to Video. Change-Id: I167184c3622c4fcb0843b17f2ab803b0bbf104fa Reviewed-by: Mithra Pattison Reviewed-by: Michael Goddard --- src/imports/multimedia/Video.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/imports/multimedia/Video.qml') diff --git a/src/imports/multimedia/Video.qml b/src/imports/multimedia/Video.qml index a8f67e79c..b9d01ff27 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 -- cgit v1.2.3