Back to Blog
Media player codec pack 4.1.46/19/2023 ![]() Mediaplayer->setMedia(QUrl::fromLocalFile("/home/root/test.mp4")) MainWindow::MainWindow(QWidget *parent) : Source: "file:///forlinux/video/test.mp4" I use qml to play media success, but failed with QMediaPlayer, Have you ever tried this? PREFERRED_PROVIDER_psplash = "meta-yocto" Packagegroup-core-buildessential pkgconfig \īoost cmake zlib glib-2.0 packagegroup-fsl-tools-testapps \Ĭairo pango fontconfig freetype pulseaudio dbus \ ![]() IMAGE_INSTALL_append = " gcc g binutils libgcc libgcc-dev libstdc libstdc -dev libstdc -staticdev \Īutoconf automake ccache chkconfig glib-networking glibmm \ #PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl" #PACKAGECONFIG_append_pn-qemu-native = " sdl" ![]() Please check the media service plugins are installed.ĮXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh" On my target got a popup that indicates : The QMediaPlayer object does not have a valide service. All it's ok but when I run this application, I've got this error :Ĭonsole qtcreator : defaultServiceProvider::requestService(): no service found for - ".mediaplayer So I retrieved the player example from Qt website and compile it in Qtcreator. To continue this experience, I've decided to test QtMultimedia that, if I correctly understand Qt documentation, needs gstreamer to work (gstreamer works as backend on linux for Qtmultimedia). I then added Qt5 in my core image minimal and same, the Qt5cinematics example works like a charm accross eglfs. Today, I've succeed to create a minimal image with differents gstreamer1.0 plugins and it works fine. After some reading on Internet, I've decided to build a linux image usin yocto (with fsl comunity bsp.
0 Comments
Read More
Leave a Reply. |