Content masking method, device and medium
By creating covered areas and using gesture events to manage content display in online teaching, the problem of insufficient flexibility in the display of Word and PDF courseware in the existing technology is solved, the flexible hiding and display of teaching materials is realized, and the teaching effect and student concentration are improved. Spend.
Patent Information
- Application Number
- CN202010928559.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-09-07
AI Technical Summary
Existing online teaching methods have poor flexibility when displaying Word and PDF courseware and cannot effectively hide or display specific page content, affecting teaching effectiveness and students' concentration.
By creating a covered area and using View controls and MotionEvent gesture events, you can achieve dynamic zooming and scrolling of teaching materials, change the covering status in real time, display and hide content synchronously, and enhance the flexibility of teaching materials.
It improves the flexibility of online teaching and students' concentration, making the teaching process more compact and efficient, and is suitable for lesson preparation, synchronous classroom, homework release and courseware recording scenarios.
Smart Images

Figure CN112199925B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of online education technology, and in particular to a method, a device and a medium. Background Art
[0002] In the actual online teaching process, after sending a PDF / Word document material through the teacher terminal, the teacher may want to present the content of the same page in steps, so that students only focus on a certain part of the current display page and hide the rest. When the content of the next step needs to be displayed, the previous content is also hidden.
[0003] At present, the online teaching methods on the market can use the animation effects of PPT to present only a part of the content at a time. However, for courseware such as Word and PDF, they can only leave blank pages for writing and content splitting. However, this method has poor flexibility and makes the layout of the courseware not compact. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, one of the objectives of the present invention is to provide a content covering method, aiming to achieve covering of teaching materials and enhance the flexibility of online teaching.
[0005] One of the purposes of the present invention is achieved by the following technical solution:
[0006] A content covering method comprises the following steps:
[0007] Acquire teaching materials, add predefined View controls to the teaching materials to create a covering area of the teaching materials, and save the teaching materials and the covering area of the teaching materials;
[0008] Wherein, the teaching material is zoomed or the page is scrolled, and the covered area is zoomed or the page is scrolled synchronously with the teaching material.
[0009] Furthermore, in the lesson preparation scenario, the method further includes:
[0010] The covering state of the covering area is changed, wherein the covering state of the covering area includes two states: display and hide, and the change information of the covering state is saved in real time.
[0011] Furthermore, in a synchronous classroom scenario, the method further includes:
[0012] The teacher terminal obtains the teaching material and the covered area of the teaching material for display,
[0013] The teacher terminal changes the covering state of the covering area, wherein the covering state of the covering area includes two states: display and hide, and saves the change information of the covering state, and the change information of the covering state is sent to the server;
[0014] The teacher terminal sends the change information of the covering state to the student terminal, and the student terminal synchronously updates the covering state of the covering area.
[0015] Furthermore, in the job publishing scenario, it also includes:
[0016] The teacher terminal obtains the teaching materials and the covered area of the teaching materials and sends them to the student terminal;
[0017] The student terminal sequentially loads the covered area of the teaching material and the teaching material, wherein the covered state of the covered area of the teaching material is hidden;
[0018] After receiving the answer content uploaded by the student terminal, the teacher terminal changes the covering state of the covering area to display, and generates the covering state change information;
[0019] The teacher terminal sends the change information of the covering state to the student terminal;
[0020] The student terminal changes the covering state of the covering area to display according to the covering state change information.
[0021] Furthermore, in the courseware recording scenario, the method includes:
[0022] Acquire the teaching material and the covered area of the teaching material for display;
[0023] Recording the action of zooming or scrolling the covered area synchronously with the teaching material, and the action of changing the covering state of the covered area, to generate courseware;
[0024] The courseware is sent to the student terminal, and the student terminal plays the courseware.
[0025] Furthermore, a MotionEvent gesture event is pre-added to the covered area, and the changing of the covered state of the covered area includes:
[0026] To change the mask state of the mask area via gestures:
[0027] VelocityTracker is used to calculate the sliding speed of the gesture in real time. When the sliding speed of the gesture is greater than a preset speed or the sliding distance of the covered area exceeds half of the screen, the gesture is determined to be valid and the covering state of the covered area is changed.
[0028] Furthermore, the covered area is scaled synchronously with the teaching material, including:
[0029] Receiving a zoom gesture, calling a graphics rendering system, and performing a matrix transformation on the canvas of the covered area;
[0030] Rewrite the dispatchTouchEvent event to dynamically determine the covered area hit by the zoom gesture:
[0031] Traverse the covered areas, obtain the hit rectangle before scaling through the getHitRect of the View control, transform the hit rectangle into the real size after scaling through a matrix, and determine the actually hit covered area.
[0032] Furthermore, after the MotionEvent gesture event is pre-added to the covered area, the method further includes:
[0033] Create a gesture callback interface to call back all gesture events that are forwarded to the View control and not consumed;
[0034] The resolution data of the teacher terminal that creates the covered area and the calculation formula of the correction factor of the covered area are stored to calculate the screen adaptation height of the covered area on different devices:
[0035] The calculation formula of the correction factor of the covered area is as follows:
[0036] Correction factor = original equipment height × new equipment width ÷ original equipment width ÷ new equipment height,
[0037] Wherein, the original device is the teacher terminal that creates the covered area, and the new device is the device that displays the covered area;
[0038] The Y-axis offset and height of the covered area are multiplied by the correction factor to obtain the screen height of the covered area on the new device.
[0039] A second object of the present invention is to provide an electronic device for performing one of the objects of the invention, which includes a processor, a storage medium and a computer program, wherein the computer program is stored in the storage medium, and when the computer program is executed by the processor, the above-mentioned content masking method is implemented.
[0040] A third object of the present invention is to provide a computer-readable storage medium storing one of the objects of the invention, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned content masking method is implemented.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The present invention can flexibly display or hide specific content of teaching materials by creating a cover area to cover specific areas of teaching materials, thereby enhancing the flexibility of online teaching. At the same time, by creating a cover area, students can only focus on the content displayed in the teaching materials when reading the teaching materials, which can improve students' concentration in class. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a flow chart of the content covering method of the present invention;
[0044] Figure 2 It is a flowchart of editing the masked area in the lesson preparation scenario;
[0045] Figure 3 It is a flowchart of editing the mask area in the synchronization scenario;
[0046] Figure 4 It is a flowchart of editing the mask area in the job publishing scenario;
[0047] Figure 5 It is a flowchart of editing the masked area in the courseware recording scenario;
[0048] Figure 6 It is a structural block diagram of an electronic device according to embodiment 2 of the present invention. DETAILED DESCRIPTION
[0049] The present invention will be described in more detail below in conjunction with the accompanying drawings. It should be noted that the following description of the present invention with reference to the accompanying drawings is only illustrative and not restrictive. The various embodiments can be combined with each other to form other embodiments not shown in the following description.
[0050] Example 1
[0051] This embodiment provides a content masking method, which aims to flexibly create a masking area for teaching materials and enhance the flexibility of online teaching.
[0052] This embodiment is mainly used in actual online teaching tasks, where the teacher does not want students to see the entire content of the teaching materials. For example, when the teacher is talking about a specific topic, the teacher does not want students to check other topics to distract their attention; or the teaching materials contain answers, and students cannot check the answers during the explanation; or when the teacher records the courseware, the teacher can view all the teaching content himself, but for the same teaching material, the areas viewed by the teacher and the students are different. Therefore, it is necessary to cover the specific areas of the teaching materials to achieve content covering.
[0053] Figure 1 It is a flow chart of the method for covering the content of the present invention, such as Figure 1As shown, the content covering method specifically includes the following steps:
[0054] Acquire teaching materials, add predefined View controls to the teaching materials to create a covering area of the teaching materials, and save the teaching materials and the covering area of the teaching materials;
[0055] Wherein, the teaching material is zoomed or the page is scrolled, and the covered area is zoomed or the page is scrolled synchronously with the teaching material.
[0056] The content covering method of this embodiment is applied to the teacher terminal, and the teacher terminal completes the creation of the covering area of the teaching material through the predefined View control to achieve content covering. The purpose of controlling the visible area of the teaching material is achieved, so that when the teaching material is used to complete the online teaching task, the content of the teaching material can be flexibly displayed, so that students can only focus on the visible area, which helps to improve students' learning efficiency.
[0057] It should be noted that the masking state of the masked area is hidden by default (i.e., the teaching content under the masked area is invisible). When the masked area is scaled or scrolled with the teaching materials, its relative position with the teaching materials always remains unchanged. Moreover, when the masked area is enlarged, the masking state of the masked area cannot be changed.
[0058] In this embodiment, the masking area is implemented by using a custom View control on the Android side and a dynamic adding technology of a View control in a container, and the masked content can be restored to the UI from the masking area.
[0059] Preferably, in the lesson preparation scenario, the method further includes:
[0060] The covering state of the covering area is changed, wherein the covering state of the covering area includes two states: display and hide, and the change information of the covering state is saved in real time.
[0061] Figure 2 This is a flowchart of editing the masked area in the lesson preparation scenario, such as Figure 2 As shown, in actual applications, when teachers prepare lessons through teacher terminals and process teaching materials, there are two modes, namely, mask editing mode and normal editing mode. In mask editing mode, the mask area can be edited, that is, multiple mask areas can be set for teaching materials, and the set mask areas can be cleared. After the teacher terminal exits the mask editing mode, the mask information such as the created mask area or the cleared mask area will be automatically saved to the local database and uploaded to the server.
[0062] In order to facilitate the teacher's lesson preparation, the covered area is displayed transparently on the teacher's terminal, so that the teacher can see the teaching content under the covered area. After the teaching material is sent to the student terminal, the covered area displayed on the student terminal is displayed as a shadow, that is, the teaching content under the covered area is not visible. The shadow style can be set by the teacher's terminal.
[0063] After the teacher's terminal exits the mask editing mode, it enters the normal mode. At this time, the mask state of the mask area is hidden by default. The teacher can change the mask state of the mask area by sliding gestures. When the teacher's terminal receives a sliding gesture, the mask state of the mask area is changed, and the mask state change information is saved in real time to the local database and server.
[0064] The above-mentioned covered area does not support writing in the present embodiment, but may support writing in other embodiments.
[0065] In order to facilitate teachers to create masking areas for teaching materials through the teacher terminal, the following operation interface can be set: set button, click the button to enter the mask editing mode; in the mask editing mode, a mask dividing line is set by default to divide the teaching materials into two masking areas. Drag the mask dividing line to copy the mask dividing line and create more masking areas; set a clear button, click it to clear all masking areas.
[0066] Preferably, in a synchronous classroom scenario, the method further comprises:
[0067] The teacher terminal obtains the teaching material and the covered area of the teaching material for display,
[0068] The teacher terminal changes the covering state of the covering area, wherein the covering state of the covering area includes two states: display and hide, and saves the change information of the covering state, and the change information of the covering state is sent to the server;
[0069] The teacher terminal sends the change information of the covering state to the student terminal, and the student terminal synchronously updates the covering state of the covering area.
[0070] Figure 3 This is a flowchart of editing the mask area in the synchronization scenario, such as Figure 3As shown, in actual application, the teacher conducts real-time synchronous teaching through the teacher terminal. At this time, according to the teaching needs, the teaching materials produced in the lesson preparation mode and the covered area of the teaching materials can be obtained for display. In the synchronous teaching process, the teacher can change the covering state of the covered area by sliding gestures. At this time, after the teacher terminal receives the sliding gesture, the covering state of the relevant covering area is changed in real time. At this time, the covering information of the local database and the server will also be updated synchronously, that is, the change information of the covering state is updated. The teacher terminal sends the change information of the covering state (covering information) to the student terminal. After the student terminal receives the change information of the covering state (instruction), it synchronizes the covering state of the covering area by refreshing the page. After receiving the change information of the covering state, the student terminal will also update its local database. If the student terminal is offline or abnormally disconnected, it will pull the latest covering information of the server after entering the class next time.
[0071] It should be noted that the above-mentioned channel in this embodiment is a Socket channel, a communication channel established based on a Socket socket, and a long connection can be maintained through the node channel service. In other embodiments of the present invention, the above-mentioned channel can also be a LAN channel service and an IDC channel service. The LAN channel service is a communication channel established based on a LAN; the IDC channel service is a communication channel established based on a WAN; when the Socket channel service, the LAN channel service and the IDC channel service exist at the same time, the priority of the channel connection is from high to low, namely, the node channel service, the LAN channel service and the IDC channel service.
[0072] Preferably, in the job publishing scenario, it also includes:
[0073] The teacher terminal obtains the teaching materials and the covered area of the teaching materials and sends them to the student terminal;
[0074] The student terminal sequentially loads the covered area of the teaching material and the teaching material, wherein the covered state of the covered area of the teaching material is hidden;
[0075] After receiving the answer content uploaded by the student terminal, the teacher terminal changes the covering state of the covering area to display, and generates the covering state change information;
[0076] The teacher terminal sends the change information of the covering state to the student terminal;
[0077] The student terminal changes the covering state of the covering area to display according to the covering state change information.
[0078] Figure 4 This is a flowchart of editing the mask area in the job publishing scenario, such as Figure 4 As shown, in actual application, the above teaching materials are online homework. The teacher terminal has already created the relevant cover area before the online homework is released. When releasing the online homework, the teacher terminal obtains the teaching materials and the cover area of the teaching materials and sends them to the student terminal through the channel. In order to prevent students from seeing the content of the cover area in advance, the student terminal loads the teaching materials (homework) after the cover UI is loaded. At this time, the cover state of the cover area on the student terminal is hidden. As long as the teacher terminal receives the answer content uploaded by the student terminal, the teacher confirms that the answer content is passed through the teacher terminal (of course, it can also be not confirmed, only requiring students to upload the answer content), the teacher terminal changes the cover state of the cover area to display, and sends the change information of the cover state to the student terminal. After the student terminal synchronizes the cover state of the cover area to display, the content under the cover area is visible.
[0079] Preferably, in the courseware recording scenario, the method includes:
[0080] Acquire the teaching material and the covered area of the teaching material for display;
[0081] Recording the action of zooming or scrolling the covered area synchronously with the teaching material, and the action of changing the covering state of the covered area, to generate courseware;
[0082] The courseware is sent to the student terminal, and the student terminal plays the courseware.
[0083] Figure 5 This is a flowchart of editing the mask area in the courseware recording scenario, such as Figure 5 As shown, the content masking method can be applied in the courseware recording scenario. The masking area supports display in the recorded courseware. When recording the courseware, a masking area is created in advance for the teaching materials used for recording, and the masking state of the masking area is set. During the courseware recording process, the teaching content under the masking area displayed by the teacher's terminal is visible (semi-transparent display) and cannot be written. The masking area can be scaled or scrolled synchronously with the teaching materials, and the masking state of the masking area can be changed according to actual teaching needs. The teacher's terminal will record the teacher's actions on the masking area, save it in the courseware, and become a part of the courseware.
[0084] The teacher terminal sends the courseware to the student terminal through the channel, and the student terminal plays the courseware. At this time, the cover state of the cover area is hidden (usually displayed as a shadow, and the display effect can also be adjusted). In order to make students more focused when browsing the courseware and avoid the sense of isolation of the courseware, the cover state of the adjacent cover area is displayed, and it is displayed in an integrated form.
[0085] Preferably, in order to change the covering state of the covering area through a gesture and adjust the scale of the covering area, a MotionEvent gesture event is pre-added to the covering area, and the changing of the covering state of the covering area includes:
[0086] To change the mask state of the mask area via gestures:
[0087] VelocityTracker is used to calculate the sliding speed of the gesture in real time. When the sliding speed of the gesture is greater than a preset speed or the sliding distance of the covered area exceeds half of the screen, the gesture is determined to be valid and the covering state of the covered area is changed.
[0088] Under the premise of not affecting the interaction of the underlying teaching materials, the covered area can be moved out or in by sliding gestures, and the moving out and moving in animations (sliding animations) use the Android post mechanism for smooth transition. It should be noted that the above-mentioned preset speed can be set according to specific circumstances, and the specific value of the preset speed does not affect the execution of the content covering method of this embodiment, and is not specifically limited here.
[0089] Preferably, the covered area is scaled synchronously with the teaching material, including:
[0090] Receiving a zoom gesture, calling a graphics rendering system, and performing a matrix transformation on the canvas of the covered area;
[0091] Rewrite the dispatchTouchEvent event to dynamically determine the covered area hit by the zoom gesture:
[0092] Traverse the covered areas, obtain the hit rectangle before scaling through the getHitRect of the View control, transform the hit rectangle into the real size after scaling through a matrix, and determine the actually hit covered area.
[0093] In this embodiment, the translation and scaling of the masked area, i.e., the View control, is accomplished by calling the Android graphics drawing system canvas to perform a matrix transformation on the canvas. Compared with the scroll and scale of the traditional View control, the coordinates of the MotionEvent are not changed, thereby avoiding the problem of the View control jumping caused by the repeated transformation of the gesture coordinates during scaling.
[0094] The distribution of zoom gestures is completed by rewriting the dispatchTouchEvent method to dynamically determine the covered area hit by the gesture after enlargement, so that the gesture distribution can be carried out correctly. Specifically, all covered areas are traversed, and the hit rectangle before zooming is obtained through the getHitRect method of the View control, and then the hit rectangle is transformed into the actual size after zooming through the matrix, so as to determine the actual hit covered area.
[0095] Preferably, after pre-adding a MotionEvent gesture event to the covered area, the method further includes:
[0096] Create a gesture callback interface to call back all gesture events that are forwarded to the View control and not consumed;
[0097] The resolution data of the teacher terminal that creates the covered area and the calculation formula of the correction factor of the covered area are stored to calculate the screen adaptation height of the covered area on different devices:
[0098] The calculation formula of the correction factor of the covered area is as follows:
[0099] Correction factor = original equipment height × new equipment width ÷ original equipment width ÷ new equipment height,
[0100] Wherein, the original device is the teacher terminal that creates the covered area, and the new device is the device that displays the covered area;
[0101] The Y-axis offset and height of the covered area are multiplied by the correction factor to obtain the screen height of the covered area on the new device.
[0102] Because the cover area created in this embodiment can be based on any teaching material, the View control of the cover area is transparent to the View control of the teaching material, that is, the original business logic does not know the existence of the cover area, and there is no child-parent View relationship between the View control of the cover area and the View control of the teaching material, the traditional event distribution mechanism is not applicable to the present invention. Therefore, gesture event forwarding is used to handle event conflicts. The specific implementation principle is as follows:
[0103] Create a gesture callback interface, which is exposed to the outside. All gesture events that are forwarded to a specific View control and not consumed will be called back.
[0104] Rewrite the dispatchTouchEvent method. When it is determined that the gesture does not hit the covered area, it returns false and is handed over to the lower layer for processing; if it hits, it is distributed to the corresponding covered area. If the corresponding covered area is not consumed, the gesture event is called back to the outside.
[0105] It should be noted that during the callback gesture of the covered area, the ACTION_DOWN event will be consumed, resulting in the complete event sequence: ACTION_DOWN---ACTION_MOVE...ACTION_MOVE---ACTION_UP, which becomes ACTION_MOVE...ACTION_MOVE---ACTION_UP, so the missing events need to be supplemented. Based on the principle of gesture distribution events, the ACTION_DOWN event is supplemented in time and passed to the external callback, so that the gesture events of the covered area are completely transparent to the outside.
[0106] In order to ensure that the mask area created in this embodiment accurately covers the content of the teaching material at any size and any resolution, it is necessary to solve the screen adaptation problem. The resolution data for generating the mask area and the calculation formula of the correction factor are stored in the server and the local database as part of the mask information. The height of the device displaying the mask area is adapted by calculating the correction factor.
[0107] Example 2
[0108] Figure 6 A schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention, such as Figure 6 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 6 The electronic device includes a processor, a memory, an input system, and an output system; wherein the number of processors in the electronic device may be one or more, Figure 6 A processor is taken as an example; the processor, memory, input system and output system in the electronic device can be connected by bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0109] As a computer-readable storage medium, the memory may include a high-speed random access memory, a non-volatile memory, etc., and may be used to store operating systems, software programs, computer executable programs, and databases. It may also include a memory, which may be used to provide an operating environment for operating systems and computer programs. The processor is used to provide computing and control capabilities, and executes various functional applications and data processing of the electronic device by running computer executable programs, software programs, instructions, and modules stored in the memory, that is, to implement the content masking method of Example 1.
[0110] The output system of the electronic device can be a liquid crystal display or an electronic ink display, and the input system of the electronic device can be a touch layer covering the display, or a key, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.
[0111] The electronic device may also include a network interface, and the network interface of the electronic device is used to communicate with an external terminal through a network connection. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0112] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than those described in the figure, or combine certain components, or have a different arrangement of components.
[0113] Those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiment 1 can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the process of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0114] Example 3
[0115] Embodiment 3 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to implement a content masking method when executed by a computer processor, the method comprising:
[0116] Acquire teaching materials, add predefined View controls to the teaching materials to create a covering area of the teaching materials, and save the teaching materials and the covering area of the teaching materials;
[0117] Wherein, the teaching material is zoomed or the page is scrolled, and the covered area is zoomed or the page is scrolled synchronously with the teaching material.
[0118] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, and can also execute related operations in the content masking method provided by any embodiment of the present invention.
[0119] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for an electronic device (which can be a mobile phone, a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0120] It is worth noting that in the embodiments of the above-mentioned content masking method or system, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0121] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.
Claims
1. A content covering method, characterized in that: The following steps are involved: Acquire teaching materials, add predefined View controls to the teaching materials to create a covering area of the teaching materials, and save the teaching materials and the covering area of the teaching materials; Wherein, the teaching material is zoomed or the page is scrolled, and the covered area is zoomed or the page is scrolled synchronously with the teaching material; In the lesson preparation scenario, the method further includes: Changing the covering state of the covering area, wherein the covering state of the covering area includes two states: display and hide, and saving the change information of the covering state in real time; In a synchronous classroom scenario, the method further includes: The teacher terminal obtains the teaching material and the covered area of the teaching material for display, The teacher terminal changes the covering state of the covering area, wherein the covering state of the covering area includes two states: display and hide, and saves the change information of the covering state, and the change information of the covering state is sent to the server; The teacher terminal sends the change information of the covering state to the student terminal, and the student terminal synchronously updates the covering state of the covering area; In the job publishing scenario, it also includes: The teacher terminal obtains the teaching materials and the covered area of the teaching materials and sends them to the student terminal; The student terminal sequentially loads the covered area of the teaching material and the teaching material, wherein the covered state of the covered area of the teaching material is hidden; After receiving the answer content uploaded by the student terminal, the teacher terminal changes the covering state of the covering area to display, and generates the covering state change information; The teacher terminal sends the change information of the covering state to the student terminal; The student terminal changes the covering state of the covering area to display according to the covering state change information; In the courseware recording scenario, the method includes: Acquire the teaching material and the covered area of the teaching material for display; Recording the action of zooming or scrolling the covered area synchronously with the teaching material, and the action of changing the covering state of the covered area, to generate courseware; Sending the courseware to the student terminal, and playing the courseware by the student terminal; Pre-adding a MotionEvent gesture event to the covered area, and changing the covering state of the covered area includes: To change the mask state of the mask area via gestures: VelocityTracker is used to calculate the sliding speed of the gesture in real time. When the sliding speed of the gesture is greater than a preset speed or the sliding distance of the covered area exceeds half of the screen, the gesture is determined to be valid and the covering state of the covered area is changed.
2. The content covering method according to claim 1, characterized in that: The covered area is scaled synchronously with the teaching material, including: Receiving a zoom gesture, calling a graphics rendering system, and performing a matrix transformation on the canvas of the covered area; Rewrite the dispatchTouchEvent event to dynamically determine the covered area hit by the zoom gesture: Traverse the covered areas, obtain the hit rectangle before scaling through the getHitRect of the View control, transform the hit rectangle into the real size after scaling through a matrix, and determine the actually hit covered area.
3. The content covering method according to claim 1, characterized in that: After the MotionEvent gesture event is pre-added to the covered area, the method further includes: Create a gesture callback interface to call back all gesture events that are forwarded to the View control and not consumed; The resolution data of the teacher terminal that creates the covered area and the calculation formula of the correction factor of the covered area are stored to calculate the screen adaptation height of the covered area on different devices: The calculation formula of the correction factor of the covered area is as follows: Correction factor = original equipment height × new equipment width ÷ original equipment width ÷ new equipment height, Wherein, the original device is the teacher terminal that creates the covered area, and the new device is the device that displays the covered area; The Y-axis offset and height of the covered area are multiplied by the correction factor to obtain the screen height of the covered area on the new device.
4. An electronic device comprising a processor, a storage medium and a computer program, wherein the computer program is stored in the storage medium, wherein: When the computer program is executed by a processor, the content masking method according to any one of claims 1 to 3 is implemented.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the content masking method according to any one of claims 1 to 3 is implemented.
