Global

Members

array

Buffer-array of objects event.candidates

Source:

array

Array of videoStreamAll for Blob of webrtc2_videoStreamAll_MediaRec.

Source:

array

Last 6 string of fld_chat for videoStreamAll.

Source:

integer

The current number of the drop-down list in the dump window.

Source:

object

Img folder for_fld_file_attach.

Source:

object

Object RTCPeerConnection.

Source:

object

Data channel for receive or send of messages.

Source:

object

Data channel for receive/send of messages.

Source:

object

Data channel for receive/send stats data.

Source:

object

Data channel for interactive drawing board.

Source:

object

MediaRecorder of videoStreamAll = videoStream1 + videoStream2.

Source:

object

Stat WebRTC - inbound_rtp_video.

Source:

object

Stat WebRTC - inbound_rtp_video of client remote.

Source:

object

Stat WebRTC - outbound_rtp_video.

Source:

object

Stat WebRTC - outbound_rtp_video of client remote.

Source:

object

Stat WebRTC - transport.

Source:

object

Stat WebRTC - transport of client remote.

Source:

object

Stat WebRTC - channel.

Source:

object

Stat WebRTC - channel of client remote.

Source:

object

Stat WebRTC - bitrate and fps.

Source:

object

Stat WebRTC - sound level meters.

Source:

object

Stat WebRTC - bitrate level meters.

Source:

object

Stat WebRTC - change webcam / screen share.

Source:

object

AudioWorkletNode.

Source:

object

AudioContext for microphone level.

Source:

object

BoardCanvas.

Source:

object

BoardContext.

Source:

object

Board remote active.

Source:

object

Board local active.

Source:

Methods

webrtc2_WorkletNodeAudioMeter(stream)

Sound processor (audio meter).

Parameters:
Name Type Description
stream object

Overall audio signal level.

Source:

webrtc2_appendCell(row, name, type)

Auxiliary function for webrtc2_log_ice().

Parameters:
Name Type Description
row string

tow of table.

name string

name of cell.

type string

th or td.

Source:

webrtc2_autoresponder_msg(autoresponder)

Print message to win chat of webrtc2_hostId from autoresponder.

Parameters:
Name Type Description
autoresponder string

Messages of autoresponder for webrtc2_hostId.

Source:

(async) webrtc2_autoresponder_receive() → {string}

Receive msg for webrtc2_hostId from autoresponder on server (autoresponder).

Source:
Returns:

Message.

Type
string

webrtc2_autoresponder_send(message)

Send msg of webrtc2_hostId to autoresponder on server (autoresponder).

Parameters:
Name Type Description
message string

Message for send to autoresponder.

Source:

webrtc2_bandwidth(bandwidth)

Renegotiate bandwidth on the fly.

Parameters:
Name Type Description
bandwidth string

Bitrate.

Source:

webrtc2_bigData_send(dataSend)

Send big Data to webrtc2_guestId.

Parameters:
Name Type Description
dataSend blob

Big data.

Source:

webrtc2_bitrate_level_local(id)

Change of bitrate of local win1_video.

Parameters:
Name Type Description
id string

ID of local level of bitrate.

Source:

webrtc2_bitrate_level_remote(bitrate_level_remote)

Change of bitrate of remote win1_video.

Parameters:
Name Type Description
bitrate_level_remote string

Bitrate level remote.

Source:

webrtc2_boardCanvas_listener()

Add listener to webrtc2_boardCanvas.

Source:

webrtc2_board_help()

Help use.

Source:

webrtc2_board_share()

Shared board on win1.

Source:

webrtc2_call_stat(state:)

Send call_stat of videochat to server.

Parameters:
Name Type Description
state: string

start or stop.

Source:

webrtc2_canvas() → {object}

Play video of getUserMedia from canvas.

Source:
Returns:

Capture Stream.

Type
object

webrtc2_change_legend(id)

Correction graph_legend_local, graph_legend_remote Graph1, Graph2, Graph3 - have 2 line graph legends; Graph4 - have 6 lines of graph legends.

Parameters:
Name Type Description
id string

Graph1, Graph2, Graph3, or Graph4.

Source:

webrtc2_chat_init()

Peer to Peer video-chat.

Source:

webrtc2_chat_msg(id, desc)

Print message to win chat of webrtc2_hostId.

Parameters:
Name Type Description
id string

Webrtc2_hostId.

desc object

Message.

Source:

webrtc2_chat_stop()

Send stop of video-chat to server.

Source:

webrtc2_chat_window_name(names_members_chat)

Name the chat window.

Parameters:
Name Type Description
names_members_chat array

