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 set playing device
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer set playing device

Scheduled Pinned Locked Moved Solved General and Desktop
qmediaplayer
5 Posts 2 Posters 3.1k 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.
  • A Offline
    A Offline
    arsinte_andrei
    wrote on last edited by
    #1

    I have multiple audio devices on my computer. How can i select the right one and the audio to be routed to the good one.?

    A 1 Reply Last reply
    0
    • A arsinte_andrei

      I have multiple audio devices on my computer. How can i select the right one and the audio to be routed to the good one.?

      A Offline
      A Offline
      arsinte_andrei
      wrote on last edited by
      #2

      Just to explain a bit more.. I have 3 playing devices into my computer 1 is HDMI, the second is the motherboard audio and third, it is a USB audio. now, without doing anything, when I'm calling play() function is playing on the default system board which is the motherboard audio. But both the motherboard and the USB have the speakers connected it to them. And I wish the sound to come out on the USB only not on the motherboard...so how can I do that without making the USB default in Linux (by the way I'm using Ubuntu Linux)...
      any option?? your help will be highly appreciated...

      1 Reply Last reply
      0
      • A Offline
        A Offline
        arsinte_andrei
        wrote on last edited by
        #3

        ok I've tried this application Media Player example from Qt and this is what I'm getting after uploading it to my pi.... any good help on this??

        Starting /home/pi/player...
        
        
        
        6588
        
        Unable to query physical screen size, defaulting to 100 dpi.
        To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
        
        (player:6588): GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
        
        (player:6588): GStreamer-CRITICAL **: gst_element_get_static_pad: assertion 'GST_IS_ELEMENT (element)' failed
        User requested stop. Shutting down...
        Application finished with exit code 1.
        
        1 Reply Last reply
        0
        • A Offline
          A Offline
          arsinte_andrei
          wrote on last edited by
          #4

          Just for other that have similar problems like me, I've sorted it out! The problem was that the gstreamer was not installed and when I've proceeded with the installation,

          sudo apt-get install gstreamer1*
          

          I've got this error

          The following packages have unmet dependencies:
           gstreamer1.0-omx-dbg : Depends: gstreamer1.0-omx (= 1.0.0.1-0+rpi12+jessiepmg) but 1.10.4-1+rpt2 is to be installed
          E: Unable to correct problems, you have held broken packages.
          

          What I've done was to install the list one by one except for the "gstreamer1.0-omx-dbg"

          and now, on Raspberry Pi QMediaPlayer is working fine on default output device.

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

            Glad you found out and thanks for the feedback !

            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