API reference - Class QMediaPlayer

Notation used in Ruby API documentation

Module: QtMultimedia

Description: Binding of QMediaPlayer

Class hierarchy: QMediaPlayer » QMediaObject » QObject

Sub-classes: Error, QFlags_Error, Flag, QFlags_Flag, MediaStatus, QFlags_MediaStatus, State, QFlags_State

Public constructors

new QMediaPlayernew(QObject ptr parent = nullptr,
QMediaPlayer_QFlags_Flag flags = QMediaPlayer::Flags())
Constructor QMediaPlayer::QMediaPlayer(QObject *parent, QFlags<QMediaPlayer::Flag> flags)

Public methods

void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]boolaudioAvailableMethod bool QMediaPlayer::isAudioAvailable()
[signal]voidaudioAvailableChanged(bool available)Signal declaration for QMediaPlayer::audioAvailableChanged(bool available)
[const]QAudio_RoleaudioRoleMethod QAudio::Role QMediaPlayer::audioRole()
voidaudioRole=(const QAudio_Role audioRole)Method void QMediaPlayer::setAudioRole(QAudio::Role audioRole)
[signal]voidaudioRoleChanged(const QAudio_Role role)Signal declaration for QMediaPlayer::audioRoleChanged(QAudio::Role role)
[const]QMultimedia_AvailabilityStatusavailabilityVirtual method QMultimedia::AvailabilityStatus QMediaPlayer::availability()
[signal]voidavailabilityChanged_bool(bool available)Signal declaration for QMediaPlayer::availabilityChanged(bool available)
[signal]voidavailabilityChanged_status(const QMultimedia_AvailabilityStatus availability)Signal declaration for QMediaPlayer::availabilityChanged(QMultimedia::AvailabilityStatus availability)
boolbind(QObject ptr arg1)Virtual method bool QMediaPlayer::bind(QObject *)
[const]intbufferStatusMethod int QMediaPlayer::bufferStatus()
[signal]voidbufferStatusChanged(int percentFilled)Signal declaration for QMediaPlayer::bufferStatusChanged(int percentFilled)
[const]QMediaContentcurrentMediaMethod QMediaContent QMediaPlayer::currentMedia()
[signal]voidcurrentMediaChanged(const QMediaContent media)Signal declaration for QMediaPlayer::currentMediaChanged(const QMediaContent &media)
[const]QNetworkConfigurationcurrentNetworkConfigurationMethod QNetworkConfiguration QMediaPlayer::currentNetworkConfiguration()
[const]stringcustomAudioRoleMethod QString QMediaPlayer::customAudioRole()
voidcustomAudioRole=(string audioRole)Method void QMediaPlayer::setCustomAudioRole(const QString &audioRole)
[signal]voidcustomAudioRoleChanged(string role)Signal declaration for QMediaPlayer::customAudioRoleChanged(const QString &role)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QMediaPlayer::destroyed(QObject *)
[const]long longdurationMethod qint64 QMediaPlayer::duration()
[signal]voiddurationChanged(long long duration)Signal declaration for QMediaPlayer::durationChanged(qint64 duration)
voidemit_audioAvailableChanged(bool available)Emitter for signal void QMediaPlayer::audioAvailableChanged(bool available)
voidemit_audioRoleChanged(const QAudio_Role role)Emitter for signal void QMediaPlayer::audioRoleChanged(QAudio::Role role)
voidemit_availabilityChanged_bool(bool available)Emitter for signal void QMediaPlayer::availabilityChanged(bool available)
voidemit_availabilityChanged_status(const QMultimedia_AvailabilityStatus availability)Emitter for signal void QMediaPlayer::availabilityChanged(QMultimedia::AvailabilityStatus availability)
voidemit_bufferStatusChanged(int percentFilled)Emitter for signal void QMediaPlayer::bufferStatusChanged(int percentFilled)
voidemit_currentMediaChanged(const QMediaContent media)Emitter for signal void QMediaPlayer::currentMediaChanged(const QMediaContent &media)
voidemit_customAudioRoleChanged(string role)Emitter for signal void QMediaPlayer::customAudioRoleChanged(const QString &role)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QMediaPlayer::destroyed(QObject *)
voidemit_durationChanged(long long duration)Emitter for signal void QMediaPlayer::durationChanged(qint64 duration)
voidemit_error_sig(const QMediaPlayer_Error error)Emitter for signal void QMediaPlayer::error(QMediaPlayer::Error error)
voidemit_mediaChanged(const QMediaContent media)Emitter for signal void QMediaPlayer::mediaChanged(const QMediaContent &media)
voidemit_mediaStatusChanged(const QMediaPlayer_MediaStatus status)Emitter for signal void QMediaPlayer::mediaStatusChanged(QMediaPlayer::MediaStatus status)
voidemit_metaDataAvailableChanged(bool available)Emitter for signal void QMediaPlayer::metaDataAvailableChanged(bool available)
voidemit_metaDataChangedEmitter for signal void QMediaPlayer::metaDataChanged()
voidemit_metaDataChanged_kv(string key,
variant value)
Emitter for signal void QMediaPlayer::metaDataChanged(const QString &key, const QVariant &value)
voidemit_mutedChanged(bool muted)Emitter for signal void QMediaPlayer::mutedChanged(bool muted)
voidemit_networkConfigurationChanged(const QNetworkConfiguration configuration)Emitter for signal void QMediaPlayer::networkConfigurationChanged(const QNetworkConfiguration &configuration)
voidemit_notifyIntervalChanged(int milliSeconds)Emitter for signal void QMediaPlayer::notifyIntervalChanged(int milliSeconds)
voidemit_objectNameChanged(string objectName)Emitter for signal void QMediaPlayer::objectNameChanged(const QString &objectName)
voidemit_playbackRateChanged(double rate)Emitter for signal void QMediaPlayer::playbackRateChanged(double rate)
voidemit_positionChanged(long long position)Emitter for signal void QMediaPlayer::positionChanged(qint64 position)
voidemit_seekableChanged(bool seekable)Emitter for signal void QMediaPlayer::seekableChanged(bool seekable)
voidemit_stateChanged(const QMediaPlayer_State newState)Emitter for signal void QMediaPlayer::stateChanged(QMediaPlayer::State newState)
voidemit_videoAvailableChanged(bool videoAvailable)Emitter for signal void QMediaPlayer::videoAvailableChanged(bool videoAvailable)
voidemit_volumeChanged(int volume)Emitter for signal void QMediaPlayer::volumeChanged(int volume)
[const]QMediaPlayer_ErrorerrorMethod QMediaPlayer::Error QMediaPlayer::error()
[const]stringerrorStringMethod QString QMediaPlayer::errorString()
[signal]voiderror_sig(const QMediaPlayer_Error error)Signal declaration for QMediaPlayer::error(QMediaPlayer::Error error)
boolevent(QEvent ptr event)Virtual method bool QMediaPlayer::event(QEvent *event)
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QMediaPlayer::eventFilter(QObject *watched, QEvent *event)
[const]boolisAudioAvailable?Method bool QMediaPlayer::isAudioAvailable()
[const]boolisAvailableVirtual method bool QMediaPlayer::isAvailable()
[const]boolisMuted?Method bool QMediaPlayer::isMuted()
[const]boolisSeekable?Method bool QMediaPlayer::isSeekable()
[const]boolisVideoAvailable?Method bool QMediaPlayer::isVideoAvailable()
[const]QMediaContentmediaMethod QMediaContent QMediaPlayer::media()
[signal]voidmediaChanged(const QMediaContent media)Signal declaration for QMediaPlayer::mediaChanged(const QMediaContent &media)
[const]QMediaPlayer_MediaStatusmediaStatusMethod QMediaPlayer::MediaStatus QMediaPlayer::mediaStatus()
[signal]voidmediaStatusChanged(const QMediaPlayer_MediaStatus status)Signal declaration for QMediaPlayer::mediaStatusChanged(QMediaPlayer::MediaStatus status)
[const]const QIODevice ptrmediaStreamMethod const QIODevice *QMediaPlayer::mediaStream()
[signal]voidmetaDataAvailableChanged(bool available)Signal declaration for QMediaPlayer::metaDataAvailableChanged(bool available)
[signal]voidmetaDataChangedSignal declaration for QMediaPlayer::metaDataChanged()
[signal]voidmetaDataChanged_kv(string key,
variant value)
Signal declaration for QMediaPlayer::metaDataChanged(const QString &key, const QVariant &value)
[const]boolmutedMethod bool QMediaPlayer::isMuted()
voidmuted=(bool muted)Method void QMediaPlayer::setMuted(bool muted)
[signal]voidmutedChanged(bool muted)Signal declaration for QMediaPlayer::mutedChanged(bool muted)
[signal]voidnetworkConfigurationChanged(const QNetworkConfiguration configuration)Signal declaration for QMediaPlayer::networkConfigurationChanged(const QNetworkConfiguration &configuration)
[signal]voidnotifyIntervalChanged(int milliSeconds)Signal declaration for QMediaPlayer::notifyIntervalChanged(int milliSeconds)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QMediaPlayer::objectNameChanged(const QString &objectName)
voidpauseMethod void QMediaPlayer::pause()
voidplayMethod void QMediaPlayer::play()
[const]doubleplaybackRateMethod double QMediaPlayer::playbackRate()
voidplaybackRate=(double rate)Method void QMediaPlayer::setPlaybackRate(double rate)
[signal]voidplaybackRateChanged(double rate)Signal declaration for QMediaPlayer::playbackRateChanged(double rate)
[const]QMediaPlaylist ptrplaylistMethod QMediaPlaylist *QMediaPlayer::playlist()
voidplaylist=(QMediaPlaylist ptr playlist)Method void QMediaPlayer::setPlaylist(QMediaPlaylist *playlist)
[const]long longpositionMethod qint64 QMediaPlayer::position()
voidposition=(long long position)Method void QMediaPlayer::setPosition(qint64 position)
[signal]voidpositionChanged(long long position)Signal declaration for QMediaPlayer::positionChanged(qint64 position)
[const]boolseekableMethod bool QMediaPlayer::isSeekable()
[signal]voidseekableChanged(bool seekable)Signal declaration for QMediaPlayer::seekableChanged(bool seekable)
[const]QMediaService ptrserviceVirtual method QMediaService *QMediaPlayer::service()
voidsetAudioRole(const QAudio_Role audioRole)Method void QMediaPlayer::setAudioRole(QAudio::Role audioRole)
voidsetCustomAudioRole(string audioRole)Method void QMediaPlayer::setCustomAudioRole(const QString &audioRole)
voidsetMedia(const QMediaContent media,
QIODevice ptr stream = nullptr)
Method void QMediaPlayer::setMedia(const QMediaContent &media, QIODevice *stream)
voidsetMuted(bool muted)Method void QMediaPlayer::setMuted(bool muted)
voidsetNetworkConfigurations(QNetworkConfiguration[] configurations)Method void QMediaPlayer::setNetworkConfigurations(const QList<QNetworkConfiguration> &configurations)
voidsetPlaybackRate(double rate)Method void QMediaPlayer::setPlaybackRate(double rate)
voidsetPlaylist(QMediaPlaylist ptr playlist)Method void QMediaPlayer::setPlaylist(QMediaPlaylist *playlist)
voidsetPosition(long long position)Method void QMediaPlayer::setPosition(qint64 position)
voidsetVideoOutput(QVideoWidget ptr arg1)Method void QMediaPlayer::setVideoOutput(QVideoWidget *)
voidsetVideoOutput(QGraphicsVideoItem ptr arg1)Method void QMediaPlayer::setVideoOutput(QGraphicsVideoItem *)
voidsetVideoOutput(QAbstractVideoSurface ptr surface)Method void QMediaPlayer::setVideoOutput(QAbstractVideoSurface *surface)
voidsetVolume(int volume)Method void QMediaPlayer::setVolume(int volume)
[const]QMediaPlayer_StatestateMethod QMediaPlayer::State QMediaPlayer::state()
[signal]voidstateChanged(const QMediaPlayer_State newState)Signal declaration for QMediaPlayer::stateChanged(QMediaPlayer::State newState)
voidstopMethod void QMediaPlayer::stop()
[const]QAudio_Role[]supportedAudioRolesMethod QList<QAudio::Role> QMediaPlayer::supportedAudioRoles()
[const]string[]supportedCustomAudioRolesMethod QStringList QMediaPlayer::supportedCustomAudioRoles()
voidunbind(QObject ptr arg1)Virtual method void QMediaPlayer::unbind(QObject *)
[const]boolvideoAvailableMethod bool QMediaPlayer::isVideoAvailable()
[signal]voidvideoAvailableChanged(bool videoAvailable)Signal declaration for QMediaPlayer::videoAvailableChanged(bool videoAvailable)
[const]intvolumeMethod int QMediaPlayer::volume()
voidvolume=(int volume)Method void QMediaPlayer::setVolume(int volume)
[signal]voidvolumeChanged(int volume)Signal declaration for QMediaPlayer::volumeChanged(int volume)

Public static methods and constants

[static,const]QMediaPlayer_ErrorAccessDeniedErrorEnum constant QMediaPlayer::AccessDeniedError
[static,const]QMediaPlayer_MediaStatusBufferedMediaEnum constant QMediaPlayer::BufferedMedia
[static,const]QMediaPlayer_MediaStatusBufferingMediaEnum constant QMediaPlayer::BufferingMedia
[static,const]QMediaPlayer_MediaStatusEndOfMediaEnum constant QMediaPlayer::EndOfMedia
[static,const]QMediaPlayer_ErrorFormatErrorEnum constant QMediaPlayer::FormatError
[static,const]QMediaPlayer_MediaStatusInvalidMediaEnum constant QMediaPlayer::InvalidMedia
[static,const]QMediaPlayer_MediaStatusLoadedMediaEnum constant QMediaPlayer::LoadedMedia
[static,const]QMediaPlayer_MediaStatusLoadingMediaEnum constant QMediaPlayer::LoadingMedia
[static,const]QMediaPlayer_FlagLowLatencyEnum constant QMediaPlayer::LowLatency
[static,const]QMediaPlayer_ErrorMediaIsPlaylistEnum constant QMediaPlayer::MediaIsPlaylist
[static,const]QMediaPlayer_ErrorNetworkErrorEnum constant QMediaPlayer::NetworkError
[static,const]QMediaPlayer_ErrorNoErrorEnum constant QMediaPlayer::NoError
[static,const]QMediaPlayer_MediaStatusNoMediaEnum constant QMediaPlayer::NoMedia
[static,const]QMediaPlayer_StatePausedStateEnum constant QMediaPlayer::PausedState
[static,const]QMediaPlayer_StatePlayingStateEnum constant QMediaPlayer::PlayingState
[static,const]QMediaPlayer_ErrorResourceErrorEnum constant QMediaPlayer::ResourceError
[static,const]QMediaPlayer_ErrorServiceMissingErrorEnum constant QMediaPlayer::ServiceMissingError
[static,const]QMediaPlayer_MediaStatusStalledMediaEnum constant QMediaPlayer::StalledMedia
[static,const]QMediaPlayer_StateStoppedStateEnum constant QMediaPlayer::StoppedState
[static,const]QMediaPlayer_FlagStreamPlaybackEnum constant QMediaPlayer::StreamPlayback
[static,const]QMediaPlayer_MediaStatusUnknownMediaStatusEnum constant QMediaPlayer::UnknownMediaStatus
[static,const]QMediaPlayer_FlagVideoSurfaceEnum constant QMediaPlayer::VideoSurface
QMultimedia_SupportEstimatehasSupport(string mimeType,
string[] codecs = QStringList(),
QMediaPlayer_QFlags_Flag flags = QMediaPlayer::Flags())
Static method QMultimedia::SupportEstimate QMediaPlayer::hasSupport(const QString &mimeType, const QStringList &codecs, QFlags<QMediaPlayer::Flag> flags)
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
string[]supportedMimeTypes(QMediaPlayer_QFlags_Flag flags = QMediaPlayer::Flags())Static method QStringList QMediaPlayer::supportedMimeTypes(QFlags<QMediaPlayer::Flag> flags)
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QMediaPlayer::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QMediaPlayer::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidaddPropertyWatch(bytes name)Method void QMediaPlayer::addPropertyWatch(const QByteArray &name)
voidchildEvent(QChildEvent ptr event)Virtual method void QMediaPlayer::childEvent(QChildEvent *event)
voidcustomEvent(QEvent ptr event)Virtual method void QMediaPlayer::customEvent(QEvent *event)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QMediaPlayer::disconnectNotify(const QMetaMethod &signal)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QMediaPlayer::isSignalConnected(const QMetaMethod &signal)
[const]intreceivers(string signal)Method int QMediaPlayer::receivers(const char *signal)
voidremovePropertyWatch(bytes name)Method void QMediaPlayer::removePropertyWatch(const QByteArray &name)
[const]QObject ptrsenderMethod QObject *QMediaPlayer::sender()
[const]intsenderSignalIndexMethod int QMediaPlayer::senderSignalIndex()
voidtimerEvent(QTimerEvent ptr event)Virtual method void QMediaPlayer::timerEvent(QTimerEvent *event)

Detailed description

AccessDeniedError

Signature: [static,const] QMediaPlayer_Error AccessDeniedError

Description: Enum constant QMediaPlayer::AccessDeniedError

Python specific notes:
The object exposes a readable attribute 'AccessDeniedError'. This is the getter.

BufferedMedia

Signature: [static,const] QMediaPlayer_MediaStatus BufferedMedia

Description: Enum constant QMediaPlayer::BufferedMedia

Python specific notes:
The object exposes a readable attribute 'BufferedMedia'. This is the getter.

BufferingMedia

Signature: [static,const] QMediaPlayer_MediaStatus BufferingMedia

Description: Enum constant QMediaPlayer::BufferingMedia

Python specific notes:
The object exposes a readable attribute 'BufferingMedia'. This is the getter.

EndOfMedia

Signature: [static,const] QMediaPlayer_MediaStatus EndOfMedia

Description: Enum constant QMediaPlayer::EndOfMedia

Python specific notes:
The object exposes a readable attribute 'EndOfMedia'. This is the getter.

FormatError

Signature: [static,const] QMediaPlayer_Error FormatError

Description: Enum constant QMediaPlayer::FormatError

Python specific notes:
The object exposes a readable attribute 'FormatError'. This is the getter.

InvalidMedia

Signature: [static,const] QMediaPlayer_MediaStatus InvalidMedia

Description: Enum constant QMediaPlayer::InvalidMedia

Python specific notes:
The object exposes a readable attribute 'InvalidMedia'. This is the getter.

LoadedMedia

Signature: [static,const] QMediaPlayer_MediaStatus LoadedMedia

Description: Enum constant QMediaPlayer::LoadedMedia

Python specific notes:
The object exposes a readable attribute 'LoadedMedia'. This is the getter.

LoadingMedia

Signature: [static,const] QMediaPlayer_MediaStatus LoadingMedia

Description: Enum constant QMediaPlayer::LoadingMedia

Python specific notes:
The object exposes a readable attribute 'LoadingMedia'. This is the getter.

LowLatency

Signature: [static,const] QMediaPlayer_Flag LowLatency

Description: Enum constant QMediaPlayer::LowLatency

Python specific notes:
The object exposes a readable attribute 'LowLatency'. This is the getter.

MediaIsPlaylist

Signature: [static,const] QMediaPlayer_Error MediaIsPlaylist

Description: Enum constant QMediaPlayer::MediaIsPlaylist

Python specific notes:
The object exposes a readable attribute 'MediaIsPlaylist'. This is the getter.

NetworkError

Signature: [static,const] QMediaPlayer_Error NetworkError

Description: Enum constant QMediaPlayer::NetworkError

Python specific notes:
The object exposes a readable attribute 'NetworkError'. This is the getter.

NoError

Signature: [static,const] QMediaPlayer_Error NoError

Description: Enum constant QMediaPlayer::NoError

Python specific notes:
The object exposes a readable attribute 'NoError'. This is the getter.

NoMedia

Signature: [static,const] QMediaPlayer_MediaStatus NoMedia

Description: Enum constant QMediaPlayer::NoMedia

Python specific notes:
The object exposes a readable attribute 'NoMedia'. This is the getter.

PausedState

Signature: [static,const] QMediaPlayer_State PausedState

Description: Enum constant QMediaPlayer::PausedState

Python specific notes:
The object exposes a readable attribute 'PausedState'. This is the getter.

PlayingState

Signature: [static,const] QMediaPlayer_State PlayingState

Description: Enum constant QMediaPlayer::PlayingState

Python specific notes:
The object exposes a readable attribute 'PlayingState'. This is the getter.

ResourceError

Signature: [static,const] QMediaPlayer_Error ResourceError

Description: Enum constant QMediaPlayer::ResourceError

Python specific notes:
The object exposes a readable attribute 'ResourceError'. This is the getter.

ServiceMissingError

Signature: [static,const] QMediaPlayer_Error ServiceMissingError

Description: Enum constant QMediaPlayer::ServiceMissingError

Python specific notes:
The object exposes a readable attribute 'ServiceMissingError'. This is the getter.

StalledMedia

Signature: [static,const] QMediaPlayer_MediaStatus StalledMedia

Description: Enum constant QMediaPlayer::StalledMedia

Python specific notes:
The object exposes a readable attribute 'StalledMedia'. This is the getter.

StoppedState

Signature: [static,const] QMediaPlayer_State StoppedState

Description: Enum constant QMediaPlayer::StoppedState

Python specific notes:
The object exposes a readable attribute 'StoppedState'. This is the getter.

StreamPlayback

Signature: [static,const] QMediaPlayer_Flag StreamPlayback

Description: Enum constant QMediaPlayer::StreamPlayback

Python specific notes:
The object exposes a readable attribute 'StreamPlayback'. This is the getter.

UnknownMediaStatus

Signature: [static,const] QMediaPlayer_MediaStatus UnknownMediaStatus

Description: Enum constant QMediaPlayer::UnknownMediaStatus

Python specific notes:
The object exposes a readable attribute 'UnknownMediaStatus'. This is the getter.

VideoSurface

Signature: [static,const] QMediaPlayer_Flag VideoSurface

Description: Enum constant QMediaPlayer::VideoSurface

Python specific notes:
The object exposes a readable attribute 'VideoSurface'. This is the getter.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

addPropertyWatch

Signature: void addPropertyWatch (bytes name)

Description: Method void QMediaPlayer::addPropertyWatch(const QByteArray &name)

This method is protected and can only be called from inside a derived class.

audioAvailable

Signature: [const] bool audioAvailable

Description: Method bool QMediaPlayer::isAudioAvailable()

Python specific notes:
The object exposes a readable attribute 'audioAvailable'. This is the getter.

audioAvailableChanged

Signature: [signal] void audioAvailableChanged (bool available)

Description: Signal declaration for QMediaPlayer::audioAvailableChanged(bool available)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'audioAvailableChanged'. This is the getter.
The object exposes a writable attribute 'audioAvailableChanged'. This is the setter.

audioRole

Signature: [const] QAudio_Role audioRole

Description: Method QAudio::Role QMediaPlayer::audioRole()

Python specific notes:
The object exposes a readable attribute 'audioRole'. This is the getter.

audioRole=

Signature: void audioRole= (const QAudio_Role audioRole)

Description: Method void QMediaPlayer::setAudioRole(QAudio::Role audioRole)

Python specific notes:
The object exposes a writable attribute 'audioRole'. This is the setter.

audioRoleChanged

Signature: [signal] void audioRoleChanged (const QAudio_Role role)

Description: Signal declaration for QMediaPlayer::audioRoleChanged(QAudio::Role role)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'audioRoleChanged'. This is the getter.
The object exposes a writable attribute 'audioRoleChanged'. This is the setter.

availability

Signature: [const] QMultimedia_AvailabilityStatus availability

Description: Virtual method QMultimedia::AvailabilityStatus QMediaPlayer::availability()

This method can be reimplemented in a derived class.

availabilityChanged_bool

Signature: [signal] void availabilityChanged_bool (bool available)

Description: Signal declaration for QMediaPlayer::availabilityChanged(bool available)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'availabilityChanged_bool'. This is the getter.
The object exposes a writable attribute 'availabilityChanged_bool'. This is the setter.

availabilityChanged_status

Signature: [signal] void availabilityChanged_status (const QMultimedia_AvailabilityStatus availability)

Description: Signal declaration for QMediaPlayer::availabilityChanged(QMultimedia::AvailabilityStatus availability)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'availabilityChanged_status'. This is the getter.
The object exposes a writable attribute 'availabilityChanged_status'. This is the setter.

bind

Signature: bool bind (QObject ptr arg1)

Description: Virtual method bool QMediaPlayer::bind(QObject *)

This method can be reimplemented in a derived class.

bufferStatus

Signature: [const] int bufferStatus

Description: Method int QMediaPlayer::bufferStatus()

Python specific notes:
The object exposes a readable attribute 'bufferStatus'. This is the getter.

bufferStatusChanged

Signature: [signal] void bufferStatusChanged (int percentFilled)

Description: Signal declaration for QMediaPlayer::bufferStatusChanged(int percentFilled)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'bufferStatusChanged'. This is the getter.
The object exposes a writable attribute 'bufferStatusChanged'. This is the setter.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QMediaPlayer::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

currentMedia

Signature: [const] QMediaContent currentMedia

Description: Method QMediaContent QMediaPlayer::currentMedia()

Python specific notes:
The object exposes a readable attribute 'currentMedia'. This is the getter.

currentMediaChanged

Signature: [signal] void currentMediaChanged (const QMediaContent media)

Description: Signal declaration for QMediaPlayer::currentMediaChanged(const QMediaContent &media)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'currentMediaChanged'. This is the getter.
The object exposes a writable attribute 'currentMediaChanged'. This is the setter.

currentNetworkConfiguration

Signature: [const] QNetworkConfiguration currentNetworkConfiguration

Description: Method QNetworkConfiguration QMediaPlayer::currentNetworkConfiguration()

customAudioRole

Signature: [const] string customAudioRole

Description: Method QString QMediaPlayer::customAudioRole()

Python specific notes:
The object exposes a readable attribute 'customAudioRole'. This is the getter.

customAudioRole=

Signature: void customAudioRole= (string audioRole)

Description: Method void QMediaPlayer::setCustomAudioRole(const QString &audioRole)

Python specific notes:
The object exposes a writable attribute 'customAudioRole'. This is the setter.

customAudioRoleChanged

Signature: [signal] void customAudioRoleChanged (string role)

Description: Signal declaration for QMediaPlayer::customAudioRoleChanged(const QString &role)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'customAudioRoleChanged'. This is the getter.
The object exposes a writable attribute 'customAudioRoleChanged'. This is the setter.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QMediaPlayer::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QMediaPlayer::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QMediaPlayer::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

duration

Signature: [const] long long duration

Description: Method qint64 QMediaPlayer::duration()

Python specific notes:
The object exposes a readable attribute 'duration'. This is the getter.

durationChanged

Signature: [signal] void durationChanged (long long duration)

Description: Signal declaration for QMediaPlayer::durationChanged(qint64 duration)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'durationChanged'. This is the getter.
The object exposes a writable attribute 'durationChanged'. This is the setter.

emit_audioAvailableChanged

Signature: void emit_audioAvailableChanged (bool available)

Description: Emitter for signal void QMediaPlayer::audioAvailableChanged(bool available)

Call this method to emit this signal.

emit_audioRoleChanged

Signature: void emit_audioRoleChanged (const QAudio_Role role)

Description: Emitter for signal void QMediaPlayer::audioRoleChanged(QAudio::Role role)

Call this method to emit this signal.

emit_availabilityChanged_bool

Signature: void emit_availabilityChanged_bool (bool available)

Description: Emitter for signal void QMediaPlayer::availabilityChanged(bool available)

Call this method to emit this signal.

emit_availabilityChanged_status

Signature: void emit_availabilityChanged_status (const QMultimedia_AvailabilityStatus availability)

Description: Emitter for signal void QMediaPlayer::availabilityChanged(QMultimedia::AvailabilityStatus availability)

Call this method to emit this signal.

emit_bufferStatusChanged

Signature: void emit_bufferStatusChanged (int percentFilled)

Description: Emitter for signal void QMediaPlayer::bufferStatusChanged(int percentFilled)

Call this method to emit this signal.

emit_currentMediaChanged

Signature: void emit_currentMediaChanged (const QMediaContent media)

Description: Emitter for signal void QMediaPlayer::currentMediaChanged(const QMediaContent &media)

Call this method to emit this signal.

emit_customAudioRoleChanged

Signature: void emit_customAudioRoleChanged (string role)

Description: Emitter for signal void QMediaPlayer::customAudioRoleChanged(const QString &role)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QMediaPlayer::destroyed(QObject *)

Call this method to emit this signal.

emit_durationChanged

Signature: void emit_durationChanged (long long duration)

Description: Emitter for signal void QMediaPlayer::durationChanged(qint64 duration)

Call this method to emit this signal.

emit_error_sig

Signature: void emit_error_sig (const QMediaPlayer_Error error)

Description: Emitter for signal void QMediaPlayer::error(QMediaPlayer::Error error)

Call this method to emit this signal.

emit_mediaChanged

Signature: void emit_mediaChanged (const QMediaContent media)

Description: Emitter for signal void QMediaPlayer::mediaChanged(const QMediaContent &media)

Call this method to emit this signal.

emit_mediaStatusChanged

Signature: void emit_mediaStatusChanged (const QMediaPlayer_MediaStatus status)

Description: Emitter for signal void QMediaPlayer::mediaStatusChanged(QMediaPlayer::MediaStatus status)

Call this method to emit this signal.

emit_metaDataAvailableChanged

Signature: void emit_metaDataAvailableChanged (bool available)

Description: Emitter for signal void QMediaPlayer::metaDataAvailableChanged(bool available)

Call this method to emit this signal.

emit_metaDataChanged

Signature: void emit_metaDataChanged

Description: Emitter for signal void QMediaPlayer::metaDataChanged()

Call this method to emit this signal.

emit_metaDataChanged_kv

Signature: void emit_metaDataChanged_kv (string key, variant value)

Description: Emitter for signal void QMediaPlayer::metaDataChanged(const QString &key, const QVariant &value)

Call this method to emit this signal.

emit_mutedChanged

Signature: void emit_mutedChanged (bool muted)

Description: Emitter for signal void QMediaPlayer::mutedChanged(bool muted)

Call this method to emit this signal.

emit_networkConfigurationChanged

Signature: void emit_networkConfigurationChanged (const QNetworkConfiguration configuration)

Description: Emitter for signal void QMediaPlayer::networkConfigurationChanged(const QNetworkConfiguration &configuration)

Call this method to emit this signal.

emit_notifyIntervalChanged

Signature: void emit_notifyIntervalChanged (int milliSeconds)

Description: Emitter for signal void QMediaPlayer::notifyIntervalChanged(int milliSeconds)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QMediaPlayer::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_playbackRateChanged

Signature: void emit_playbackRateChanged (double rate)

Description: Emitter for signal void QMediaPlayer::playbackRateChanged(double rate)

Call this method to emit this signal.

emit_positionChanged

Signature: void emit_positionChanged (long long position)

Description: Emitter for signal void QMediaPlayer::positionChanged(qint64 position)

Call this method to emit this signal.

emit_seekableChanged

Signature: void emit_seekableChanged (bool seekable)

Description: Emitter for signal void QMediaPlayer::seekableChanged(bool seekable)

Call this method to emit this signal.

emit_stateChanged

Signature: void emit_stateChanged (const QMediaPlayer_State newState)

Description: Emitter for signal void QMediaPlayer::stateChanged(QMediaPlayer::State newState)

Call this method to emit this signal.

emit_videoAvailableChanged

Signature: void emit_videoAvailableChanged (bool videoAvailable)

Description: Emitter for signal void QMediaPlayer::videoAvailableChanged(bool videoAvailable)

Call this method to emit this signal.

emit_volumeChanged

Signature: void emit_volumeChanged (int volume)

Description: Emitter for signal void QMediaPlayer::volumeChanged(int volume)

Call this method to emit this signal.

error

Signature: [const] QMediaPlayer_Error error

Description: Method QMediaPlayer::Error QMediaPlayer::error()

errorString

Signature: [const] string errorString

Description: Method QString QMediaPlayer::errorString()

error_sig

Signature: [signal] void error_sig (const QMediaPlayer_Error error)

Description: Signal declaration for QMediaPlayer::error(QMediaPlayer::Error error)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'error_sig'. This is the getter.
The object exposes a writable attribute 'error_sig'. This is the setter.

event

Signature: bool event (QEvent ptr event)

Description: Virtual method bool QMediaPlayer::event(QEvent *event)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QMediaPlayer::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

hasSupport

Signature: [static] QMultimedia_SupportEstimate hasSupport (string mimeType, string[] codecs = QStringList(), QMediaPlayer_QFlags_Flag flags = QMediaPlayer::Flags())

Description: Static method QMultimedia::SupportEstimate QMediaPlayer::hasSupport(const QString &mimeType, const QStringList &codecs, QFlags<QMediaPlayer::Flag> flags)

This method is static and can be called without an instance.

isAudioAvailable?

Signature: [const] bool isAudioAvailable?

Description: Method bool QMediaPlayer::isAudioAvailable()

Python specific notes:
The object exposes a readable attribute 'audioAvailable'. This is the getter.

isAvailable

Signature: [const] bool isAvailable

Description: Virtual method bool QMediaPlayer::isAvailable()

This method can be reimplemented in a derived class.

isMuted?

Signature: [const] bool isMuted?

Description: Method bool QMediaPlayer::isMuted()

Python specific notes:
The object exposes a readable attribute 'muted'. This is the getter.

isSeekable?

Signature: [const] bool isSeekable?

Description: Method bool QMediaPlayer::isSeekable()

Python specific notes:
The object exposes a readable attribute 'seekable'. This is the getter.

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QMediaPlayer::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

isVideoAvailable?

Signature: [const] bool isVideoAvailable?

Description: Method bool QMediaPlayer::isVideoAvailable()

Python specific notes:
The object exposes a readable attribute 'videoAvailable'. This is the getter.

media

Signature: [const] QMediaContent media

Description: Method QMediaContent QMediaPlayer::media()

Python specific notes:
The object exposes a readable attribute 'media'. This is the getter.

mediaChanged

Signature: [signal] void mediaChanged (const QMediaContent media)

Description: Signal declaration for QMediaPlayer::mediaChanged(const QMediaContent &media)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'mediaChanged'. This is the getter.
The object exposes a writable attribute 'mediaChanged'. This is the setter.

mediaStatus

Signature: [const] QMediaPlayer_MediaStatus mediaStatus

Description: Method QMediaPlayer::MediaStatus QMediaPlayer::mediaStatus()

Python specific notes:
The object exposes a readable attribute 'mediaStatus'. This is the getter.

mediaStatusChanged

Signature: [signal] void mediaStatusChanged (const QMediaPlayer_MediaStatus status)

Description: Signal declaration for QMediaPlayer::mediaStatusChanged(QMediaPlayer::MediaStatus status)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'mediaStatusChanged'. This is the getter.
The object exposes a writable attribute 'mediaStatusChanged'. This is the setter.

mediaStream

Signature: [const] const QIODevice ptr mediaStream

Description: Method const QIODevice *QMediaPlayer::mediaStream()

metaDataAvailableChanged

Signature: [signal] void metaDataAvailableChanged (bool available)

Description: Signal declaration for QMediaPlayer::metaDataAvailableChanged(bool available)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'metaDataAvailableChanged'. This is the getter.
The object exposes a writable attribute 'metaDataAvailableChanged'. This is the setter.

metaDataChanged

Signature: [signal] void metaDataChanged

Description: Signal declaration for QMediaPlayer::metaDataChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'metaDataChanged'. This is the getter.
The object exposes a writable attribute 'metaDataChanged'. This is the setter.

metaDataChanged_kv

Signature: [signal] void metaDataChanged_kv (string key, variant value)

Description: Signal declaration for QMediaPlayer::metaDataChanged(const QString &key, const QVariant &value)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'metaDataChanged_kv'. This is the getter.
The object exposes a writable attribute 'metaDataChanged_kv'. This is the setter.

muted

Signature: [const] bool muted

Description: Method bool QMediaPlayer::isMuted()

Python specific notes:
The object exposes a readable attribute 'muted'. This is the getter.

muted=

Signature: void muted= (bool muted)

Description: Method void QMediaPlayer::setMuted(bool muted)

Python specific notes:
The object exposes a writable attribute 'muted'. This is the setter.

mutedChanged

Signature: [signal] void mutedChanged (bool muted)

Description: Signal declaration for QMediaPlayer::mutedChanged(bool muted)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'mutedChanged'. This is the getter.
The object exposes a writable attribute 'mutedChanged'. This is the setter.

networkConfigurationChanged

Signature: [signal] void networkConfigurationChanged (const QNetworkConfiguration configuration)

Description: Signal declaration for QMediaPlayer::networkConfigurationChanged(const QNetworkConfiguration &configuration)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'networkConfigurationChanged'. This is the getter.
The object exposes a writable attribute 'networkConfigurationChanged'. This is the setter.

new

Signature: [static] new QMediaPlayer new (QObject ptr parent = nullptr, QMediaPlayer_QFlags_Flag flags = QMediaPlayer::Flags())

Description: Constructor QMediaPlayer::QMediaPlayer(QObject *parent, QFlags<QMediaPlayer::Flag> flags)

This method creates an object of class QMediaPlayer.

Python specific notes:
This method is the default initializer of the object.

notifyIntervalChanged

Signature: [signal] void notifyIntervalChanged (int milliSeconds)

Description: Signal declaration for QMediaPlayer::notifyIntervalChanged(int milliSeconds)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'notifyIntervalChanged'. This is the getter.
The object exposes a writable attribute 'notifyIntervalChanged'. This is the setter.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QMediaPlayer::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

pause

Signature: void pause

Description: Method void QMediaPlayer::pause()

play

Signature: void play

Description: Method void QMediaPlayer::play()

playbackRate

Signature: [const] double playbackRate

Description: Method double QMediaPlayer::playbackRate()

Python specific notes:
The object exposes a readable attribute 'playbackRate'. This is the getter.

playbackRate=

Signature: void playbackRate= (double rate)

Description: Method void QMediaPlayer::setPlaybackRate(double rate)

Python specific notes:
The object exposes a writable attribute 'playbackRate'. This is the setter.

playbackRateChanged

Signature: [signal] void playbackRateChanged (double rate)

Description: Signal declaration for QMediaPlayer::playbackRateChanged(double rate)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'playbackRateChanged'. This is the getter.
The object exposes a writable attribute 'playbackRateChanged'. This is the setter.

playlist

Signature: [const] QMediaPlaylist ptr playlist

Description: Method QMediaPlaylist *QMediaPlayer::playlist()

Python specific notes:
The object exposes a readable attribute 'playlist'. This is the getter.

playlist=

Signature: void playlist= (QMediaPlaylist ptr playlist)

Description: Method void QMediaPlayer::setPlaylist(QMediaPlaylist *playlist)

Python specific notes:
The object exposes a writable attribute 'playlist'. This is the setter.

position

Signature: [const] long long position

Description: Method qint64 QMediaPlayer::position()

Python specific notes:
The object exposes a readable attribute 'position'. This is the getter.

position=

Signature: void position= (long long position)

Description: Method void QMediaPlayer::setPosition(qint64 position)

Python specific notes:
The object exposes a writable attribute 'position'. This is the setter.

positionChanged

Signature: [signal] void positionChanged (long long position)

Description: Signal declaration for QMediaPlayer::positionChanged(qint64 position)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'positionChanged'. This is the getter.
The object exposes a writable attribute 'positionChanged'. This is the setter.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QMediaPlayer::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

removePropertyWatch

Signature: void removePropertyWatch (bytes name)

Description: Method void QMediaPlayer::removePropertyWatch(const QByteArray &name)

This method is protected and can only be called from inside a derived class.

seekable

Signature: [const] bool seekable

Description: Method bool QMediaPlayer::isSeekable()

Python specific notes:
The object exposes a readable attribute 'seekable'. This is the getter.

seekableChanged

Signature: [signal] void seekableChanged (bool seekable)

Description: Signal declaration for QMediaPlayer::seekableChanged(bool seekable)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'seekableChanged'. This is the getter.
The object exposes a writable attribute 'seekableChanged'. This is the setter.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QMediaPlayer::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QMediaPlayer::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

service

Signature: [const] QMediaService ptr service

Description: Virtual method QMediaService *QMediaPlayer::service()

This method can be reimplemented in a derived class.

setAudioRole

Signature: void setAudioRole (const QAudio_Role audioRole)

Description: Method void QMediaPlayer::setAudioRole(QAudio::Role audioRole)

Python specific notes:
The object exposes a writable attribute 'audioRole'. This is the setter.

setCustomAudioRole

Signature: void setCustomAudioRole (string audioRole)

Description: Method void QMediaPlayer::setCustomAudioRole(const QString &audioRole)

Python specific notes:
The object exposes a writable attribute 'customAudioRole'. This is the setter.

setMedia

Signature: void setMedia (const QMediaContent media, QIODevice ptr stream = nullptr)

Description: Method void QMediaPlayer::setMedia(const QMediaContent &media, QIODevice *stream)

setMuted

Signature: void setMuted (bool muted)

Description: Method void QMediaPlayer::setMuted(bool muted)

Python specific notes:
The object exposes a writable attribute 'muted'. This is the setter.

setNetworkConfigurations

Signature: void setNetworkConfigurations (QNetworkConfiguration[] configurations)

Description: Method void QMediaPlayer::setNetworkConfigurations(const QList<QNetworkConfiguration> &configurations)

setPlaybackRate

Signature: void setPlaybackRate (double rate)

Description: Method void QMediaPlayer::setPlaybackRate(double rate)

Python specific notes:
The object exposes a writable attribute 'playbackRate'. This is the setter.

setPlaylist

Signature: void setPlaylist (QMediaPlaylist ptr playlist)

Description: Method void QMediaPlayer::setPlaylist(QMediaPlaylist *playlist)

Python specific notes:
The object exposes a writable attribute 'playlist'. This is the setter.

setPosition

Signature: void setPosition (long long position)

Description: Method void QMediaPlayer::setPosition(qint64 position)

Python specific notes:
The object exposes a writable attribute 'position'. This is the setter.

setVideoOutput

(1) Signature: void setVideoOutput (QVideoWidget ptr arg1)

Description: Method void QMediaPlayer::setVideoOutput(QVideoWidget *)

(2) Signature: void setVideoOutput (QGraphicsVideoItem ptr arg1)

Description: Method void QMediaPlayer::setVideoOutput(QGraphicsVideoItem *)

(3) Signature: void setVideoOutput (QAbstractVideoSurface ptr surface)

Description: Method void QMediaPlayer::setVideoOutput(QAbstractVideoSurface *surface)

setVolume

Signature: void setVolume (int volume)

Description: Method void QMediaPlayer::setVolume(int volume)

Python specific notes:
The object exposes a writable attribute 'volume'. This is the setter.

state

Signature: [const] QMediaPlayer_State state

Description: Method QMediaPlayer::State QMediaPlayer::state()

Python specific notes:
The object exposes a readable attribute 'state'. This is the getter.

stateChanged

Signature: [signal] void stateChanged (const QMediaPlayer_State newState)

Description: Signal declaration for QMediaPlayer::stateChanged(QMediaPlayer::State newState)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'stateChanged'. This is the getter.
The object exposes a writable attribute 'stateChanged'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

stop

Signature: void stop

Description: Method void QMediaPlayer::stop()

supportedAudioRoles

Signature: [const] QAudio_Role[] supportedAudioRoles

Description: Method QList<QAudio::Role> QMediaPlayer::supportedAudioRoles()

supportedCustomAudioRoles

Signature: [const] string[] supportedCustomAudioRoles

Description: Method QStringList QMediaPlayer::supportedCustomAudioRoles()

supportedMimeTypes

Signature: [static] string[] supportedMimeTypes (QMediaPlayer_QFlags_Flag flags = QMediaPlayer::Flags())

Description: Static method QStringList QMediaPlayer::supportedMimeTypes(QFlags<QMediaPlayer::Flag> flags)

This method is static and can be called without an instance.

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QMediaPlayer::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QMediaPlayer::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QMediaPlayer::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

unbind

Signature: void unbind (QObject ptr arg1)

Description: Virtual method void QMediaPlayer::unbind(QObject *)

This method can be reimplemented in a derived class.

videoAvailable

Signature: [const] bool videoAvailable

Description: Method bool QMediaPlayer::isVideoAvailable()

Python specific notes:
The object exposes a readable attribute 'videoAvailable'. This is the getter.

videoAvailableChanged

Signature: [signal] void videoAvailableChanged (bool videoAvailable)

Description: Signal declaration for QMediaPlayer::videoAvailableChanged(bool videoAvailable)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'videoAvailableChanged'. This is the getter.
The object exposes a writable attribute 'videoAvailableChanged'. This is the setter.

volume

Signature: [const] int volume

Description: Method int QMediaPlayer::volume()

Python specific notes:
The object exposes a readable attribute 'volume'. This is the getter.

volume=

Signature: void volume= (int volume)

Description: Method void QMediaPlayer::setVolume(int volume)

Python specific notes:
The object exposes a writable attribute 'volume'. This is the setter.

volumeChanged

Signature: [signal] void volumeChanged (int volume)

Description: Signal declaration for QMediaPlayer::volumeChanged(int volume)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'volumeChanged'. This is the getter.
The object exposes a writable attribute 'volumeChanged'. This is the setter.