QMediaGaplessPlaybackControlclass provides access to the gapless playback related control of aQMediaService. 更多 …
若
QMediaServicesupports gapless playback it will implementQMediaGaplessPlaybackControl. This control provides a means to set thenext mediaorcrossfade timefor smooth transitions between tracks.The functionality provided by this control is exposed to application code through the
QMediaPlayer类。The interface name of
QMediaGaplessPlaybackControlisorg.qt-project.qt.mediagaplessplaybackcontrol/5.0作为定义在QMediaGaplessPlaybackControl_iid.
QMediaGaplessPlaybackControl
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs a new gapless playback control with the given
parent
.
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
advancedToNextMedia
(
)
¶
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
crossfadeTime
(
)
¶
qreal
Returns current crossfade time in seconds.
另请参阅
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
crossfadeTimeChanged
(
crossfadeTime
)
¶
crossfadeTime
–
qreal
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
isCrossfadeSupported
(
)
¶
bool
Indicates whether crossfading is supported or not. If crossfading is not supported,
setCrossfadeTime()
will be ignored and
crossfadeTime()
will always return 0.
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
nextMedia
(
)
¶
Returns the content of the next media
另请参阅
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
nextMediaChanged
(
media
)
¶
media
–
QMediaContent
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
setCrossfadeTime
(
crossfadeTime
)
¶
crossfadeTime
–
qreal
设置
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).
另请参阅
PySide2.QtMultimedia.QMediaGaplessPlaybackControl.
setNextMedia
(
media
)
¶
media
–
QMediaContent
Sets the next
media
for smooth transition.
另请参阅