Names the video stream windows.

Source:

webrtc2_check_exclude_user_from_room()

Chek for the possibility of exclude user from chat room.

Source:

webrtc2_check_ice_candidates(iceCandidates, msg)

Checking the ice-candidate array for exist srflx and relay.

Parameters:
Name Type Description
iceCandidates array

Array of ice-candidates.

msg text

If there is no srflx or relay - it will blink.

Source:

webrtc2_check_include_user_in_room()

Chek for the possibility of include user in chat room.

Source:

webrtc2_check_on_start()

Check for the possibility of starting a chat.

Source:

webrtc2_chk_status_members(webrtc2_users_online, webrtc2_users_guests)

Check status of members (online, offline, envited).

Parameters:
Name Type Description
webrtc2_users_online array

List of users online.

webrtc2_users_guests array

List of guest.

Source:

webrtc2_chk_status_users(webrtc2_users_online, webrtc2_users_guests)

Check status of users (online,offline,envited).

Parameters:
Name Type Description
webrtc2_users_online string

List of registered users online.

webrtc2_users_guests string

List of registered users guests.

Source:

webrtc2_chk_ufrag_pwd(string, string, string) → {string}

Modifying the SDP to check ice-ufrag, ice-pwd.

Parameters:
Name Type Description
string

user User name of videi-chat.

string

type_sdp Offer or Answer.

string

sdp SDP.

Source:
Returns:

Modifying the SDP.

Type
string

webrtc2_cmd_board(id)

Choosing a command to draw on the board.

Parameters:
Name Type Description
id string

ID of command a drawing.

Source:

webrtc2_collect_stat(stats)

Statistics collection for displaying on tbl_graph.

Parameters:
Name Type Description
stats object

Collects statistics for an webrtc2_pc.

Source:

webrtc2_color(id)

Choosing a color to draw on the board.

Parameters:
Name Type Description
id string

ID of color.

Source:

webrtc2_datachannel_ctx()

Init events of data channel for interactive drawing board.

Source:

webrtc2_datachannel_data()

Init events of data channel for receive/send of messages and files.

Source:

webrtc2_datachannel_stat()

Init events of data channel for receive/send statistics data of webrtc2_guestId.

Source:

webrtc2_dump_msg(id, desc)

Print message to win dump of webrtc2_hostId.

Parameters:
Name Type Description
id string

webrtc2_hostId.

desc object

message.

Source:

webrtc2_exclude_user_from_room()

Exclude user from chat room.

Source:

webrtc2_file_cancel_send()

Cancel send file to webrtc2_guestId.

Source:

webrtc2_file_load(e)

File load for board drawing.

Parameters:
Name Type Description
e object

Event.

Source:

webrtc2_file_save()

File save for board drawing.

Source:

webrtc2_file_send()

Send file to webrtc2_guestId.

Source:

webrtc2_fld_chat_strings()

Build last 6 string of fld_chat for videoStreamAll.

Source:

webrtc2_font_size()

Set font size for board drawing.

Source:

webrtc2_formatPriority(priority)

Parse the uint32 PRIORITY field into its constituent parts from RFC 5245, type preference, local preference, and (256 - component ID). ex: 126 | 32252 | 255 (126 is host preference, 255 is component ID 1)

Parameters:
Name Type Description
priority string

Text.

Source:

webrtc2_formula()

Drawing a mathematical formula.

Source:

webrtc2_getCandidateIds(stats)

Get CandidateIds for pair succeeded.

Parameters:
Name Type Description
stats string

Stats of ice candidates.

Source:

webrtc2_getCandidateInfo(stats, candidateId)

Get Candidate info for pair succeeded.

Parameters:
Name Type Description
stats string

Stats of ice candidates.

candidateId string

Id of ice candidates.

Source:

webrtc2_getTimeRemaining(endtime)

Get the remaining time for the countdown timer.

Parameters:
Name Type Description
endtime string

ID of window video stream.

Source:

webrtc2_graph1()

Display graph1.

Source:

webrtc2_graph1_remote()

Display graph1 remote.

Source:

webrtc2_graph2()

Display graph2.

Source:

webrtc2_graph2_remote()

Display graph2 remote.

Source:

webrtc2_graph3()

Display graph3.

Source:

webrtc2_graph3_remote()

Display graph3 remote.

Source:

webrtc2_graph4()

Display graph4.

Source:

webrtc2_graph4_remote()

Display graph4 remote.

Source:

webrtc2_graph_quit()

Hiden of fld_graph and displaying fld_dump, fld_chat.

Source:

webrtc2_ice_local(event)

