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. The buffer size used in QMediaplayer
Qt 6.11 is out! See what's new in the release blog

The buffer size used in QMediaplayer

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.4k Views 2 Watching
  • 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.
  • T Offline
    T Offline
    tamolo
    wrote on last edited by tamolo
    #1

    I use QMediaplayer to play a video
    QMediaPlayer* player = new QMediaPlayer;
    player->play();

    In QMediaplayer we have the bufferStatus() method but it just return the percentage that buffer was used. Can I know the buffer size used when playing video?

    I think if i know the way bufferStatus() method was written then i can know the buffer size. I go to this to get qmediaplayer source code. And this is the bufferStatus method

       int QMediaPlayer::bufferStatus() const
    {
        Q_D(const QMediaPlayer);
    
        if (d->control != 0)
            return d->control->bufferStatus();
        return 0;
    }
    

    when I click to bufferStatus method i go to the qmediaplayercontrol source code. This is just an interface so i still dont know exactly how bufferStatus method was written.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You will find the implementation of this method in the various multimedia backends.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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