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. Take a screenshot of the first frame of Qml Video component

Take a screenshot of the first frame of Qml Video component

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 702 Views
  • 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.
  • F Offline
    F Offline
    FOXLISIN
    wrote on last edited by
    #1

    Hi to all, i need to take a screenshot of the first frame of Qml Video component. I dont't understand how to realize it.

    By this moment I can take a screenshot of the last frame. Like that:

    onStatusChanged: {
        if(status == MediaPlayer.EndOfMedia) {
            rootVideo.grabToImage(function(result) {
                snapshotUrl = result.url
            },
            Qt.size(rootVideo.width, rootVideo.height));
        }
    }
    

    Could you help me, please?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dramasoft
      wrote on last edited by
      #2

      QVideoProbe may help you.

      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