QMediaGaplessPlaybackControl¶
The
QMediaGaplessPlaybackControl
class provides access to the gapless playback related control of aQMediaService
. More…
Detailed Description¶
If a
QMediaService
supports gapless playback it will implementQMediaGaplessPlaybackControl
. This control provides a means to set thenext media
orcrossfade time
for smooth transitions between tracks.The functionality provided by this control is exposed to application code through the
QMediaPlayer
class.The interface name of
QMediaGaplessPlaybackControl
isorg.qt-project.qt.mediagaplessplaybackcontrol/5.0
as defined inQMediaGaplessPlaybackControl_iid
.See also
- class PySide2.QtMultimedia.QMediaGaplessPlaybackControl([parent=None])¶
- param parent:
Constructs a new gapless playback control with the given
parent
.
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.advancedToNextMedia()¶
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.crossfadeTime()¶
- Return type:
float
Returns current crossfade time in seconds.
See also
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.crossfadeTimeChanged(crossfadeTime)¶
- Parameters:
crossfadeTime – float
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.isCrossfadeSupported()¶
- Return type:
bool
Indicates whether crossfading is supported or not. If crossfading is not supported,
setCrossfadeTime()
will be ignored andcrossfadeTime()
will always return 0.
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.nextMedia()¶
- Return type:
Returns the content of the next media
See also
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.nextMediaChanged(media)¶
- Parameters:
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.setCrossfadeTime(crossfadeTime)¶
- Parameters:
crossfadeTime – float
Sets the
crossfadeTime
in seconds for smooth transition.Positive value means how much time it will take for the next media to transit from silent to full volume and vice versa for current one. So both current and the next one will be playing during this period of time.
A crossfade time of zero or negative will result in gapless playback (suitable for some continuous media).
See also
- PySide2.QtMultimedia.QMediaGaplessPlaybackControl.setNextMedia(media)¶
- Parameters:
Sets the next
media
for smooth transition.See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.