Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.7.2
-
None
-
Linux, wayland, sailfish, pulseaudio
Description
I have built and packaged Qt 6.7.2 for SailfishOS, including QtMultiemedia with the ffmpeg and gstreamer backends.
Generally, Qt/QML components are working, except for those in Multimedia (currently MediaPlayer and SoundEffect)
I have not been able to get any sound output to work with a basic example using local files. Media playback in qt 5.15 was known to work.
With the gstreamer backend, I see errors like "internal data stream error", with the ffmpeg backend, I see QAudioSink: snd_pcm_hw_params: err = -22
Pulseaudio version is 14.x and otherwise works
Example qml:
import QtQuick import QtQuick.Window import QtQuick.Controls import QtMultimedia as QTMM Window { // Unique identifier to reference this object id: root width: 400 height: 400 visible: true title: "mediatest" QTMM.MediaDevices { id: devices } QTMM.MediaPlayer { id: player audioOutput: QTMM.AudioOutput { device: devices.defaultAudioOutput } source: "/home/defaultuser/PinkPanther60.wav" onErrorOccurred: { msg.text = player.errorString } } QTMM.SoundEffect { id: playSound source: "/home/defaultuser/PinkPanther60.wav" } Button { x: 50 y: 60 onClicked: { console.log("click"); if (player.playing) { player.stop(); } else { player.play(); } } } Button { x: 150 y: 50 onClicked: { playSound.play(); } } Label { id: msg x: 50 y: 100 } }