CN111131398A - Method, device, electronic equipment and medium based on direct communication of video network - Google Patents

Method, device, electronic equipment and medium based on direct communication of video network Download PDF

Info

Publication number
CN111131398A
CN111131398A CN201911215506.3A CN201911215506A CN111131398A CN 111131398 A CN111131398 A CN 111131398A CN 201911215506 A CN201911215506 A CN 201911215506A CN 111131398 A CN111131398 A CN 111131398A
Authority
CN
China
Prior art keywords
terminal
address
video networking
networking number
video
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.)
Granted
Application number
CN201911215506.3A
Other languages
Chinese (zh)
Other versions
CN111131398B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201911215506.3A priority Critical patent/CN111131398B/en
Publication of CN111131398A publication Critical patent/CN111131398A/en
Application granted granted Critical
Publication of CN111131398B publication Critical patent/CN111131398B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium based on direct communication of a video network, wherein the method is applied to a first terminal provided with a VVoE application program and comprises the following steps: acquiring a video networking number input by a user through a preset window of a first terminal, and determining an IP address of a second terminal corresponding to the video networking number; sending the IP address to the preset window, and initiating a communication request through the preset window; converting the communication request into a communication request in an internet of view format; and sending the converted communication request to a second terminal through a video networking number corresponding to the IP address so as to realize direct communication between the first terminal and the second terminal based on the IP address. In the embodiment of the invention, the first terminal realizes the conversion between the video networking number and the IP address through the VVoE application program, thereby realizing the direct communication between the common terminals through the video networking number.

Description

