Qtwebengine Quicknano Has No Sound In Embedded Linux
I have compiled QtWebEngine into my i.MX6 embedded device. When I tried to play youtube Video with quicknanobrowser, the video plays but there would be no sound. In fact, there i
Solution 1:
You need to force QtWebEngine
to use ALSA. In embedded systems, it is disabled by default.
In qt5.7/qtwebengine/src/3rdparty/chromium/media/media.gyp
, there is a test to check if we are on an embedded system:
# Enable ALSA and Pulse for runtime selection.
['(OS=="linux" or OS=="freebsd" or OS=="solaris") and ((embedded!=1 and chromecast==0) or is_cast_desktop_build==1)', {
# ALSA is always needed for Web MIDI even if the cras is enabled.'use_alsa%': 1,
'conditions': [
['use_cras==1', {
'use_pulseaudio%': 0,
}, {
'use_pulseaudio%': 1,
}],
],
}, {
'use_alsa%': 0,
'use_pulseaudio%': 0,
}],
I changed last use_alsa%
to 1
and in qt5.7/qtwebengine/src/core/config/embedded_linux.pri
, I added a new flag:
use_alsa=1
With this settings I have audio on my embedded ARM Linux and with flag:
enable_webrtc=1
I am able to start a WebRTC session with video and audio.
Post a Comment for "Qtwebengine Quicknano Has No Sound In Embedded Linux"