System, method, device and equipment for establishing connection in microphone connection and storage medium
By designing the Construction Connection System in the Connection Network, using the Construction Connection Process Management Module and multiple Construction Connection Function Module, the construction Connection Process Decoupling and business process is achieved, and the problem of low efficiency of Construction Connection Process Reuse in the Multi-person Connection Network scenario is solved, reducing optimization costs and improving system flexibility.
Patent Information
- Application Number
- CN202311765021.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2025-06-20
AI Technical Summary
In the multi-person microphone scenario, the construction and connection processes of each business scenario are coupled together, resulting in low development efficiency and high optimization costs when reusing the construction and connection processes between different scenarios.
Design a construction and connection system in a connected microphone, including a construction and connection process management module and multiple construction and connection functional modules, determine the target construction and connection process through the construction and connection process management module, and control the operation of the construction and connection functional module based on this process to achieve the decoupling of the construction and connection process and business process.
It is realized that different business processes can reuse the same construction and connection system. When there is optimization of the construction and connection process, only the construction and connection system needs to be adjusted, which reduces the optimization cost and improves the flexibility and scalability of the system by decoupling each construction and connection functional module.
Smart Images

Figure CN120186419A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular, to a connection establishment system, method, device, equipment, and storage medium in a co-hosting scenario. Background Art
[0002] In the network live broadcast function, co-hosting has become a common live broadcast form. Generally, co-hosting refers to real-time communication and interaction between hosts or between a host and an audience in a manner similar to a video or voice call. Among them, co-hosting may include a connection establishment process and the like.
[0003] In practical applications, a multi-person co-hosting scenario may include different co-hosting service scenarios such as a host inviting an audience to have a video chat and an audience applying to enter the voice call room where the host is located. Since the connection establishment process is coupled in the service process, different co-hosting scenarios need to implement their own connection establishment processes respectively. If the connection establishment process is optimized, the connection establishment processes of each co-hosting scenario need to be adjusted respectively, and the optimization cost is relatively high. Summary of the Invention
[0004] To solve the above technical problems, an embodiment of the present disclosure provides a connection establishment system in co-hosting; the connection establishment system includes a connection establishment process management module and a plurality of connection establishment function modules.
[0005] The connection establishment process management module is configured to determine a target connection establishment process, and in response to a connection establishment request from a co-hosting service system, control the operation of the plurality of connection establishment function modules based on the target connection establishment process; wherein, the target connection establishment process includes a plurality of connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-process and the connection establishment function module;
[0006] The connection establishment function module is configured to, in response to a call request from the connection establishment process management module, execute a corresponding connection establishment sub-process and return an execution result to the connection establishment process management module.
[0007] In an optional implementation manner, the connection establishment system further includes a process detection module;
[0008] The process detection module is configured to detect a first target connection establishment sub-process and send an execution result of the first target connection establishment sub-process to the co-hosting service system; wherein, the first target connection establishment sub-process is a sub-process to be detected pre-injected by the co-hosting service system.
[0009] In an optional implementation manner, the connection establishment system further includes a parameter injection module;
[0010] The parameter injection module is used to obtain connection establishment parameters from the co-hosting service system when receiving a call request from the connection establishment process management module, and return the connection establishment parameters to the connection establishment process management module; wherein, the call request is triggered by the connection establishment process management module when detecting a second target connection establishment sub-process, and there is a corresponding relationship between the connection establishment parameters and the second target connection establishment sub-process, and the second target connection establishment sub-process is a sub-process to be parameter-injected pre-injected by the co-hosting service system.
[0011] In an optional implementation manner, the multiple connection establishment function modules include a connection establishment communication module;
[0012] The connection establishment communication module is specifically configured to apply for connection establishment to the co-hosting server in response to a call request from the connection establishment process management module, and return a response message of the connection establishment application to the connection establishment process management module.
[0013] In an optional implementation manner, the multiple connection establishment function modules include a connection establishment message module;
[0014] The connection establishment message module is specifically configured to send the co-hosting application feedback message to the connection establishment process management module when receiving the co-hosting application feedback message from the co-hosting server; wherein, the co-hosting application feedback message is used to indicate whether the co-hosting application is accepted.
[0015] In an optional implementation manner, the multiple connection establishment function modules include a connection establishment media module;
[0016] The connection establishment media module is specifically configured to initialize the local audio and video functions and apply to the RTC server to join the co-hosting room in response to a call request from the connection establishment process management module.
[0017] In a second aspect, the present disclosure provides a co-hosting method, which is applied to a connection establishment system, the connection establishment system includes a connection establishment process management module and multiple connection establishment function modules, and the method includes:
[0018] Receive a connection establishment request from the co-hosting service system;
[0019] Call the connection establishment process management module to control the operation of the multiple connection establishment function modules based on a pre-determined target connection establishment process; wherein, the target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules, and the connection establishment function modules are used to execute corresponding connection establishment sub-processes and return execution results to the connection establishment process management module in response to call requests from the connection establishment process management module.
[0020] In an optional implementation manner, the connection establishment system further includes a process detection module; the method further includes:
[0021] Call the process detection module to detect the first target connection establishment sub-process; wherein, the first target connection establishment sub-process is a sub-process to be detected pre-injected into the co-hosting service system.
[0022] Call the process detection module to send the execution result of the first target connection establishment sub-process to the co-hosting service system.
[0023] In an optional implementation manner, the connection establishment system further includes a parameter injection module; the method further includes:
[0024] When the connection establishment process management module detects a second target connection establishment sub-process, call the parameter injection module to obtain connection establishment parameters from the target service system, and return the connection establishment parameters to the connection establishment process management module; wherein, there is a corresponding relationship between the connection establishment parameters and the second target connection establishment sub-process, and the second target connection establishment sub-process is a sub-process to be parameter-injected pre-injected into the co-hosting service system.
[0025] In a third aspect, the present disclosure provides a connection establishment device in co-hosting. The device is applied to a connection establishment system, and the connection establishment system includes a connection establishment process management module and multiple connection establishment function modules. The device includes:
[0026] A receiving module, configured to receive a connection establishment request from the co-hosting service system.
[0027] A control module, configured to call the connection establishment process management module to control the operation of the multiple connection establishment function modules based on a pre-determined target connection establishment process; wherein, the target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules. The connection establishment function modules are configured to execute corresponding connection establishment sub-processes in response to the call requests of the connection establishment process management module and return execution results to the connection establishment process management module.
[0028] In a fourth aspect, the present disclosure provides a computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions run on a terminal device, the terminal device is enabled to implement the above method.
[0029] In a fifth aspect, the present disclosure provides a connection establishment device in co-hosting, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above method is implemented.
[0030] In a sixth aspect, the present disclosure provides a computer program product. The computer program product includes a computer program / instructions. When the computer program / instructions are executed by a processor, the above method is implemented.
[0031] The technical solutions provided by the embodiments of the present disclosure have at least the following advantages compared with the prior art:
[0032] The embodiments of the present disclosure provide a connection establishment system, method, device, equipment and storage medium in co-hosting. The connection establishment system includes a connection establishment process management module and multiple connection establishment function modules; the connection establishment process management module is used to determine a target connection establishment process, and in response to a connection establishment request from a co-hosting service system, control the operation of multiple connection establishment function modules based on the target connection establishment process. The target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules; the connection establishment function modules are used to respond to a call request from the connection establishment process management module, execute the corresponding connection establishment sub-process and return an execution result to the connection establishment process management module. It can be seen that by decoupling the connection establishment process from the service process, the embodiments of the present disclosure enable different service processes to reuse the same connection establishment system. When the connection establishment process needs to be optimized, only the connection establishment system needs to be adjusted, reducing the optimization cost.
[0033] In addition, the embodiments of the present disclosure use the connection establishment process management module to connect multiple connection establishment function modules in series to achieve decoupling between the connection establishment function modules in the connection establishment system. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.
[0035] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0036] Figure 1 It is a signaling interaction diagram for a host to invite an audience to have a video chat provided by an embodiment of the present disclosure;
[0037] Figure 2 It is a schematic structural diagram of a connection establishment system in co-hosting provided by an embodiment of the present disclosure;
[0038] Figure 3 It is a flowchart of a connection establishment method provided by an embodiment of the present disclosure;
[0039] Figure 4 It is a schematic structural diagram of another connection establishment system provided by an embodiment of the present disclosure;
[0040] Figure 5Structural schematic diagram of a connection establishment device in co-hosting provided by an embodiment of the present disclosure;
[0041] Figure 6 Structural schematic diagram of a connection establishment device in co-hosting provided by an embodiment of the present disclosure. Detailed implementation manners
[0042] In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.
[0043] Many specific details are set forth in the following description in order to fully understand the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.
[0044] In the network live broadcast function, co-hosting has become a common live broadcast form. Generally, co-hosting refers to real-time communication and interaction between live streamers or between a live streamer and a guest in a way similar to a video or voice call.
[0045] In practical applications, multi-person co-hosting scenarios may include a live streamer inviting a viewer to have a video chat, a viewer applying to enter the voice call room where the live streamer is located, etc., and usually involve the establishment and control of co-hosting process between the live streamer or viewer and the co-hosting service server, the real-time collaboration RTC service server, etc.
[0046] Taking the co-hosting between a live streamer and a viewer as an example, as Figure 1 shown, it is a signaling interaction diagram for a live streamer inviting a viewer to have a video chat provided by an embodiment of the present disclosure. Among them, the live streamer sends a co-hosting request (invite) to the co-hosting service server. After receiving the co-hosting request (invite), the co-hosting service server processes the invitation logic and sends a co-hosting invitation notice (msg_invite) to the viewer to apply for co-hosting with the viewer; when the viewer receives the co-hosting invitation notice, an invitation pop-up window is displayed on the viewer's interface. Assuming that the viewer user triggers an operation to accept the co-hosting request from the live streamer (for example, clicks the OK button on the invitation pop-up window), the viewer sends an accept co-hosting message (reply) to the co-hosting service server; after receiving the reply message, the co-hosting service server processes the accept co-hosting logic and sends an accept co-hosting notice (msg_reply) to the live streamer; after receiving the accept co-hosting notice, the live streamer makes corresponding displays on the live streamer's interface.
[0047] After receiving a co-host request, the viewer side also sends a message to the co-host server to apply to join the co-host room, and initializes the local audio and video functions when receiving the Join_channel return message from the co-host server, and applies to the Real-Time Communications (RTC) server to join the co-host room; after the viewer side successfully joins the co-host room, the microphone positions are displayed on the interface of the viewer side.
[0048] Since the connection establishment process and the service process in co-hosting are coupled together, different co-hosting scenarios correspond to different service processes. For example, the process of the host side inviting the viewer side to have a video chat is different from the process of the viewer side applying to enter the voice call room where the host side is located. For the modification or optimization of the connection establishment process that is common to different scenarios, it is necessary to modify and optimize each scenario separately, resulting in low development efficiency.
[0049] Therefore, the embodiments of the present disclosure provide a connection establishment system in co-hosting. The connection establishment system includes a connection establishment process management module and multiple connection establishment function modules; the connection establishment process management module is used to determine a target connection establishment process, and in response to a connection establishment request from the co-host service system, control the operation of the multiple connection establishment function modules based on the target connection establishment process. The target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules; the connection establishment function modules are used to respond to the call request from the connection establishment process management module, execute the corresponding connection establishment sub-process and return the execution result to the connection establishment process management module. It can be seen that the embodiments of the present disclosure decouple the connection establishment process from the service process, enabling different service processes to reuse the same connection establishment system. When the connection establishment process needs to be optimized, only this connection establishment system needs to be adjusted, reducing the optimization cost.
[0050] In addition, the embodiments of the present disclosure use the method of connecting multiple connection establishment function modules in series through the connection establishment process management module to decouple the various connection establishment function modules in the connection establishment system.
[0051] Based on this, the embodiments of the present disclosure provide a connection establishment system in co-hosting. Refer to Figure 2 , which is a schematic structural diagram of a connection establishment system provided by the embodiments of the present disclosure. Among them, the connection establishment system includes a connection establishment process management module 201 and multiple connection establishment function modules. Specifically, taking the multiple connection establishment function modules including a connection establishment permission verification module 202, a connection establishment communication module 203, a connection establishment message module 204, and a connection establishment media module 205 as an example.
[0052] The connection establishment process management module 201 is used to determine a target connection establishment process, and in response to a connection establishment request from the co-host service system, control the operation of the multiple connection establishment function modules based on the target connection establishment process.
[0053] In the embodiments of the present disclosure, the target connection establishment process may include multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules. When the connection establishment process management module receives a connection establishment request from the co-hosting service system, it may control the operation of the connection establishment module corresponding to the connection establishment sub-process based on the running order of the multiple connection establishment sub-processes.
[0054] In practical applications, different co-hosting scenarios correspond to different connection establishment processes. Among them, the co-hosting scenarios may include scenarios where the host invites the viewer to have a video chat, and may also include scenarios where the viewer applies to enter the voice call room where the host is located, etc. For example, in the scenario where the host invites the viewer to have a video chat, it may include connection establishment functions such as processing the connection request and processing the acceptance of the connection. Since the connection establishment process is coupled with the business process, when actually modifying and optimizing the connection establishment process, it is usually necessary to modify and optimize the codes corresponding to multiple business processes respectively, which seriously reduces the development efficiency.
[0055] In an optional implementation manner, the connection establishment process can be separated from the business process by encapsulating each function in the connection establishment process into an independent module and having the independent module be responsible for executing the corresponding tasks, so as to realize the reuse of the connection establishment processes in different business scenarios.
[0056] In the embodiments of the present disclosure, the connection establishment process management module is used to determine the connection establishment processes corresponding to each business scenario according to the preset execution order, so that when a connection establishment request from the co-hosting service system is received subsequently, the operation of multiple connection establishment function modules can be controlled based on the pre-determined target connection establishment process.
[0057] In the embodiments of the present disclosure, the connection establishment request is used to request the co-hosting server to establish a communication connection with the co-hosting service system, where the co-hosting service system may include a host end and a client end.
[0058] In the embodiments of the present disclosure, the connection establishment function module is used to execute the corresponding connection establishment sub-process in response to the call request of the connection establishment process management module, and return the execution result of the connection establishment sub-process to the connection establishment process management module.
[0059] In the embodiments of the present disclosure, the connection establishment process management module is further used to receive the execution results returned by each connection establishment function module. Since the connection establishment system provided in the embodiments of the present disclosure only cares about the execution results of each connection establishment sub-process and does not depend on the specific running process of a certain connection establishment sub-process, in practical applications, if the connection establishment sub-process is modified, it will not affect the connection establishment process. Similarly, if the connection establishment process is modified, it will not affect the specific connection establishment function module.
[0060] In the connection establishment system provided by the embodiments of the present disclosure, the connection establishment process management module is used to respond to the connection establishment request of the co-hosting service system and control the operation of multiple connection establishment function modules based on the target connection establishment process. Among them, the target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules. The connection establishment function module is used to respond to the call request of the connection establishment process management module, execute the corresponding connection establishment sub-process and return the execution result to the connection establishment process management module. It can be seen that by decoupling the connection establishment process from the service process in the embodiments of the present disclosure, different service processes can reuse the same connection establishment system. When the connection establishment process needs to be optimized, only this connection establishment system needs to be adjusted, which reduces the optimization cost.
[0061] In addition, in the embodiments of the present disclosure, the connection establishment process management module is used to connect multiple connection establishment function modules in series, so as to decouple each connection establishment function module in the connection establishment system.
[0062] For example Figure 2 As shown, the multiple connection establishment function modules may include a connection establishment permission verification module 202. Specifically, the connection establishment permission verification module is used to respond to the call request of the connection establishment process management module, verify the permission of the connection establishment request, and return the permission verification result.
[0063] In an optional implementation manner, the connection establishment request may carry information such as the permission of the co-hosting service system. When the connection establishment permission verification module receives the call request of the connection establishment process management module, it can verify the permission of the connection establishment request based on the information such as the permission carried in the connection establishment request, and return the permission verification result to the connection establishment process management module.
[0064] In the embodiments of the present disclosure, the multiple connection establishment function modules may include a connection establishment communication module 203. Specifically, the connection establishment communication module is used to respond to the call request of the connection establishment process management module, apply for connection establishment to the co-hosting server, and return the response message of the connection establishment application to the connection establishment process management module, and the connection establishment process management module sends the response request of the connection establishment application to the co-hosting service system.
[0065] In the embodiments of the present disclosure, the multiple connection establishment function modules may include a connection establishment message module 204. Specifically, the connection establishment message module is used to send the co-hosting application feedback message to the connection establishment process management module when receiving the co-hosting application feedback message from the co-hosting server.
[0066] Among them, the co-hosting application feedback message is used to indicate whether the co-hosting application is accepted.
[0067] For example, in a scenario where the viewer side applies to join the co-hosting room where the host side is located, the viewer side sends a co-hosting application to the host side through the co-hosting server. After receiving the co-hosting application, the host side returns a co-hosting application feedback message to the co-hosting server. When the co-hosting server receives the co-hosting feedback message, it forwards the co-hosting application feedback message to the connection establishment message module. When the connection establishment message module receives the co-hosting application feedback message from the co-hosting server, it sends the co-hosting application feedback message to the connection establishment process management module, so that the connection establishment process management module determines whether to allow the viewer side to enter the co-hosting room based on the co-hosting application feedback message.
[0068] In the embodiments of the present disclosure, the multiple connection establishment function modules may include a connection establishment media module 205. Specifically, the connection establishment media module is configured to initialize the local audio and video functions and apply to the RTC server to join the co-hosting room in response to a call request from the connection establishment process management module.
[0069] In the embodiments of the present disclosure, initializing the local audio and video functions may include starting local audio collection or video collection, etc.
[0070] In an optional implementation manner, the connection establishment media module is further configured to start pushing the audio and video process to the RTC server when receiving the message of successfully joining the co-hosting room returned by the RTC server.
[0071] In an optional implementation manner, the co-hosting system may further include a process detection module. Specifically, the process detection module is configured to provide an execution result callback function for the sub-process of connection establishment for the co-hosting service system.
[0072] In the embodiments of the present disclosure, the process detection module is configured to detect a first target connection establishment sub-process and send the execution result of the first target connection establishment sub-process to the co-hosting service system.
[0073] In an optional implementation manner, the co-hosting service system may pre-inject the sub-process to be detected into the co-hosting server. Subsequently, when the process detection module detects the execution result of the first target connection establishment sub-process, it sends the execution result to the co-hosting service system.
[0074] In the embodiments of the present disclosure, the first target connection establishment sub-process is the sub-process to be detected pre-injected by the co-hosting service system.
[0075] For example, assume that the target connection establishment process includes connection establishment subprocess A, connection establishment subprocess B, connection establishment subprocess C, and connection establishment subprocess D, and the connection establishment detection for subprocess B is pre-injected into the co-hosting service system. During the process of running each connection establishment subprocess based on the target connection establishment process, when the process detection module detects subprocess B, it can send the execution result of subprocess B to the co-hosting service system so that the co-hosting service system can perform corresponding processing based on the execution result. For example, the execution result of subprocess B can be displayed on the user interface corresponding to the co-hosting service system to give a prompt to the user.
[0076] In an alternative embodiment, the connection establishment system may further include a parameter injection module, where the parameter injection module is used to inject differential parameters in different co-hosting scenarios into the co-hosting server.
[0077] In the embodiments of the present disclosure, the parameter injection module is used to obtain connection establishment parameters from the co-hosting service system when receiving a call request from the connection establishment process management module, and return the connection establishment parameters to the connection establishment process management module.
[0078] In an alternative embodiment, the co-hosting service system may pre-inject the subprocess to be parameter-injected into the co-hosting server so that the parameter injection module can return the connection establishment parameters to the connection establishment process management module when receiving a call request from the connection establishment process management module.
[0079] In the embodiments of the present disclosure, the call request is triggered by the connection establishment process management module when detecting the second target connection establishment subprocess, where the second target connection establishment subprocess is the subprocess to be parameter-injected pre-injected into the co-hosting service server.
[0080] In the embodiments of the present disclosure, there is a corresponding relationship between the connection establishment parameters and the second target connection establishment subprocess. Therefore, when the connection establishment process management module executes the second target connection establishment subprocess, the parameter injection module can obtain the corresponding connection establishment parameters from the co-hosting service system based on the corresponding relationship between the connection establishment parameters and the second target connection establishment subprocess.
[0081] It can be seen that in the embodiments of the present disclosure, by decoupling the connection establishment process from the service process, different service processes can reuse the same connection establishment system. When the connection establishment process needs to be optimized, only the connection establishment system needs to be adjusted, reducing the optimization cost.
[0082] In addition, the embodiments of the present disclosure can also achieve decoupling between various connection establishment function modules in the connection establishment system by using the connection establishment process management module to connect multiple connection establishment function modules in series.
[0083] Based on the above system embodiments, the present disclosure also provides a connection establishment method in co-hosting, refer to Figure 3, which is a flowchart of a connection establishment method provided by an embodiment of the present disclosure. The method is applied to a connection establishment system, and the connection establishment system includes a connection establishment process management module and multiple connection establishment function modules. The method includes:
[0084] S301: Receive a connection establishment request from the co-hosting service system.
[0085] S302: Invoke the connection establishment process management module to control the operation of the multiple connection establishment function modules based on a pre-determined target connection establishment process.
[0086] Among them, the target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules. The connection establishment function modules are used to execute the corresponding connection establishment sub-processes in response to the invocation requests of the connection establishment process management module and return the execution results to the connection establishment process management module.
[0087] In an optional implementation manner, the connection establishment system further includes a process detection module; the method further includes:
[0088] Invoke the process detection module to detect the first target connection establishment sub-process; among them, the first target connection establishment sub-process is a sub-process to be detected pre-injected by the target service system;
[0089] Invoke the process detection module to send the execution result of the first target connection establishment sub-process to the target service system.
[0090] In an optional implementation manner, the connection establishment system further includes a parameter injection module; the method further includes:
[0091] When the connection establishment process management module detects the second target connection establishment sub-process, invoke the parameter injection module to obtain connection establishment parameters from the target service system and return the connection establishment parameters to the connection establishment process management module.
[0092] Among them, there is a corresponding relationship between the connection establishment parameters and the second target connection establishment sub-process, and the second target connection establishment sub-process is a sub-process to be parameter-injected pre-injected by the target service system.
[0093] In the connection establishment method provided by the embodiments of the present disclosure, first, a connection establishment request from a co-hosting service system is received; then, the connection establishment process management module is called to control the operation of the multiple connection establishment function modules based on a pre-determined target connection establishment process; wherein, each of the multiple connection establishment function modules is configured with a corresponding connection establishment sub-process, and the connection establishment function module is used to execute the corresponding connection establishment sub-process in response to the call request of the connection establishment process management module and return an execution result to the connection establishment process management module. It can be seen that by decoupling the connection establishment process from the service process in the embodiments of the present disclosure, different service processes can reuse the same connection establishment system. When the connection establishment process is optimized, only this connection establishment system needs to be adjusted, reducing the optimization cost.
[0094] In addition, in the embodiments of the present disclosure, by using the connection establishment process management module to connect multiple connection establishment function modules in series, decoupling between the various connection establishment function modules in the connection establishment system is achieved.
[0095] Based on the above system embodiments, the present disclosure also provides a structural schematic diagram of a connection establishment system. Specifically, taking the example where the host side is already in a co-hosting room and the viewer side applies to join the co-hosting room, it is used to describe the interaction process between the co-hosting service system and the co-hosting server. As Figure 4 shown, it is a structural schematic diagram of another connection establishment system provided by the embodiments of the present disclosure.
[0096] The co-hosting service system pre-injects a sub-process to be detected (such as connection establishment sub-process A) into the process detection module, and pre-injects a sub-process for parameter injection (such as connection establishment sub-process B) into the parameter injection module.
[0097] In an optional implementation manner, the interaction between the co-hosting service system and the co-hosting service interface can be achieved through an interface. Specifically, the co-hosting service interface can provide a process detection interface, a parameter injection interface, etc. for the co-hosting service system, so that the co-hosting service system can control the connection establishment process based on each interface.
[0098] The connection establishment process management module pre-determines a target connection establishment process, so that the multiple connection establishment function modules operate in the order of connection establishment function module A, connection establishment function module B, and connection establishment function module C.
[0099] It can be seen that the embodiments of the present disclosure achieve decoupling between multiple connection establishment function modules, that is, each connection establishment function module is responsible for its own connection establishment sub-process and does not affect each other. Therefore, when modifying or optimizing the connection establishment processes of multiple service scenarios, there is no need to modify or optimize the connection establishment processes of each service scenario separately. It is only necessary to modify the connection establishment function modules commonly reused by multiple service scenarios.
[0100] In addition, the embodiments of the present disclosure also achieve the decoupling between the connection establishment process management module and multiple connection establishment function modules, and the connection establishment process management module controls the running order among the multiple connection establishment function modules. Therefore, in practical applications, the connection establishment function modules can be modified, added, or deleted through the connection establishment process management module to achieve the reuse of the connection establishment process in different business scenarios.
[0101] The connection establishment process management module responds to the connection establishment request of the co-hosting service system and controls the multiple connection establishment function modules to run in the order of connection establishment function module A, connection establishment function module B, and connection establishment function module C.
[0102] Among them, when receiving the call request from the connection establishment process management module, connection establishment function module A executes the corresponding connection establishment sub-process (connection establishment sub-process A) and returns the execution result of the connection establishment sub-process to the connection establishment process management module.
[0103] When receiving the call request from the connection establishment process management module, connection establishment function module B executes the corresponding connection establishment sub-process (connection establishment sub-process B) and returns the execution result of the connection establishment sub-process to the connection establishment process management module.
[0104] When receiving the call request from the connection establishment process management module, connection establishment function module C executes the corresponding connection establishment sub-process (connection establishment sub-process C) and returns the execution result of the connection establishment sub-process to the connection establishment process management module.
[0105] When the process detection module detects the first target connection establishment sub-process (i.e., connection establishment sub-process A), it sends the execution result of connection establishment sub-process A to the co-hosting service system.
[0106] When the connection establishment process management module detects the second target connection establishment sub-process (i.e., connection establishment sub-process B), it sends a call request to the parameter injection module; when receiving the call request from the connection establishment process management module, the parameter injection module obtains the connection establishment parameters from the co-hosting service system and returns the connection establishment parameters to the connection establishment process management module.
[0107] It can be seen that the embodiments of the present disclosure decouple the connection establishment process from the business process, enabling different business processes to reuse the same connection establishment system. When the connection establishment process needs to be optimized, only the connection establishment system needs to be adjusted, reducing the optimization cost.
[0108] In addition, the embodiments of the present disclosure use the connection establishment process management module to connect multiple connection establishment function modules in series to achieve the decoupling among the various connection establishment function modules in the connection establishment system.
[0109] Based on the above method embodiments, the present disclosure also provides a connection establishment device in co-hosting. Refer to Figure 5 , which is a schematic structural diagram of a connection establishment device in co-hosting provided by the embodiments of the present disclosure. The device includes:
[0110] A receiving module 501, configured to receive a connection establishment request from a co-hosting service system;
[0111] A control module 502, configured to call the connection establishment process management module to control the operation of the multiple connection establishment function modules based on a pre-determined target connection establishment process; wherein, the target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules. The connection establishment function modules are configured to execute corresponding connection establishment sub-processes in response to a call request from the connection establishment process management module and return execution results to the connection establishment process management module.
[0112] In an alternative embodiment, the connection establishment system further includes a process detection module; the apparatus further includes:
[0113] A first call module, configured to call the process detection module to detect a first target connection establishment sub-process; wherein, the first target connection establishment sub-process is a sub-process to be detected pre-injected by the co-hosting service system;
[0114] A second call module, configured to call the process detection module to send the execution result of the first target connection establishment sub-process to the co-hosting service system.
[0115] In an alternative embodiment, the connection establishment system further includes a parameter injection module; the apparatus further includes:
[0116] A third call module, configured to, when the connection establishment process management module detects a second target connection establishment sub-process, call the parameter injection module to obtain connection establishment parameters from the target service system and return the connection establishment parameters to the connection establishment process management module; wherein, there is a corresponding relationship between the connection establishment parameters and the second target connection establishment sub-process, and the second target connection establishment sub-process is a sub-process to be parameter-injected pre-injected by the co-hosting service system.
[0117] It can be seen that, in the embodiments of the present disclosure, by decoupling the connection establishment process from the service process, different service processes can reuse the same connection establishment system. When the connection establishment process needs to be optimized, only the connection establishment system needs to be adjusted, reducing the optimization cost.
[0118] In addition, the embodiments of the present disclosure use the connection establishment process management module to connect multiple connection establishment function modules in series to achieve decoupling between the various connection establishment function modules in the connection establishment system.
[0119] In addition to the above methods and apparatuses, the embodiments of the present disclosure further provide a computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions run on a terminal device, the terminal device implements the connection establishment method in co-hosting in the embodiments of the present disclosure.
[0120] An embodiment of the present disclosure also provides a computer program product, which includes computer programs / instructions. When the computer programs / instructions are executed by a processor, the method for establishing a connection in co-hosting in the embodiments of the present disclosure is implemented.
[0121] In addition, an embodiment of the present disclosure also provides a device for establishing a connection in co-hosting. As shown in Figure 6 it may include:
[0122] A processor 601, a memory 602, an input device 603, and an output device 604. The number of processors 601 in the device for establishing a connection in co-hosting may be one or more. Figure 6 Here, one processor is taken as an example. In some embodiments of the present disclosure, the processor 601, the memory 602, the input device 603, and the output device 604 may be connected through a bus or other means. Among them, Figure 6 here, the connection through a bus is taken as an example.
[0123] The memory 602 can be used to store software programs and modules. The processor 601 runs the software programs and modules stored in the memory 602 to execute various functional applications and data processing of the device for establishing a connection in co-hosting. The memory 602 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. The input device 603 can be used to receive input digital or character information, and generate signal inputs related to user settings and function control of the device for establishing a connection in co-hosting.
[0124] Specifically, in this embodiment, the processor 601 loads the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application programs stored in the memory 602 to implement various functions of the above-mentioned device for establishing a connection in co-hosting.
[0125] It should be noted that in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.
[0126] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. A connection establishment system in co-hosting, characterized in that, The connection establishment system includes a connection establishment process management module and multiple connection establishment function modules; The connection establishment process management module is used to determine a target connection establishment process and, in response to a connection establishment request from the co-hosting service system, control the operation of the multiple connection establishment function modules based on the target connection establishment process; wherein, the target connection establishment process includes multiple connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules; The connection establishment function module is used to execute the corresponding connection establishment sub-process in response to the call request from the connection establishment process management module and return the execution result to the connection establishment process management module.
2. The system according to claim 1, characterized in that, The connection establishment system further includes a process detection module; The process detection module is used to detect a first target connection establishment sub-process and send the execution result of the first target connection establishment sub-process to the co-hosting service system; wherein, the first target connection establishment sub-process is a sub-process to be detected pre-injected by the co-hosting service system.
3. The system according to claim 1, characterized in that, The connection establishment system further includes a parameter injection module; The parameter injection module is used to obtain connection establishment parameters from the co-hosting service system when receiving a call request from the connection establishment process management module and return the connection establishment parameters to the connection establishment process management module; wherein, the call request is triggered by the connection establishment process management module when detecting a second target connection establishment sub-process, there is a corresponding relationship between the connection establishment parameters and the second target connection establishment sub-process, and the second target connection establishment sub-process is a sub-process to be parameter-injected pre-injected by the co-hosting service system.
4. The system according to claim 1, characterized in that, The multiple connection establishment function modules include a connection establishment communication module; The connection establishment communication module is specifically used to apply for connection establishment to the co-hosting server in response to the call request from the connection establishment process management module and return the response message of the connection establishment application to the connection establishment process management module.
5. The system according to claim 1, characterized in that, The multiple connection establishment function modules include a connection establishment message module; The connection establishment message module is specifically used to send the co-hosting application feedback message to the connection establishment process management module when receiving the co-hosting application feedback message from the co-hosting server; wherein, the co-hosting application feedback message is used to indicate whether the co-hosting application is accepted.
6. The system according to claim 1, characterized in that, The multiple connection establishment function modules include a connection establishment media module; The connection establishment media module is specifically used to initialize the local audio and video functions and apply to the RTC server to join the co-hosting room in response to the call request from the connection establishment process management module.
7. A connection establishment method in co-hosting, characterized in that, The method is applied to a connection establishment system, the connection establishment system includes a connection establishment process management module and multiple connection establishment function modules, and the method includes: Receiving a connection establishment request from the co-hosting service system; Invoking the connection establishment process management module to control the operation of the multiple connection establishment function modules based on a pre-determined target connection establishment process; wherein, the target connection establishment process includes multiple connection establishment sub-processes, there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules, and the connection establishment function module is used to execute the corresponding connection establishment sub-process in response to the call request from the connection establishment process management module and return the execution result to the connection establishment process management module.
8. The method according to claim 7, characterized in that, The connection establishment system further includes a process detection module; the method further includes: Call the process detection module to detect the first target connection establishment sub-process; wherein, the first target connection establishment sub-process is a sub-process to be detected pre-injected into the co-hosting service system; Call the process detection module to send the execution result of the first target connection establishment sub-process to the co-hosting service system.
9. The method according to claim 7, characterized in that, The connection establishment system further includes a parameter injection module; the method further includes: When the connection establishment process management module detects a second target connection establishment sub-process, call the parameter injection module to obtain connection establishment parameters from the target service system and return the connection establishment parameters to the connection establishment process management module; wherein, there is a corresponding relationship between the connection establishment parameters and the second target connection establishment sub-process, and the second target connection establishment sub-process is a sub-process to be parameter-injected pre-injected into the co-hosting service system.
10. A connection establishment device in co-hosting, characterized in that, The device is applied to a connection establishment system, the connection establishment system includes a connection establishment process management module and a plurality of connection establishment function modules, and the device includes: A receiving module, configured to receive a connection establishment request from the co-hosting service system; A control module, configured to call the connection establishment process management module to control the operation of the plurality of connection establishment function modules based on a pre-determined target connection establishment process; wherein, the target connection establishment process includes a plurality of connection establishment sub-processes, and there is a corresponding relationship between the connection establishment sub-processes and the connection establishment function modules, and the connection establishment function modules are configured to execute corresponding connection establishment sub-processes in response to the call requests of the connection establishment process management module and return execution results to the connection establishment process management module.
11. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when the instructions run on the terminal device, the terminal device is caused to implement the method according to any one of claims 7-9.
12. A connection establishment device in co-hosting, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the method according to any one of claims 7-9 is implemented.