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 : Getting information about audio streams
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer : Getting information about audio streams

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 870 Views 2 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.
  • H Offline
    H Offline
    Harry123
    wrote on last edited by
    #1

    I would like to get information about the audio streams of the video loaded into QMediaPlayer.

    By searching the Qt sources, I have found that apparently to get this information, I need to access QMediaStreamsControl via this command :

    QMediaStreamsControl* streamControl = (QMediaStreamsControl*)(player->service()->requestControl(QMediaStreamsControl_iid));
    

    However, the above always returns zero.

    Does someone know why, or another way of accessing streams information ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Not all plugins provide all control. Which platform are you on ?

      On a side note, you should either use qobject_cast or the templated version of requestControl.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Harry123
        wrote on last edited by
        #3

        I'm on Windows, and other tools have no trouble accessing that information.

        But this problem is only the latest addition to a too long list of features that don't work.
        Frankly, I'm quite disappointed with the quality of Multimedia compared with other Qt components.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That's not necessarily a feature that doesn't work, it might just have not been implemented yet.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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