Android: fix retrieving metadata from assets, qrc and remote files.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 17 Jul 2014 16:41:44 +0000 (18:41 +0200)
committerYoann Lopes <yoann.lopes@digia.com>
Mon, 25 Aug 2014 15:29:37 +0000 (17:29 +0200)
commit341b86c63fbe9e9f284e2d6547cb639f487a2ec4
tree24eed023702ebbe11c625f3afc4975db622a9e7b
parentfb35f025e320ef1639adf9a5d7bee73faa44e442
Android: fix retrieving metadata from assets, qrc and remote files.

We need the same logic as for the media player: local files and assets
must be loaded with a FileDescriptor.
Because of a bug in Android API level >= 14, remote files have to be
loaded in different ways depending on the version.

Task-number: QTBUG-40274
Change-Id: I6411b959064d22219cf981a4dc8f4f26cf16f65f
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp
src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.h
src/plugins/android/src/mediaplayer/qandroidmediaservice.cpp
src/plugins/android/src/mediaplayer/qandroidmetadatareadercontrol.cpp
src/plugins/android/src/mediaplayer/qandroidmetadatareadercontrol.h
src/plugins/android/src/wrappers/jni/androidmediametadataretriever.cpp
src/plugins/android/src/wrappers/jni/androidmediametadataretriever.h