Method, device, electronic equipment and medium based on direct communication of video network
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method and an apparatus for direct communication based on video networking, an electronic device, and a computer-readable storage medium.
Background
In the related art, communication between terminals of the video network is realized only by forwarding through a video network server, and each terminal of the video network has a video network number, which generally refers to a number defined in the video network, which is 20 bits, 11 bits or 8 bits and is composed of pure numbers (0-9), but is not limited thereto.
With the development of the video networking technology, the video networking terminals can realize direct communication with the opposite terminal through the video networking number of the opposite terminal. However, in the video network, a common terminal (e.g., a PC terminal, a mobile terminal, etc.) cannot communicate through the video network number, thereby reducing the communication efficiency based on the video network number and the user experience based on the video network communication.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a method based on direct communication over a video network, an apparatus based on direct communication over a video network, an electronic device and a computer readable storage medium, which overcome or at least partially solve the above problems.
In order to solve the above problems, the embodiment of the present invention discloses the following technical solutions:
a first aspect provides a method for direct communication based on a video network, wherein the method is applied to a first terminal installed with a VVoE application program, and the method includes:
acquiring a video networking number input by a user through a preset window of a first terminal;
determining the IP address of the second terminal corresponding to the video networking number;
sending the IP address to the preset window, and initiating a communication request through the preset window;
converting the communication request into a communication request in an internet of view format;
and sending the converted communication request to the second terminal through a video networking number corresponding to the IP address so as to realize direct communication between the first terminal and the second terminal based on the IP address.
Optionally, the determining the IP address of the second terminal corresponding to the video networking number includes:
inquiring whether the local cache stores the IP address of the second terminal corresponding to the video networking number;
and if the IP address of the second terminal is inquired, acquiring the IP address of the second terminal from the local cache.
Optionally, the method further includes:
if the inquiry is not received, inserting an inquiry request for inquiring the IP address information of the second terminal corresponding to the video networking number into an inquiry request queue;
and starting or processing the new searching request in the searching request queue through a new thread which is started until the IP address of the corresponding second terminal is obtained.
Optionally, the processing, by the started or started new thread, the new query request in the query request queue until the IP address of the corresponding second terminal is obtained includes:
controlling the started or started new thread to send a query request for acquiring the IP address of the second terminal to the second terminal through the video networking number;
and receiving the inquiry response which is sent by the second terminal and comprises the own IP address.
Optionally, the method further includes:
if the IP address of the second terminal is not inquired, sending a request message for acquiring the IP address of the second terminal to the second terminal through the video networking number;
and receiving a response message which is sent by the second terminal and comprises the own IP address.
Optionally, the method further includes:
and updating the acquired video networking number and the corresponding IP address of the second terminal into the local cache.
A second aspect provides a method for direct communication based on a video network, the method being applied to a second terminal installed with a VVoE application, the method comprising:
receiving a communication request sent by a first terminal through a video network, wherein the communication request comprises: the video networking number corresponding to the second terminal;
determining the IP address of the second terminal corresponding to the video networking number;
and realizing the communication between the second terminal and the first terminal based on the IP address.
A third aspect provides an apparatus for direct communication based on a video network, the apparatus being applied to a first terminal installed with a VVoE application, the apparatus comprising:
the first acquisition module is used for acquiring the video networking number input by the user through the first terminal;
the determining module is used for determining the IP address of the second terminal corresponding to the video networking number;
the first sending module is used for sending the IP address to the preset window and initiating a communication request through the preset window;
a conversion module for converting the communication request into a communication request in a video networking format
And the communication module is used for sending the converted communication request to a second terminal through a video networking number corresponding to the IP address so as to realize direct communication between the first terminal and the second terminal based on the IP address.
Optionally, the determining module includes:
the query module is used for querying whether the local cache stores the IP address of the second terminal corresponding to the video networking number;
and the second acquisition module is used for acquiring the IP address of the second terminal from the local cache when the IP address of the second terminal corresponding to the video networking number is inquired by the inquiry module.
Optionally, the apparatus further comprises:
the inserting module is used for inserting the query request for querying the IP address information of the second terminal corresponding to the video networking number into the query request queue when the query module queries that the IP address of the second terminal corresponding to the video networking number is not stored in the local cache;
and the starting module is used for starting or processing the new searching request in the searching request queue through a new opened thread until the IP address of the corresponding second terminal is obtained.
Optionally, the starting module includes:
the second sending module is used for acquiring a request message of the IP address of the second terminal from the second terminal through the video networking number by utilizing the started or started new thread;
and the first receiving module is used for receiving a response message which is sent by the second terminal and comprises the own IP address through the video networking number.
Optionally, the apparatus further comprises:
a third sending module, configured to send, to the second terminal through the video networking number, a request message for obtaining an IP address of the second terminal when the query module queries that the IP address of the second terminal corresponding to the video networking number is not stored in the local cache;
and the second receiving module is used for receiving the response message which is sent by the second terminal and comprises the own IP address.
Optionally, the apparatus further comprises:
and the updating module is used for updating the acquired corresponding relation between the video networking number and the corresponding IP address of the second terminal into the local cache.
A fourth aspect provides an apparatus for direct communication based on a video network, the apparatus being applied to a second terminal installed with a VVoE application, the apparatus comprising:
a receiving module, configured to receive, through a video network, a communication request sent by a first terminal, where the communication request includes: the video networking number corresponding to the second terminal;
the determining module is used for determining the IP address of the second terminal corresponding to the video networking number;
and the communication module is used for realizing the communication between the second terminal and the first terminal based on the IP address.
A fifth aspect provides an electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the direct communication over video network method as described above.
A sixth aspect provides a computer-readable storage medium, in which instructions, when executed by a processor in an electronic device, enable the electronic device to perform a method of direct communication based on a visual networking as described above.
The embodiment of the invention at least comprises the following advantages:
in the embodiment of the invention, a video networking number input by a user through a preset window of a first terminal is obtained, and an IP address of a second terminal corresponding to the video networking number is determined; sending the IP address to the preset window, and initiating a communication request through the preset window; converting the communication request into a communication request in an internet of view format; and sending the converted communication request to a second terminal through a video networking number corresponding to the IP address so as to realize direct communication between the first terminal and the second terminal based on the IP address. That is to say, in the embodiment of the present invention, the first terminal implements conversion between the video networking number and the IP address through the VVoE application, thereby implementing direct communication between the common terminals through the video networking number. Further, in the embodiment of the invention, the process of acquiring the IP address corresponding to the number of the video network is irrelevant to the video network, so that the problem of long time for acquiring the IP address due to network blockage can be solved. The embodiment of the invention not only improves the efficiency of obtaining the IP address and the communication efficiency, but also improves the experience that the user can carry out direct communication based on the video networking number through common terminals.
Drawings
Fig. 1 is a flowchart of a method for direct communication based on a video network according to an embodiment of the present invention;
fig. 2 is another flowchart of a method for direct communication based on a video network according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for direct communication based on a video network according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a device based on direct communication of video network according to an embodiment of the present invention;
FIG. 5 is another structural diagram of a device for direct communication based on video networking according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a device for direct communication based on video networking according to an embodiment of the present invention;
fig. 7 is a flowchart of an application example provided in the embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the video network, the video network terminals are in direct communication with the opposite terminal through the video network number of the opposite terminal, and in the video network, in order to realize the direct communication between common terminals (such as PC terminals and the like) through the video network number, the embodiment of the invention provides that a VVoE application program is installed in the terminal (namely a first terminal) in advance, and the terminal can realize the mapping between the video network number and the IP address through the VVoE application program, so that the direct communication between the common terminals is realized on the basis of the video network number.
In the VVoE application in this embodiment, because the correspondence between the numbers of the video networks and the IP addresses is stored in advance, the obtained numbers of the video networks can be converted into corresponding IP addresses, that is, mutual mapping between the numbers of the video networks and the IP addresses and mutual conversion between communication formats are realized, and a platform is provided for direct communication between common terminals through the numbers of the video networks. Further, the VVoE application may also process multiple processes simultaneously and in parallel, and an operation administrator may add or delete a correspondence between a prestored video network number and an IP address.
Referring to fig. 1, a flowchart of a method for direct communication based on a video network according to an embodiment of the present invention is applied to a first terminal installed with a VVoE application, and the method includes:
in step 101, acquiring a video networking number input by a user through a preset window of a first terminal;
in step 102, determining the IP address of the second terminal corresponding to the video networking number;
in step 103, sending the IP address to the preset window, and initiating a communication request through the preset window;
in step 104, converting the communication request into a communication request in an internet of things format;
in step 105, the converted communication request is sent to a second terminal through a video network number corresponding to the IP address, so as to implement direct communication between the first terminal and the second terminal based on the IP address.
The method for direct communication based on the video network according to the embodiment of the present invention may be applied to devices such as a PC terminal, a mobile terminal, a server, and a client, which are installed with a VVoE application program in the video network, and the devices implemented by the method may be electronic devices such as a smart phone, a laptop, and a tablet computer, which are installed with the VVoE application program, and the method is not limited herein.
The following describes in detail specific implementation steps of a method based on direct communication over video network according to an embodiment of the present disclosure with reference to fig. 1.
Firstly, executing step 101, and acquiring a video networking number input by a user through a preset window of a first terminal;
in this step, a VVoE application is installed in advance on the first terminal, and then, based on the VVoE application, other applications on the first terminal can directly communicate with the opposite terminal through the video networking number. The preset window may be a query box (for example, a CMD window of the win7 system) of a system on the ordinary terminal, or any application program (for example, a browser) on the ordinary terminal, which is not limited to this, and may also be other similar application programs, which is not limited in this embodiment.
In this step, for example, a user inputs a CMD in a search box at the lower left corner of the first terminal, then opens a CMD window, and then the user can input a video network number of a second terminal that wants to communicate on the CMD window, at this time, the VVoE application on the first terminal detects and acquires the video network number of the second terminal input by the user. It should be noted that, in the VVoE application, the correspondence between the video network numbers of the other second terminals and the corresponding IP addresses is stored in advance. Of course, in this embodiment, an internet-of-view number and the like may also be input on the browser, and the processing procedure is similar to the process of inputting the internet-of-view number on the CMD window, and will not be described herein again.
Secondly, step 102 is executed to determine the IP address of the second terminal corresponding to the video networking number, wherein the specific determination process includes:
1) inquiring whether the local cache stores the IP address of the second terminal corresponding to the video networking number or not through a VVoE application program on the first terminal:
after the first terminal obtains the video networking number through the VVoE application program, it queries whether the corresponding relationship in the local cache stores the IP address of the second terminal corresponding to the video networking number, if so, it executes 2), and if not, it details the corresponding implementation process in fig. 2.
In this embodiment, the VVoE application of each terminal stores, in advance, the video networking number of the opposite terminal and the IP address of the terminal corresponding to the video networking number, for example, the local cache of the first terminal stores, in advance, a corresponding relationship between the video networking number and the IP address of one or more opposite terminals (i.e., second terminals), where the corresponding relationship may be referred to as a corresponding relationship table or a corresponding relationship set, and specifically, as shown in table 1, the corresponding relationship between the video networking number and the IP address of the terminal corresponding to the video networking number is provided in this embodiment. The table 1 is merely an example, and in practical applications, the invention is not limited thereto.
TABLE 1
Figure BDA0002299387550000071
Figure BDA0002299387550000081
In table 1, the part before the colon is the internet of view number, and the part after the colon is the IP address of the terminal corresponding to the internet of view number. The administrator may add and delete these correspondences in table 1 as needed.
2) If the IP address of the second terminal is inquired, acquiring the IP address of the second terminal from the local cache;
in this step, the VVoE application on the first terminal may read the IP address of the second terminal from the local cache. Of course, the information may also be obtained in other manners, and the embodiment is not limited. Then, the read IP address may be sent to the CMD window of the first terminal, and the CMD window pings the IP address, and the VVoE application at this time acquires an operation of the CMD window pinging the IP address. Thereafter, step 103 is performed.
That is, in this step, if the VVoE application on the first terminal queries the corresponding IP address from the local cache, the IP address of the second terminal is not acquired through the video network number of the second terminal, that is, the process of acquiring the IP address is not related to the network, and the acquiring process is not affected by whether the network is blocked.
Then, step 103 is executed, the IP address is sent to the preset window, and a communication request is initiated through the preset window;
in this step, the VVoE application on the first terminal sends the inquired I P address to a preset window on the first terminal, and initiates a communication request through the preset window;
then, step 104 is executed to convert the communication request into a communication request in a video networking format;
in this step, when the VVoE application on the first terminal detects that a preset window (such as a CMD window) initiates a communication request based on an IP address, the VVoE application converts the communication request initiated based on the IP address into a communication request of an internet of view, which is intended to be sent to the second terminal through an internet of view number, where it needs to be noted that the communication request includes the internet of view number of the second terminal. The specific format conversion process is well known in the art and will not be described herein. It is to convert the format of the IP address into packets that are recognizable by the video network.
Finally, step 105 is executed to send the converted communication request to a second terminal through a video network number corresponding to the IP address, so as to implement direct communication between the first terminal and the second terminal based on the IP address.
In this step, the VVoE application on the first terminal sends the communication request after format conversion to the second terminal corresponding to the IP address through the video networking number, thereby implementing direct communication between the first terminal and the second terminal through the video networking number. Direct communication may also be referred to as simply pass-through.
It should be noted that, in this embodiment, each terminal may bind to an IP address, for example, a PC terminal binds to an IP address of a browser, and the like. Of course, multiple IP addresses may be bound as desired.
In the embodiment of the invention, a video networking number input by a user through a preset window of a first terminal is obtained, and an IP address of a second terminal corresponding to the video networking number is determined; sending the IP address to the preset window, and initiating a communication request through the preset window; converting the communication request into a communication request in an internet of view format; and sending the converted communication request to a second terminal through a video networking number corresponding to the IP address so as to realize direct communication between the first terminal and the second terminal based on the IP address. That is to say, in the embodiment of the present invention, the first terminal implements conversion between the video networking number and the IP address through the VVoE application, thereby implementing direct communication between the PC terminals through the video networking number. Further, in the embodiment of the invention, the process of acquiring the IP address corresponding to the number of the video network is irrelevant to the video network, so that the problem of long time for acquiring the IP address due to network blockage can be solved. The embodiment of the invention not only improves the efficiency of obtaining the IP address and the communication efficiency, but also improves the experience that the user can carry out direct communication based on the video networking number through common terminals (such as a PC terminal, a mobile phone, an IPAD and the like).
Referring to fig. 2, another flowchart of a method for direct communication based on a video network according to an embodiment of the present invention is applied to a first terminal installed with a VVoE application, and the method includes:
step 201: the first terminal acquires a video networking number input by a user through a preset window of the first terminal through a VVoE application program;
step 202: the first terminal inquires whether the local cache stores the IP address of the second terminal corresponding to the video networking number or not through a VVoE application program; if the query is received, step 203 to step 205 are executed, otherwise, step 206 and step 207 are executed in sequence.
Step 203: the first terminal acquires the IP address of the second terminal from a local cache through a VVoE application program;
step 204: the first terminal sends the IP address to the preset window through a VVoE application program, and initiates a communication request through the preset window;
step 205: the first terminal converts the communication request into a communication request in a video networking format through a VVoE application program;
step 206: and the first terminal sends the converted communication request to a second terminal through a video networking number corresponding to the IP address by utilizing a VVoE application program so as to realize direct communication between the first terminal and the second terminal based on the IP address.
In this embodiment, steps 201 to 206 are the same as steps 101 to 106, and the specific implementation process thereof is described above and will not be described herein again.
Step 207: the first terminal inserts a query request for querying the IP address information of the second terminal corresponding to the video network number into a query request queue through a VVoE application program;
step 208: the first terminal starts a new thread through a VVoE application program to process a new searching request in the searching request queue until acquiring the IP address of the corresponding second terminal; step 204 to step 206 are executed.
That is, in step 207 and step 208, if the IP address of the second terminal corresponding to the video network number is not queried, another new thread that is already opened is opened or used to process the query request, that is, the query request is inserted into the query request queue, the query request queue sequentially processes the query requests in the query request queue according to the first-in first-out principle, and the specific processing procedure is that, for each query request, a request is sent to the second terminal through the video network number of the second terminal to obtain the IP address of the second terminal corresponding to the video network number. That is to say, the two threads are processed in parallel, so that the processing efficiency is improved, and the processing time is saved.
In this embodiment, one way to obtain the IP address of the second terminal corresponding to the video networking number is as follows:
1) the first terminal establishes a direct communication link with a second terminal through the video networking number based on a VVoE application program;
in the step, after acquiring the video networking number of the second terminal based on the VVoE application program, the first terminal establishes a direct communication link with the second terminal through the video networking number;
2) the first terminal sends a request message for acquiring the IP address of the second terminal to the second terminal through the link;
in this step, the first terminal initiates a request message for acquiring the IP address of the second terminal to the second terminal, where the request message may include request information for requesting the IP address of the second terminal and a video network number of the first terminal, and of course, may also include other parameters, which is not limited in this embodiment.
After receiving the request message through the VVoE application, the second terminal queries its own IP address from the local cache, constructs (i.e., encapsulates through the internet protocol) a response message including its own IP address, and sends the response message including the IP address to the VVoE application of the first terminal through the internet protocol number of the first terminal.
3) And the first terminal receives a response message which is sent by the second terminal and comprises the own IP address through the VVoE application program.
In this step, the second terminal sends a response message including its own IP address to the first terminal through the video networking number of the first terminal, that is, the first terminal receives the response message including its own IP address sent by the second terminal. Of course, in addition to the IP address of the second terminal, other parameters may be included in the response message, such as the video network number of the second terminal.
4) And the first terminal analyzes the response message through a VVoE application program to obtain the IP address of the second terminal.
In this step, the parsing process is a process of decapsulating the response message, and a specific implementation process thereof is well known to those skilled in the art and will not be described herein again.
In the embodiment of the invention, when the video networking number input by a user through a first terminal is acquired, whether the IP address of a second terminal corresponding to the video networking number is stored in a local cache or not is inquired; acquiring the IP address of the second terminal inquired from the local cache; the IP address is encapsulated into a video network data packet, and then the direct communication between the first terminal and the second terminal is realized through the IP address; of course, if the query is not received, the query request for acquiring the IP address is inserted into the query request queue, and the IP address of the second terminal corresponding to the video network number is acquired through the video network number according to the first-in first-out principle for the query request in the queue. That is to say, in the embodiment of the present invention, after the video networking number is obtained, based on the pre-stored correspondence between the video networking number and the IP address of the opposite end, the IP address corresponding to the video networking number is obtained, the IP address is encapsulated into a video networking data packet, and then the video networking data packet is sent to the opposite end, so that the first terminal of the video networking performs direct communication with the opposite end based on the IP address, if the IP address of the opposite end cannot be found in the correspondence in the local cache, the IP address of the opposite end is obtained through a new thread, the communication request is converted into a communication request in a video networking format, and then the communication request is sent to the opposite end through the video networking number, so that the direct communication between the first terminal and the second terminal through the video networking is realized, the efficiency of obtaining the IP address corresponding to the video networking number is improved, and the data service processing of the main thread is reduced, the experience that the user carries out direct communication of the video network through the PC terminal is also improved.
Optionally, in another embodiment, on the basis of the embodiment in fig. 2, the method may further include: and updating the acquired video networking number and the corresponding IP address of the second terminal into the local cache.
That is to say, the IP address of the second terminal corresponding to the video networking number is not queried in the local cache, and after the new thread which is controlled to be started or already started acquires the IP address from the second terminal through the video networking number, the corresponding relation between the video networking number and the corresponding IP address is updated in the local cache, so that subsequent query is facilitated, and the query efficiency of querying the IP address is improved.
Optionally, in another embodiment, on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in fig. 1, the method may further include: if the corresponding IP address is not inquired, the first terminal sends a request message for acquiring the IP address of the second terminal to the second terminal through the video networking number; and the first terminal receives a response message which is sent by the second terminal and comprises the own IP address. The specific implementation process is detailed in the implementation processes of the corresponding parts in the embodiment of fig. 2, that is, the implementation processes 1) to 4), and will not be described again here.
Referring to fig. 3, there is provided another flowchart of a direct communication method based on a video network according to an embodiment of the present invention, where the method is used for a second terminal installed with a VVoE application, and the implementation process of another side of the embodiment shown in fig. 1 is implemented by the method, where the method includes:
step 301: receiving a communication request sent by a first terminal through a video network, wherein the communication request comprises: the video networking number corresponding to the second terminal;
in this step, the VVoE application on the second terminal receives the communication request sent by the first terminal through the video network.
Step 302: determining the IP address of the second terminal corresponding to the video networking number;
in the step, the VVoE application on the second terminal firstly analyzes (or decapsulates) the communication request to obtain a video networking number, and then, queries an IP address of the second terminal corresponding to the video networking number from a local cache;
it should be noted that, the VVoE application program on the second terminal stores in advance a correspondence between the video network number and the IP address, and the correspondence is stored in the local cache.
Step 303: and realizing the communication between the second terminal and the first terminal through the IP address.
In this step, after the VVoE application on the second terminal queries the corresponding IP address, the IP address is sent to the CMD window of the second terminal, and the CMD window pings the IP address to implement direct communication between the first terminal and the second terminal.
In real time, the invention converts the number of the video network into the corresponding IP address through the VVoE application program, so that the first terminal and the second terminal are in direct communication through the video network, thereby not only improving the efficiency of obtaining the IP address corresponding to the number of the video network, reducing the data service processing of the main thread, but also improving the experience of the user in direct communication through the PC terminal.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a device for direct communication based on a video network according to an embodiment of the present invention is applied to a first terminal installed with a VVoE application, and the device includes: a first obtaining module 401, a determining module 402, a first sending module 403, a converting module 404 and a communication module 405, wherein,
a first obtaining module 401, configured to obtain a video networking number input by a user through a first terminal;
a determining module 402, configured to determine an IP address of the second terminal corresponding to the video networking number;
a first sending module 403, configured to send the IP address to the preset window, and initiate a communication request through the preset window;
a conversion module 404 for converting the communication request into a communication request in a video networking format
A communication module 405, configured to send the converted communication request to a second terminal through a video networking number corresponding to the IP address, so as to implement direct communication between the first terminal and the second terminal based on the IP address.
Optionally, in another embodiment, on the basis of the above embodiment, the determining module includes: a query module and a second acquisition module (not shown), wherein,
the query module is used for querying whether the local cache stores the IP address of the second terminal corresponding to the video networking number;
and the second acquisition module is used for acquiring the IP address of the second terminal from the local cache when the IP address of the second terminal corresponding to the video networking number is inquired by the inquiry module.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: the plug-in module 501 and the start module 502 are schematically shown in fig. 5, and this embodiment is based on fig. 4. Wherein the content of the first and second substances,
the inserting module 501 is configured to insert, when the query module 402 queries that the local cache does not store the IP address of the second terminal corresponding to the video networking number, a query request for querying the IP address information of the second terminal corresponding to the video networking number into a query request queue;
the starting module 502 is configured to start or process a new query request in the query request queue through a new thread that is already started until the IP address of the corresponding second terminal is obtained.
Optionally, in another embodiment, on the basis of the above embodiment, the starting module may include: a second sending module and a first receiving module (not shown), wherein,
the second sending module is used for utilizing the started or started new thread to acquire a request message of the IP address of the second terminal from the second terminal through the video networking number;
the first receiving module is used for receiving a response message which is sent by the second terminal and comprises the own IP address through the video networking number.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a third sending module and a second receiving module (not shown), wherein,
a third sending module, configured to send, to the second terminal through the video networking number, a request message for obtaining an IP address of the second terminal when the query module queries that the IP address of the second terminal corresponding to the video networking number is not stored in the local cache;
and the second receiving module is used for receiving the response message which is sent by the second terminal and comprises the own IP address.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: and an updating module (not shown in the figure), wherein the updating module is configured to update the obtained correspondence between the video networking number and the corresponding IP address of the second terminal into the local cache.
Optionally, the apparatus may be integrated on the first terminal, or another terminal having a similar function to the first terminal, or may be deployed independently, which is not limited in this embodiment.
Referring to fig. 6, a schematic structural diagram of a device based on direct communication over the internet of view according to an embodiment of the present invention is further provided, where the device is applied to a second terminal installed with a VVoE application, and the device includes: a receiving module 601, a determining module 602 and a communication module 603, wherein,
a receiving module 601, configured to receive, through the internet of things, a communication request sent by a first terminal, where the communication request includes: the video networking number corresponding to the second terminal;
a determining module 602, configured to determine an IP address of the second terminal corresponding to the video networking number;
a communication module 603, configured to implement communication between the second terminal and the first terminal based on the IP address.
In the embodiment of the invention, the second terminal can convert the acquired video networking number and the IP address through the corresponding relation pre-stored in the VVoE application program, so that the direct communication between the common terminals through the video networking number is realized, and the experience of the user in the direct communication through the video networking number is improved.
For easy understanding, please refer to fig. 7, which is a flowchart of an application example provided in an embodiment of the present invention, where the method involves an apparatus including: the terminal comprises a first terminal, a video network and a second terminal, wherein VVoE application programs are installed on the first terminal and the second terminal, and the corresponding relation between the video network number and the IP address of the corresponding terminal can be stored in advance through the VVoE application programs.
As shown in fig. 7, in this embodiment, a first terminal is a video network terminal a, a second terminal is a video network terminal B, in this embodiment, a video network number of the video network terminal B is 00100010, and an IP address pre-bound to the terminal B is 192.168.95.10, where the method includes the steps of:
step 701: a VVoE application program on a terminal A acquires a video networking number which is 00100010 and is input to the terminal A by a user;
step 702: the VVoE application program of the terminal A checks whether the IP address of the terminal B corresponding to the video networking number 00100010 exists in a local cache or not; if the IP corresponding to the video networking number 00100010 is found in the local cache, the IP is, for example: 192.168.95.4, respectively; step 703 is executed; if the IP address corresponding to the video networking number 00100010 is not inquired in the local cache, executing step 704;
step 703: terminal a obtains the IP address corresponding to the video network number from the local cache, and then executes step 707;
step 704: the terminal A puts a query request packet for querying the IP address of the terminal B in a query request queue; for example, the query request queue stores a query request for an IP address corresponding to the request 00100015, a query request for an IP address corresponding to the request 00100016, a query request for an IP address corresponding to the request 00100017, and the like. Namely, three query requests, i.e., request 00100015, request 00100016, and request 00100017, are exemplified in the query request queue.
Step 705: the terminal A starts an independent new thread to circularly process the query request in the query request queue until the IP address of the corresponding second terminal is obtained;
the method specifically comprises the following steps: 1) the terminal A controls the new thread to send a query request for acquiring the IP address of the terminal B to the terminal B through the video networking number; this will not block the main thread data traffic processing flow.
2) When terminal B receives an inquiry request packet requesting the IP address of the local machine sent by the opposite terminal (i.e., terminal a), terminal B constructs a response packet containing the IP address of the local machine (e.g., 192.168.95.4);
3) the terminal B sends the response packet to the opposite terminal (namely the terminal A) through the video network;
the structure in this step is to encapsulate the IP address of the terminal B into the response packet, and the specific encapsulation process is well known in the art and will not be described herein again.
4) After receiving the response packet sent by the terminal B, the terminal a analyzes the response packet to obtain the video network number of the terminal B and the IP address of the terminal B, such as 192.168.95.4 for example; then, step 704 and step 705 are executed, namely, the IP address is converted into a communication request in an internet of view format, and the communication request comprises an internet of view number corresponding to the IP; and sending the video networking data packet to the second terminal through a video networking number to enable direct communication of the first terminal with the second terminal based on the IP address (i.e., 192.168.95.4);
step 706: the terminal A stores the acquired corresponding relation between the video networking number of the terminal B and the corresponding IP address in a local cache, so that the next query is facilitated;
step 707: converting the inquired or obtained IP address into a communication request in a video networking format, wherein the communication request comprises a video networking number corresponding to the IP;
that is, the IP address queried in step 703 or the IP address obtained through the video network number in step 705 is converted into a communication request in the video network format.
It should be noted that, step 706 and step 707 do not have a sequential order in time sequence, and may also be executed simultaneously. The present embodiment is not limited.
Step 708: and the terminal A sends the communication request to the terminal B through the video networking number so as to realize the direct communication between the terminal A and the terminal B based on the IP address and finish the process.
Further, the method may further include:
step 709: a terminal B receives a communication request sent by a terminal A through a video network, wherein the communication request comprises: a video networking number; wherein, the networking number is 00100010;
step 710: the terminal B analyzes the video networking data packet to obtain the video networking number;
step 711: the terminal B inquires the IP address of the terminal B corresponding to the video networking number from a local cache; for example, the IP address is: 192.168.95.4, respectively;
step 712: and the terminal B realizes the direct communication with the terminal A through the inquired IP address.
In the embodiment of the present invention, a terminal a and a terminal B are pre-installed with a VVoE application, and the public VVoE application stores a correspondence between a video networking number and an IP address of a corresponding terminal, for example, a correspondence between a video networking number of an opposite terminal (i.e., a second terminal) and an IP address of a terminal corresponding to the video networking number is pre-stored in a local cache of the terminal a. When a terminal A acquires an internet of view number (namely, the internet of view number of a terminal B) input by a user through a first terminal through a VVoE application program, an IP address of the terminal B corresponding to the internet of view number is acquired through inquiring a local cache, the IP address is encapsulated into an internet of view data packet, then the internet of view data packet is sent to an opposite terminal (namely, the terminal B) through the internet of view to realize that the terminal A directly communicates with the terminal B based on the IP address, if the IP address of the terminal B can not be found in the local cache, the IP address of the terminal B is acquired through a new thread, the acquired IP address is encapsulated into the internet of view data packet, and then the internet of view data packet is sent to the terminal B through the internet of view, so that the direct communication between the terminal A and the terminal B through the internet of view is realized, the efficiency of acquiring the IP address by the terminal A is improved, and the data service processing of a main, the experience that the user carries out direct communication of the video network through the PC terminal is also improved.
Further, if the terminal a does not inquire the IP address corresponding to the video network number, the request message requesting the IP address of the opposite terminal is stored in a new inquiry request queue, and a new thread is started to process the request messages in the inquiry request queue, thereby acquiring the IP address of the terminal B. The process of acquiring the peer IP address is divided into two parallel threads (referred to as a main thread and a new thread, wherein the new thread may also be referred to as an auxiliary thread) to be completed, so that the process of acquiring the IP address by the main thread is independent of the internet of view (i.e., is acquired from a local cache), and the problem of long time for acquiring the IP address due to network congestion is avoided. The embodiment of the invention not only improves the efficiency of obtaining the IP address, but also improves the experience of the user in direct communication through the terminal.
An embodiment of the present invention further provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the direct communication over video network method as described above.
Embodiments of the present invention also provide a computer-readable storage medium, where instructions of the storage medium, when executed by a processor in an electronic device, enable the electronic device to perform the method based on direct communication over a video network as described above.
Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, which may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
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, embodiments of 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, embodiments of 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.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The domain name resolution method, the domain name resolution device, the electronic device and the computer-readable storage medium provided by the present invention are described in detail above, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present 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 (10)

