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

QMediaPlayer::setSourceDevice(...) does not work Qt 6.2 Alpha

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.0 Alpha
    • Fix Version/s: None
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 20.04.2 LTS
      Release: 20.04
      Codename: focal
    • Platform/s:
      Linux/X11

      Description

      • Qt 5.15 (work well)
        • https://doc.qt.io/qt-5.15/qmediaplayer.html#setMedia
        •   audioBuffer.setData( data, size );
            if( !audioBuffer.open( QIODevice::ReadOnly ) ) {
              return tr( "Couldn't open audio buffer for reading." );
            }
            player.setMedia( QMediaContent(), &audioBuffer );
            player.play();
          

       

      We are doing migration from Qt 5.15 to Qt 6.2.0 Alpha.
      We try to replace player.setMedia( QMediaContent(), &audioBuffer ); with player.setSourceDevice(&audioBuffer, QUrl());

      We compiled QtMultiMedia with the latest dev branch.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            valentyn.doroshchuk Valentyn Doroshchuk
            Reporter:
            hiweed hiweed mandriva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes