Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device
-
i create a UI for playing a music like car stereo. but this is can not playing music and this is not has any Error!
My imports in qml code:
import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.12 import QtMultimedia 5.12 import Qt.labs.folderlistmodel 2.1
and i install this packages:
sudo apt -y install python3-pyqt5.qtmultimedia sudo apt -y install python3-pyqt5.qtquick sudo apt -y install qt5-quick-demos sudo apt -y install libqt5multimedia5-plugins qml-module-qtmultimedia
i tested my code in my Ubuntu its worked! what is my wrong?
-
@EmadDeve20 What format do these audio files have?
Did you also install GStreamer plug-ins? -
@EmadDeve20 Install all libgstreamer-plugins-* packages using apt
-
@jsulm i installed and right now i get this error message:
Error: "Your GStreamer" installation is missing a plug-in
do you know what is this?
and in first start app i get this Error:Please install the 'bad' GStreamer plugin package.
and after this i install this package:
sudo apt-get install -y gstreamer1.0-plugins-bad
but not works!
-
i solved my problem with this link:
https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=cthx @jsulm :D
-
@EmadDeve20 said in Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device:
but not works!
What does that mean? What happens?
On Ubuntu the package name is libgstreamer-plugins-bad, not gstreamer1.0-plugins-bad. -
@EmadDeve20 said in Why I cant Play Audio Files? My Code is on armbian os in orangepipluse2 device:
armbian
I know, but Armbian is based on Debian und Ubuntu too, so usually package names are same.
Good that it works now!