QMediaPlayer doesn't play anything on Ubuntu 16.04 / Qt 5.6

给你一囗甜甜゛ 提交于 2019-11-29 15:17:19

First, run your application with QT_DEBUG_PLUGINS=1 to see plugin errors.

If you see errors about "libgstaudio-0.10.so.0", it's a GStreamer version problem. The official Qt binaries seems to need GStreamer 0.10.

Solutions I found :

  • Use the libqt shipped with your distribution, using your package manager : It's the best solution I found, since it's built with the right GStreamer version. I use different chroot to make packages for distributions that embed different GStreamer versions.
  • Compile Qt from source to enable Gstreamer 1.0 : Not tested
  • Install Gstreamer 0.10 : I don't recommend this option, or use a chroot with an older distribution if you need it.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!