![]() Signal the duration of the content has changed to duration, expressed in milliseconds. void QMediaPlayer:: durationChanged( qint64 duration) Note: Notifier signal for property customAudioRole. void QMediaPlayer:: customAudioRoleChanged(const QString & role) See also currentMedia() and mediaChanged(). Note: Notifier signal for property currentMedia. Signals that the current playing content has been changed to media. void QMediaPlayer:: currentMediaChanged(const QMediaContent & media) 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())
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |