diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-18 15:33:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 15:33:00 +0100 |
commit | 28cd81c581365d15ee2cc497d48164de498a7208 (patch) | |
tree | d0819a8f49a5d29fb887aa73799441d1e1dc7caf /modules | |
parent | fd5fb7d64adefb40d8de94236bf41938aa020d21 (diff) | |
parent | 8898d6dadc64d3c87d998c57ef0a6eab99698566 (diff) |
Merge pull request #56896 from akien-mga/dictionary-improve-VariantWriter-and-docs
Diffstat (limited to 'modules')
-rw-r--r-- | modules/webrtc/doc_classes/WebRTCPeerConnection.xml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/webrtc/doc_classes/WebRTCPeerConnection.xml b/modules/webrtc/doc_classes/WebRTCPeerConnection.xml index 618fe14137..2f2c2c379d 100644 --- a/modules/webrtc/doc_classes/WebRTCPeerConnection.xml +++ b/modules/webrtc/doc_classes/WebRTCPeerConnection.xml @@ -33,8 +33,7 @@ <method name="create_data_channel"> <return type="WebRTCDataChannel" /> <argument index="0" name="label" type="String" /> - <argument index="1" name="options" type="Dictionary" default="{ -}" /> + <argument index="1" name="options" type="Dictionary" default="{}" /> <description> Returns a new [WebRTCDataChannel] (or [code]null[/code] on failure) with given [code]label[/code] and optionally configured via the [code]options[/code] dictionary. This method can only be called when the connection is in state [constant STATE_NEW]. There are two ways to create a working data channel: either call [method create_data_channel] on only one of the peer and listen to [signal data_channel_received] on the other, or call [method create_data_channel] on both peers, with the same values, and the [code]negotiated[/code] option set to [code]true[/code]. @@ -70,8 +69,7 @@ </method> <method name="initialize"> <return type="int" enum="Error" /> - <argument index="0" name="configuration" type="Dictionary" default="{ -}" /> + <argument index="0" name="configuration" type="Dictionary" default="{}" /> <description> Re-initialize this peer connection, closing any previously active connection, and going back to state [constant STATE_NEW]. A dictionary of [code]options[/code] can be passed to configure the peer connection. Valid [code]options[/code] are: |