CN113014544B - Method and device for establishing centerless media link based on webRtc - Google Patents

Method and device for establishing centerless media link based on webRtc Download PDF

Info

Publication number
CN113014544B
CN113014544B CN202110097839.1A CN202110097839A CN113014544B CN 113014544 B CN113014544 B CN 113014544B CN 202110097839 A CN202110097839 A CN 202110097839A CN 113014544 B CN113014544 B CN 113014544B
Authority
CN
China
Prior art keywords
information
terminal
terminals
address book
webrtc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110097839.1A
Other languages
Chinese (zh)
Other versions
CN113014544A (en
Inventor
施洋
赵豪豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUN KAISENS (BEIJING) TECHNOLOGY CO LTD
Original Assignee
SUN KAISENS (BEIJING) TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUN KAISENS (BEIJING) TECHNOLOGY CO LTD filed Critical SUN KAISENS (BEIJING) TECHNOLOGY CO LTD
Priority to CN202110097839.1A priority Critical patent/CN113014544B/en
Publication of CN113014544A publication Critical patent/CN113014544A/en
Application granted granted Critical
Publication of CN113014544B publication Critical patent/CN113014544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application provides a webRtc-based center-less media link establishment method and device, wherein the method comprises the following steps: a first terminal in a local area network sends own basic information to a plurality of second terminals in a full-network broadcast mode, so that the second terminals analyze the basic information and then construct an address list; the first terminal builds a communication group according to the address book, and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that sdp information and candidate information are transmitted among the terminals in the communication group through UDP, and communication connection and voice or video conversation are established; the method and the device can abandon the constraint that the call can be realized only by depending on a signaling server in the prior art, and easily realize the function of audio and video call through the ad hoc network.

Description

Method and device for establishing centerless media link based on webRtc
Technical Field
The application relates to the field of communication, in particular to a webRtc-based centerless media link establishment method and device.
Background
The Web Real-Time communication (WebRtc) technology adds a new function to a Web browser. It pioneers the ability of browsers to interact with other browsers to form a variety of architectures including triangle and ladder modes. The multimedia functionality of WebRtc is very advanced. A wide variety of new features can be provided. Currently, the World Wide web consortium (W3C) and the Internet Engineering Task Force (IETF) are responsible for standardization of WebRtc.
WebRtc realizes audio and video call, the most common mode is that a signaling Signal server is used for completing end-to-end transmission of sdp information and candidate information, and a P2P connection is established between the end and the terminal through the sdp information to transmit audio and video data, so that a call flow is realized.
The inventor finds that the necessary dependence relationship exists between the terminal and the server and the use is very complicated because the signaling is transferred through the signaling server when the audio and video call is realized under the webRtc at present.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a webRtc-based method and a webRtc-based device for establishing a centerless media link, which can abandon the restriction that the call can be realized only by relying on a signaling server in the prior art, and easily realize the function of audio and video call through an ad hoc network.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides a webRtc-based centerless media link establishment method, including:
a first terminal in a local area network sends own basic information to a plurality of second terminals in a full-network broadcast mode, so that the second terminals analyze the basic information and then construct an address list;
and the first terminal constructs a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that sdp information and candidate information are transmitted among the terminals in the communication group through UDP (user Datagram protocol) and communication connection and voice or video conversation are established.
Further, the sending of the self basic information by the first terminal in the local area network to the plurality of second terminals in the form of full network broadcast includes:
a first terminal in a local area network encapsulates own basic information into a data object and sends the data object to a plurality of second terminals in a whole network broadcasting mode, wherein the message type of the data object is an address book type, and the own basic information comprises IP information, nickname information and account information.
Further, the second terminal analyzes the basic information and then constructs an address book, including:
after the second terminal analyzes the data object, if the message type of the data object is judged to be the address book type, whether the IP information in the data object is contained in a local address book is judged, and if not, nickname information and account information corresponding to the IP information are added into the local address book.
Further, the first terminal constructs a communication group according to the address book, and broadcasts corresponding group set information to a plurality of second terminals in the communication group, including:
the first terminal establishes communication connection with each second terminal in the communication group after establishing the communication group according to the address book, and sends group set information to the second terminals;
and after receiving the group set information, each second terminal establishes communication connection with other second terminals in the communication group.
In a second aspect, the present application provides a webRtc-based centerless media link establishment apparatus, including:
the address list building module is used for sending self basic information to a plurality of second terminals by a first terminal in a local area network in a full-network broadcasting mode so that the second terminals can analyze the basic information and then build an address list;
and the calling communication module is used for the first terminal to construct a communication group according to the address book and broadcast corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candidate information through UDP and establishes communication connection and voice or video conversation.
Further, the address book building module includes:
and the data object encapsulation and analysis unit is used for encapsulating the basic information of the first terminal in the local area network into the data object and sending the data object to a plurality of second terminals in a full-network broadcast mode, wherein the message type of the data object is an address book type, and the basic information of the first terminal comprises IP information, nickname information and account information.
Further, the method also comprises the following steps:
and the address book updating unit is used for judging whether the local address book contains the IP information in the data object or not if the message type of the data object is judged to be the address book type after the second terminal analyzes the data object, and adding the nickname information and the account information corresponding to the IP information into the local address book if the local address book does not contain the IP information.
Further, the call communication module includes:
the group call establishing unit is used for establishing communication connection between each second terminal in the communication groups after the first terminal establishes the communication groups according to the address book and sending group set information to the second terminals;
and the group call realizing unit is used for establishing communication connection with other second terminals in the communication group after each second terminal receives the group set information.
In a third aspect, the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the webRtc-based centerless media link establishment method when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the webRtc-based centerless media link establishment method.
According to the technical scheme, the method and the device for establishing the webRtc-based centerless media link are characterized in that basic information of the first terminal in a local area network is sent to a plurality of second terminals in a whole-network broadcast mode through the first terminal, so that the second terminals analyze the basic information and then construct an address list; the first terminal builds a communication group according to the address book, and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that sdp information and candidate information are transmitted among the terminals in the communication group through UDP, and communication connection and voice or video conversation are established; the method and the device can abandon the constraint that the call can be realized only by depending on a signaling server in the prior art, and easily realize the function of audio and video call through the ad hoc network.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a webRtc-based centerless media link establishment method in an embodiment of the present application;
fig. 2 is a second schematic flowchart of the webRtc-based centerless media link establishment method in the embodiment of the present application;
fig. 3 is one of the structural diagrams of the webRtc-based centerless media link establishment apparatus in the embodiment of the present application;
fig. 4 is a second structure diagram of the webRtc-based centerless media link establishment apparatus in the embodiment of the present application;
fig. 5 is a third structural diagram of a webRtc-based centerless media link establishment apparatus in an embodiment of the present application;
fig. 6 is a fourth structural diagram of a webRtc-based centerless media link establishment apparatus in an embodiment of the present application;
fig. 7 is a schematic diagram illustrating signaling forwarding in the prior art according to an embodiment of the present application;
FIG. 8 is a diagram illustrating address book construction in an embodiment of the present application;
FIG. 9 is a schematic diagram of a single call implementation in an embodiment of the present application;
FIG. 10 is a diagram illustrating group call implementation in an embodiment of the present application;
FIG. 11 is a schematic diagram illustrating a group call session in an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In view of the problems in the prior art, the application provides a webRtc-based method and a webRtc-based device for establishing a centerless media link, wherein basic information of the webRtc-based method and the webRtc-based device are sent to a plurality of second terminals in a full-network broadcast mode through a first terminal in a local area network, so that the second terminals analyze the basic information and then construct an address book; the first terminal builds a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candidate information through UDP and establishes communication connection and voice or video call; the method and the device can abandon the constraint that the call can be realized only by depending on a signaling server in the prior art, and easily realize the function of audio and video call through the ad hoc network.
In order to abandon the constraint that a call can only be realized by a signaling server in the prior art and easily realize the function of audio and video call through an ad hoc network, the present application provides an embodiment of a webRtc-based non-central media link establishment method, which specifically includes the following contents, with reference to fig. 1:
step S101: a first terminal in a local area network sends own basic information to a plurality of second terminals in a full-network broadcast mode, so that the second terminals analyze the basic information and then construct an address list;
step S102: and the first terminal constructs a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that sdp information and candidate information are transmitted among the terminals in the communication group through UDP (user Datagram protocol) and communication connection and voice or video conversation are established.
As can be seen from the above description, the webRtc-based centerless media link establishment method provided in the embodiment of the present application can send its own basic information to a plurality of second terminals in a form of full-network broadcast through a first terminal in a local area network, so that the second terminals analyze the basic information and then construct an address book; the first terminal builds a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candidate information through UDP and establishes communication connection and voice or video call; the method and the device can abandon the constraint that the call can be realized only by relying on the signaling server in the prior art, and easily realize the function of audio and video call through the ad hoc network.
In an embodiment of the webRtc-based centerless media link establishment method according to the present application, the following may be specifically included:
a first terminal in a local area network encapsulates own basic information into a data object and sends the data object to a plurality of second terminals in a whole network broadcasting mode, wherein the message type of the data object is an address book type, and the own basic information comprises IP information, nickname information and account information.
In an embodiment of the webRtc-based centerless media link establishment method according to the present application, the following may be further specifically included:
after the second terminal analyzes the data object, if the message type of the data object is judged to be the address book type, whether the local address book contains the IP information in the data object is judged, and if not, nickname information and account information corresponding to the IP information are added into the local address book.
In an embodiment of the webRtc-based centerless media link establishment method according to the present application, referring to fig. 2, the following may be further included:
step S201: the first terminal establishes communication connection with each second terminal in the communication group after establishing the communication group according to the address book, and sends group set information to the second terminals;
step S202: and after receiving the group set information, each second terminal establishes communication connection with other second terminals in the communication group.
In order to abandon the constraint that a call can only be realized by a signaling server in the prior art, and easily realize an audio/video call function through an ad hoc network, the present application provides an embodiment of a webRtc centerless media link establishment apparatus for realizing all or part of contents of the webRtc centerless media link establishment method, and with reference to fig. 3, the webRtc centerless media link establishment apparatus specifically includes the following contents:
the address book building module 10 is configured to send, by a first terminal in a local area network, basic information of the first terminal to a plurality of second terminals in a full-network broadcast manner, so that the second terminals build an address book after analyzing the basic information;
and a calling communication module 20, configured to construct a communication group according to the address book, and broadcast corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candidate information through UDP, and establishes a communication connection and a voice or video call.
As can be seen from the above description, the webRtc-based centerless media link establishment apparatus provided in the embodiment of the present application can send its own basic information to a plurality of second terminals in a form of full-network broadcast through a first terminal in a local area network, so that the second terminals analyze the basic information and then construct an address book; the first terminal builds a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candidate information through UDP and establishes communication connection and voice or video call; the method and the device can abandon the constraint that the call can be realized only by depending on a signaling server in the prior art, and easily realize the function of audio and video call through the ad hoc network.
In an embodiment of the webRtc-based centerless media link establishment apparatus according to the present application, referring to fig. 4, the address book building module 10 includes:
and the data object encapsulation and analysis unit 11 is used for encapsulating the basic information of the first terminal in the local area network into the data object and sending the data object to a plurality of second terminals in a full network broadcast manner, wherein the message type of the data object is an address book type, and the basic information of the first terminal comprises IP information, nickname information and account information.
In an embodiment of the webRtc-based centerless media link establishment apparatus according to the present application, referring to fig. 5, the following contents are further specifically included:
the address book updating unit 12 is configured to, after the second terminal parses the data object, determine whether the local address book includes the IP information in the data object if it is determined that the message type of the data object is the address book type, and add the nickname information and the account information corresponding to the IP information to the local address book if it is not determined that the message type of the data object is the address book type.
In an embodiment of the webRtc based centerless media link establishment apparatus of the present application, referring to fig. 6, the calling communication module 20 includes:
the group call creating unit 21 is configured to establish, by the first terminal, a communication connection with each second terminal in the communication group after establishing the communication group according to the address book, and send group set information to the second terminal;
and a group call implementing unit 22, configured to establish communication connection with other second terminals in the communication group after each second terminal receives the group set information.
To further illustrate the solution, the present application further provides a specific application example of implementing the webRtc-based centerless media link establishment method by using the webRtc-based centerless media link establishment apparatus, which specifically includes the following contents:
in the sequence of fig. 7, the labeled scenario is that ClientA initiates a chat request to ClientB, and the call is described as follows:
ClientA first creates a PeerConnection object and then opens the local audio-video device, encapsulates the audio-video data into MediaStream and adds the MediaStream to the PeerConnection.
ClientA calls the CreateOffer method of the PeerConnection to create an SDP object for the offer, and relevant parameters of the current audio and video are stored in the SDP object. ClientA saves the SDP object by the settlocaldescription method of PeerConnection, and sends it to ClientB through the Signal server.
ClientB receives the offer SDP object sent by ClientA, saves it by setremoteddescription method of PeerConnection, calls CreateAnswer method of PeerConnection to create a response SDP object, saves it by SetLocalDescription method of PeerConnection, and sends it to ClientA through Signal server.
Upon receiving the response SDP object transmitted from ClientB, clientA saves the response SDP object by the setremoteddescription method of PeerConnection.
In the offer/answer flow of the SDP information, clientA and ClientB have already created corresponding audio and video channels from the SDP information and started the collection of Candidate data, which can be simply understood as IP address information (local IP address, public network IP address, address assigned by Relay server) of the Client side.
Therefore, the application also provides a method for easily realizing audio and video conversation under the ad hoc network without a signaling server, which comprises the following specific steps:
step one, the address book is realized, each terminal has a mechanism for regularly sending own information (IP, nickname, account number and the like) in a form of whole network broadcasting, and the purpose of the whole network broadcasting is to enable all terminals to receive the information of the terminal. When a message is sent, all information of the terminal is encapsulated into an object, a message type is added into the object, the message type is an address book type (for example, represented by 0) and used for informing the opposite side what type of message is sent, after any terminal receives information sent by other terminals and analyzes the information into the appointed object, the message type is taken, if the message type is the address book type, the message is traversed in the local communication of the terminal according to the IP address in the information of the opposite side, if the record exists, the message is ignored, and if no contact of the IP exists, the contact is added into the communication of the terminal. Suppose now that there are five terminals a, B, C, D, E under the lan, the IP address of a is: 192.168.1.1, b with 192.168.1.2, c with 192.168.1.3, d with 192.168.1.4, e with 192.168.1.5, each member of the final local communication is shown in fig. 8.
And step two, realizing single call. A single call is relatively simple, and voice or video call can be realized by establishing a connection between two terminals by transmitting sdp information and candidate information of each other through UDP, as shown in fig. 9.
Step three, group calling is realized, group calling is difficult to realize, a group caller is firstly initiated to establish a group (set), if a group call is established among four terminals A, B, C and D, the group caller selects three persons from an address list as terminals B, C and D, the group caller is initiated to always serve as the terminal A, the group caller defaults to add the group caller to the position with subscript 0 of the group set, then other persons serve as terminals B, C and D in sequence according to the selected sequence to be added to the group set, then the group caller sends the group set information to the terminals B, C and D in a broadcasting mode, the three terminals B, C and D receive the instruction and analyze the carried set, and each terminal knows who is the corresponding terminal A, B, C and D according to the subscript, so that the group calling is realized as shown in fig. 10.
If the terminal A is a call main initiator, the terminal A establishes 3-way connection with the terminals B, C and D respectively, after the 3-way connection is established by the terminal A, the terminal A sends an instruction to the terminal B to tell the terminal B to establish connection with other terminals, after receiving the instruction sent by the terminal A, the terminal B takes the IP address of the terminal B to traverse the group set received just before, finds the position (subscript) of the terminal B in the group set and then establishes connection with the terminals (namely, the terminals C and D) which are circularly larger than the subscript of the terminal B, and the terminal B does not need to establish connection with the terminal A again because the terminal A establishes connection with the terminal B. After the terminal B establishes the 2-path connection, the connection establishing instruction is sent to the terminal C, the terminal C receives the instruction given by the terminal B to the terminal C or traverses the IP address of the terminal C to find the subscript of the terminal C from the group set, and then the connection is established with the terminals (only the terminal D is left) which are larger than the subscript of the terminal C in a circulating manner, and the terminal C does not need to establish the connection with the terminal A and the terminal B in a similar manner. So far, the connection of this multi-person call is completely established, see fig. 11.
Note: fig. 11 is a flow chart illustrating a 4-terminal group call, where each connection is actually performing step two above to create a point-to-point single call. The number represents the connection sequence, the four terminals need to establish 6 paths of connection in total, the terminal A establishes 3 paths of connection, the terminal B establishes 2 paths of connection, the terminal C establishes 1 path of connection again, and the terminal D can complete the audio and video group call without establishing connection.
And step four, establishing stable connection. Because there may be packet loss in the signaling transmission process, there may be a phenomenon that a call cannot be smoothly established no matter in a single call or a group call. The stable mechanism implemented here is by means of the response given by the signaling party to the sending instruction party. For single call, after each signaling is sent out, the side receiving the signaling gives a response packet to the side sending the signaling. Each signaling is sent at most to two sides, after being sent out for the first time, the signaling is sent again if the response of the opposite side is not received within a certain time, and if the response is not received for the second time, the logic of hanging up and releasing the resources is executed. For group calling, firstly, after the connection between the terminal A and the three terminals B, C and D is established, the instruction for establishing connection is sent to the terminal B, and the terminal B is allowed to establish connection with the terminals C and D. After the terminal A sends the message of creating the instruction to the terminal B, the terminal B needs to give a response packet to the terminal A, and if the terminal A does not receive the response packet of the terminal B within a certain time, the terminal A sends the instruction to the terminal B again. If the A terminal sends the instruction twice to the B terminal and does not receive the response of the B terminal, the A terminal sends the instruction for establishing the connection to the C terminal, and the C terminal executes the media establishment logic between the C terminal and the D terminal.
As can be seen from the above, the present application can achieve at least the following technical effects:
UDP is used as a communication mode of signaling transmission, a conversation mode realized by transferring signaling through a signaling server is abandoned, so that conversation between terminals does not depend on the server, and the use is more flexible and convenient.
In terms of hardware, in order to abandon the constraint that a call can be realized only by a signaling server in the prior art and easily realize an audio/video call function through an ad hoc network, the present application provides an embodiment of an electronic device for realizing all or part of contents in the webRtc-based centerless media link establishment method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the webRtc based centerless media link establishing device and relevant equipment such as a core service system, a user terminal and a relevant database; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may refer to an embodiment of the method for establishing a webRtc-based centerless media link and an embodiment of the apparatus for establishing a webRtc-based centerless media link in the embodiments for implementation, and the contents thereof are incorporated herein, and repeated details are not repeated herein.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the webRtc-based centerless media link establishment method may be performed on the electronic device side as described above, or all operations may be performed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 12 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 12, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 12 is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications or other functions.
In one embodiment, the webRtc-based centerless media link establishment method function may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
step S101: a first terminal in a local area network sends own basic information to a plurality of second terminals in a full-network broadcast mode, so that the second terminals analyze the basic information and then construct an address list;
step S102: and the first terminal constructs a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candate information through UDP and establishes communication connection and voice or video call.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, the first terminal in the local area network sends the basic information of the electronic device to the plurality of second terminals in the form of full-network broadcast, so that the second terminals analyze the basic information and then construct the address list; the first terminal builds a communication group according to the address book, and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that sdp information and candidate information are transmitted among the terminals in the communication group through UDP, and communication connection and voice or video conversation are established; the method and the device can abandon the constraint that the call can be realized only by relying on the signaling server in the prior art, and easily realize the function of audio and video call through the ad hoc network.
In another embodiment, the webRtc-based centerless media link establishment apparatus may be configured separately from the central processor 9100, for example, the webRtc-based centerless media link establishment apparatus may be configured as a chip connected to the central processor 9100, and the function of the webRtc-based centerless media link establishment method is implemented by the control of the central processor.
As shown in fig. 12, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 12; further, the electronic device 9600 may further include components not shown in fig. 12, which can be referred to in the related art.
As shown in fig. 12, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., read Only Memory (ROM), random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes referred to as an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage part 9142, the application/function storage part 9142 being used to store application programs and function programs or a flow for executing the operation of the electronic device 9600 by the central processing unit 9100.
The memory 9140 can also include a data store 9143, the data store 9143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
Embodiments of the present application further provide a computer-readable storage medium capable of implementing all steps in the webRtc centerless media link establishment method with a server or a client as an execution subject, where the computer-readable storage medium stores thereon a computer program, and when executed by a processor, the computer program implements all steps of the webRtc centerless media link establishment method with a server or a client as an execution subject, for example, when the processor executes the computer program, the processor implements the following steps:
step S101: a first terminal in a local area network sends own basic information to a plurality of second terminals in a full-network broadcast mode, so that the second terminals analyze the basic information and then construct an address list;
step S102: and the first terminal constructs a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candate information through UDP and establishes communication connection and voice or video call.
As can be seen from the above description, in the computer-readable storage medium provided in this embodiment, the first terminal in the local area network sends the basic information of the first terminal to the multiple second terminals in the form of full-network broadcast, so that the second terminals analyze the basic information and then construct the address book; the first terminal builds a communication group according to the address book and broadcasts corresponding group set information to a plurality of second terminals in the communication group, so that each terminal in the communication group transmits sdp information and candidate information through UDP and establishes communication connection and voice or video call; the method and the device can abandon the constraint that the call can be realized only by depending on a signaling server in the prior art, and easily realize the function of audio and video call through the ad hoc network.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (4)

1. A webRtc-based centerless media link establishment method is characterized in that the method comprises the following steps:
a first terminal in a local area network encapsulates own basic information into a data object and sends the information to a plurality of second terminals in a whole network broadcast mode, wherein the message type of the data object is an address book type, and the own basic information comprises IP information, nickname information and account information;
after the second terminal analyzes the data object, if the message type of the data object is judged to be the address book type, judging whether a local address book contains IP information in the data object, and if not, adding nickname information and account information corresponding to the IP information into the local address book;
the first terminal establishes communication connection with each second terminal in the communication group respectively after establishing the communication group according to the address book, and sends group set information to the second terminals;
and after receiving the group set information, each second terminal establishes communication connection with other second terminals in the communication group.
2. A webRtc-based centerless media link establishment apparatus, comprising:
the system comprises an address book building module, a first terminal and a plurality of second terminals, wherein the address book building module is used for packaging self basic information into a data object by the first terminal in a local area network and sending the self basic information to the plurality of second terminals in a whole network broadcast mode, the message type of the data object is the address book type, and the self basic information comprises IP information, nickname information and account information; after the second terminal analyzes the data object, if the message type of the data object is judged to be the address book type, judging whether a local address book contains IP information in the data object, and if not, adding nickname information and account information corresponding to the IP information into the local address book;
the calling communication module is used for establishing communication connection with each second terminal in the communication group after the first terminal establishes the communication group according to the address book and sending group set information to the second terminals; and after receiving the group set information, each second terminal establishes communication connection with other second terminals in the communication group.
3. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the webRtc centerless media link establishment method of claim 1 when executing the program.
4. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the webRtc-based centerless media link establishment method of claim 1.
CN202110097839.1A 2021-01-25 2021-01-25 Method and device for establishing centerless media link based on webRtc Active CN113014544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110097839.1A CN113014544B (en) 2021-01-25 2021-01-25 Method and device for establishing centerless media link based on webRtc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110097839.1A CN113014544B (en) 2021-01-25 2021-01-25 Method and device for establishing centerless media link based on webRtc

Publications (2)

Publication Number Publication Date
CN113014544A CN113014544A (en) 2021-06-22
CN113014544B true CN113014544B (en) 2023-02-10

Family

ID=76385381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110097839.1A Active CN113014544B (en) 2021-01-25 2021-01-25 Method and device for establishing centerless media link based on webRtc

Country Status (1)

Country Link
CN (1) CN113014544B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11758003B2 (en) * 2021-12-10 2023-09-12 Topia Interactive, Inc. Mixed peer-to-peer mesh and forwarding system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702062A (en) * 2013-12-27 2014-04-02 Tcl集团股份有限公司 Audio and video communication method, device and system
CN104255014A (en) * 2012-12-31 2014-12-31 华为技术有限公司 Method, device and server for setting and processing interactive connectivity establishment address
CN105357590A (en) * 2014-08-22 2016-02-24 中兴通讯股份有限公司 Method and device for achieving terminal multimedia broadcast
CN106559396A (en) * 2015-09-30 2017-04-05 中国电信股份有限公司 Media multicast method and system based on Web real-time Communication for Power
CN106850399A (en) * 2016-12-30 2017-06-13 深圳市潮流网络技术有限公司 A kind of communication means based on WebRTC technology instant messages
CN109274634A (en) * 2017-07-18 2019-01-25 腾讯科技(深圳)有限公司 Multimedia communication method and device, storage medium
CN110915168A (en) * 2017-04-21 2020-03-24 系统73有限公司 Predictive overlay network architecture
CN110971506A (en) * 2019-11-06 2020-04-07 厦门亿联网络技术股份有限公司 Decentralized real-time cluster communication method, device, equipment and system
CN112202882A (en) * 2020-09-29 2021-01-08 联想(北京)有限公司 Transmission method, client and transmission system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TR201500128A1 (en) * 2015-01-06 2016-07-21 Netas Telekomuenikasyon Anonim Sirketi Crypto hopping webrtc based, voice and / or video communication method.
US11388138B2 (en) * 2015-10-14 2022-07-12 Ntt Communications Corporation Communication system, address notification apparatus, communication control apparatus, terminal, communication method, and program
US11880422B2 (en) * 2019-02-04 2024-01-23 Cloudflare, Inc. Theft prevention for sensitive information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104255014A (en) * 2012-12-31 2014-12-31 华为技术有限公司 Method, device and server for setting and processing interactive connectivity establishment address
CN103702062A (en) * 2013-12-27 2014-04-02 Tcl集团股份有限公司 Audio and video communication method, device and system
CN105357590A (en) * 2014-08-22 2016-02-24 中兴通讯股份有限公司 Method and device for achieving terminal multimedia broadcast
CN106559396A (en) * 2015-09-30 2017-04-05 中国电信股份有限公司 Media multicast method and system based on Web real-time Communication for Power
CN106850399A (en) * 2016-12-30 2017-06-13 深圳市潮流网络技术有限公司 A kind of communication means based on WebRTC technology instant messages
CN110915168A (en) * 2017-04-21 2020-03-24 系统73有限公司 Predictive overlay network architecture
CN109274634A (en) * 2017-07-18 2019-01-25 腾讯科技(深圳)有限公司 Multimedia communication method and device, storage medium
CN110971506A (en) * 2019-11-06 2020-04-07 厦门亿联网络技术股份有限公司 Decentralized real-time cluster communication method, device, equipment and system
CN112202882A (en) * 2020-09-29 2021-01-08 联想(北京)有限公司 Transmission method, client and transmission system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
实时通信集群负载均衡策略研究与应用;于波等;《计算机系统应用》;20190515(第05期);第167-172页 *

Also Published As

Publication number Publication date
CN113014544A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
EP2514139B1 (en) System and method of multi-media conferencing between universal plug and play (upnp) enabled telephony devices and wireless area network (wan) devices
CN104125540B (en) Multi-party call terminal and the method that one-to-one call is converted to from multi-party call
US20150350723A1 (en) Video Communication Method, Home Terminal, and Home Server
US10397341B2 (en) Method and apparatus for migrating active communication session between terminals
CN110121902B (en) Communication establishment method and terminal
US20200169774A1 (en) Control method and device
CN102611871A (en) Method, system and mobile terminal for video communication and digital television receiving terminal
CN102882769A (en) Instant communication method, terminal and system, and communication server
CN105227418A (en) Data channel establishing method and communication equipment
WO2019079971A1 (en) Method for group communication, and apparatus, computer storage medium, and computer device
CN107040498B (en) Same-screen method and terminal
CN111240858A (en) Event scheduling method and component
CN112689012A (en) Cross-network proxy communication method and device
CN113014544B (en) Method and device for establishing centerless media link based on webRtc
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN107040458B (en) Method and system for realizing intercommunication of video conference
WO2012019391A1 (en) System and method for obtaining detail information of number
CN106027599B (en) Data transmission channel establishing method, system and server
CN104038258A (en) Telephone connection method, electronic terminal and system
CN105323714A (en) Notification message processing method and terminal
CN103856644A (en) Voice over internet protocol prompting method and system
CN103795958A (en) Multimedia call negotiation method, system and video interworking gateway, multimedia terminal
CN103905483A (en) Audio and video sharing method, equipment and system
CN111782366A (en) Distributed task scheduling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant