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>
This commit is contained in:
Michael Goddard
2012-02-17 17:43:04 +10:00
committed by Qt by Nokia
parent 6468334eb9
commit acbefbf5c6
2 changed files with 16 additions and 0 deletions

View File

@@ -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