Method and system for supporting one account and multiple clients to enter live broadcast room
By allocating unique identifiers on the server and realizing data synchronization, the problem in the existing technology that multiple clients with the same account cannot enter the live broadcast room at the same time is solved, multi-client collaborative operation is realized, and teaching efficiency and operational convenience are improved.
Patent Information
- Application Number
- CN202310217320.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-10
AI Technical Summary
The existing live broadcast system cannot support multiple clients with the same account to enter the live broadcast room at the same time, causing inconvenience for the lecturer. Especially in offline teaching scenarios, teachers need to frequently switch between different devices, which affects teaching efficiency.
By assigning a unique identifier on the server, multiple clients are allowed to enter the live broadcast room at the same time, and data synchronization and operation collaboration are achieved. The client receives the data and displays the live broadcast room screen, and the server processes the operation request and feeds back the results to ensure the behavior of each client. consistency.
It enables multiple clients with the same account to enter the live broadcast room at the same time, solves the problem of real-time data synchronization and operation collaboration, simplifies the operation process, reduces user pressure, and improves teaching efficiency.
Smart Images

Figure CN118632036A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of live broadcast technology, and in particular relates to a method and system for supporting multiple clients of one account to enter a live broadcast room. Background Art
[0002] In various current live broadcast systems, such as online education platforms, one account only supports one client to enter the classroom. When another client enters the classroom, the device currently in the classroom must actively exit or be forced to exit, which will cause inconvenience in many teaching scenarios.
[0003] The existing technology can support multiple client logins (for example, logging in to an account on a laptop and logging in to the same account on an iPad at the same time), but it is not possible to use multiple clients to enter the classroom at the same time. If you enter the classroom on a laptop, entering the same classroom on an iPad will cause a prompt to pop up on the laptop. The iPad can only enter the classroom after the laptop exits the classroom. In offline class scenarios, when the teacher is teaching on the large screen in the classroom, because the screen is too large, manual operation on the large screen will cause the teacher to walk back and forth, which is very inconvenient. If it can support using an iPad to log in to the same classroom, and the classroom uses an iPad for operation, it will be convenient for offline teachers to operate.
[0004] The existing live broadcast system cannot support multiple clients with the same account entering the live broadcast room at the same time, which will cause inconvenience to the speaker. Summary of the invention
[0005] The purpose of the present invention is to overcome the defect that the prior art cannot support multiple clients of the same account to enter the live broadcast room at the same time.
[0006] In order to achieve the above object, the present invention proposes a method for supporting multiple clients of one account to enter a live broadcast room, the method comprising:
[0007] Multiple clients log in with the same account and send a request to the server to enter the live broadcast room;
[0008] The server assigns a unique identifier to each client and sends it to each client separately, allowing the client to enter the live broadcast room; the server supports multiple clients with the same account to exist in the same live broadcast room at the same time.
[0009] As an improvement of the above method, the method further comprises:
[0010] After entering the live broadcast room, the client sends a synchronization data request to the server;
[0011] The server feeds back the live broadcast room data to the client;
[0012] The client receives the data and displays the live broadcast room screen.
[0013] As an improvement of the above method, the method further comprises:
[0014] After receiving the request from the client to enter the live broadcast room, the server determines whether to allow the client to enter the live broadcast room according to the live broadcast room rules; the live broadcast room rules are to determine whether the client login account is within the account range allowed to enter the live broadcast room;
[0015] If the user is allowed to enter the live broadcast room, the server generates a unique identifier and sends it to the client.
[0016] As an improvement of the above method, the method further comprises:
[0017] After the server generates a unique identifier, it saves the association between the unique identifier and the client login account.
[0018] As an improvement of the above method, the method further comprises:
[0019] The client sends the user operation request to the server;
[0020] The server processes the operation request and feeds back the processing results to all clients;
[0021] The client receives and displays the processing results.
[0022] As an improvement of the above method, the method further comprises:
[0023] When the client exits the live broadcast room, it sends an exit request to the server;
[0024] The server removes the client from the live broadcast room, reclaims the unique identifier of the client, and cancels the association between the unique identifier and the login account.
[0025] As an improvement to the above method, the client is a display screen, a pad, a computer or a mobile phone.
[0026] The present application also provides a system that supports multiple clients of one account to enter the live broadcast room, and the system is implemented based on any of the above methods.
[0027] Compared with the prior art, the advantages of the present invention are:
[0028] The technical solution provided by this application allows the same account to use multiple clients to enter the live broadcast room at the same time, solves the real-time synchronization of data in the same live broadcast room under the same account on different devices, realizes multi-terminal collaborative operation of users, and simplifies the operation process. Users can easily open files in the device and synchronize them to the live broadcast room without switching accounts between devices, which brings great convenience to the entire live broadcast process and also reduces a lot of pressure on users. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 The figure shows a flow chart of a method for multiple clients of one account to enter the live broadcast room. DETAILED DESCRIPTION
[0030] The technical solution of the present invention is described in detail below with reference to the accompanying drawings.
[0031] The present application provides a method for supporting multiple clients of one account to enter the live broadcast room, supporting the same account to log in to the system from different clients and enter the live broadcast room at the same time. When the first client enters the live broadcast room, it requests permission to enter the live broadcast room from the server. The server determines whether the current system status allows entry to the live broadcast room. When entry is allowed, a unique identifier is assigned to the first client in the current live broadcast room. After the first client receives the response that allows entry to the classroom, it requests the server to synchronize the data in the live broadcast room through the unique identifier. The first client receives the synchronized data, and the host broadcasts live normally. When the second client enters the live broadcast room, it also requests permission to enter the live broadcast room from the server. The server also assigns a unique identifier to the second client in the current live broadcast room. When the server synchronizes data to the second client, the second client compares the identifier in the data with the unique identifier of the client to determine whether the data of the client needs to be updated. The first client and the second client are both in an activated state in the classroom, and all operation data of the first client and the second client will be synchronized to ensure the consistency of the behavior of each client. When more clients with the same account log in to the system, the interaction process with the server is the same as that of the second client.
[0032] like Figure 1 As shown, taking two clients in an online education live broadcast scenario as an example, the application method process is described in detail:
[0033] The user logs in with the same account on device A and device B. Device A and device B can be mobile devices such as large displays, pads, computers, or mobile phones.
[0034] When a user uses device A to enter a classroom (live broadcast room), it will first send a request to the server to enter the classroom. The server will determine whether device A can enter the classroom based on the account and course information. If allowed to enter the classroom, the server will assign a unique identifier for this entry to device A and associate the unique identifier with the account. After device A receives a reply allowing entry to the classroom, it will send a request to synchronize all classroom information to the server. The server will synchronize all current data in the classroom to device A. After receiving the data, device A will load the corresponding information for display.
[0035] The process of a user entering the classroom using device B is the same as the process of entering the classroom using device A. The user can enter the classroom synchronously with device A without any time restrictions. All operations performed by the user on device A will be synchronized to device B through the server, and the synchronized data will carry the unique identifier of device A. After receiving the data, device B will make judgments based on the identifier and data type in the data and make different processing. For example, if you want to turn on the timer, device B will turn on the timer display at the same position on the blackboard after receiving the synchronized data.
[0036] Since the server saves the association between multiple devices and accounts, it can recognize that device A and device B belong to the same account, synchronize the same data to device A and device B, and ensure that the two devices display the same content.
[0037] When device A and device B perform operations on the same object in the classroom, the server synchronizes each operation to other clients, and the final state of the object is based on the last operation performed. For example, device A stretches a graphic in the classroom, and device B rotates the same graphic in the classroom. The server processes the graphics in sequence according to the order in which the operations are performed, and sends the state of the graphics to all clients after each operation. Since the speed of computer processing is much faster than that of human operation, coupled with the uncertainty of network transmission time and the cache processing after the server receives the operation, even if the user operates the graphics on device A and device B at the same time, there is a certain time difference from the computer's perspective. Therefore, the server always processes the processing of multiple devices on the same classroom object in the order of occurrence.
[0038] When exiting the classroom, the device needs to send an exit classroom command to the server. When the server receives the exit classroom command from the device, it recycles the unique identifier of the device and cancels the association between the unique identifier and the login account.
[0039] When using the live broadcast method provided in this application for teaching, teachers can use one account to enter the same classroom on different devices for teaching. When the teacher performs an operation on device A, device B can synchronously display the operation on device A. For offline teaching scenarios, when the teacher uses device A with a large screen to show the class content to students, the teacher can prepare the materials in advance on device B. Just open the materials in device B, and device A will synchronize the data of device B and display the opened materials in real time. At the same time, the teacher can continue to operate and teach on device A, realizing one-number multi-terminal collaborative operation, which greatly improves the teacher's teaching efficiency.
[0040] Through this technology, the teacher's teaching process can be simplified, and collaborative teaching on multiple devices can be achieved with one account. All teaching tasks can be completed without switching accounts or going in and out of the classroom between devices.
[0041] The present application also provides a system that supports multiple clients with one account to enter the live broadcast room, including a server and a client. The server adopts the above method to support multiple clients to log in to the system and enter the live broadcast room at the same time using the same account, assign a unique identifier to each client entering the live broadcast room, and associate the unique identifier with the login account; the server receives the client's operation request and feeds back the processing result to all clients. When the client performs an operation, the server sends the same data to the client with the same account. The client sends a login request and a request to enter the live broadcast room to the server, and after logging in and entering the live broadcast room, the user's operations in the live broadcast room are sent to the server, and the server data is received and displayed.
[0042] The present invention may also provide a computer device, comprising: at least one processor, a memory, at least one network interface and a user interface. The various components in the device are coupled together through a bus system. It is understood that the bus system is used to achieve connection and communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus.
[0043] The user interface may include a display, a keyboard or a pointing device, such as a mouse, a trackball, a touch pad or a touch screen.
[0044] It can be understood that the memory in the disclosed embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0045] In some embodiments, the memory stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system and applications.
[0046] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present disclosure can be included in the application.
[0047] In the above embodiment, the processor may also call a program or instruction stored in the memory, specifically, a program or instruction stored in an application program, and is used to:
[0048] Execute the steps of the above method.
[0049] The above method can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The above-disclosed methods, steps and logic block diagrams can be implemented or executed. The general processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the above-disclosed method can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0050] It is understood that the embodiments described in the present invention can be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.
[0051] For software implementation, the technology of the present invention can be implemented by executing the functional modules (such as procedures, functions, etc.) of the present invention. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0052] The present invention may also provide a non-volatile storage medium for storing a computer program. When the computer program is executed by a processor, each step in the above method embodiment can be implemented.
[0053] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.
Claims
1. A method for supporting multiple clients of one account to enter a live broadcast room, the method comprising: Multiple clients log in with the same account and send a request to the server to enter the live broadcast room; The server assigns a unique identifier to each client and sends it to each client separately, allowing the client to enter the live broadcast room; the server supports multiple clients with the same account to exist in the same live broadcast room at the same time.
2. The method for supporting multiple clients of one account to enter the live broadcast room according to claim 1, characterized in that: The method further comprises: After entering the live broadcast room, the client sends a synchronization data request to the server; The server feeds back the live broadcast room data to the client; The client receives the data and displays the live broadcast room screen.
3. The method for supporting multiple clients of one account to enter the live broadcast room according to claim 1, characterized in that: The method further comprises: After receiving the request from the client to enter the live broadcast room, the server determines whether to allow the client to enter the live broadcast room according to the live broadcast room rules; the live broadcast room rules are to determine whether the client login account is within the account range allowed to enter the live broadcast room; If the user is allowed to enter the live broadcast room, the server generates a unique identifier and sends it to the client.
4. The method for supporting multiple clients of one account to enter the live broadcast room according to claim 1, characterized in that: The method further comprises: After the server generates a unique identifier, it saves the association between the unique identifier and the client login account.
5. The method for supporting multiple clients of one account to enter the live broadcast room according to claim 1, characterized in that: The method further comprises: The client sends the user operation request to the server; The server processes the operation request and feeds back the processing results to all clients; The client receives and displays the processing results.
6. The method for supporting multiple clients of one account to enter the live broadcast room according to claim 1, characterized in that: The method further comprises: When the client exits the live broadcast room, it sends an exit request to the server; The server removes the client from the live broadcast room, reclaims the unique identifier of the client, and cancels the association between the unique identifier and the login account.
7. The method for supporting multiple clients of one account to enter the live broadcast room according to claim 1, characterized in that: The client is a display screen, a pad, a computer or a mobile phone.
8. A system that supports multiple clients from one account to enter the live broadcast room, characterized in that: The system is implemented based on any one of the methods described in claims 1-6.