1. A method for direct communication based on a video network, the method being applied to a first terminal installed with a VVoE application, the method comprising:
acquiring a video networking number input by a user through a preset window of a first terminal;
determining the IP address of the second terminal corresponding to the video networking number;
sending the IP address to the preset window, and initiating a communication request through the preset window;
converting the communication request into a communication request in an internet of view format;
and sending the converted communication request to the second terminal through a video networking number corresponding to the IP address so as to realize direct communication between the first terminal and the second terminal based on the IP address.
2. The method according to claim 1, wherein the determining the IP address of the second terminal corresponding to the video networking number comprises:
inquiring whether the local cache stores the IP address of the second terminal corresponding to the video networking number;
and if the IP address of the second terminal is inquired, acquiring the IP address of the second terminal from the local cache.
3. The method of claim 2, further comprising:
if the inquiry is not received, inserting an inquiry request for inquiring the IP address information of the second terminal corresponding to the video networking number into an inquiry request queue;
and starting or processing the new searching request in the searching request queue through a new thread which is started until the IP address of the corresponding second terminal is obtained.
4. The method according to claim 3, wherein the starting or started new thread processes the query request in the query request queue until acquiring the IP address of the corresponding second terminal, comprising:
controlling the started or started new thread to send a query request for acquiring the IP address of the second terminal to the second terminal through the video networking number;
and receiving the inquiry response which is sent by the second terminal and comprises the own IP address.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
and updating the acquired video networking number and the corresponding IP address of the second terminal into the local cache.
6. A method for direct communication based on a video network, the method being applied to a second terminal installed with a VVoE application, the method comprising:
receiving a communication request sent by a first terminal through a video network, wherein the communication request comprises: the video networking number corresponding to the second terminal;
determining the IP address of the second terminal corresponding to the video networking number;
and realizing the communication between the second terminal and the first terminal based on the IP address.
7. An apparatus for direct communication based on a video network, the apparatus being applied to a first terminal installed with a VVoE application, the apparatus comprising:
the first acquisition module is used for acquiring the video networking number input by the user through the first terminal;
the determining module is used for determining the IP address of the second terminal corresponding to the video networking number;
the first sending module is used for sending the IP address to the preset window and initiating a communication request through the preset window;
a conversion module for converting the communication request into a communication request in a video networking format
And the communication module is used for sending the converted communication request to a second terminal through a video networking number corresponding to the IP address so as to realize direct communication between the first terminal and the second terminal based on the IP address.
8. An apparatus for direct communication based on a video network, the apparatus being applied to a second terminal installed with a VVoE application, the apparatus comprising:
a receiving module, configured to receive, through a video network, a communication request sent by a first terminal, where the communication request includes: the video networking number corresponding to the second terminal;
the determining module is used for determining the IP address of the second terminal corresponding to the video networking number;
and the communication module is used for realizing the communication between the second terminal and the first terminal based on the IP address.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the direct communication over video network method of any of claims 1 to 6.
10. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor in an electronic device, enable the electronic device to perform the method for direct communication based on visual networking of any of claims 1-6.
CN201911215506.3A 2019-12-02 2019-12-02 Method, device, electronic equipment and medium based on direct communication of video network Active CN111131398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911215506.3A CN111131398B (en) 2019-12-02 2019-12-02 Method, device, electronic equipment and medium based on direct communication of video network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911215506.3A CN111131398B (en) 2019-12-02 2019-12-02 Method, device, electronic equipment and medium based on direct communication of video network

Publications (2)

Publication Number Publication Date
CN111131398A true CN111131398A (en) 2020-05-08
CN111131398B CN111131398B (en) 2022-12-23

Family

ID=70497161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911215506.3A Active CN111131398B (en) 2019-12-02 2019-12-02 Method, device, electronic equipment and medium based on direct communication of video network

Country Status (1)

Country Link
CN (1) CN111131398B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110090301A1 (en) * 2009-10-21 2011-04-21 Aaron Jeffrey A Method and apparatus for providing a collaborative workplace
CN109302455A (en) * 2018-09-06 2019-02-01 视联动力信息技术股份有限公司 A kind of data processing method and device of view networking
CN109768986A (en) * 2019-02-20 2019-05-17 视联动力信息技术股份有限公司 A kind of method and apparatus of response view networking service demand signalling
CN110022456A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 The method and apparatus for inviting terminals joining the conference
CN110224991A (en) * 2019-05-13 2019-09-10 视联动力信息技术股份有限公司 Depending on the networked terminals means of communication and device
CN110519009A (en) * 2019-08-05 2019-11-29 视联动力信息技术股份有限公司 A kind of data pack transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110090301A1 (en) * 2009-10-21 2011-04-21 Aaron Jeffrey A Method and apparatus for providing a collaborative workplace
CN109302455A (en) * 2018-09-06 2019-02-01 视联动力信息技术股份有限公司 A kind of data processing method and device of view networking
CN109768986A (en) * 2019-02-20 2019-05-17 视联动力信息技术股份有限公司 A kind of method and apparatus of response view networking service demand signalling
CN110022456A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 The method and apparatus for inviting terminals joining the conference
CN110224991A (en) * 2019-05-13 2019-09-10 视联动力信息技术股份有限公司 Depending on the networked terminals means of communication and device
CN110519009A (en) * 2019-08-05 2019-11-29 视联动力信息技术股份有限公司 A kind of data pack transmission method and device

