summaryrefslogtreecommitdiffstats
path: root/modules/webrtc/webrtc_peer_connection_extension.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-08 04:39:32 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-13 14:46:58 +0200
commitdbff58ebdd5e5e406da594a776e8724c574a310b (patch)
tree27f36d7fddbc5551aa87df3dfcb856ed9a5c75ca /modules/webrtc/webrtc_peer_connection_extension.h
parent22a09fef5d56fc7c37d70118532509076ebd7b12 (diff)
downloadredot-engine-dbff58ebdd5e5e406da594a776e8724c574a310b.tar.gz
[WebRTC] Expose more of the WebRTC API.
Add get_gathering_state() returning the iceGatheringState of the connection. Add get_signaling_state() returning the signalingState of the connection. Improve JS library.
Diffstat (limited to 'modules/webrtc/webrtc_peer_connection_extension.h')
-rw-r--r--modules/webrtc/webrtc_peer_connection_extension.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/webrtc/webrtc_peer_connection_extension.h b/modules/webrtc/webrtc_peer_connection_extension.h
index 0c324ca45f..085069debb 100644
--- a/modules/webrtc/webrtc_peer_connection_extension.h
+++ b/modules/webrtc/webrtc_peer_connection_extension.h
@@ -53,6 +53,8 @@ public:
/** GDExtension **/
EXBIND0RC(ConnectionState, get_connection_state);
+ EXBIND0RC(GatheringState, get_gathering_state);
+ EXBIND0RC(SignalingState, get_signaling_state);
EXBIND1R(Error, initialize, Dictionary);
EXBIND0R(Error, create_offer);
EXBIND2R(Error, set_remote_description, String, String);