Open kuepe-sl opened 2 years ago
I just noticed that the file <ROOT>/plugins/mediaservice/libgstmediaplayer.so
is missing in the package.
The file was present in qt 5.12.9, build 4 (linux64), but it went missing in build 5. (MR #214)
By installing qt=5.12.9=hda022c4_4
, the error message vanishes unter Linux. It appears to play the file back (player.state()
returns 1
), but without audio.
mamba install -c dtk-forge gst-plugins-good-pulseaudio
eventually gives me audio.
The error ("no service found") persists under Windows even with build 4.
Did you compile PyQt using the qt-main package? There are no PyQt packages available: https://github.com/conda-forge/pyqt-feedstock/pull/107
I used the existing pyqt
package.
However the pyqt package doesn't seem to be version-pinned, so it ends up installing v5.12.3:
pyqt 5.12.3 py39hf3d152e_8 conda-forge
This version of pyqt worked fine enough for testing. I assumed a small Python script would be easier to test than a full C++ project.
Solution to issue cannot be found in the documentation.
Issue
When trying to instantiate a
QMediaPlayer
object, I get the following error message:Trying to play back a WAV or MP3 file results in silence.
Here is an example program that shows the error:
The program needs the packages:
pyqt gst-plugins-good
and can be run like thisThe same error and behaviour occours after compiling the official Qt Media Player Example using the Conda Qt toolchain and qmake.
EDIT: I just tried the script under Windows and I get the same issue there.
Installed packages
Environment info