Obsolete Members for QMediaPlayer

以下成员源于类 QMediaPlayer 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QNetworkConfiguration currentNetworkConfiguration () const

公共槽

(obsolete) void setNetworkConfigurations (const QList<QNetworkConfiguration> & configurations )

信号

(obsolete) void networkConfigurationChanged (const QNetworkConfiguration & configuration )

静态公共成员

(obsolete) QStringList supportedMimeTypes (QMediaPlayer::Flags flags = Flags())

成员函数文档编制

[signal] void QMediaPlayer:: networkConfigurationChanged (const QNetworkConfiguration & configuration )

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Signal that the active in use network access point has been changed to configuration and all subsequent network access will use this configuration .

[slot] void QMediaPlayer:: setNetworkConfigurations (const QList < QNetworkConfiguration > & configurations )

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Sets the network access points for remote media playback. configurations contains, in ascending preferential order, a list of configuration that can be used for network access.

This will invalidate the choice of previous configurations.

QNetworkConfiguration QMediaPlayer:: currentNetworkConfiguration () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Returns the current network access point in use. If a default contructed QNetworkConfiguration is returned this feature is not available or that none of the current supplied configurations are in use.

[static] QStringList QMediaPlayer:: supportedMimeTypes ( QMediaPlayer::Flags flags = Flags())

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Returns a list of MIME types supported by the media player.

The flags argument causes the resultant list to be restricted to MIME types which can be supported given additional requirements, such as performance indicators.

This function may not return useful results on some platforms, and support for a specific file of a given mime type is not guaranteed even if the mime type is in general supported. In addition, in some cases this function will need to load all available media plugins and query them for their support, which may take some time.