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. QMediaPlayer bufferStatus

QMediaPlayer bufferStatus

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 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.
  • Y Offline
    Y Offline
    yegorov
    wrote on last edited by
    #1

    How to use "void QMediaPlayerControl::bufferStatusChanged(int progress) [signal] ":http://qt-project.org/doc/qt-5/qmediaplayercontrol.html#bufferStatusChanged This signal is never called.

    @MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);

    player = new QMediaPlayer();
    
    connect(player, SIGNAL(bufferStatusChanged(int)), ui->progressBar, SLOT(setValue(int)));
    

    }

    void MainWindow::progressBuf(int i)
    {
    qDebug() << i ;
    //ui->progressBar->setValue(i);
    }
    @
    And player->bufferStatus(); return always 0;

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yegorov
      wrote on last edited by
      #2

      For, example how to implement
      !http://i57.tinypic.com/2nuok79.png(buf)!
      This is bufferStatus ?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andreyc
        wrote on last edited by
        #3

        Welcome to DevNet

        Do you expect MainWindow::progressBuf(int i) to be called?
        If so then you need to change connect() to
        @
        connect(player, SIGNAL(bufferStatusChanged(int)), this, SLOT(progressBuf(int)));
        @

        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