Disclosure of Invention
In view of this, embodiments of the present invention provide a streaming media transmission method, an apparatus, a terminal device, and a computer-readable storage medium, so as to solve the problem that a preset transmission connection is easily interrupted during a continuous movement of a robot in the prior art, and the streaming media transmission cannot be continued.
A first aspect of an embodiment of the present invention provides a streaming media transmission method, which may include:
detecting whether a router connected with a streaming media robot is switched, wherein the streaming media robot is a robot for collecting and transmitting streaming media;
if the router connected with the streaming media robot is switched, acquiring the public network IP address of the streaming media robot after the router is switched;
judging whether the streaming media robot and the streaming media target terminal are in the same local area network or not according to the public network IP address of the streaming media robot and the preset public network IP address of the streaming media target terminal;
and if the streaming media robot and the streaming media target terminal are not in the same local area network, establishing transmission connection between the streaming media robot and the streaming media target terminal through NAT penetration.
Further, the establishing, through NAT traversal, a transmission connection between the streaming media robot and the streaming media target terminal may include:
establishing communication connection with a preset streaming media server;
acquiring a public network port of the streaming media robot after router switching;
sending an NAT (network address translation) penetration instruction to the streaming media server to enable the streaming media server to control the streaming media target terminal to send an NAT penetration detection packet to a public network IP address and a public network port of the streaming media robot so as to establish transmission connection from the streaming media robot to the streaming media target terminal, wherein the NAT penetration instruction comprises the public network IP address and the public network port of the streaming media robot and the public network IP address and the public network port of the streaming media target terminal;
and sending an NAT penetration detection packet to a preset public network IP address and a preset public network port of the streaming media target terminal, so as to establish transmission connection from the streaming media target terminal to the streaming media robot.
Further, before establishing a transmission connection between the streaming media robot and the streaming media target terminal through NAT traversal, the method may further include:
sending a UPNP function query instruction to the switched router;
receiving feedback information sent by the router after switching;
judging whether the switched router has a UPNP function or not according to the feedback information;
if the switched router has the UPNP function, establishing UPNP mapping between the streaming media robot and a preset streaming media server according to a UPNP protocol so as to establish transmission connection between the streaming media robot and the streaming media target terminal through the streaming media server.
Further, after determining whether the streaming media robot and the streaming media target terminal are in the same local area network, the method may further include:
if the streaming media robot and the streaming media target terminal are in the same local area network, acquiring a local area network IP address and a local area network port of the streaming media robot after router switching;
and sending the local area network IP address and the local area network port of the streaming media robot to the streaming media target terminal so that the streaming media target terminal establishes transmission connection with the streaming media robot through the local area network IP address and the local area network port of the streaming media robot.
Further, the detecting whether a router connected to the streaming media robot is switched may include:
acquiring a first service set identifier of a router connected with the streaming media robot at the current detection time;
comparing the first service set identifier with a second service set identifier to obtain a comparison result, wherein the second server identifier is a pre-stored service set identifier of a router connected with the streaming media robot before the current detection moment;
and if the comparison result is inconsistent, determining that the router connected with the streaming media robot is switched.
A second aspect of an embodiment of the present invention provides a streaming media transmission apparatus, which may include:
the switching detection module is used for detecting whether a router connected with the streaming media robot is switched or not, and the streaming media robot is a robot for collecting and transmitting streaming media;
the public network IP address acquisition module is used for acquiring a public network IP address of the streaming media robot after the router is switched if the router connected with the streaming media robot is switched;
the local area network judging module is used for judging whether the streaming media robot and the streaming media target terminal are in the same local area network or not according to the public network IP address of the streaming media robot and the preset public network IP address of the streaming media target terminal;
and the NAT penetration module is used for establishing the transmission connection between the streaming media robot and the streaming media target terminal through NAT penetration if the streaming media robot and the streaming media target terminal are not in the same local area network.
Further, the NAT traversal module may include:
the communication connection unit is used for establishing communication connection with a preset streaming media server;
a public network port obtaining unit, configured to obtain a public network port of the streaming media robot after router switching;
an NAT traversal instruction sending unit, configured to send an NAT traversal instruction to the streaming media server, so that the streaming media server controls the streaming media target terminal to send an NAT traversal probe packet to a public network IP address and a public network port of the streaming media robot, so as to establish a transmission connection from the streaming media robot to the streaming media target terminal, where the NAT traversal instruction includes the public network IP address and the public network port of the streaming media robot, and the public network IP address and the public network port of the streaming media target terminal;
and the NAT penetration detection packet sending unit is used for sending an NAT penetration detection packet to a preset public network IP address and a preset public network port of the streaming media target terminal so as to establish transmission connection from the streaming media target terminal to the streaming media robot.
Further, the streaming media transmission apparatus may further include:
the query instruction sending module is used for sending a UPNP function query instruction to the switched router;
a feedback information receiving module, configured to receive feedback information sent by the switched router;
a UPNP function judging module, configured to judge whether the switched router has a UPNP function according to the feedback information;
and a UPNP mapping module, configured to establish a UPNP mapping between the streaming media robot and a preset streaming media server according to a UPNP protocol if the switched router has a UPNP function, so that the streaming media robot and the streaming media target terminal establish a transmission connection through the streaming media server.
Further, the streaming media transmission apparatus may further include:
a local area network information obtaining module, configured to obtain a local area network IP address and a local area network port of the streaming media robot after router switching if the streaming media robot and the streaming media target terminal are in the same local area network;
and the local area network transmission connection establishing module is used for sending the local area network IP address and the local area network port of the streaming media robot to the streaming media target terminal so that the streaming media target terminal establishes transmission connection with the streaming media robot through the local area network IP address and the local area network port of the streaming media robot.
Further, the handover detection module may include:
a service set identifier obtaining unit, configured to obtain a first service set identifier of a router connected to the streaming media robot at a current detection time;
a service set identifier comparison unit, configured to compare the first service set identifier with a second service set identifier to obtain a comparison result, where the second server identifier is a service set identifier of a router that is pre-stored and is connected to the streaming media robot before the current detection time;
and the switching determining module is used for determining that the router connected with the streaming media robot is switched if the comparison result is inconsistent.
A third aspect of the embodiments of the present invention provides streaming media transmission terminal equipment, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any of the streaming media transmission methods when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the steps of any one of the above streaming media transmission methods.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the embodiment of the invention detects whether a router connected with a streaming media robot is switched, if the router connected with the streaming media robot is switched, the streaming media robot enters a new local area network in the moving process, the original transmission connection cannot be used, at this time, the public network IP address of the streaming media robot after the router is switched is obtained, whether the streaming media robot and the streaming media target terminal are in the same local area network is judged according to the public network IP address of the streaming media robot and the preset public network IP address of the streaming media target terminal, if the streaming media robot and the streaming media target terminal are not in the same local area network, the transmission connection between the streaming media robot and the streaming media target terminal is established through penetration, namely, the transmission connection between the streaming media robot and the streaming media target terminal is re-established in the switched local area network NAT, continuous transmission of streaming media is guaranteed.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the 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 invention.
The first embodiment is as follows:
as shown in fig. 1, which is a schematic flowchart of a streaming media transmission method provided in an embodiment of the present invention, the method may include:
and step S101, detecting whether a router connected with the streaming media robot is switched or not.
The streaming media robot is a robot that collects and transmits streaming media. In this embodiment, a first service set identifier of a router connected to the streaming media robot at a current detection time may be obtained first. The Service Set Identifier (SSID) is used to distinguish different networks, the router broadcasts the SSID, and the streaming media robot obtains the SSID by analyzing the broadcast information. Specifically, the information contained in the broadcast information is arranged in order: timestamp (8 bytes), Beacon interval (2 bytes), Capability Information (2 bytes), SSID (9 bytes) … …, wherein the contents of the 9 bytes from 13 th to 21 th are intercepted as the SSID of the router.
And then, comparing the first service set identifier with a second service set identifier to obtain a comparison result, wherein the second server identifier is a pre-stored service set identifier of a router connected with the streaming media robot before the current detection moment.
If the comparison result is consistent, it is determined that the router connected to the streaming media robot is not switched, and at this time, step S102 is performed, and if the comparison result is inconsistent, it is determined that the router connected to the streaming media robot is switched, and at this time, step S103 and subsequent steps are performed.
And step S102, keeping the original transmission connection.
Under the condition that the router is not switched, the original transmission connection is still effective, and the streaming media robot and the streaming media target terminal can still transmit the streaming media through the original transmission connection.
And step S103, acquiring the public network IP address of the streaming media robot after the router is switched.
In the local area network provided by the new router, the new router sets a public network IP address and a public network port, a local area network IP address and a local area network port and a mapping relation between the public network IP address and the public network port and the local area network port for the streaming media robot.
And step S104, judging whether the streaming media robot and the streaming media target terminal are in the same local area network.
In this embodiment, whether the public network IP address of the streaming robot and the preset public network IP address of the streaming target terminal are in the same lan or not is determined according to the public network IP address of the streaming robot and the preset public network IP address of the streaming target terminal, if the public network IP addresses of the streaming robot and the preset public network IP address of the streaming target terminal belong to the same network segment, it is determined that the streaming robot and the streaming target terminal are in the same lan, at this time, step S105 is executed, if the public network IP addresses of the streaming robot and the streaming target terminal do not belong to the same network segment, it is determined that the streaming robot and the streaming target terminal are not in the same lan, it is determined that the streaming target terminal and the streaming target terminal are not in the same lan, and at this time, step S106 is executed.
And step S105, establishing transmission connection between the streaming media robot and the streaming media target terminal in a local area network.
Specifically, a local area network IP address and a local area network port of the streaming media robot after router switching are first acquired, and then the local area network IP address and the local area network port of the streaming media robot are sent to the streaming media target terminal, so that the streaming media target terminal establishes transmission connection with the streaming media robot through the local area network IP address and the local area network port of the streaming media robot.
And S106, establishing transmission connection between the streaming media robot and the streaming media target terminal through NAT penetration.
With the increasing number of internet users, the internet protocol version four (IPv4) address resource used by the internet is very tight, and it is not enough to make every user have an IPv4 address, i.e. a public network IP address, which can directly access the internet. In order to enable users in enterprises to use internet resources, enterprises generally adopt a Network Address Translation (NAT) technology to convert the local area Network IP Address in the enterprise into a public Network IP Address capable of directly accessing the internet, so that one or more users in the enterprises can use one public Network IP Address to access the internet.
Although the use of the NAT technology can temporarily alleviate the crisis of IPv4 address resources, the NAT technology can affect the internet interoperability since it can limit the access of internet users to users inside the enterprise behind the NAT device. In order to enable users located in the internet to access users located inside the enterprise behind the NAT device, NAT traversal technology needs to be used to traverse the NAT device.
In this embodiment, NAT traversal may be specifically performed through the following steps: firstly, the streaming media robot establishes communication connection with a preset streaming media server, then obtains a public network port of the streaming media robot after router switching, and sends NAT penetration instruction to the streaming media server, the NAT penetration instruction includes the public network IP address and the public network port of the streaming media robot, and the public network IP address and the public network port of the streaming media target terminal, so that the streaming media server controls the streaming media target terminal to send an NAT penetration detection packet to the public network IP address and the public network port of the streaming media robot, thereby establishing a transmission connection from the streaming robot to the streaming target terminal, and finally, and the streaming media robot sends an NAT penetration detection packet to a preset public network IP address and a preset public network port of the streaming media target terminal, so that transmission connection from the streaming media target terminal to the streaming media robot is established.
To sum up, the embodiment of the present invention detects whether a router connected to a streaming media robot is switched, and if the router connected to the streaming media robot is switched, it indicates that the streaming media robot enters a new local area network during a moving process, and an original transmission connection is not already available, at this time, a public network IP address of the streaming media robot after the router is switched is obtained, and it is determined whether the streaming media robot and the streaming media target terminal are in the same local area network according to the public network IP address of the streaming media robot and a preset public network IP address of the streaming media target terminal, if the streaming media robot and the streaming media target terminal are not in the same local area network, a transmission connection between the streaming media robot and the streaming media target terminal is established through NAT, that is, a transmission connection between the streaming media robot and the streaming media target terminal is re-established in the switched local area network, continuous transmission of streaming media is guaranteed.
Example two:
as shown in fig. 2, which is a schematic flowchart of a streaming media transmission method provided in an embodiment of the present invention, the method may include:
step S201, whether a router connected with the streaming media robot is switched or not is detected.
If the router connected to the streaming media robot is not switched, step S202 is executed, and if the router connected to the streaming media robot is switched, step S203 and the following steps are executed.
Step S202, the original transmission connection is kept.
And step S203, acquiring the public network IP address of the streaming media robot after the router is switched.
And step S204, judging whether the streaming media robot and the streaming media target terminal are in the same local area network.
If both are in the same lan, step S205 is executed, and if both are not in the same lan, step S206 and the following steps are executed.
And step S205, establishing the transmission connection between the streaming media robot and the streaming media target terminal in the local area network.
The process from step S201 to step S205 is similar to the process from step S101 to step S105 in the first embodiment, and specific reference may be made to the detailed description in the first embodiment, which is not repeated herein.
And step S206, sending a UPNP function inquiry command to the switched router.
Universal Plug and Play (UPNP) is an architecture for common peer-to-peer network connections for computers and smart devices. UPNP is based on Internet standards and technologies that allow such devices to automatically connect and interoperate with each other.
When accessing the switched router, the streaming media robot does not know whether the router has the UPNP function, and therefore, a UPNP function query instruction needs to be sent to the switched router.
And step S207, receiving the feedback information sent by the switched router.
After receiving the UPNP function query instruction sent by the streaming media robot, the router after switching sends feedback information to the streaming media robot, and the streaming media robot can know whether the router after switching has the UPNP function or not by reading the feedback information.
And step S208, judging whether the switched router has a UPNP function.
If the switched router has the UPNP function, step S209 is executed, and if the switched router does not have the UPNP function, step S210 is executed.
Step S209, establishing UPNP mapping between the streaming media robot and a preset streaming media server according to a UPNP protocol so as to establish transmission connection between the streaming media robot and the streaming media target terminal through the streaming media server.
Firstly, performing UPNP mapping on a local area network IP address and a local area network port of the streaming media robot, namely establishing a mapping relation between the local area network IP address and the local area network port of the streaming media robot and a public network IP address and a public network port of the streaming media server, and performing UPNP mapping on the local area network IP address and the local area network port of the streaming media robot so that a transmission request sent by a streaming media target terminal can be forwarded to the streaming media robot by the streaming media server after reaching the streaming media server. For example, if the local area network IP address of the streaming media robot is IP 1: 192.168.0.1, PORT number of local area network PORT is PORT 1: 7766, the public network IP address of the streaming server connected to said streaming robot is IP 2: 222.222.222.222, PORT number of public network PORT is PORT 2: 3344 and the port mapped public IP address and public port are mapped to 222.222.222.222 and 3344, respectively.
Then, the streaming media robot binds the public network IP address obtained by the port mapping, the public network port and the identification of the streaming media robot and reports the binding to the streaming media server. In the embodiment of the present invention, the identifier of the streaming media robot may specifically be the device ID of the intelligent device, and certainly, may also be other identifiers capable of uniquely indicating the streaming media robot, which is not specifically limited herein. After the port mapping is carried out, the streaming media robot binds the public network IP address, the public network port and the identification of the streaming media robot obtained after the mapping and reports the public network IP address, the public network port and the identification of the streaming media robot to the streaming media server. For example, if the local area network IP address of the streaming media robot is IP 1: 192.168.0.1, PORT number of the local area network PORT is PORT 1: 7766, the public network IP address obtained by said mapping is IP 2: 222.222.222.222, PORT number of public network PORT is PORT 2: 3344. if the identifier of the streaming media robot is S1, the streaming media robot binds the public network IP address 222.222.222.222, the public network port 3344 and the identifier of the streaming media robot S1, and reports the binding to the streaming media server.
When the streaming media server receives a transmission request of the streaming media target terminal to the streaming media robot, the streaming media server acquires a corresponding public network IP address and a public network port according to the identification of the streaming media robot carried in the transmission request, and forwards the received transmission request to the streaming media robot according to a port mapping relation. The streaming media robot monitors a local area network port, can timely know whether a transmission request is received or not, and responds to the received transmission request when receiving the transmission request, so that the streaming media robot and the streaming media target terminal establish transmission connection through the streaming media server.
And step S210, establishing transmission connection between the streaming media robot and the streaming media target terminal through NAT penetration.
The process of step S210 is similar to the process of step S106 in the first embodiment, and specific reference may be made to the detailed description in the first embodiment, which is not repeated herein.
If the NAT traversal fails, the transmission connection between the streaming media robot and the streaming media target terminal can only be transferred through the streaming media server, specifically, the streaming media robot first sends streaming media to the streaming media server, and then the streaming media target terminal receives the streaming media from the streaming media server.
In summary, in the embodiment of the present invention, on the basis of the first embodiment, the streaming media robot and the streaming media target terminal may perform transmission connection under various conditions, that is, if the streaming media robot and the streaming media target terminal are in the same local area network, direct transmission in the local area network is performed; if the two different networks are different but the router has the UPNP function, the transmission is carried out according to the port mapping established by the UPNP protocol; if the two networks are different and the router does not have the UPNP function, the transmission connection is established through NAT penetration; if NAT fails to penetrate, then transit transmission is carried out through the streaming media server. And the transmission connection between the streaming media robot and the streaming media target terminal can be reestablished in the switched local area network under various conditions, so that the continuous transmission of the streaming media is ensured.
Example three:
fig. 3 is a schematic block diagram of a streaming media transmission apparatus according to an embodiment of the present invention, where the apparatus may include:
a switching detection module 301, configured to detect whether a router connected to a streaming media robot is switched, where the streaming media robot is a robot that collects and transmits streaming media;
a public network IP address obtaining module 302, configured to obtain a public network IP address of the streaming media robot after router switching if a router connected to the streaming media robot is switched;
a local area network determining module 303, configured to determine whether the streaming media robot and the streaming media target terminal are in the same local area network according to a public network IP address of the streaming media robot and a preset public network IP address of the streaming media target terminal;
and an NAT traversal module 304, configured to establish a transmission connection between the streaming media robot and the streaming media target terminal through NAT traversal if the streaming media robot and the streaming media target terminal are not in the same local area network.
Further, the NAT traversal module may include:
the communication connection unit is used for establishing communication connection with a preset streaming media server;
a public network port obtaining unit, configured to obtain a public network port of the streaming media robot after router switching;
an NAT traversal instruction sending unit, configured to send an NAT traversal instruction to the streaming media server, so that the streaming media server controls the streaming media target terminal to send an NAT traversal probe packet to a public network IP address and a public network port of the streaming media robot, so as to establish a transmission connection from the streaming media robot to the streaming media target terminal, where the NAT traversal instruction includes the public network IP address and the public network port of the streaming media robot, and the public network IP address and the public network port of the streaming media target terminal;
and the NAT penetration detection packet sending unit is used for sending an NAT penetration detection packet to a preset public network IP address and a preset public network port of the streaming media target terminal so as to establish transmission connection from the streaming media target terminal to the streaming media robot.
Further, the streaming media transmission apparatus may further include:
the query instruction sending module is used for sending a UPNP function query instruction to the switched router;
a feedback information receiving module, configured to receive feedback information sent by the switched router;
a UPNP function judging module, configured to judge whether the switched router has a UPNP function according to the feedback information;
and a UPNP mapping module, configured to establish a UPNP mapping between the streaming media robot and a preset streaming media server according to a UPNP protocol if the switched router has a UPNP function, so that the streaming media robot and the streaming media target terminal establish a transmission connection through the streaming media server.
Further, the streaming media transmission apparatus may further include:
a local area network information obtaining module, configured to obtain a local area network IP address and a local area network port of the streaming media robot after router switching if the streaming media robot and the streaming media target terminal are in the same local area network;
and the local area network transmission connection establishing module is used for sending the local area network IP address and the local area network port of the streaming media robot to the streaming media target terminal so that the streaming media target terminal establishes transmission connection with the streaming media robot through the local area network IP address and the local area network port of the streaming media robot.
Further, the handover detection module may include:
a service set identifier obtaining unit, configured to obtain a first service set identifier of a router connected to the streaming media robot at a current detection time;
a service set identifier comparison unit, configured to compare the first service set identifier with a second service set identifier to obtain a comparison result, where the second server identifier is a service set identifier of a router that is pre-stored and is connected to the streaming media robot before the current detection time;
and the switching determining module is used for determining that the router connected with the streaming media robot is switched if the comparison result is inconsistent.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 is a schematic block diagram of a streaming media transmission terminal device according to an embodiment of the present invention. As shown in fig. 4, the streaming media transmission terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40 executes the computer program 42 to implement the steps in the above-mentioned streaming media transmission method embodiments, such as the steps S101 to S106 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of each module/unit in the above-mentioned device embodiments, such as the functions of the modules 301 to 304 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program 42 in the streaming terminal device 4. For example, the computer program 42 may be divided into a handover detection module, a public network IP address acquisition module, a local network judgment module, a NAT traversal module, and the like.
The streaming media transmission terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The streaming terminal device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of the streaming terminal device 4, and does not constitute a limitation of the streaming terminal device 4, and may include more or less components than those shown, or combine some components, or different components, for example, the streaming terminal device 4 may further include an input/output device, a network access device, a bus, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the streaming media transmission terminal device 4, such as a hard disk or a memory of the streaming media transmission terminal device 4. The memory 41 may also be an external storage device of the streaming Media transmission terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the streaming Media transmission terminal device 4. Further, the memory 41 may include both an internal storage unit and an external storage device of the streaming terminal device 4. The memory 41 is used to store the computer program and other programs and data required by the streaming terminal device 4. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.