Unsolved MediaPlayer not works
-
import QtQuick 2.6 import QtQuick.Window 2.2 import QtMultimedia 5.8 Window { id: window visible: true width: 640 height: 480 title: qsTr("Hello World") MediaPlayer { id: medFPV source: "file:///mnt/sdcard/3-5.mp4" autoLoad: true autoPlay: true } VideoOutput { id: vidFpvMed source: medFPV anchors.fill: parent } }
App opend and all controlls works, but no video or audio
Tested on android 4.1 and 6.0 -
Hi,
What version of Qt ?
What version of Android ?
Does your application have access to the SD Card ?
Can you play that file with another multimedia player on your device ? -
Qt 5.11
Android SDK 26 , NDK 17c , API 23
Device Samsung Grand Prime Plus (Android 6.0)android.permission.READ_EXTERNAL_STORAGE
The file in internal memory not sd card
is android.permission.READ_EXTERNAL_STORAGE give me access for internel memory ?Yes i can play file with built-in player
-
You should add handling of the MediaPlayer error signal.
-
no errors
i changed ndk to 10e, and now audio only works, also all controlls and seekbar works, but no video, just black box
-
Have you installed codec software ? Like i was also facing problem while making video player using Qt, but then i installed Codec then my program worked 😊