Skip to content
  • 0 Votes
    9 Posts
    2k Views
    T

    @jsulm In Qt Creator and in VS 2022 as well.

    Qt Creator:
    5353555d-9324-4191-893c-fecc5c693f47-image.png

    VS 2022:
    bb6a6442-08eb-47b0-8094-ebbe6633792b-image.png

    EDIT: I found the problem... QAbstractVideoSurface has been replaced by the QVideoSink class in Qt6:
    https://doc.qt.io/qt-6/qtmultimedia-changes-qt6.html

    EDIT2: I think i will open two different topic since I found different "bug?"

  • 0 Votes
    2 Posts
    1k Views
    Banshee10000B

    Hi there, I'm in the exact same boat as you. also

    QMediaMetaData::Author

    returns blank on Linux but works in Windows
    Using Qt5.5.1... Been looking for a few days now for a solution with no luck too.

  • 0 Votes
    2 Posts
    750 Views
    D

    meta_player is my media player objext
    Signal:
    connect(meta_player, SIGNAL(metaDataChanged()), SLOT(metadata_capture()));

    Code of capture:
    if((meta_player->isMetaDataAvailable()) &&( inc < file_list.length()))
    {
    qDebug() << "Meta info available"<<endl;
    QStringList list = meta_player->availableMetaData();
    qDebug() << " Meta Data ="<<list.count()<<endl;
    for(int i=0;i<list.count();i++){
    qDebug() << list.at(i) << " = "<< meta_player->metaData(list.at(i)).toString();
    }
    qDebug()<<"**********************************************************************************";
    inc++;
    qDebug()<<"After Icrement "<<inc;
    qDebug()<<"File Name"<<file_list.at(inc);
    meta_player->setMedia(QUrl::fromLocalFile(file_list.at(inc)));
    qDebug()<<"File Name"<<file_list.at(inc);
    }

    The Signal meta_player->setMedia(QUrl::fromLocalFile(file_list.at(inc))); is not emitted properly. For example when I add 6 songs i get met info for two songs. The result is ambiguous, its not constant.