Android: fix QMediaPlayer::bufferStatus value.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 12 May 2014 15:21:52 +0000 (17:21 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 15 May 2014 13:12:18 +0000 (15:12 +0200)
commit235c863db9c495e820fe7ac53918e74f342b71e6
tree61ba9331f069f4612dc9e75a8cf1d5c256e3e926
parentc376e13abdcce32e65512db1236cb4b41d4fa1ea
Android: fix QMediaPlayer::bufferStatus value.

It was returning the buffering progress for the whole media, which is
not what is expected according to the documentation.
It should return instead how much the playback buffer is filled. This
information is not available on Android so we simply return 100% when
the status is BufferedMedia or BufferingMedia, 0% otherwise.

Change-Id: I9fb55a9317948ba9375291a57bbf100f186382a2
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp
src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.h