Online classroom screen projection method, device, electronic device and storage medium

By using the screen-casting sub-process technology of student terminals in online education, screen content can be pushed, which solves the problem of insufficient interactivity in online education and improves learning efficiency.

CN111880756BActive Publication Date: 2024-09-10GUANGZHOU HUADUO NETWORK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010621797.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-30
Publication Date
2024-09-10
Estimated Expiration
2040-06-30

AI Technical Summary

Technical Problem

In online education, existing technology lacks effective interactivity, and teachers cannot check students' learning status in real time, making it difficult to guarantee learning efficiency.

Method used

Respond to screen sharing instructions through student terminals, create a sub-process of the screen casting application, obtain screen recording permissions, generate and send screencasting streams of screen sharing content to teacher terminals and other student terminals, realize the push of screen content, and reduce the memory of the main process occupied.

Benefits of technology

It improves the interactivity between student terminals and teacher terminals, making online interaction between teachers and students more convenient and effectively ensuring students' learning efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111880756B
    Figure CN111880756B
Patent Text Reader

Abstract

The present application discloses an online classroom screen projection method, device, electronic device and storage medium. Through the student terminal responding to the screen sharing instruction, a sub-process of the screen projection application is created, and the sub-process is called to obtain the screen recording permission. If the screen recording permission is obtained, the sub-process is called to obtain the screen sharing content, and then the sub-process is triggered to generate a screen projection stream including the screen sharing content, and then the sub-process is triggered to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content. By creating a sub-process of the screen projection application, the screen sharing content can be pushed through the created sub-process during the screen projection process, thereby reducing the memory occupancy rate of the main process of the screen projection application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of online education technology, and more specifically, to an online classroom screen projection method, device, electronic device and storage medium. Background Art

[0002] With the development of modern information technologies such as the Internet and artificial intelligence, more and more users are learning or working online through the Internet. The audience size of online education is gradually expanding due to its convenience. The development of online education is conducive to building a networked, digital, personalized, and lifelong education system, and is conducive to building a learning society where "everyone can learn, learn everywhere, and learn at any time." However, online education usually relies on teacher lecture videos or recorded lecture videos. The learning method is relatively simple, and teachers cannot check students' learning status. There is little interaction between teachers and students, making it difficult to ensure students' learning efficiency. Summary of the invention

[0003] In view of the above problems, the present application proposes an online classroom screen projection method, device, electronic device and storage medium to improve the above problems.

[0004] In a first aspect, an embodiment of the present application provides an online classroom screen projection method, the method comprising: a student terminal responds to a screen sharing instruction, creates a sub-process of a screen projection application, and the student terminal includes the screen projection application; calls the sub-process to obtain screen recording permission; if the screen recording permission is obtained, calls the sub-process to obtain screen sharing content; triggers the sub-process to generate a screen projection stream including the screen sharing content; triggers the sub-process to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content.

[0005] In the second aspect, an embodiment of the present application provides a screen projection device, which includes: a sub-process acquisition module, which is used for a student terminal to respond to a screen sharing instruction and create a sub-process of a screen projection application, and the student terminal includes the screen projection application; a permission acquisition module, which is used to call the sub-process to obtain screen recording permission; a content acquisition module, which is used to call the sub-process to obtain screen sharing content if the screen recording permission is obtained; a generation module, which is used to trigger the sub-process to generate a screen projection stream including the screen sharing content; a sending module, which is used to trigger the sub-process to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content.

[0006] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory and one or more processors; one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs are configured to execute the method described in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein when the program code is executed by a processor, the method described in the first aspect is executed.

[0008] The embodiment of the present application provides an online classroom screen projection method, device, electronic device and storage medium. The student terminal responds to the screen sharing instruction, creates a sub-process of the screen projection application, and then calls the sub-process to obtain the screen recording permission. If the screen recording permission is obtained, the sub-process is called to obtain the screen sharing content, and then the sub-process is triggered to generate a screen projection stream including the screen sharing content, and then the sub-process is triggered to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content. Thus, the above method is used to create a sub-process of the screen projection application, so that in the process of screen projection, the screen sharing content can be pushed through the created sub-process, thereby reducing the memory occupancy rate of the main process of the screen projection application, so that the student terminal and the teacher terminal can interact easily, and then the teacher and students who interact in the online classroom through the student terminal and the teacher terminal can interact online conveniently, thereby effectively ensuring the learning efficiency of the students. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0010] Figure 1 A schematic diagram of an application environment provided by an embodiment of the present application is shown.

[0011] Figure 2 A method flow chart of an online classroom screen projection method provided by an embodiment of the present application is shown.

[0012] Figure 3 An example diagram of a prompt for obtaining screen recording permission provided in an embodiment of the present application is shown.

[0013] Figure 4 A method flow chart of an online classroom screen projection method provided by another embodiment of the present application is shown.

[0014] Figure 5 A method flow chart of an online classroom screen projection method provided by yet another embodiment of the present application is shown.

[0015] Figure 6 An example diagram showing the processing prompts of the teacher terminal for the screen projection request provided in the embodiment of the present application is shown.

[0016] Figure 7 A display example diagram of a screen content sharing interface of a student terminal provided in an embodiment of the present application is shown.

[0017] Figure 8 An example diagram of the display of the teacher terminal interface during screen content sharing by a student terminal provided in an embodiment of the present application is shown.

[0018] Fig. 9 An example diagram showing the display of other student terminal interfaces during screen content sharing by a student terminal provided in an embodiment of the present application.

[0019] Fig.10 A method flow chart of an online classroom screen projection method provided in yet another embodiment of the present application is shown.

[0020] Fig.11 A structural block diagram of a screen projection device provided in an embodiment of the present application is shown.

[0021] Fig.12 A structural block diagram of an electronic device provided in an embodiment of the present application is shown.

[0022] Fig.13 A storage unit for storing or carrying program codes for implementing the online classroom screen projection method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] Online education is a new educational method that uses modern information technologies such as the Internet and artificial intelligence to interact with learning and teaching, and is an important part of educational services. The development of online education is conducive to building a networked, digital, personalized, and lifelong education system, and is conducive to building a learning society where "everyone can learn, learn everywhere, and learn at any time."

[0025] The scale of China's online education market has expanded steadily in recent years, and the scale of paid online education users has also continued to expand, reaching 130 million in 2018, with a growth rate of 23.3%. This shows that with the development of online education, users' acceptance of payment has gradually increased.

[0026] At present, the real-time online education is generally not interactive enough, which is a fatal shortcoming compared with traditional offline education. Relying on the single learning method of lecture videos or recorded videos, it is possible to learn knowledge and experience, but it is impossible to interact with teachers and students. At present, there are many attempts at interaction in real-time online education. The more basic ones are text messages and voice messages. The higher level ones include giving flowers to teachers in class, class notes, student groups, and shared whiteboards. However, the existing online education model usually relies on teacher lecture videos or recorded lecture videos. The learning method is relatively single, and teachers cannot check the learning status of students. There is little interaction between teachers and students, and it is difficult to ensure the learning efficiency of students.

[0027] In response to the above problems, the inventors have found through long-term research that it is possible to respond to screen sharing instructions through student terminals, create a sub-process of the screen projection application, and then call the sub-process to obtain screen recording permissions. If the screen recording permissions are obtained, the sub-process is called to obtain the screen sharing content, and then the sub-process is triggered to generate a screen projection stream including the screen sharing content, and then the sub-process is triggered to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content. Thus, by creating a sub-process of the screen projection application in the above manner, it is achieved that during the screen projection process, the screen sharing content can be pushed through the created sub-process, thereby reducing the memory occupancy rate of the main process of the screen projection application, allowing the student terminal and the teacher terminal to interact easily, and then the teacher and students who interact in the online classroom through the student terminal and the teacher terminal can interact online conveniently, thereby effectively ensuring the learning efficiency of the students. Therefore, an online classroom screen projection method, device, electronic device and storage medium provided in the embodiments of the present application are proposed.

[0028] In order to facilitate the detailed description of the present application, an application environment in an embodiment of the present application is first introduced below with reference to the accompanying drawings.

[0029] See also Figure 1 , is a schematic diagram of an application environment of an online classroom screen projection method provided in an embodiment of the present application, such as Figure 1 As shown, the application environment can be understood as a network system 10 provided in an embodiment of the present application, and the network system 10 includes: a sending end 11 and a receiving end 12 of screen sharing content. It should be noted that, in some possible implementations, the sending end 11 can also be a receiving end of the screen sharing content, and the receiving end 12 can also be a sending end of the screen sharing content.

[0030] The sending end 11 can be understood as a student terminal 11, and the receiving end 12 includes a teacher terminal 121 and other student terminals 122 (the number of other student terminals can be one or more, and there is no specific limitation). Optionally, other student terminals 122 and the teacher terminal 121 can be the sending end of the screen sharing content. In this case, the student terminal 11 is the receiving end of the screen sharing content.

[0031] The server 13 may be a single server (network access server), a server cluster (cloud server) composed of several servers, or a cloud computing center (database server). The student terminal 11, the teacher terminal 121 and other student terminals 122 may be any device with communication and storage functions, including but not limited to PC (Personal Computer), PDA (tablet computer), smart TV, smart phone, smart wearable device or other smart communication device with network connection function.

[0032] The online classroom screen projection method provided in this embodiment can be applied to online education scenarios. It can enhance the interaction between students and teachers through multi-terminal screen projection, thereby effectively improving students' learning efficiency.

[0033] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0034] See also Figure 2 , shows a flow chart of an online classroom screen projection method provided by an embodiment of the present application. This embodiment provides an online classroom screen projection method, which can be applied to a student terminal. The method includes:

[0035] Step S110: The student terminal responds to the screen sharing instruction and creates a subprocess of the screen projection application.

[0036] Optionally, the student terminal in this embodiment can be understood as the client of a student who interrupts the teacher's speech in an online education classroom. In this way, the student will interact with the teacher based on the content currently being taught by the teacher. The student terminal can share its screen content with the teacher terminal and other student terminals, that is, the student terminal is the sender of the screen sharing content. Optionally, the student terminal includes a screen projection application, and the student terminal, the teacher terminal, and other student terminals are all configured with the same screen projection application. The screen projection application can be an existing application with a screen projection function, or an application with a screen projection function developed in the future. The student terminal, the teacher terminal, and other student terminals can achieve online education interaction through the screen projection application.

[0037] As a method, when the student terminal obtains the screen sharing instruction, the student terminal can create a subprocess of the screen projection application. Optionally, the subprocess can also be a pre-created subprocess, and the subprocess of the screen projection application can be created by activating the subprocess.

[0038] By creating a subprocess of the screen projection application so that the screen sharing content can be pushed through the subprocess later, the memory usage of the main process of the screen projection application can be reduced, the crash rate of the program can be reduced, and the stability of the system operation can be ensured.

[0039] Step S120: calling the subprocess to obtain screen recording permission.

[0040] As a way, the student terminal can call a child process to obtain the screen recording permission of the current screen. For example, you can call MediaProjectionManager to obtain the MediaProjection object, and then obtain the screen projection handle provided by the Android system, where the screen projection handle is provided by the DisplayManager service, and then you can obtain the screen recording permission based on the screen projection handle.

[0041] Step S130: Determine whether the screen recording permission is obtained.

[0042] Optionally, in order to ensure data security, before recording the screen content of the student terminal, it can be determined whether the screen recording permission for the student terminal screen is obtained. Optionally, a status value representing the two states of whether the screen recording permission is obtained can be pre-configured. For example, a status value of "1" can be used to indicate that the screen recording permission is obtained, and a status value of "0" can be used to indicate that the screen recording permission is not obtained. In this way, it can be determined whether the screen recording permission is obtained by identifying the status value.

[0043] For example, Figure 3 As shown, the student terminal is the client where 1student is located. If "Start Now" is clicked, it can indicate that the screen recording permission is obtained, and if "Cancel" is clicked, it can indicate that the screen recording permission is not obtained. Optionally, other methods can also be used to determine whether the screen recording permission is obtained, which are not listed here one by one.

[0044] Step S140: calling the subprocess to obtain screen sharing content.

[0045] As a way, if it is determined that the screen recording permission is obtained, the child process can be called to obtain the screen sharing content. Optionally, in this embodiment, the createVirtualDisplay of the MediaProjection object can be called to create a corresponding virtual screen, which is used to temporarily store screen metadata information (i.e., screen sharing content). By calling the child process to obtain the screen sharing content, the main process and child process of the screen projection application can be made independent of each other, reducing the memory usage of the main process, thereby improving the effective utilization rate of the screen projection application.

[0046] Optionally, if it is determined that the screen recording permission is not obtained, the child process can be terminated to reduce the overall memory of the screen projection application.

[0047] Step S150: triggering the sub-process to generate a screen projection stream including the screen sharing content.

[0048] As a method, the child process can be triggered to input the acquired screen sharing content into MediaCodec for encoding, filtering, stickers and other operations to generate a screen casting stream including the screen sharing content. Among them, the specific principles and implementation process of encoding, filtering, stickers and other operations on the screen sharing content to generate a screen casting stream can refer to the relevant technology, which will not be repeated here.

[0049] Step S160: triggering the subprocess to send the screen projection stream to the teacher terminal and other student terminals.

[0050] As a method, the screen projection stream can be sent to the teacher terminal and other student terminals by triggering the sub-process, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content of the student terminal, so that the student terminal can share the screen sharing content with the teacher terminal and other student terminals, thereby realizing the interaction between the student terminal and the teacher terminal.

[0051] The online classroom screen projection method provided in this embodiment is to create a sub-process of the screen projection application program by responding to the screen sharing instruction through the student terminal, and then call the sub-process to obtain the screen recording permission. If the screen recording permission is obtained, the sub-process is called to obtain the screen sharing content, and then the sub-process is triggered to generate a screen projection stream including the screen sharing content, and then the sub-process is triggered to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content of the student terminal. Thus, by the above method, it is achieved by creating a sub-process of the screen projection application program, so that in the process of screen projection, the screen sharing content can be pushed through the created sub-process, thereby reducing the memory occupancy rate of the main process of the screen projection application program, so that the student terminal and the teacher terminal can interact easily, and then the teacher and students who interact in the online classroom through the student terminal and the teacher terminal can interact online conveniently, thereby effectively ensuring the learning efficiency of the students.

[0052] See also Figure 4 , shows a flow chart of an online classroom screen projection method provided by another embodiment of the present application. This embodiment provides an online classroom screen projection method, which can be applied to a student terminal. The method includes:

[0053] Step S210: The student terminal responds to the screen sharing instruction and creates a subprocess of the screen projection application.

[0054] Step S220: calling the subprocess to obtain screen recording permission.

[0055] Step S230: If the screen recording permission is obtained, the sub-process is called to obtain the screen sharing content.

[0056] Step S240: Obtain compression encoding parameters corresponding to the sub-process.

[0057] Optionally, the compression coding parameters may include bit rate, frame rate, and resolution, etc. The compression coding parameters may be set in advance, and the compression coding parameters are compression coding parameters corresponding to the sub-process of the screen projection application.

[0058] Step S250: performing compression encoding processing on the screen sharing content based on the compression encoding parameters.

[0059] As a method, before the screen sharing content is pushed, the screen sharing content can be compressed and encoded based on the compression encoding parameters to reduce the memory occupation of the child process by the screen sharing content and improve the push efficiency of the screen sharing content.

[0060] Step S260: triggering the sub-process to generate a screen projection stream including the screen sharing content after compression encoding processing.

[0061] Optionally, in this way, a child process can be triggered to generate a screen projection stream including the screen sharing content after compression and encoding. Optionally, the specific generation principle and generation process can refer to relevant technologies and will not be repeated here.

[0062] Step S270: triggering the subprocess to send the screen projection stream to the teacher terminal and other student terminals.

[0063] The online classroom screen projection method provided in this embodiment can improve the rate at which the subprocess generates screen sharing content including compressed encoding processing by compressing and encoding the screen sharing content based on the compression encoding parameters corresponding to the subprocess, thereby improving the efficiency of the subprocess in sending the screen projection stream to the teacher terminal and other student terminals. By creating a subprocess of the screen projection application, the screen sharing content can be pushed through the created subprocess during the screen projection process, thereby reducing the memory occupancy rate of the main process of the screen projection application, allowing the student terminal and the teacher terminal to interact easily, thereby allowing teachers and students who interact in the online classroom through the student terminal and the teacher terminal to interact conveniently online, thereby effectively ensuring the students' learning efficiency.

[0064] See also Figure 5 , shows a flow chart of an online classroom screen projection method provided by another embodiment of the present application. This embodiment provides an online classroom screen projection method, which can be applied to a student terminal. The method includes:

[0065] Step S310: The student terminal sends a screen projection request to the server, instructing the server to send the screen projection request to the teacher terminal.

[0066] As an implementation method, in the process of online teaching on the teacher's terminal, in order to enhance the interaction between students and teachers, a screen projection request processing function button can be configured in the student terminal and the teacher terminal. The screen projection request processing function button can include two states, which can be "agree to screen projection" and "reject screen projection", wherein "agree to screen projection" indicates that the current speech is agreed to be interrupted, and the person who interrupts will share the screen projection; "reject screen projection" indicates that the current speech is not agreed to be interrupted. Optionally, during the teacher's speech, the student can interrupt the teacher's speech to share the screen, or the teacher or other students can interrupt a student's sharing during the sharing process. For example, during the teacher's speech, the student can interrupt the teacher's speech. If at this time, the teacher touches "agree to screen projection", then the student can share the screen content, thereby realizing interaction; and if the teacher touches "reject screen projection", then the teacher may be talking about important content and it is inconvenient to be interrupted.

[0067] In one implementation, the student terminal can send a screen projection request to the server and instruct the server to send the screen projection request to the teacher terminal. The screen projection request is used to request the teacher terminal to interrupt the teacher terminal's presentation and share the screen content. In this way, the teacher terminal can process the screen projection request (for example, Figure 6 As shown, if you click "permit", it means you agree to screen projection; if you click "Reject", it means you refuse to project the screen), and return the processing result to the server in the form of a request response message, instructing the server to send the request response message to the student terminal.

[0068] Optionally, if multiple student terminals simultaneously initiate screen projection requests to the teacher terminal, the teacher can select a student terminal to participate in the interaction. In this case, the student selected by the teacher can receive an interactive prompt message, which is used to prompt the student to participate in the interaction of classroom content. As a method, it is possible to detect whether an interactive prompt message is received. If it is detected that an interactive prompt message is received, the student terminal can generate a screen sharing instruction, wherein the interactive prompt message can be sent when the teacher terminal calls the student terminal for online classroom interaction. Optionally, the interactive prompt message can be sent directly by the teacher terminal to the student terminal it calls, or the teacher terminal can send the interactive prompt message to the server and instruct the server to forward it to the student terminal it calls.

[0069] Step S320: receiving a request response message sent by the server and returned by the teacher terminal.

[0070] Step S331: If the request response message is a preset response message, the screen sharing instruction is generated.

[0071] Optionally, the preset response message may be the teacher terminal agreeing with the student terminal to share the screen content. As a method, if the request response message is a preset response message, a screen sharing instruction may be generated so that the student terminal can create a subprocess of the screen projection application by responding to the screen sharing instruction.

[0072] Optionally, if the request response message is a preset response message, when the server receives the request response message, it can enable the broadcast permission and allocate a streaming ID so that the student terminal can perform streaming authentication based on the streaming ID, that is, verify the broadcast permission of the student terminal.

[0073] Step S332: The student terminal responds to the screen sharing instruction and creates a subprocess of the screen projection application.

[0074] Step S333: calling the subprocess to obtain screen recording permission.

[0075] Step S334: If the screen recording permission is obtained, the subprocess is called to obtain the screen sharing content.

[0076] Step S335: triggering the sub-process to generate a screen projection stream including the screen sharing content.

[0077] Step S336: triggering the subprocess to send the screen projection stream to the teacher terminal and other student terminals.

[0078] Optionally, the student terminal can call a sub-process to obtain the projection identification (i.e. the aforementioned streaming ID). Different projection identifications correspond to different authentication keys. Then, the sub-process is called to generate a projection authentication key (token). The projection authentication key is then compared with the authentication key corresponding to the projection identification. If the projection authentication key matches the authentication key corresponding to the projection identification (which can be understood as consistent), the sub-process can be triggered to send the projection stream to the teacher terminal and other student terminals. Among them, the projection authentication key can be generated by the application identification code (appid), user identification code (uid), channel number (sid) of the online classroom live broadcast room, timestamp (timestamp) and other data through encryption algorithm and then base64 encoding.

[0079] Optionally, before triggering the subprocess to send the screen projection stream to the teacher terminal and other student terminals, the display interface of the current student terminal can be displayed as follows: Figure 7 The screen shown is Figure 7 As shown, "You are sharingyour screen" in the center of the screen means "You are sharing your screen", and "Stop sharing" displayed below means stop sharing. Optionally, after the interface pops up, the current student terminal can minimize the interface to start sharing its own screen content, or keep the window interface, open its own screen content in the window interface to start sharing. Optionally, during the screen sharing process, the current student terminal can see the video images of the teacher's terminal and other student terminals, and can also communicate with the teacher or other students through the chat window. Optionally, the specific content of the text can be unlimited, for example, it can be text, emoticons, characters, etc.

[0080] Optionally, after the current student terminal triggers a subprocess to send the screen projection stream to the teacher terminal and other student terminals, the screens of the teacher terminal and other student terminals can be respectively as follows: Figure 8 and Fig. 9 The screens of the teacher terminal and other student terminals can display the names of the students corresponding to the student terminals that are currently sharing screen content.

[0081] Step S341: If the request response message is not a preset response message, cancel sending the screen projection request.

[0082] As a method, if the request response message is not a preset response message, the screen projection request can be canceled, that is, the screen projection request will no longer be sent.

[0083] Optionally, during the process of the current student terminal sharing the screen content, if one or several other student terminals also want to participate in the interaction and share the screen content, they can initiate a screen sharing request to the current student terminal. In this way, after triggering the sub-process to send the screen projection stream to the teacher terminal and other student terminals, during the process of the current student terminal sharing the screen content, it can be detected whether the screen sharing requests sent by other student terminals are received.

[0084] Optionally, if a screen sharing request is received from other student terminals, the current student terminal can respond to the screen sharing request. For example, the current student terminal can agree or reject the screen sharing request. It is understandable that if the current student is still in the process of sharing and the content has not been shared, the screen sharing request can be rejected and the rejection result can be returned to the other student terminals that initiated the screen sharing request. If the current student is interrupted in receiving the shared content, the screen sharing request can be agreed. In this way, the screen content can be shared by other student terminals that initiate the screen sharing request. The specific screen content sharing process can refer to the screen content sharing process of the aforementioned student terminal, which will not be repeated here.

[0085] Optionally, if no screen sharing request is received from other student terminals, the current screen content can be continued to be shared until the sharing is completed.

[0086] The online classroom screen projection method provided in this embodiment sends a screen projection request to the server through the student terminal, receives the request response message sent by the server and returned by the teacher terminal, and generates a screen sharing instruction if the request message is a preset response message, so that it can accurately determine which student terminal is interacting with the teacher terminal, and encourage other students to actively participate in the interaction. By creating a sub-process of the screen projection application, during the screen projection process, the screen sharing content can be pushed through the created sub-process, thereby reducing the memory occupancy rate of the main process of the screen projection application, allowing the student terminal and the teacher terminal to interact easily, and then the teacher and students who interact in the online classroom through the student terminal and the teacher terminal can interact online conveniently, thereby effectively ensuring the students' learning efficiency.

[0087] See also Fig.10, shows a flow chart of an online classroom screen projection method provided by another embodiment of the present application. This embodiment provides an online classroom screen projection method, which can be applied to a student terminal. The method includes:

[0088] Step S410: The student terminal responds to the screen sharing instruction and creates a subprocess of the screen projection application.

[0089] Optionally, the student terminal in this embodiment may include a first screen and a second screen, and the contents displayed on the first screen and the second screen may be different. The subprocess may include a first subprocess corresponding to the first screen and a second subprocess corresponding to the second screen. As a method, subprocesses corresponding to different screens of the student terminal may be obtained.

[0090] Step S421: calling the first sub-process to obtain the screen recording permission of the first screen.

[0091] As one way, the first child process may be called to obtain the screen recording permission of the first screen.

[0092] Step S422: Determine whether the screen recording permission for the first screen is obtained.

[0093] Step S423: calling the first sub-process to obtain the screen sharing content of the first screen.

[0094] Optionally, by calling the first sub-process to obtain the screen sharing content of the first screen, the memory usage of the main process of the screen projection application can be reduced, and since the main process and the first sub-process are independent of each other, the stability of the operation of the screen projection application can be improved.

[0095] Step S424: triggering the first sub-process to generate a screen projection stream including the screen sharing content of the first screen.

[0096] Step S425: triggering the first sub-process to send the screen projection stream to the teacher terminal and other student terminals.

[0097] Step S431: calling the second sub-process to obtain the screen recording permission of the second screen.

[0098] As a way, the second child process can be called to obtain the screen recording permission of the second screen.

[0099] Step S432: Determine whether the screen recording permission for the second screen is obtained.

[0100] Step S433: calling the second sub-process to obtain the screen sharing content of the second screen.

[0101] Optionally, by calling the second sub-process to obtain the screen sharing content of the second screen, the memory usage of the main process of the projection application can be reduced, and since the main process and the second sub-process are independent of each other, the stability of the projection application can be improved.

[0102] Step S434: triggering the second sub-process to generate a screen projection stream including the screen sharing content of the second screen.

[0103] Step S435: triggering the second sub-process to send the screen projection stream to the teacher terminal and other student terminals.

[0104] The online classroom screen projection method provided in this embodiment responds to the screen sharing instruction through the student terminal, creates a subprocess of the screen projection application, and then calls the first subprocess and the second subprocess to obtain the screen recording permission of the respective corresponding screens. If the screen recording permission is obtained, the first subprocess and the second subprocess are called to obtain the screen sharing content of the respective corresponding screens, and then the first subprocess and the second subprocess are triggered to generate screen projection streams including the screen sharing content obtained by each, and then the first subprocess and the second subprocess are triggered to send the screen projection streams generated by each to the teacher terminal and other student terminals. By creating different subprocesses to obtain the corresponding screen sharing content and encode and push the stream, the overall available memory of the screen projection application can be expanded, and each subprocess is independent of the main process, which can reduce the dependence between processes, thereby improving the stability of the operation of the screen projection application. By creating a sub-process of the screen projection application, the screen sharing content can be pushed through the created sub-process during the screen projection process, thereby reducing the memory occupancy of the main process of the screen projection application, allowing student terminals and teacher terminals to interact easily, and further allowing teachers and students who interact in online classes through student terminals and teacher terminals to interact conveniently online, thereby effectively ensuring students' learning efficiency.

[0105] See also Fig.11 , is a structural block diagram of a screen projection device provided in an embodiment of the present application. This embodiment provides a screen projection device 500, which can be run on a student terminal. The device 500 includes: a sub-process acquisition module 510, a permission acquisition module 520, a content acquisition module 530, a generation module 540 and a sending module 550:

[0106] The sub-process acquisition module 510 is used for the student terminal to respond to the screen sharing instruction and create a sub-process of the screen projection application, and the student terminal includes the screen projection application.

[0107] As a method, the device 500 may also include a screen sharing instruction generation module, which is used for the student terminal to send a screen projection request to the server, instructing the server to send the screen projection request to the teacher terminal; receiving a request response message sent by the server and returned by the teacher terminal; if the request response message is a preset response message, generating the screen sharing instruction. If the request response message is not a preset response message, the screen projection request can be canceled.

[0108] Optionally, the device 500 may further include a prompt message detection module, which is used to generate the screen sharing instruction if an interactive prompt message is received, and the interactive prompt message is sent when the teacher terminal calls the student terminal to interact with the online class.

[0109] The permission acquisition module 520 is used to call the sub-process to obtain the screen recording permission.

[0110] The content acquisition module 530 is used to call the sub-process to obtain the screen sharing content if the screen recording permission is obtained.

[0111] Optionally, if the screen recording permission is not obtained, the subprocess may be terminated.

[0112] The generation module 540 is used to trigger the sub-process to generate a screen projection stream including the screen sharing content.

[0113] As a method, the device 500 may also include a compression coding processing module, which is used to obtain compression coding parameters corresponding to the child process; and perform compression coding processing on the screen sharing content based on the compression coding parameters. Optionally, in this method, the generation module 540 can be used to trigger the child process to generate a screen casting stream including the screen sharing content after compression coding processing.

[0114] The sending module 550 is used to trigger the sub-process to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content.

[0115] Optionally, the student terminal in this embodiment may include a first screen and a second screen, and the sub-process may include a first sub-process corresponding to the first screen and a second sub-process corresponding to the second screen. In this way, the permission acquisition module 520 can be used to call the first sub-process and the second sub-process to obtain screen recording permissions for their respective corresponding screens; the content acquisition module 530 can be used to call the first sub-process and the second sub-process to obtain screen sharing content for their respective corresponding screens if the screen recording permission is obtained; the generation module 540 can be used to trigger the first sub-process and the second sub-process to respectively generate screen projection streams including the screen sharing content obtained by each; the sending module 550 can be used to trigger the first sub-process and the second sub-process to respectively send the screen projection streams generated by each to the teacher terminal and other student terminals.

[0116] Optionally, the device 500 may also include an authentication module, which is used to call the sub-process to obtain the projection identification, different projection identifications correspond to different authentication keys; call the sub-process to generate a projection authentication key, and compare the projection authentication key with the authentication key corresponding to the projection identification. If the projection authentication key matches the authentication key corresponding to the projection identification, the sub-process can be triggered to send the projection stream to the teacher terminal and other student terminals.

[0117] Optionally, the device 500 may also include a request processing module for responding to a screen sharing request sent by the other student terminals after triggering the subprocess to send the screen projection stream to the teacher terminal and other student terminals.

[0118] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0119] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.

[0120] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0121] See also Fig.12Based on the above-mentioned online classroom screen projection method and device, the embodiment of the present application also provides an electronic device 100 that can execute the above-mentioned online classroom screen projection method. The electronic device 100 includes a memory 102 and one or more (only one is shown in the figure) processors 104 coupled to each other, and the memory 102 and the processor 104 are connected by a communication line. The memory 102 stores a program that can execute the content of the above-mentioned embodiment, and the processor 104 can execute the program stored in the memory 102.

[0122] Among them, the processor 104 may include one or more processing cores. The processor 104 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 102, and calling data stored in the memory 102. Optionally, the processor 104 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 104 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 104, but may be implemented separately through a communication chip.

[0123] The memory 102 may include a random access memory (RAM) or a read-only memory (ROM). The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the aforementioned embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0124] Please refer to Fig.13It shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 600 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0125] The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method step of the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0126] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0127] In summary, the embodiments of the present application provide an online classroom screen projection method, device, electronic device, and storage medium. The student terminal responds to the screen sharing instruction, creates a sub-process of the screen projection application, and then calls the sub-process to obtain the screen recording permission. If the screen recording permission is obtained, the sub-process is called to obtain the screen sharing content, and then the sub-process is triggered to generate a screen projection stream including the screen sharing content, and then the sub-process is triggered to send the screen projection stream to the teacher terminal and other student terminals. Thus, the above method is used to create a sub-process of the screen projection application, so that during the screen projection process, the screen sharing content can be pushed through the created sub-process, thereby reducing the memory occupancy of the main process of the screen projection application, allowing the student terminal and the teacher terminal to interact easily, and then the teacher and students who interact in the online classroom through the student terminal and the teacher terminal can interact online conveniently, thereby effectively ensuring the students' learning efficiency.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements 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 the present application.

Claims

1. A method for projecting screen in an online classroom, characterized in that: Applied to a student terminal, the method includes: The student terminal responds to the screen sharing instruction and creates a subprocess of the screen projection application, the student terminal includes the screen projection application, and the method further includes: the student terminal sends a screen projection request to the server, instructing the server to send the screen projection request to the teacher terminal, the screen projection request is used to request the teacher terminal to interrupt the teacher terminal's speech and share the screen content; receiving the request response message sent by the server and returned by the teacher terminal; if the request response message is a preset response message, generating the screen sharing instruction, the preset response message is that the teacher terminal agrees to the student terminal to share the screen content; Calling the subprocess to obtain screen recording permission, the student terminal includes a first screen and a second screen, the first screen and the second screen display different contents, and the subprocess includes a first subprocess corresponding to the first screen and a second subprocess corresponding to the second screen; calling the subprocess to obtain screen recording permission includes: calling the first subprocess and the second subprocess to obtain screen recording permissions for their respective corresponding screens; If the screen recording permission is obtained, calling the sub-process to obtain the screen sharing content, the if the screen recording permission is obtained, calling the sub-process to obtain the screen sharing content includes: if the screen recording permission is obtained, calling the first sub-process and the second sub-process to obtain the screen sharing content of the respective corresponding screens; Triggering the sub-process to generate a screen casting stream including the screen sharing content, wherein triggering the sub-process to generate a screen casting stream including the screen sharing content comprises: triggering the first sub-process and the second sub-process to respectively generate screen casting streams including the screen sharing content acquired by each; Triggering the sub-process to send the screen projection stream to the teacher terminal and other student terminals so that the screen contents of the teacher terminal and other student terminals are switched to the screen sharing content, triggering the sub-process to send the screen projection stream to the teacher terminal and other student terminals, includes: triggering the first sub-process and the second sub-process to respectively send the screen projection streams generated by each to the teacher terminal and other student terminals.

2. The method according to claim 1, characterized in that The method further comprises: Obtain compression encoding parameters corresponding to the subprocess; Performing compression encoding processing on the screen sharing content based on the compression encoding parameters; The triggering the subprocess to generate a screen projection stream including the screen sharing content includes: The subprocess is triggered to generate a screen projection stream including the compressed and encoded screen sharing content.

3. The method according to claim 1, characterized in that: The method further comprises: If the request response message is not a preset response message, cancel sending the screen projection request.

4. The method according to claim 1, characterized in that The method further comprises: If an interactive prompt message is received, the student terminal generates the screen sharing instruction, and the interactive prompt message is sent when the teacher terminal calls the student terminal to interact with the online class.

5. The method according to claim 1, characterized in that The method further comprises: If the screen recording permission is not obtained, the subprocess is terminated.

6. The method according to claim 1, characterized in that The method further comprises: Call the subprocess to obtain the projection screen ID, where different projection screen IDs correspond to different authentication keys; Call the subprocess to generate a screen projection authentication key; The triggering of the subprocess to send the screen projection stream to the teacher terminal and other student terminals includes: If the screen projection authentication key matches the authentication key corresponding to the screen projection identifier, the sub-process is triggered to send the screen projection stream to the teacher terminal and other student terminals.

7. The method according to any one of claims 1 to 6, characterized in that: After triggering the subprocess to send the screen projection stream to the teacher terminal and other student terminals, the method further includes: If a screen sharing request sent by the other student terminal is received, a response process is performed on the screen sharing request.

8. A screen projection device, characterized in that: Running on a student terminal, the device comprises: A screen sharing instruction generation module is used for a student terminal to send a screen projection request to a server, instructing the server to send the screen projection request to a teacher terminal, wherein the screen projection request is used to request the teacher terminal to interrupt the teacher terminal's presentation and share the screen content; receiving a request response message sent by the server and returned by the teacher terminal; if the request response message is a preset response message, generating the screen sharing instruction, wherein the preset response message is the teacher terminal agreeing that the student terminal can share the screen content; A sub-process acquisition module is used for a student terminal to respond to a screen sharing instruction and create a sub-process of a screen projection application, wherein the student terminal includes the screen projection application; The permission acquisition module is used to call the subprocess to obtain the screen recording permission, the student terminal includes a first screen and a second screen, the first screen and the second screen display different contents, and the subprocess includes a first subprocess corresponding to the first screen and a second subprocess corresponding to the second screen; calling the subprocess to obtain the screen recording permission includes: calling the first subprocess and the second subprocess to obtain the screen recording permissions of the respective corresponding screens; The content acquisition module is used to call the sub-process to obtain screen sharing content if the screen recording permission is obtained, and the calling of the sub-process to obtain screen sharing content if the screen recording permission is obtained includes: if the screen recording permission is obtained, calling the first sub-process and the second sub-process to obtain the screen sharing content of the respective corresponding screens; A generation module, used for triggering the sub-process to generate a screen casting stream including the screen sharing content, wherein the triggering the sub-process to generate the screen casting stream including the screen sharing content comprises: triggering the first sub-process and the second sub-process to respectively generate screen casting streams including the screen sharing content acquired by each; A sending module is used to trigger the sub-process to send the screen projection stream to the teacher terminal and other student terminals, so that the screen content of the teacher terminal and other student terminals is switched to the screen sharing content. The triggering of the sub-process to send the screen projection stream to the teacher terminal and other student terminals includes: triggering the first sub-process and the second sub-process to respectively send the screen projection streams generated by each to the teacher terminal and other student terminals.

9. An electronic device, characterized in that: including memory; one or more processors; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 7 is executed.