I use QT 5.3.1 with QT Creator on Windows.
I found in Examples\Qt-5.3\multimediawidgets\videographicsitem\ dir example with QMediaPlayer. But it plays on Windows only .mp4 H264 files and don't want plays .mkv H264 and .avi files.
Also this project doesn't want play .mp4 H264 video (and it's doesn't play any video) on Android 4.0.3 (API 15).
我在Windows上使用Qt 5.3.1和Qt Creator。我在Examples\Qt-5.3\multimediawidgets\videographicsitem\目录中找到了QMediaPlayer.但它只在Windows上播放.mp4 h264文件,不想播放.mkv h264和.avi文件。此外,这个项目不想在Android 4.0.3(API 15)上播放.mp4 h264视频(并且它不播放任何视频)。
Is it possible play on Android 4.0.3 (API 15) play .mp4 H264 video files?
是否可以在Android 4.0.3(API 15)上播放.mp4 h264视频文件?
更多回答
优秀答案推荐
The Qt Multimedia Widgets module is not supported on Android. That's an issue in Qt for Android. You can check it here that video display is only available using the VideoOutput and Video QML items.
Android不支持Qt多媒体窗口小部件模块。这是安卓Qt的一个问题。您可以在此处检查,视频显示仅可使用VideoOutput和Video QML项。
I used QMediaPlayer but only mp4 audio works; mp4 video doesn't appear in QVideoWidget.
我用的是QMediaPlayer,但只有MP4音频可以播放;MP4视频不会出现在QVideoWidget中。
AndroidManifiest can be the solution.
AndroidManifiest可以解决这个问题。
更多回答
Is this still an issue today in 2017? @Nejat
这在2017年仍然是一个问题吗?@Nejat
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
正如它目前所写的,你的答案并不清楚。请编辑以添加更多详细信息,以帮助其他人了解这是如何解决提出的问题的。你可以在帮助中心找到更多关于如何写出好答案的信息。
我是一名优秀的程序员,十分优秀!