Important: Please read the Qt Code of Conduct -

QMediaContent and QBuffer

  • I want to read the video in the buffer.
    I think it can faster to change to next video?
    Finally I want to combine two video stream.
    this is my code

    QFile mediaFile("path");;
    QByteArrary *ba = new QByteArrary();
    QBuffer *buffer = new QBuffer(ba);
    MediaPlayer.setMedia(QMediaContent(), buffer);

    How to put a buffer in QMediaContent?

Log in to reply