webrtc2_create_tables()
Create tables: webrtc2_call_statistics.
webrtc2_create_tables() : bool
Create tables: webrtc2_call_statistics.
webrtc2_create_tables() : bool
Create table: webrtc2_countries.
webrtc2_create_table_countries() : bool
Create table: webrtc2_call_stat.
webrtc2_create_table_call_stat() : bool
Create table: webrtc2_stun_servers.
webrtc2_create_table_stun_servers() : bool
Select name of WHO-IS provider.
webrtc2_who_is(string $ip_or_dns, string $who_is) : array<string|int, mixed>
IP or DNS of server.
Name of who is provider.
Retrieve ip information from the provider IP_API.
webrtc2_ip_api(string $user_ip) : array<string|int, mixed>
User ip.
In format json.
Retrieve ip information from the provider IP_info.
webrtc2_ip_info(string $user_ip) : array<string|int, mixed>
User ip.
In format json.
Retrieve ip information from the provider SxGeo.
webrtc2_sx_geo(string $user_ip) : array<string|int, mixed>
User ip.
In format json.
Retrieve ip information from the provider Geobytes.
webrtc2_geobytes(string $user_ip) : array<string|int, mixed>
User ip.
In format json.
Retrieve information of country of visitor.
webrtc2_country_name(string $country_code) : string
Country code.
User country name.
Attempts to find the closest timezone by coordinates.
webrtc2_getClosestTimezone(string $lat, string $lon) : string
Latitude.
Longitude.
Timezone.
Prepare table for Profile: tbl_users.
webrtc2_tbl_users() : mixed
Prepare table for Profile: tbl_contact.
webrtc2_tbl_contact() : mixed
Validate Browser name.
webrtc2_validateBrowserName(mixed $browser_name) : string
State.
Validate state of videochat.
webrtc2_validateState(string $state) : string
Start or Stop.
State.
Validate command of signaling.
webrtc2_validateCmd(string $cmd) : string
Unique command identifier of signaling.
Command.
Validate Msg (Strip HTML and PHP tags from a string).
webrtc2_validateMsg(string $msg) : string
Limits the length of the input string.
Message of user.
Message.
Validate Type SDP.
webrtc2_validateTypeSdp(string $type_sdp) : string
Type SDP.
Type SDP.
Validate HTTP_USER_AGENT.
webrtc2_validateBrowser(mixed $user_agent) : string
HTTP_USER_AGENT.
Validate User login.
webrtc2_validateLogin(string $login) : string
User login.
User login.
Validate user IP.
webrtc2_validateIP() : string
User IP.
Validate URI.
webrtc2_validateURI() : string
URI.
WebRTC signaling Server.
webrtc2_sign() : mixed
Send info of members video-chat to the browser of client.
webrtc2_send_frontend(string $data1, string $data2) : mixed
All users online on page video-chat.
List of guests for each video-chat host.
Collecting and saved information about video chat participants.
webrtc2_sse() : mixed
Used for client application: Java client.
webrtc2_build_template_blank() : mixed
Since the client application works on mobile devices with a small screen, all unnecessary content is removed from the video chat page and only the shortcode remains.
Choose stun server name for user video chat.
webrtc2_choose_stun() : mixed
Receive data of stun server name.
webrtc2_receive_stun(mixed $user_time_zone) : mixed
Helper function for uasort($data, "cmp").
cmp(mixed $a, mixed $b) : mixed
Populate the data in table prefix_watchman_site_countries.
webrtc2_sql_countries() : string
Populate the data in table prefix_webrtc2_stun_servers.
webrtc2_stun_servers() : string
Delete all options and tables of plugin WP-WebRTC2.
webrtc2_uninstall() : mixed
Localization of plugin.
webrtc2_textdomain() : mixed
Register javascripts, css for backend.
webrtc2_enqueue_scripts_backend() : mixed
Register javascripts, css for frontend.
webrtc2_scripts_css() : mixed
Performed when the plugin is activation.
webrtc2_activation() : mixed
During activation, creates table in the database:
webrtc2_countries, webrtc2_call_stat, webrtc2_stun_servers
Performed when the plugin is deactivation.
webrtc2_deactivation() : mixed
Delete cron events: webrtc2_truncate, webrtc2_update, webrtc2_update_repeat