QAudioEncoderSettingsControl

The QAudioEncoderSettingsControl class provides access to the settings of a media service that performs audio encoding. More

Inheritance diagram of PySide2.QtMultimedia.QAudioEncoderSettingsControl

Detailed Description

If a QMediaService supports encoding audio data it will implement QAudioEncoderSettingsControl . This control provides information about the limits of restricted audio encoder options and allows the selection of a set of audio encoder settings as specified in a QAudioEncoderSettings object.

The functionality provided by this control is exposed to application code through the QMediaRecorder class.

The interface name of QAudioEncoderSettingsControl is org.qt-project.qt.audioencodersettingscontrol/5.0 as defined in QAudioEncoderSettingsControl_iid .

class PySide2.QtMultimedia.QAudioEncoderSettingsControl([parent=None])
param parent

PySide2.QtCore.QObject

Create a new audio encoder settings control object with the given parent .

PySide2.QtMultimedia.QAudioEncoderSettingsControl.audioSettings()
Return type

PySide2.QtMultimedia.QAudioEncoderSettings

Returns the audio encoder settings.

The returned value may be different tha passed to setAudioSettings() if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.

PySide2.QtMultimedia.QAudioEncoderSettingsControl.codecDescription(codecName)
Parameters

codecName – str

Return type

str

Returns the description of audio codec codecName .

PySide2.QtMultimedia.QAudioEncoderSettingsControl.setAudioSettings(settings)
Parameters

settingsPySide2.QtMultimedia.QAudioEncoderSettings

Sets the selected audio settings .

See also

audioSettings()

PySide2.QtMultimedia.QAudioEncoderSettingsControl.supportedAudioCodecs()
Return type

list of strings

Returns the list of supported audio codec names.