1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[Net] Expose WebRTC classes to extensions.

This commit is contained in:
Fabio Alessandrelli
2021-09-08 01:00:47 +02:00
parent 25226329be
commit 6cb81543d4
12 changed files with 437 additions and 340 deletions

View File

@@ -47,11 +47,15 @@ public:
STATE_CLOSED
};
private:
static StringName default_extension;
protected:
static void _bind_methods();
static WebRTCPeerConnection *(*_create)();
public:
static void set_default_extension(const StringName &p_name);
virtual ConnectionState get_connection_state() const = 0;
virtual Error initialize(Dictionary p_config = Dictionary()) = 0;
@@ -63,7 +67,6 @@ public:
virtual Error poll() = 0;
virtual void close() = 0;
static Ref<WebRTCPeerConnection> create_ref();
static WebRTCPeerConnection *create();
WebRTCPeerConnection();