Online classroom updating method and device, electronic equipment and storage medium
By using classroom cards and cross-platform frame loading tag display functions in the online classroom, the problem of untimely updates on user terminals was solved, enabling real-time synchronization and efficient updates of online classroom functions, thereby improving teaching efficiency and quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING YOUZHUJU NETWORK TECH CO LTD
- Filing Date
- 2021-12-20
- Publication Date
- 2026-06-09
Smart Images

Figure CN116304440B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to a method, apparatus, electronic device, and computer-readable storage medium for updating an online classroom. Background Technology
[0002] With the popularization of the Internet and the optimization of network environment and speed, educational activities conducted through the Internet have gradually become more large-scale. Among them, online teaching has accelerated the popularization of online education methods, and thus, online classrooms have also emerged. Online classrooms combine teachers, students, and teaching tools to enable teaching tasks to be accomplished.
[0003] To provide online classrooms with richer teaching tools and interactive methods, continuous version updates are necessary to improve their functionality. However, if user terminals cannot be updated in a timely manner, new features cannot be used, thereby reducing teaching efficiency and quality. Summary of the Invention
[0004] This disclosure provides at least one method, apparatus, electronic device, and storage medium for updating an online classroom.
[0005] This disclosure provides a method for updating an online classroom, including:
[0006] In response to the operation command of the first user, the classroom card of the online classroom is obtained. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. It is compiled and generated based on the cross-platform framework according to the tags corresponding to the functions of the online classroom. The tags are obtained according to the functional components of the online classroom.
[0007] Based on the cross-platform framework and the classroom card of the online classroom, the tag is loaded, and the functions of the online classroom are displayed on the first user terminal according to the functional components indicated by the tag.
[0008] In this embodiment of the disclosure, when a user enters the online classroom, the functions of the online classroom can be displayed through the classroom card and cross-platform framework. Thus, the user can use the new functions of the online classroom without updating the user's terminal. This simplifies the update process, improves the efficiency of online classroom updates, and thereby improves the efficiency and quality of online teaching.
[0009] In one optional implementation, the online classroom function has status information, and the status information can change in response to user operations; the method further includes:
[0010] The system receives target data and updates the functional status information of the online classroom based on the target data. The target data is obtained by format conversion processing of state machine data, which is generated by the second user terminal in response to the interaction operation of the second user.
[0011] In this embodiment of the disclosure, since the state machine data indicated by the target data is generated by the second user terminal in response to the interaction operation of the second user, updating the functional state information of the online classroom through the target data can ensure that the interaction between the first user terminal and the second user terminal can be synchronized in real time, and provide the online classroom with richer interactive capabilities, thereby ensuring the timeliness of the online classroom.
[0012] In one optional implementation, the format conversion process includes serialization processing; the updating of the online classroom's functional status information based on the target data includes:
[0013] Based on a cross-platform framework, the target data is deserialized to obtain a JavaScript object;
[0014] Based on the cross-platform framework and the JS object, update the functional status information of the online classroom and display the updated functional status information of the online classroom.
[0015] In this embodiment of the disclosure, by deserializing the target data, the rate of parsing the target data can be improved, thereby increasing the rate of updating the functional status information of the online classroom.
[0016] In an optional implementation, before retrieving the classroom card of the online classroom in response to the operation command of the first user, the method further includes:
[0017] The functional components corresponding to the functions of the online classroom are encapsulated into tags;
[0018] The classroom card is generated based on the tag and the cross-platform framework.
[0019] In this embodiment of the disclosure, by encapsulating functional components into tags, the cross-platform framework is provided with the ability to use functional components directly using tags, thereby improving the richness of online classrooms.
[0020] In one optional implementation, the step of encapsulating the functional components corresponding to the functions of the online classroom into tags includes:
[0021] Check if the functions of the online classroom have been updated;
[0022] If an update to the functionality of the online classroom is detected, the functional components corresponding to the online classroom's functionality are encapsulated into tags.
[0023] In this embodiment of the disclosure, when an update to the function of the online classroom is detected, the functional components corresponding to the function of the online classroom are encapsulated into tags, thereby enabling the classroom cards of the online classroom to be updated in real time, which helps to improve the real-time performance of the function updates of the online classroom.
[0024] This disclosure provides a method for updating an online classroom, including:
[0025] Receive the operation instructions for participating in the online classroom sent by the first user terminal;
[0026] Based on the operation command to participate in the online classroom, a feedback result is generated, which reflects whether the first user terminal has successfully participated in the online classroom.
[0027] The feedback result is sent to the first user terminal, so that the first user terminal can obtain the classroom card of the online classroom based on the feedback result and display the functions of the online classroom based on the cross-platform framework. The classroom card is used to reflect the functions of the online classroom and the layout information of each function.
[0028] In this embodiment of the disclosure, after receiving the operation instruction sent by the user to participate in the online classroom, the feedback result corresponding to the operation instruction is sent to the user. This allows the user to view the functions of the online classroom through the classroom card and cross-platform framework, thus enabling the user to use the new functions of the online classroom without needing to update the user's terminal. This simplifies the update process, improves the efficiency of online classroom updates, and thereby improves the efficiency and quality of online teaching.
[0029] In one optional implementation, the method further includes:
[0030] Receive state machine data generated by one of the first user terminal and the second user terminal in response to user operation, the state machine data being used to change the functional state information of the online classroom;
[0031] The state machine data is converted to obtain the target data.
[0032] The target data is sent to the other of the first user terminal and the second user terminal, so that the other of the first user terminal and the second user terminal updates the functional status information of the online classroom based on the target data and displays the updated functional status information of the online classroom.
[0033] In this embodiment of the disclosure, the target data is obtained by performing format conversion on the state machine data, which helps to improve the parsing speed. Furthermore, the target data obtained after format conversion has a smaller size, which is beneficial for parsing the target data.
[0034] In one optional implementation, the step of performing format conversion processing on the state machine data to obtain target data includes:
[0035] The state machine data is serialized to generate state machine data of type byte array, thus obtaining the target data.
[0036] In this embodiment of the disclosure, the target data is obtained by serializing the state machine data, so that the content of the target data is easier to parse, thereby improving the parsing speed.
[0037] This disclosure also provides an online classroom update device, the device comprising:
[0038] The acquisition module is used to acquire the classroom card of the online classroom in response to the operation command of the first user. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. It is compiled and generated based on the cross-platform framework according to the tags corresponding to the functions of the online classroom. The tags are obtained according to the functional components of the online classroom.
[0039] The display module is used to load the tags based on the cross-platform framework and the classroom card of the online classroom, and display the functions of the online classroom on the first user terminal according to the functional components indicated by the tags.
[0040] In one optional implementation, the online classroom function has status information, and the status information can change in response to user operations; the device further includes an update module, the update module being used to:
[0041] The system receives target data and updates the functional status information of the online classroom based on the target data. The target data is obtained by format conversion processing of state machine data, which is generated by the second user terminal in response to the interaction operation of the second user.
[0042] In one optional implementation, the format conversion process includes serialization processing; the update module is specifically used for:
[0043] Based on a cross-platform framework, the target data is deserialized to obtain a JavaScript object;
[0044] Based on the cross-platform framework and the JS object, update the functional status information of the online classroom and display the updated functional status information of the online classroom.
[0045] In one optional embodiment, the apparatus further includes a first generation module, the first generation module being configured to:
[0046] The functional components corresponding to the functions of the online classroom are encapsulated into tags;
[0047] The classroom card is generated based on the tag and the cross-platform framework.
[0048] In one optional implementation, the first generation module is specifically used for:
[0049] Check if the functions of the online classroom have been updated;
[0050] If an update to the functionality of the online classroom is detected, the functional components corresponding to the online classroom's functionality are encapsulated into tags.
[0051] This disclosure also provides an online classroom update device, the device comprising:
[0052] The first receiving module is used to receive operation instructions sent by the first user terminal to participate in the online classroom;
[0053] The second generation module is used to generate a feedback result based on the operation instructions for participating in the online classroom. The feedback result is used to reflect whether the first user terminal has successfully participated in the online classroom.
[0054] The first sending module is used to send the feedback result to the first user terminal, so that the first user terminal can obtain the classroom card of the online classroom based on the feedback result and display the functions of the online classroom based on the cross-platform framework, wherein the classroom card is used to reflect the functions of the online classroom and the layout information of each function.
[0055] In one optional embodiment, the apparatus further includes a second receiving module, a processing module, and a second transmitting module; wherein,
[0056] The second receiving module is used to receive state machine data generated by one of the first user terminal and the second user terminal in response to user operation. The state machine data is used to change the functional state information of the online classroom.
[0057] The processing module is used to perform format conversion processing on the state machine data to obtain target data;
[0058] The second sending module is used to send the target data to the other of the first user terminal and the second user terminal, so that the other of the first user terminal and the second user terminal updates the functional status information of the online classroom based on the target data and displays the updated functional status information of the online classroom.
[0059] In one optional implementation, the processing module is specifically used for:
[0060] The state machine data is serialized to generate state machine data of type byte array, thus obtaining the target data.
[0061] This disclosure also provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the above-described online classroom update method is performed.
[0062] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the above-described online classroom update method.
[0063] For a description of the effects of the aforementioned online classroom update device, electronic equipment, and computer-readable storage medium, please refer to the description of the online classroom update method; it will not be repeated here.
[0064] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0065] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0066] Figure 1 An exemplary system architecture diagram for implementing an online classroom update method provided in this disclosure embodiment;
[0067] Figure 2 A flowchart illustrating an online classroom update method provided in this embodiment of the disclosure;
[0068] Figure 3 A flowchart illustrating a tag encapsulation method provided in an embodiment of this disclosure;
[0069] Figure 4 A flowchart illustrating another method for updating an online classroom as provided in this embodiment of the disclosure;
[0070] Figure 5 This is a schematic diagram of a state machine data transmission process provided in an embodiment of the present disclosure;
[0071] Figure 6 This is a flowchart illustrating a method for updating the functional status information of an online classroom based on a cross-platform framework, as provided in an embodiment of this disclosure.
[0072] Figure 7 A flowchart illustrating another method for updating an online classroom as provided in this embodiment of the disclosure;
[0073] Figure 8 This is a schematic diagram illustrating the interaction between a teacher's end, a student's end, and a server, provided as an embodiment of this disclosure.
[0074] Figure 9 A flowchart illustrating yet another method for updating an online classroom provided in this embodiment of the disclosure;
[0075] Figure 10 A schematic diagram of the structure of an online classroom update device provided in an embodiment of this disclosure;
[0076] Figure 11 A schematic diagram of the structure of another online classroom update device provided in an embodiment of this disclosure;
[0077] Figure 12 A schematic diagram of the structure of another online classroom updating device provided in an embodiment of this disclosure;
[0078] Figure 13 A schematic diagram of the structure of another online classroom updating device provided in an embodiment of this disclosure;
[0079] Figure 14 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation
[0080] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0081] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0082] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0083] With the popularization of the Internet and the optimization of network environment and speed, educational activities conducted through the Internet have gradually become more large-scale. Among them, online teaching has accelerated the popularization of online education methods, and thus, online classrooms have also emerged. Online classrooms combine teachers, students, and teaching tools to enable teaching tasks to be accomplished.
[0084] To provide online classrooms with richer teaching tools and interactive methods, continuous version updates are necessary to improve their functionality. However, if user terminals cannot be updated in a timely manner, new features cannot be used, thereby reducing teaching efficiency and quality.
[0085] Based on the above research, this disclosure provides an online classroom update method, which includes: in response to an operation command from a first user, obtaining a classroom card for the online classroom, the classroom card reflecting the functions of the online classroom and the layout information of each function, and being compiled and generated based on a cross-platform framework according to tags corresponding to the functions of the online classroom; the tags being obtained based on the functional components of the online classroom; loading the tags based on the cross-platform framework and the classroom card of the online classroom, and displaying the functions of the online classroom on the first user terminal according to the functional components indicated by the tags.
[0086] In this embodiment of the disclosure, when a user enters the online classroom, the functions of the online classroom can be displayed through the classroom card and cross-platform framework, so that the user terminal does not need to update the version to use the functions of the online classroom. In this way, the update process can be simplified, the efficiency of online classroom updates can be improved, and thus the efficiency and quality of online teaching can be improved.
[0087] To facilitate understanding of this embodiment, a detailed description of the online classroom update method disclosed in this disclosure is provided first. The execution entity of the online classroom update method provided in this disclosure is generally an electronic device with a certain computing power. This electronic device may include, for example, a terminal device, a server, or other processing devices. Terminal devices may include mobile phones, tablets, in-vehicle devices, and wearable devices. The server may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data, and artificial intelligence platforms. Other processing devices may include devices including processors and memory, and are not limited here. In some possible implementations, the online classroom update method can be implemented by the processor calling computer-readable instructions stored in memory.
[0088] The following section provides a detailed explanation of the proposed solution in conjunction with a specific system application architecture.
[0089] Please see Figure 1 , Figure 1 An exemplary system architecture is shown that can be applied to the implementation of the online classroom update method of this application.
[0090] like Figure 1As shown, the system architecture 1000 may include a server 100, a teacher terminal 200, and multiple student terminals 300. Communication connections are established between the teacher terminal 200 and the server 100, and between the server 100 and the multiple student terminals 300, via a network 400. That is, the network 400 serves as the medium for providing communication links between the teacher terminal 200 and the student terminals 300. The network 400 may include various types of wired or wireless communication links, such as wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables, and wireless communication links including Bluetooth communication links, Wireless-Fidelity (Wi-Fi) communication links, or microwave communication links, etc.
[0091] Teacher client 200 and student client 300 can interact with server 100 via network 400 to receive messages from server 100 or send messages to server 100. Various communication client applications can be installed on teacher client 200 and student client 300, such as: drawing applications, video recording applications, video playback applications, voice capture applications, voice interaction applications, search applications, instant messaging tools, email clients, and social platform software, etc.
[0092] The teacher terminal 200 and the student terminal 300 can be either hardware or software. When the teacher terminal 200 and the student terminal 300 are hardware, they can be various electronic devices with displays, including but not limited to smartphones, tablets, laptops, and desktop computers. Users can use the displays on the teacher terminal 200 and the student terminal 300 to view displayed text, images, videos, and other information. When the teacher terminal 200 and the student terminal 300 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software programs or software modules (e.g., used to provide distributed services) or as a single software program or software module; no specific limitations are made here.
[0093] Server 100 can be a business server providing various services. It should be noted that server 100 can be either hardware or software. When server 100 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When server 100 is software, it can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module; no specific limitations are made here.
[0094] It should be understood that Figure 1 The number of teacher terminals (200), student terminals (300), servers (100), and networks (400) shown is merely illustrative. Depending on implementation needs, there can be any number of teacher terminals, student terminals, servers, and networks.
[0095] Please see Figure 2 , Figure 2 A flowchart illustrating an online classroom update method provided as an embodiment of this disclosure. Figure 2 As shown, the online classroom update method provided in this embodiment includes the following steps S101 to S102:
[0096] S101, in response to the operation command of the first user, obtain the classroom card of the online classroom. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. It is compiled and generated based on the cross-platform framework according to the tags corresponding to the functions of the online classroom. The tags are obtained according to the functional components of the online classroom.
[0097] It is understandable that the first user's operation instruction refers to the instruction information generated by the student's operation of opening the online classroom application or webpage.
[0098] The online classroom's functions can include basic capabilities such as courseware functionality, audio and video functionality, and state machine functionality. The courseware functionality is used for explaining course content, such as through animations, videos, or text. The audio and video functionality assists teaching; for example, teachers can judge students' comprehension levels based on video demonstrations of their actions or expressions, thus controlling the difficulty level of the course content and enabling real-time video or voice communication with students. The state machine functionality provides the basic capabilities for synchronized interaction and real-time logic processing within the online classroom, ensuring real-time synchronous interaction between teachers and students and enhancing the richness of the interaction process.
[0099] In this embodiment of the disclosure, the cross-platform framework refers to the Lynx technology, which is a technology that uses extreme optimization methods to solve page display and interaction performance problems while maintaining the high efficiency of business development, and can expand and meet the use scenarios of more dynamic cross-platform technologies.
[0100] In some implementations, functional components can be encapsulated into tags, and classroom cards can be generated based on these tags and the Lynx technology. That is, when updating online classroom functionality, classroom cards are first generated using Lynx technology based on the encapsulated tags. The classroom cards store the compiled output written using Lynx technology, which indicates the online classroom's functions and layout. Furthermore, during the classroom card generation process, the position information of each tag can be modified in real time, thereby altering the page layout information of the functions.
[0101] Alternatively, the classroom cards can be obtained from a card platform. That is, the compiled classroom cards can be uploaded to the card platform using Lynx technology, so that students can obtain the classroom cards from the card platform. The card platform can be a server or the cloud, etc., and is not limited here.
[0102] In other implementations, please refer to Figure 3 ,like Figure 3 As shown, when encapsulating the functional components corresponding to the functions of the online classroom into tags, the method includes S1011 to S1012:
[0103] S1011, Check if the functions of the online classroom have been updated.
[0104] S1012, if an update to the function of the online classroom is detected, the functional components corresponding to the function of the online classroom are encapsulated into tags.
[0105] It is understandable that in order to update classroom cards in a timely manner so that students can also update the functions of the online classroom, the functions of the online classroom can be detected in real time. If an update is detected, the functional components are encapsulated into tags. In this way, based on the tags, code can be written using Lynx technology to compile and generate classroom cards.
[0106] S102, based on the cross-platform framework and the classroom card of the online classroom, load the tag, and display the functions of the online classroom on the first user terminal according to the functional components indicated by the tag.
[0107] The first user terminal can be Figure 1 300 students in the middle.
[0108] It is understandable that after students enter the online classroom, the online classroom page will be displayed, that is, the functional page of the online classroom will be displayed. Therefore, in the process of displaying the functional page, the classroom card is first loaded through the cross-platform framework (lynx technology). During the loading process, the tags can be parsed through the lynx technology, and the functional components are loaded according to the tags. Finally, the functions of the online classroom are displayed.
[0109] This embodiment of the disclosure demonstrates the functions of the online classroom through classroom cards and a cross-platform framework, allowing users to access new features of the online classroom without needing to update their own devices. This simplifies the update process, improves the efficiency of online classroom updates, and ultimately enhances the efficiency and quality of online teaching.
[0110] Please see Figure 4 , Figure 4A flowchart illustrating another online classroom update method provided in this disclosure embodiment, and... Figure 2 The method described above differs from the method described above in that the online classroom has status information, and the status information can change in response to user operations; the method further includes S103:
[0111] S103, Receive target data and update the functional status information of the online classroom based on the target data. The target data is obtained by format conversion processing of state machine data. The state machine data is generated by the second user terminal in response to the interaction operation of the second user.
[0112] The target data refers to data in byte array format.
[0113] It is understood that in this embodiment of the disclosure, in order to achieve state synchronization between students and teachers, state machine data is used to realize real-time synchronization of student-teacher interactions. Specifically, the teacher sends state machine data to the server, and the server sends the state machine data to the student. For example, please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a schematic diagram illustrating the state machine data transmission process provided in an embodiment of this disclosure. Figure 5 As shown, the state machine data sent by the teacher and / or student are all sent to the other end via a long connection through the server. A long connection means that multiple data packets can be sent continuously.
[0114] State machine data refers to a set of data packets containing the state information of the online classroom. This data can be generated by the interaction of the teacher or the interaction of the student. In this embodiment, the state machine data is generated by the second user terminal responding to the interaction operation of the second user, where the second user refers to the teacher.
[0115] For example, the functional status information of an online classroom can be status information such as the teacher turning on or off the microphone, or the teacher opening courseware; it can also be status information such as the current online classroom being before class, during class, or after class; or it can be status information such as a student appearing on camera or answering questions, etc., without limitation.
[0116] In some implementations, for step S103 above, the format conversion process includes serialization processing; when updating the functional status information of the online classroom based on the target data, such as Figure 6 As shown, it may include the following S1031 to S1032:
[0117] S1031, Based on a cross-platform framework, the target data is deserialized to obtain a JavaScript object.
[0118] The js object, or JavaScript object, is used to reflect the functional status information of the online classroom indicated in the target data.
[0119] Deserialization refers to the process of converting byte array data into JavaScript objects. In this embodiment of the disclosure, the Protobuf tool is used in the cross-platform framework to convert byte array data into JS objects.
[0120] Protobuf is a set of efficient data transmission formats and specifications provided by Google for use in communication between different applications or processes. It compiles data structures into binary code streams before transmission or storage.
[0121] It is understandable that the target data received by the student is obtained by format conversion of state machine data, where format conversion refers to serialization of the state machine data. Therefore, when updating the functional state information of the online classroom based on the target data, it is first necessary to deserialize the byte array type target data using Lynx technology to obtain a JavaScript object.
[0122] S1032, Based on the cross-platform framework and the JS object, update the functional status information of the online classroom and display the functional status information of the online classroom.
[0123] For example, since the JS object can reflect the functional status information of the online classroom indicated in the target data, the functional status information of the online classroom can be updated and displayed according to the content in the JS object by using Lynx technology and the JS object.
[0124] Please see Figure 7 , Figure 7 A flowchart illustrating another method for updating an online classroom as provided in this embodiment of the disclosure. Figure 7 As shown, the online classroom update method provided in this embodiment of the disclosure is applied to the server and includes the following steps S601 to S603:
[0125] S601 receives the operation command for participating in the online classroom sent by the first user terminal.
[0126] S602, based on the operation command to participate in the online classroom, generate a feedback result, which reflects whether the first user terminal has successfully participated in the online classroom.
[0127] S603, the feedback result is sent to the first user terminal, so that the first user terminal obtains the classroom card of the online classroom based on the feedback result and displays the functions of the online classroom based on the cross-platform framework, wherein the classroom card is used to reflect the functions of the online classroom and the layout information of each function.
[0128] For example, please refer to Figure 8 This is a schematic diagram illustrating the interaction process between a teacher terminal 200, a student terminal 300, and a server terminal 100, provided in an embodiment of this disclosure. Figure 8 The document demonstrates the execution sequence of the interaction steps between the teacher's client 200, the server's client 100, and the student's client 300. Specifically, the student's client 300 sends an operation command to the server to participate in the online classroom. After receiving the operation command from the student's client 300, the server 100 sends a successful participation feedback result to the student's client 300. Based on the feedback result, the student's client 300 obtains the classroom card of the online classroom and displays the functions of the online classroom based on the cross-platform framework.
[0129] Please see Figure 9 , Figure 9 A flowchart illustrating yet another method for updating an online classroom as provided in this disclosure. Figure 9 As shown, the online classroom update method provided in this embodiment of the disclosure is similar to... Figure 7 The method described above differs from the method described above in that it further includes the following steps S604 to S606:
[0130] S604, receive state machine data generated by one of the first user terminal and the second user terminal in response to a user operation, the state machine data being used to change the functional state information of the online classroom.
[0131] S605, the state machine data is format-converted to obtain the target data.
[0132] S606, the target data is sent to the other of the first user terminal and the second user terminal, so that the other of the first user terminal and the second user terminal updates the functional status information of the online classroom based on the target data, and displays the updated functional status information of the online classroom.
[0133] Format conversion processing refers to serialization, which is the process of converting the state information of an object into a form that can be stored or transmitted. In this embodiment, serialization can be performed using the protobuf tool, which has the advantages of fast parsing speed, multi-language support, and small data size after serialization.
[0134] It is understandable that the state machine data generated in response to user operations will be uploaded to the server. The server will convert the received state machine data into byte array data, which is the target data.
[0135] Furthermore, if the state machine data is generated by the teacher, the server will convert the state machine data into target data and send the target data to each student's end; if the state machine data is generated by the student, the server will send the target data to the teacher's end, thereby realizing real-time synchronization and updating of the online classroom's functional status information between the student and teacher ends.
[0136] Please refer again to the foregoing embodiments. Figure 8 , Figure 8 This demonstrates the execution sequence of the interaction steps between the teacher's client 200, the server's client 100, and the student's client 300. Specifically, the server 100 receives operation instructions from the teacher and student to participate in the online classroom and sends a successful participation feedback instruction to both the teacher's client 200 and the student's client 300. Then, the student's client 300 downloads the online classroom card from the card platform 500 and renders and displays it on the student's client 300 using Lynx technology. This allows the student's client 300 to display the online classroom's functions and layout information. After receiving state machine data from the teacher's client 200, the server 100 sends the state machine data to the student's client 300. The student's client 300 parses the received state machine data using Lynx technology to update the online classroom's functional state information. Additionally, after receiving state machine data from the student's client 300, the server 100 sends the state machine data to the teacher's client 200. The teacher's client 200 parses the state machine data according to relevant processing logic and updates the online classroom's functional state information.
[0137] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0138] Based on the same inventive concept, this disclosure also provides an online classroom updating device corresponding to the online classroom updating method. Since the principle of the device in this disclosure for solving the problem is similar to the online classroom updating method described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0139] Please see Figure 10 This is a schematic diagram of the structure of an online classroom update device provided in an embodiment of this disclosure. The device includes: an acquisition module 710 and a display module 720; wherein,
[0140] The acquisition module 710 is used to acquire the classroom card of the online classroom in response to the operation command of the first user. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. It is compiled and generated based on the cross-platform framework according to the tags corresponding to the functions of the online classroom. The tags are obtained according to the functional components of the online classroom.
[0141] The display module 720 is used to load the tags based on the cross-platform framework and the classroom card of the online classroom, and display the functions of the online classroom on the first user terminal according to the functional components indicated by the tags.
[0142] Please see Figure 11 This is a schematic diagram of another online classroom update device provided in this embodiment of the present disclosure. The online classroom has status information, and the status information can change in response to user operations. The device further includes an update module 730; the update module 730 is used for:
[0143] The system receives target data and updates the functional status information of the online classroom based on the target data. The target data is obtained by format conversion processing of state machine data, which is generated by the second user terminal in response to the interaction operation of the second user.
[0144] In one optional implementation, the format conversion process includes serialization processing; the update module 730 is specifically used for:
[0145] Based on a cross-platform framework, the target data is deserialized to obtain a JavaScript object;
[0146] Based on the cross-platform framework and the JS object, update the functional status information of the online classroom and display the updated functional status information of the online classroom.
[0147] In some embodiments, the apparatus further includes a first generation module 740, the first generation module 740 being configured to:
[0148] The functional components corresponding to the functions of the online classroom are encapsulated into tags;
[0149] The classroom card is generated based on the tag and the cross-platform framework.
[0150] In one optional implementation, the first generation module 740 is specifically used for:
[0151] Check if the functions of the online classroom have been updated;
[0152] If an update to the functionality of the online classroom is detected, the functional components corresponding to the online classroom's functionality are encapsulated into tags.
[0153] Please see Figure 12 This is a schematic diagram of the structure of another online classroom updating device provided in this embodiment of the present disclosure. The device includes a first receiving module 910, a second generating module 920, and a first sending module 930; wherein,
[0154] The first receiving module 910 is used to receive the operation instructions for participating in the online classroom sent by the first user terminal.
[0155] The second generation module 920 is used to generate a feedback result based on the operation command for participating in the online classroom. The feedback result is used to reflect whether the first user terminal has successfully participated in the online classroom.
[0156] The first sending module 930 is used to send the feedback result to the first user terminal, so that the first user terminal can obtain the classroom card of the online classroom based on the feedback result and display the functions of the online classroom based on Lynx technology, wherein the classroom card is used to reflect the functions of the online classroom and the layout information of each function.
[0157] Please see Figure 13 This is a structural schematic diagram of another online classroom updating device provided in this disclosure embodiment, and... Figure 12 The difference is that the device further includes a second receiving module 940, a processing module 950, and a second transmitting module 960; wherein,
[0158] The second receiving module 940 is used to receive state machine data generated by one of the first user terminal and the second user terminal in response to user operation. The state machine data is used to change the functional state information of the online classroom.
[0159] Processing module 950 is used to perform format conversion processing on the state machine data to obtain target data;
[0160] The second sending module 960 is used to send the target data to the other of the first user terminal and the second user terminal, so that the other of the first user terminal and the second user terminal updates the functional status information of the online classroom based on the target data, and displays the updated functional status information of the online classroom.
[0161] In one optional implementation, the processing module 950 is specifically used for:
[0162] The state machine data is serialized to generate state machine data of type byte array, thus obtaining the target data.
[0163] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.
[0164] Based on the same technical concept, this disclosure also provides an electronic device. (See also...) Figure 14 The diagram shown is a structural schematic of an electronic device 800 provided in an embodiment of this disclosure, including a processor 801, a memory 802, and a bus 803. The memory 802 is used to store execution instructions and includes a main memory 8021 and an external memory 8022. The main memory 8021, also called internal memory, is used to temporarily store computational data in the processor 801, as well as data exchanged with external memory 8022 such as a hard disk. The processor 801 exchanges data with the external memory 8022 through the main memory 8021.
[0165] In this embodiment, the memory 802 is specifically used to store application code that executes the solution of this application, and its execution is controlled by the processor 801. That is, when the electronic device 800 is running, the processor 801 communicates with the memory 802 through the bus 803, so that the processor 801 executes the application code stored in the memory 802, thereby executing the method in any of the foregoing embodiments.
[0166] Processor 801 may be an integrated circuit chip with signal processing capabilities. The aforementioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor can be a microprocessor or any conventional processor.
[0167] The memory 802 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0168] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 800. In other embodiments of this application, the electronic device 800 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0169] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the online classroom update method described in the above-described method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0170] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the online classroom update method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0171] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0172] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and terminals described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, terminals, and methods can be implemented in other ways. The terminal embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, or indirect coupling or communication connection between units, and may be electrical, mechanical, or other forms.
[0173] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0174] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0175] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0176] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. A method for updating an online classroom, characterized in that, include: In response to the operation command of the first user, the classroom card of the online classroom is obtained. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. It is compiled and generated based on the cross-platform framework according to the tags corresponding to the functions of the online classroom. The tags are obtained according to the functional components of the online classroom. The classroom card stores the compilation product written through the cross-platform framework. The compilation product indicates the functions and functional layout of the online classroom. Based on the cross-platform framework and the classroom card of the online classroom, the tag is loaded, and the functions of the online classroom are displayed on the first user terminal according to the functional components indicated by the tag.
2. The method according to claim 1, characterized in that, The online classroom has status information, and the status information can change in response to user operations. The method further includes: The system receives target data and updates the functional status information of the online classroom based on the target data. The target data is obtained by format conversion processing of state machine data, which is generated by the second user terminal in response to the interaction operation of the second user.
3. The method according to claim 2, characterized in that, The format conversion process includes serialization processing; the updating of the online classroom's functional status information based on the target data includes: Based on a cross-platform framework, the target data is deserialized to obtain a JavaScript object; Based on the cross-platform framework and the JS object, update the functional status information of the online classroom and display the updated functional status information of the online classroom.
4. The method according to claim 1, characterized in that, Before retrieving the classroom card of the online classroom in response to the operation command of the first user, the method further includes: The functional components corresponding to the functions of the online classroom are encapsulated into tags; The classroom card is generated based on the tag and the cross-platform framework.
5. The method according to claim 4, characterized in that, The process of encapsulating the functional components corresponding to the functions of the online classroom into tags includes: Check if the functions of the online classroom have been updated; If an update to the functionality of the online classroom is detected, the functional components corresponding to the online classroom's functionality are encapsulated into tags.
6. A method for updating an online classroom, characterized in that, include: Receive the operation instructions for participating in the online classroom sent by the first user terminal; Based on the operation command to participate in the online classroom, a feedback result is generated, which reflects whether the first user terminal has successfully participated in the online classroom. The feedback result is sent to the first user terminal, so that the first user terminal obtains the classroom card of the online classroom based on the feedback result and displays the functions of the online classroom based on the cross-platform framework. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. The classroom card stores the compilation product written by the cross-platform framework. The compilation product indicates the functions and function layout of the online classroom.
7. The method according to claim 6, characterized in that, The method further includes: Receive state machine data generated by one of the first user terminal and the second user terminal in response to user operation, the state machine data being used to change the functional state information of the online classroom; The state machine data is converted to obtain the target data. The target data is sent to the other of the first user terminal and the second user terminal, so that the other of the first user terminal and the second user terminal updates the functional status information of the online classroom based on the target data and displays the updated functional status information of the online classroom.
8. The method according to claim 7, characterized in that, The process of converting the format of the state machine data to obtain the target data includes: The state machine data is serialized to generate state machine data of type byte array, thus obtaining the target data.
9. An online classroom update device, characterized in that, include: The acquisition module is used to acquire the classroom card of the online classroom in response to the operation command of the first user. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. It is compiled and generated based on the cross-platform framework according to the tags corresponding to the functions of the online classroom. The tags are obtained according to the functional components of the online classroom. The classroom card stores the compilation product written through the cross-platform framework. The compilation product indicates the functions and functional layout of the online classroom. The display module is used to load the tags based on the cross-platform framework and the classroom card of the online classroom, and display the functions of the online classroom on the first user terminal according to the functional components indicated by the tags.
10. An online classroom update device, characterized in that, include: The receiving module is used to receive operation instructions for participating in the online classroom sent by the first user terminal; The second generation module is used to generate a feedback result based on the operation instructions for participating in the online classroom. The feedback result is used to reflect whether the first user terminal has successfully participated in the online classroom. The sending module is used to send the feedback result to the first user terminal, so that the first user terminal can obtain the classroom card of the online classroom based on the feedback result and display the functions of the online classroom based on the cross-platform framework. The classroom card is used to reflect the functions of the online classroom and the layout information of each function. The classroom card stores the compilation product written by the cross-platform framework, and the compilation product indicates the functions and function layout of the online classroom.
11. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the online classroom update method as described in any one of claims 1 to 8 is performed.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the online classroom update method as described in any one of claims 1 to 8.