FieldTrials

Field trials, which turn on experimental features of the WebRTC engine before it starts.

class webrtc.interfaces.field_trials.FieldTrials

The field trials of the engine: a mapping of trial names to groups, like {'WebRTC-Sctp-Snap': 'Enabled'}.

Browsers take them from a command-line flag. Here, set them in webrtc.field_trials, or in the WRTC_FIELD_TRIALS environment variable in the flag’s Name/Group/ format, before the first webrtc.RTCPeerConnection or webrtc.RTCIceTransport. They’re fixed from then on, for the life of the process: a change raises webrtc.InvalidStateError.

str() gives the Name/Group/ format. Unknown names are accepted, and do nothing.

update(other: SupportsKeysAndGetItem[str, str], /, **kwargs: str) β†’ None
update(other: Iterable[tuple[str, str]], /, **kwargs: str) β†’ None
update(**kwargs: str) β†’ None

Sets several trials at once, or none of them if one is invalid.

clear() β†’ None.Β  Remove all items from D.
webrtc.interfaces.field_trials.field_trials = FieldTrials({})

The field trials of the process. See webrtc.FieldTrials.

webrtc.interfaces.field_trials.fieldTrials = FieldTrials({})

Alias for field_trials