|
@@ -29,6 +29,7 @@
|
|
|
/*************************************************************************/
|
|
|
|
|
|
#include "register_types.h"
|
|
|
+#include "core/project_settings.h"
|
|
|
#include "webrtc_data_channel.h"
|
|
|
#include "webrtc_peer_connection.h"
|
|
|
|
|
@@ -43,6 +44,12 @@
|
|
|
#include "webrtc_multiplayer.h"
|
|
|
|
|
|
void register_webrtc_types() {
|
|
|
+#define _SET_HINT(NAME, _VAL_, _MAX_) \
|
|
|
+ GLOBAL_DEF(NAME, _VAL_); \
|
|
|
+ ProjectSettings::get_singleton()->set_custom_property_info(NAME, PropertyInfo(Variant::INT, NAME, PROPERTY_HINT_RANGE, "2," #_MAX_ ",1,or_greater"));
|
|
|
+
|
|
|
+ _SET_HINT(WRTC_IN_BUF, 64, 4096);
|
|
|
+
|
|
|
#ifdef JAVASCRIPT_ENABLED
|
|
|
WebRTCPeerConnectionJS::make_default();
|
|
|
#elif defined(WEBRTC_GDNATIVE_ENABLED)
|