Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.2.0 Alpha
-
None
-
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
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();
- Qt 6.2 Alpha (not work)
- https://doc-snapshots.qt.io/qt6-dev/qmediaplayer.html#setSourceDevice
if (!audioBuffer.open(QIODeviceBase::ReadOnly)) { return tr("Couldn't open audio buffer for reading."); } player.setSourceDevice(&audioBuffer, QUrl()); 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.