04-17-2021, 02:48 AM
hi,guys
I want to play online mp3 by QMediaPlayer ,it works well on ubuntu PC,but gose wrong on my sbc
below is my code:
QUrl url("https://files.21voa.com/202104/make-or-create.mp3");
QMediaPlayer mediaPlayer;
mediaPlayer.setMedia(url);
mediaPlayer.play();
errors :
GStreamer; Unable to pause - "https://files.21voa.com/202104/make-or-create.mp3"
GStreamer; Unable to pause - "https://files.21voa.com/202104/make-or-create.mp3"
Error: "No URI handler implemented for \"https\"."
I have libgstreamer-1.0.so
/usr/lib/libgstreamer-1.0.so -> libgstreamer-1.0.so.0.1404.0
how can i fix this error?
I want to play online mp3 by QMediaPlayer ,it works well on ubuntu PC,but gose wrong on my sbc
below is my code:
QUrl url("https://files.21voa.com/202104/make-or-create.mp3");
QMediaPlayer mediaPlayer;
mediaPlayer.setMedia(url);
mediaPlayer.play();
errors :
GStreamer; Unable to pause - "https://files.21voa.com/202104/make-or-create.mp3"
GStreamer; Unable to pause - "https://files.21voa.com/202104/make-or-create.mp3"
Error: "No URI handler implemented for \"https\"."
I have libgstreamer-1.0.so
/usr/lib/libgstreamer-1.0.so -> libgstreamer-1.0.so.0.1404.0
how can i fix this error?