Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102186

QMediaPlayer fails to play remote content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.2.4, 6.3.0 RC
    • Multimedia
    • None
    • Linux/X11

    Description

      On Linux/X11 (gstreamer), QMediaPlayer fails to play remote content. As an example, try with https://filesamples.com/samples/audio/mp3/Symphony%20No.6%20(1st%20movement).mp3. This can be streamed in a browser just fine. But when setting it as a source of QMediaPlayer, this fails.

      Debug output with GST_DEBUG=4:

      Media status: QUrl("https://filesamples.com/samples/audio/mp3/Symphony No.6 (1st movement).mp3") = QMediaPlayer::BufferedMedia
      0:00:00.296483377 35763 0x7f5658005920 INFO                    task gsttask.c:368:gst_task_func:<queue2-0:src> Task going to paused
      0:00:00.321782987 35763 0x555cb32c9460 INFO                 basesrc gstbasesrc.c:3037:gst_base_src_loop:<source> pausing after gst_pad_push() = not-linked
      0:00:00.321842144 35763 0x555cb32c9460 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:<source> error: Internal data stream error.
      0:00:00.321854855 35763 0x555cb32c9460 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:<source> error: streaming stopped, reason not-linked (-1)
      0:00:00.321901300 35763 0x555cb32c9460 INFO        GST_ERROR_SYSTEM gstelement.c:2234:gst_element_message_full_with_details:<source> posting message: Internal data stream error.
      0:00:00.321966602 35763 0x555cb32c9460 INFO        GST_ERROR_SYSTEM gstelement.c:2261:gst_element_message_full_with_details:<source> posted error message: Internal data stream error.
      0:00:00.321990419 35763 0x555cb32c9460 INFO                    task gsttask.c:368:gst_task_func:<source:src> Task going to paused
      Error: QMediaPlayer::ResourceError "Internal data stream error."
      Media status: QUrl("https://filesamples.com/samples/audio/mp3/Symphony No.6 (1st movement).mp3") = QMediaPlayer::InvalidMedia
      

      Not sure what to make of gstreamer stating "not-linked" as the reason.

      Attachments

        1. log_with_gst_debug_3.txt
          0.7 kB
        2. log_with_gst_debug_4.txt
          135 kB
        3. main.cpp
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            piotr Piotr Srebrny (Inactive)
            pumphaus Arno Rehn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes