内容表

上一话题

QMediaControl

下一话题

QMediaNetworkAccessControl

QMediaGaplessPlaybackControl

QMediaGaplessPlaybackControl class provides access to the gapless playback related control of a QMediaService . 更多

Inheritance diagram of PySide2.QtMultimedia.QMediaGaplessPlaybackControl

详细描述

QMediaService supports gapless playback it will implement QMediaGaplessPlaybackControl . This control provides a means to set the next media or crossfade time for smooth transitions between tracks.

The functionality provided by this control is exposed to application code through the QMediaPlayer 类。

The interface name of QMediaGaplessPlaybackControl is org.qt-project.qt.mediagaplessplaybackcontrol/5.0 作为定义在 QMediaGaplessPlaybackControl_iid .

class 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 ( )
返回类型

QMediaContent

Returns the content of the next media

另请参阅

setNextMedia()

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).

另请参阅

crossfadeTime()

PySide2.QtMultimedia.QMediaGaplessPlaybackControl. setNextMedia ( media )
参数

media QMediaContent

Sets the next media for smooth transition.

另请参阅

nextMedia()