Also Published As

Publication number Publication date
CN111131398B (en) 2022-12-23

Similar Documents

Publication Publication Date Title
US20140047322A1 (en) Method and system for browsing things of internet of things on ip using web platform
US10516666B2 (en) Authentication method, apparatus, and system
CN112311774B (en) Data processing method and device, electronic equipment and storage medium
WO2015055010A1 (en) Data transmission method, device and storage medium
US20070189486A1 (en) Communication apparatus, system, method and computer readable medium
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
US20110196915A1 (en) Method and apparatus for using service of home network device based on remote access
CN111510476B (en) Communication method, communication device, computer equipment and computer readable storage medium
CN109982152B (en) P2P CDN service processing method, intelligent gateway and CDN platform
US20100254631A1 (en) Peer-to-peer file sharing system and method
CN102404616B (en) Method and system for pushing data cloud based on digital television network
WO2024012001A1 (en) Method and system for implementing access to open source community in multi-modal network
CN110933193B (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
CN109474646B (en) Communication connection method, device, system and storage medium
CN108965359B (en) Communication method, communication device, readable medium, and electronic apparatus
US9203704B2 (en) Discovering a server device, by a non-DLNA device, within a home network
CN111711705A (en) Method and device for realizing network connection based on bidirectional NAT (network Address translation) by proxy node
CN111131398B (en) Method, device, electronic equipment and medium based on direct communication of video network
US8924520B2 (en) Method, remote access server and system for configuring a quality of service parameter
CN108566441B (en) Method for processing data by NAS device, NAS device and medium
WO2017113302A1 (en) Media service proxy method, device and system thereof
CN103152495A (en) Method, device and system for media transferring
CN113285920B (en) Service access method, device, equipment and storage medium
EP3079328A1 (en) Media resource sharing method, shared server and shared system
CN111970358B (en) Decentralized cloud computing platform, service deployment method and service access method and service deployment and service access assembly

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