Gathering and sending local ICE-candidates to the server.

Parameters:
Name Type Description
event object

webrtc2_pc.onicecandidate.

Source:

webrtc2_ice_remote(iceCandidates)

Creation of a table of remote ICE candidates.

Parameters:
Name Type Description
iceCandidates array

Remote ICE candidates.

Source:

webrtc2_include_user_in_room()

Include user in chat room.

Source:

webrtc2_initializeClock(id, endtime)

Countdown counter.

Parameters:
Name Type Description
id string

ID element

of countdown timer.

endtime string

End time of video conference.

Source:

webrtc2_interface_onload()

Main function onload.

Source:

webrtc2_is_initiator(webrtc2_users_guests) → {boolean}

Determines whether the video-chat participant is the initiator or not.

Parameters:
Name Type Description
webrtc2_users_guests array

List of envited users.

Source:
Returns:

Initiator or not.

Type
boolean

webrtc2_line_width()

Set line width for board drawing.

Source:

webrtc2_log_config(id, desc)

Print RTCPeerConnection.getConfiguration of webrtc2_hostId or webrtc2_guestId.

Parameters:
Name Type Description
id string

Name of webrtc2_hostId or webrtc2_guestId.

desc string

Description.

Source:

(async) webrtc2_log_connectionStats()

Get log connectionStats of ice candidates for pair succeeded.

Source:

webrtc2_log_dataChannel(dataChannel)

Print a list of data channel properties of webrtc2_hostId.

Parameters:
Name Type Description
dataChannel string

Data channel.

Source:

webrtc2_log_err(id, desc)

Print error to win dump of webrtc2_hostId.

Parameters:
Name Type Description
id string

Webrtc2_hostId.

desc object

Error.

Source:

webrtc2_log_ice(type_ice, iceCandidates)

Print list of ice-candidates of webrtc2_hostId.

Parameters:
Name Type Description
type_ice string

Type ICE: ice_local or ice_remote.

iceCandidates array

Array of ice-candidates.

Source:

webrtc2_log_modify(desc)

Print message to win dump of modify SDP.

Parameters:
Name Type Description
desc string

Message.

Source:

webrtc2_log_sdp(id, desc, sdp)

Print SDP (offer, answer) to win dump of webrtc2_hostId or webrtc2_guestId.

Parameters:
Name Type Description
id string

Name of webrtc2_hostId or webrtc2_guestId.

desc string

Description.

sdp string

Offer or Answer.

Source:

webrtc2_main_onload()

Main function onload.

Source:

webrtc2_makeRequest(params)

Make request XMLHttpRequest.

Parameters:
Name Type Description
params string

Parameter for request.

Source:

webrtc2_max_min_win(id)

Maximize or minimize window of video chat.

Parameters:
Name Type Description
id string

ID of component.

Source:

webrtc2_msg_chat_switch()

Switching box "messages" to chat mode.

Source:

webrtc2_msg_clear()

Clear box of dump, chat.

Source:

webrtc2_msg_dump_switch()

Switching box "messages" to dump mode.

Source:

webrtc2_msg_graph_switch()

Hiden of fld_dump, fld_chat and displaying fld_graph.

Source:

webrtc2_msg_report()

Save to file.html selected content of win_messages.

Source:

webrtc2_msg_send()

Send message to data channel for autoresponder.

Source:

webrtc2_page_onload()

Page onload. Fixed a bug in the standard module WP_List_Table, when the admin enters a value in the "current-page-selector field" and in the address bar, the "paged" field did not change.

Source:

webrtc2_parseCandidate(text)

Parse a candidate: string into an object, for easier use by other methods.

Parameters:
Name Type Description
text string

text.

Source:

webrtc2_peer_init()

Creating a PC object and setting other events.

Source:

webrtc2_profile_onload()

Profile section onload.

Source:

webrtc2_randomInteger(string, string) → {string}

Getting a random integer in a given interval.

Parameters:
Name Type Description
string

str_add String of sdp.

string

str_len Length of str_add.

Source:
Returns:

Modifying the SDP.

Type
string

webrtc2_rebuild_elements(id)

After clicking on the windows (win1-win2), rebuilds them.

Parameters:
Name Type Description
id string

ID of window video stream.

Source:

(async) webrtc2_receive_ice() → {array}

Receive ice candidates from server.

Source:
Returns:

Ice candidates.

Type
array

(async) webrtc2_receive_sdp(webrtc2_type_sdp) → {string}

Receive sdp from server.

Parameters:
Name Type Description
webrtc2_type_sdp string

Offer or Answer.

Source:
Returns:

SDP.

