Video looping is not working on apalis imx8

Hi,
We tried to play video in loop, but loop is not working. Help us to resolve the issue.

This our QML code:


Video {
id: videoPlayer
anchors.centerIn: parent
width: 1720
height: 980
source: “qrc:/images/animatedcluster.mp4”
loops: MediaPlayer.Infinite
}

Component.onCompleted: {
    videoPlayer.play()
}

}


we are using the capacitive Touch Display 10.1" LVDS.


Version:
root@apalis-imx8-07239822:~# cat /etc/os-release
ID=tdx-xwayland
NAME=“TDX Wayland with XWayland”
VERSION=“6.7.0-devel-20240624041824+build.0 (kirkstone)”
VERSION_ID=6.7.0-devel-20240624041824-build.0
PRETTY_NAME=“TDX Wayland with XWayland 6.7.0-devel-20240624041824+build.0 (kirkstone)”
DISTRO_CODENAME=“kirkstone”


Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


To address the issue of video looping not working on your Apalis iMX8 with the Capacitive Touch Display 10.1" LVDS, let’s go through a few troubleshooting steps and potential solutions:

  1. Check QML Code for Correctness:
    Your QML code looks mostly correct, but ensure that the loops property is set correctly. The MediaPlayer.Infinite should be a valid constant. If it isn’t, you might need to use a different approach to loop the video.

  2. Verify MediaPlayer Support:
    Ensure that the MediaPlayer component supports the loops property. If it doesn’t, you might need to manually handle the looping by listening to the onStopped signal and restarting the video.

  3. Manual Looping:
    If the loops property is not working as expected, you can manually loop the video by connecting to the onStopped signal. Here is an example of how you can modify your QML code:

    Video {
        id: videoPlayer
        anchors.centerIn: parent
        width: 1720
        height: 980
        source: "qrc:/images/animatedcluster.mp4"
        onStopped: {
            videoPlayer.play()
        }
    }
    
    Component.onCompleted: {
        videoPlayer.play()
    }
    
  4. Check for Software Updates:
    Ensure that your software stack is up to date. Sometimes, issues like these are resolved in newer versions of the software. You are using TDX Wayland with XWayland 6.7.0-devel-20240624041824+build.0 (kirkstone). Check if there are any updates or patches available for your version.

  5. Consult Documentation and Support:
    If the issue persists, consult the documentation for the Video and MediaPlayer components to ensure there are no known issues or additional properties that need to be set. Additionally, you can reach out to Toradex technical support for further assistance.

If none of these steps resolve the issue, it might be a specific problem with the software stack or the way the video playback is handled on the Apalis iMX8. In that case, providing detailed logs and reaching out to technical support would be the next best step.

we tried this, still not working

onStopped: {
        videoPlayer.play()
    }

Hi @Shanmugapriyan,
Have you already taken reference from QML video example from QT?
Unfortunately, this is related to application support and we would not be able to provide you much help on this.