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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.2.0 Alpha
    • Multimedia
    • None
    • No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 20.04.2 LTS
      Release: 20.04
      Codename: focal
    • 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

            valentyn.doroshchuk Valentyn Doroshchuk
            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