Important: Please read the Qt Code of Conduct -

About qml video element(qt mobility) problem

  • Hi, now i develop a game by qt quick, but i find out that the video resouces are not released after game over and close video page, so cause game serious decline in performance and speed, it is very badly.

    my sdk is 4.7.4
    my device is nokia N8(anna), E7(bella)
    my video resource size is 15M

    my video page like below:
    import QtQuick 1.1
    import 1.1
    import QtMultimediaKit 1.1
    Page {
    id: videoPage
    orientationLock: PageOrientation.LockLandscape
    Video {
    id: video
    anchors.fill: parent
    source: "video4.avi"
    volume: 0.4
    focus: true

           anchors.fill: parent
           onDoubleCliked: {
                 pageStack.replace( Qt.resolvedUrl("LevelSelectPage.qml"),true);
           onClicked: {


    [Edit: Please wrap code in @ tags. Thanks. -mlong]

  • I think that you have solution, don't you? Please help me?

  • You tryed to use
    @asyncronous: true@
    to speed up the video and dont freeze the game?

    EDIT: Nevermind, Video element doesnt have asyncronous property
    Can you explain your problem better?

  • ok, i used pagestack manage many pages, and a page is game page, when game page is over, then a video page would play a winer video ( it would play a “video.avi”(15M)), after video page is over and colse, i go to game page and play again, at this time, game age perfomance and speed is very badlly.

    [Edit: removed duplicate post. -mlong]

Log in to reply