Qt6 QML Multimedia: How to set up and use alsasink?
-
HI All:
When I use the QML MediaPlayer component to play audio, the log outputs:"qt.multimedia.gstreamer: Using Qt multimedia with GStreamer version: 'GStreamer 1.22.12' PulseAudioService: pa_context_connect() failed". 0:00:00.234714549 830 0xa75e070 WARN basesrc gstbasesrc.c:3695:gst_base_src_start_complete:<source> pad not activated yet 0:00:00.237213103 830 0xa75e070 WARN basesrc gstbasesrc.c:3695:gst_base_src_start_complete:<source> pad not activated yet 0:00:04.146797531 830 0xb2471b0 WARN pulse pulsesink.c:616:gst_pulseringbuffer_open_device:<audiosink> error: Failed to connect: Connection refused 0:00:04.147973185 830 0xb2471b0 ERROR playbin gstplaybin2.c:5528:activate_group:<playbin> failed to activate sinks 0:00:04.148426558 830 0xb2471b0 ERROR gst-play gstplay.c:938:on_error:<play0> Error: Failed to play (gst-play-error-quark, 0) 0:00:05.721204627 830 0xb2471b0 ERROR gst-play gstplay.c:938:on_error:<play0> Error: Failed to pause (gst-play-error-quark, 0)However, the Linux development board I am using does not have the PulseAudio service. How should I configure the MediaPlayer component to play music using alsasink?