Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot get duration of a video when using a QGraphicsVideoItem as QmediaPlayers videoOutput rather then a QVideoWidget
Forum Updated to NodeBB v4.3 + New Features

Cannot get duration of a video when using a QGraphicsVideoItem as QmediaPlayers videoOutput rather then a QVideoWidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 585 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.
  • T Offline
    T Offline
    Timmoth
    wrote on last edited by
    #1

    basically my question is as stated in the title - i am using both the examples provided by Qt:
    Video Graphics item and the videoWidget examples.
    in the videoWidget's example all the files i have tested allow me to seek a position in the video.
    i think the problem is something to do with the duration property of QMediaPlayer as when i use the videoWidget example the duration property works and returns a value however in the VideoGraphicsItem example the duration is 0 for most videos i play back!

    Please help!
    Regards, Tim.

    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