Android: fixed media player buffering logic.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 29 Jul 2013 14:28:15 +0000 (16:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 19 Aug 2013 13:31:21 +0000 (15:31 +0200)
commit4585518d523ec5fcc2c0e35f472926d060ca7871
tree3d1274a7ab2c8603b1327bfdc43b4b1a8bc254d3
parentc86d14a380118bc530547c69ba982d2c5e04a992
Android: fixed media player buffering logic.

When the media is ready, the status should always transition to
LoadedMedia and then immediately to BufferingMedia or BufferedMedia.
Also, when the duration is queried before the media is ready but already
buffering, it should always return 0 to avoid errors from the Android
media player.

Task-number: QTBUG-32635
Change-Id: Ibcb9c23b4f64c4f9a1a8e0ef81989ae78cfb19ef
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/android/jar/src/org/qtproject/qt5/android/multimedia/QtAndroidMediaPlayer.java
src/plugins/android/mediaplayer/qandroidmediaplayercontrol.cpp