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. QMediaPlayer : how to play only part of an (audio) source ?
Forum Update on Monday, May 27th 2025

QMediaPlayer : how to play only part of an (audio) source ?

Scheduled Pinned Locked Moved General and Desktop
qmediaplayeraudiosequenceparttimestampplay
1 Posts 1 Posters 856 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.
  • M Offline
    M Offline
    mlecoq
    wrote on 1 Oct 2015, 13:19 last edited by
    #1

    Hi,

    I would like to play only a single part from an audio file defined by time positions.
    I would like to do something like that for example : play(quint startPosition, quint stopPosition).
    But there is no such a function in the QMediaPlayer class.

    I could make it by connecting the QMediaPlayer signal positionChanged to a component which stops the playing when the time is passed but this is not optimal I think, because I've to set the notifyInterval to a very low value.

    Do you see a better way to do it ?

    Thanks !

    1 Reply Last reply
    0

    1/1

    1 Oct 2015, 13:19

    • Login

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