Type
string

webrtc2_screen_share()

Screen share into win1.

Source:

webrtc2_screen_stat(stats)

Get bitrate and fps for webrtc2_hostId in win1.

Parameters:
Name Type Description
stats object

Collects statistics for an webrtc2_pc.

Source:

webrtc2_search_contact_profile()

Search Name of contact into profile.

Source:

webrtc2_search_user()

Search Name of user registered for video conference.

Source:

webrtc2_search_user_profile()

Search Name of user registered into profile.

Source:

webrtc2_send_guestId(webrtc2_guestId)

Send list name of guests to server.

Parameters:
Name Type Description
webrtc2_guestId string

webrtc2_guestId.

Source:

webrtc2_send_ice(webrtc2_ice_candidates)

Send ice-candidate of webrtc2_hostId to server.

Parameters:
Name Type Description
webrtc2_ice_candidates string

ICE candidates of webrtc2_hostId.

Source:

webrtc2_send_sdp(sdp, type)

Send sdp of webrtc2_hostId to server.

Parameters:
Name Type Description
sdp string

SDP of webrtc2_hostId.

type string

Offer or Answer SDP of webrtc2_hostId.

Source:

webrtc2_setMediaBitrate(user, type_sdp, sdp, media, bitrate) → {string}

Modifying the SDP to Add a Bandwidth Constraint. Author: Nick Gauthier.

Parameters:
Name Type Description
user string

User name of videi-chat.

type_sdp string

Offer or Answer.

sdp string

SDP.

media string

Type of stream of getUserMedia.

bitrate number

Level of bitrate.

Source:
Returns:

Modifying the SDP.

Type
string

webrtc2_setMediaBitrates(user, type_sdp, sdp) → {string}

Modifying the SDP to Add a Bandwidth Constraint. Author: Nick Gauthier.

Parameters:
Name Type Description
user object

User name of videi-chat.

type_sdp object

Offer or Answer.

sdp string

SDP.

Source:
Returns:

Modifying the SDP.

Type
string

webrtc2_sign_state_change(event)

Determine what the new state of webrtc2_pc.

Parameters:
Name Type Description
event object

webrtc2_pc.onsignalingstatechange.

Source:

webrtc2_sse()

Check of users online, room guests.

Source:

webrtc2_start()

Start video chat.

Source:

webrtc2_startRecording()

Recording video of selected member of chat.

Source:

webrtc2_stop()

Stop video chat.

Source:

(async) webrtc2_stopRecording()

Stop Recording video of selected member of chat.

Source:

webrtc2_text_bold()

Set text bold for board drawing.

Source:

webrtc2_text_italic()

Set text italic for board drawing.

Source:

webrtc2_use_circle()

Circle drawing.

Source:

webrtc2_use_erase()

Erase use.

Source:

webrtc2_use_fill()

Color fill.

Source:

webrtc2_use_line()

Line drawing.

Source:

webrtc2_use_oval()

Oval drawing.

Source:

webrtc2_use_paste(left, top, width, height)

Get - Move - Put imageClip.

Parameters:
Name Type Description
left integer

Left corner of the selected area

top integer

Top corner of selected area

width integer

Width corner of selected area !==0

height integer

Height corner of selected area !==0

Source:

webrtc2_use_pencil()

Pencil drawing.

Source:

webrtc2_use_rectangle()

Rectangle drawing.

Source:

webrtc2_use_rotate(left, top, width, height)

Rotate use.

Parameters:
Name Type Description
left integer

Left corner of the selected area

top integer

Top corner of selected area

width integer

Width corner of selected area !==0

height integer

Height corner of selected area !==0

Source:

webrtc2_use_select(left, top, width, height)

Select use.

Parameters:
Name Type Description
left integer

Left corner of the selected area

top integer

Top corner of selected area

width integer

Width corner of selected area !==0

height integer

Height corner of selected area !==0

Source:

webrtc2_use_text()

Text drawing.

Source:

webrtc2_users_exclude()

Exclude user from Contact List.

Source:

webrtc2_users_include()

Include user to Contact List.

Source:

webrtc2_users_sel_btn(id)

Dispaly on/off Contact List.

Parameters:
Name Type Description
id string

Radio button of select Users for Video chat.

Source:

webrtc2_validate_coordinates()

Ensures that x1 < x2 and y1 < y2 in the area.

Source:

webrtc2_win1_menu_items_hide()

Hide win1_menu_item1, win1_menu_item2 into win1.

Source:

webrtc2_win1_menu_items_visible()

Visible win1_menu_item1, win1_menu_item2 into win1.

Source: