class_webrtcpeer.rst 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the WebRTCPeer.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_WebRTCPeer:
  5. WebRTCPeer
  6. ==========
  7. **Inherits:** :ref:`PacketPeer<class_PacketPeer>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Inherited By:** :ref:`WebRTCPeerGDNative<class_WebRTCPeerGDNative>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Properties
  13. ----------
  14. +---------------------------------------------+---------------------------------------------------------+
  15. | :ref:`WriteMode<enum_WebRTCPeer_WriteMode>` | :ref:`write_mode<class_WebRTCPeer_property_write_mode>` |
  16. +---------------------------------------------+---------------------------------------------------------+
  17. Methods
  18. -------
  19. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`add_ice_candidate<class_WebRTCPeer_method_add_ice_candidate>` **(** :ref:`String<class_String>` media, :ref:`int<class_int>` index, :ref:`String<class_String>` name **)** |
  21. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`create_offer<class_WebRTCPeer_method_create_offer>` **(** **)** |
  23. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`ConnectionState<enum_WebRTCPeer_ConnectionState>` | :ref:`get_connection_state<class_WebRTCPeer_method_get_connection_state>` **(** **)** const |
  25. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`poll<class_WebRTCPeer_method_poll>` **(** **)** |
  27. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`set_local_description<class_WebRTCPeer_method_set_local_description>` **(** :ref:`String<class_String>` type, :ref:`String<class_String>` sdp **)** |
  29. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`set_remote_description<class_WebRTCPeer_method_set_remote_description>` **(** :ref:`String<class_String>` type, :ref:`String<class_String>` sdp **)** |
  31. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`bool<class_bool>` | :ref:`was_string_packet<class_WebRTCPeer_method_was_string_packet>` **(** **)** const |
  33. +---------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. Signals
  35. -------
  36. .. _class_WebRTCPeer_signal_new_ice_candidate:
  37. - **new_ice_candidate** **(** :ref:`String<class_String>` media, :ref:`int<class_int>` index, :ref:`String<class_String>` name **)**
  38. .. _class_WebRTCPeer_signal_offer_created:
  39. - **offer_created** **(** :ref:`String<class_String>` type, :ref:`String<class_String>` sdp **)**
  40. Enumerations
  41. ------------
  42. .. _enum_WebRTCPeer_WriteMode:
  43. .. _class_WebRTCPeer_constant_WRITE_MODE_TEXT:
  44. .. _class_WebRTCPeer_constant_WRITE_MODE_BINARY:
  45. enum **WriteMode**:
  46. - **WRITE_MODE_TEXT** = **0**
  47. - **WRITE_MODE_BINARY** = **1**
  48. .. _enum_WebRTCPeer_ConnectionState:
  49. .. _class_WebRTCPeer_constant_STATE_NEW:
  50. .. _class_WebRTCPeer_constant_STATE_CONNECTING:
  51. .. _class_WebRTCPeer_constant_STATE_CONNECTED:
  52. .. _class_WebRTCPeer_constant_STATE_DISCONNECTED:
  53. .. _class_WebRTCPeer_constant_STATE_FAILED:
  54. .. _class_WebRTCPeer_constant_STATE_CLOSED:
  55. enum **ConnectionState**:
  56. - **STATE_NEW** = **0**
  57. - **STATE_CONNECTING** = **1**
  58. - **STATE_CONNECTED** = **2**
  59. - **STATE_DISCONNECTED** = **3**
  60. - **STATE_FAILED** = **4**
  61. - **STATE_CLOSED** = **5**
  62. Property Descriptions
  63. ---------------------
  64. .. _class_WebRTCPeer_property_write_mode:
  65. - :ref:`WriteMode<enum_WebRTCPeer_WriteMode>` **write_mode**
  66. +----------+-----------------------+
  67. | *Setter* | set_write_mode(value) |
  68. +----------+-----------------------+
  69. | *Getter* | get_write_mode() |
  70. +----------+-----------------------+
  71. Method Descriptions
  72. -------------------
  73. .. _class_WebRTCPeer_method_add_ice_candidate:
  74. - :ref:`Error<enum_@GlobalScope_Error>` **add_ice_candidate** **(** :ref:`String<class_String>` media, :ref:`int<class_int>` index, :ref:`String<class_String>` name **)**
  75. .. _class_WebRTCPeer_method_create_offer:
  76. - :ref:`Error<enum_@GlobalScope_Error>` **create_offer** **(** **)**
  77. .. _class_WebRTCPeer_method_get_connection_state:
  78. - :ref:`ConnectionState<enum_WebRTCPeer_ConnectionState>` **get_connection_state** **(** **)** const
  79. .. _class_WebRTCPeer_method_poll:
  80. - :ref:`Error<enum_@GlobalScope_Error>` **poll** **(** **)**
  81. .. _class_WebRTCPeer_method_set_local_description:
  82. - :ref:`Error<enum_@GlobalScope_Error>` **set_local_description** **(** :ref:`String<class_String>` type, :ref:`String<class_String>` sdp **)**
  83. .. _class_WebRTCPeer_method_set_remote_description:
  84. - :ref:`Error<enum_@GlobalScope_Error>` **set_remote_description** **(** :ref:`String<class_String>` type, :ref:`String<class_String>` sdp **)**
  85. .. _class_WebRTCPeer_method_was_string_packet:
  86. - :ref:`bool<class_bool>` **was_string_packet** **(** **)** const