Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. About qml video element(qt mobility) problem
Forum Updated to NodeBB v4.3 + New Features

About qml video element(qt mobility) problem

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iayandong19760
    wrote on last edited by
    #1

    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 com.nokia.symbian 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

        MouseArea{
            id:testp
           anchors.fill: parent
           onDoubleCliked: {
        
                 video.stop();
                 pageStack.replace( Qt.resolvedUrl("LevelSelectPage.qml"),true);
           }
    
           onClicked: {
               video.play();
           }
        }
    }
    

    }
    @

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

    1 Reply Last reply
    0
    • I Offline
      I Offline
      iayandong19760
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GentooXativa
        wrote on last edited by
        #3

        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?

        Jose Vicente Giner Sanchez - Senior Mobile Developer

        www.gigigo.com

        C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
        T: +34 917431436

        1 Reply Last reply
        0
        • I Offline
          I Offline
          iayandong19760
          wrote on last edited by
          #4

          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]

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved