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.