Note: Notifier signal for property bufferStatus. Signal the amount of the local buffer filled as a percentage by percentFilled. void QMediaPlayer:: bufferStatusChanged( int percentFilled) Note: Notifier signal for property audioRole. Signals that the audio role of the media player has changed. void QMediaPlayer:: audioRoleChanged( QAudio::Role role) Note: Notifier signal for property audioAvailable. Signals the availability of audio content has changed to available. void QMediaPlayer:: audioAvailableChanged( bool available) Member Function Documentation QMediaPlayer:: QMediaPlayer( QObject * parent = nullptr, QMediaPlayer::Flags flags = Flags())Ĭonstruct a QMediaPlayer instance parented to parent and with flags. The player is in the StoppedState.ĭefines the current state of a media player. Playback has reached the end of the current media. The player is in the PlayingState or PausedState. The player has fully buffered the current media. The player is buffering data but has enough data buffered for playback to continue for the immediate future.
Playback of the current media has stalled due to insufficient buffering or some other temporary interruption. The status of the media cannot be determined. SetVideoOutput(QAbstractVideoSurface * surface) SetVideoOutput(QGraphicsVideoItem * output) SetCustomAudioRole(const QString & audioRole) QMediaPlayer(QObject * parent = nullptr, QMediaPlayer::Flags flags = Flags())