Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMediaContent and QBuffer
Forum Updated to NodeBB v4.3 + New Features

QMediaContent and QBuffer

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 214 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OtisLin
    wrote on last edited by
    #1

    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");
    mediaFile.open(QIODevice::ReadyOnly);
    QByteArrary *ba = new QByteArrary();
    ba->append(mediaFile->readAll());
    QBuffer *buffer = new QBuffer(ba);
    buffer->open(QIODevice::ReadyOnly);
    buffer->seek(0);
    MediaPlayer.setMedia(QMediaContent(), buffer);
    

    How to put a buffer in QMediaContent?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved