Document Display Method, System, Device and Readable Medium for Online Education Platform

By introducing document engine and related components into the online education client, configuring and managing document display functions, the problems of low document display efficiency and high business coupling on mobile devices are solved, and stable and effective document display and function expansion are achieved.

CN113918860BActive Publication Date: 2025-05-27CHUANGSHENG SHILIAN DIGITAL TECH BEIJING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111217432.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2025-05-27
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

When existing online education platforms display documents on mobile devices, it is difficult to ensure efficient, convenient and reliable document data drawing, and high business coupling, which makes it difficult to expand document display functions.

Method used

By introducing a document engine into the online education client, using preset functional configuration rules to configure the document display function of business scenarios, selecting matching application program interfaces and callback methods, assembling functional modules, and rendering the document display interface through the script manager and document rendering core.

Benefits of technology

Reduces business coupling, improves the effectiveness and scalability of document display, and ensures stable and smooth document display on mobile devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918860B_ABST
    Figure CN113918860B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method, system, device, and readable medium for document display on an online education platform. Among them, the method includes: the software development kit sends an instruction for indicating the business scenario of the online education client to the document engine; the document engine configures the document display function corresponding to the business scenario according to the preset function configuration rules, selects the application programming interface and callback method that match the document display function, then assembles the application programming interface and callback method, then calls the function module corresponding to the document display function, and then sends the operation result of the function module to the script manager; the script manager generates a rendering instruction for document display according to the operation result of the function module and sends the rendering instruction to the document rendering core; the document rendering core renders the document display interface according to the rendering instruction. This solution can not only reduce business coupling but also ensure the effectiveness of document display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet technologies, and in particular, to a method, a system, an electronic device, and a computer-readable medium for document display on an online education platform. Background Art

[0002] In the current online education field, document display has a wide range of application scenarios, which can meet the essential links such as online education demonstration and interaction. Essentially, document display is a process of rendering document data. However, in the scenario where mobile devices are important viewing terminals, how to efficiently, conveniently, and reliably render document data has become an important guarantee for the stable and smooth viewing on the mobile platform.

[0003] Currently, for the rendering of document data by most clients, the method of using a page view control Webview in the native client to carry a JS rendering engine is often adopted. In this way, the document data can be efficiently, conveniently, and reliably rendered. However, the general client usually uses the form of pass-through for the use of document data, and the native client directly transfers the relevant document data to the JS rendering engine, and the validity of the document data is not guaranteed, so the validity of document display cannot be ensured. In addition, since the business layer of the online education platform needs to process a large amount of underlying logic, the business coupling is greatly improved, which is not only not conducive to the troubleshooting of software problems, but also makes the expansion of the document display function very difficult.

[0004] Therefore, how to reduce the business coupling and ensure the validity of document display has become an urgent technical problem to be solved. Summary of the Invention

[0005] The purpose of the present application is to provide a method, a system, an electronic device, and a computer-readable medium for document display on an online education platform, which are used to solve the technical problem of how to reduce the business coupling and ensure the validity of document display existing in the prior art.

[0006] According to the first aspect of the embodiments of the present application, a method for document display on an online education platform is provided, which is applied to an online education client of a terminal device. The method includes: the software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client; the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule to obtain the document display function corresponding to the business scenario of the online education client; the document engine selects an application programming interface and a callback method that match the document display function, and assembles the application programming interface and the callback method to obtain a function module corresponding to the document display function; the document engine calls the function module corresponding to the document display function and sends the operation result of the function module to the script manager of the online education client; the script manager generates a rendering instruction for document display according to the operation result of the function module and sends the rendering instruction for document display to the document rendering core of the online education client; the document rendering core renders the document display interface of the online education client according to the rendering instruction for document display to obtain a display result of the document display function corresponding to the business scenario.

[0007] According to the second aspect of the embodiments of the present application, a system for document display on an online education platform is provided, which is applied to an online education client of a terminal device. The system includes: the software development kit of the online education client, the document engine of the online education client, the script manager of the online education client, and the document rendering core of the online education client; the software development kit is used to send an instruction for indicating the business scenario of the online education client to the document engine; the document engine is used to configure the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule to obtain the document display function corresponding to the business scenario of the online education client, select an application programming interface and a callback method that match the document display function, then assemble the application programming interface and the callback method to obtain a function module corresponding to the document display function, then call the function module corresponding to the document display function, and then send the operation result of the function module to the script manager; the script manager is used to generate a rendering instruction for document display according to the operation result of the function module and send the rendering instruction for document display to the document rendering core; the document rendering core is used to render the document display interface of the online education client according to the rendering instruction for document display to obtain a display result of the document display function corresponding to the business scenario.

[0008] According to a third aspect of the embodiments of the present application, there is provided an electronic device, including: one or more processors; a storage device configured to store one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the document display method of the online education platform as described in the first aspect of the embodiments of the present application.

[0009] According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the document display method of the online education platform as described in the first aspect of the embodiments of the present application.

[0010] According to the document display solution of the online education platform provided by the embodiments of the present application, the software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client; the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule, so as to obtain the document display function corresponding to the business scenario of the online education client. The software development kit does not need to care about the document display function corresponding to the business scenario of the online education client, and the document engine manages the document display function corresponding to the business scenario of the online education client. Furthermore, the business layer of the online education client does not need to process a large amount of underlying logic, reducing the business coupling of the online education client. In addition, the document engine selects an application programming interface and a callback method that match the document display function, and assembles the application programming interface and the callback method to obtain a function module corresponding to the document display function; the document engine calls the function module corresponding to the document display function and sends the operation result of the function module to the script manager of the online education client; the script manager generates a rendering instruction for document display according to the operation result of the function module and sends the rendering instruction for document display to the document rendering core of the online education client; the document rendering core renders the document display interface of the online education client according to the rendering instruction for document display to obtain a display result of the document display function corresponding to the business scenario, and uses the operation result of the function module corresponding to the document display function to display the document, so that the validity of the document data can be guaranteed, and thus the validity of the document display can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Some specific embodiments of the embodiments of the present application will be described in detail below with reference to the accompanying drawings in an exemplary rather than restrictive manner. The same reference numerals in the drawings denote the same or similar components or parts. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the drawings:

[0012] Figure 1A is a flowchart of the steps of the document display method of the online education platform according to the first embodiment of the present application;

[0013] Figure 1B is a schematic diagram of the application scenario of the document display method provided according to the first embodiment of the present application;

[0014] Figure 2 is a schematic structural diagram of the document display system of the online education platform according to the second embodiment of the present application;

[0015] Figure 3 is a schematic structural diagram of the electronic device according to the third embodiment of the present application;

[0016] Figure 4 is the hardware structure of the electronic device according to the fourth embodiment of the present application. Detailed Embodiments

[0017] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art shall fall within the protection scope of the embodiments of the present application.

[0018] Referring to Figure 1A , a flowchart of the steps of the document display method of the online education platform according to the first embodiment of the present application is shown.

[0019] Specifically, the document display method of the online education platform provided in this embodiment includes the following steps:

[0020] In step S101, the software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client.

[0021] In this embodiment, the software development kit generally refers to a collection of development tools used by software engineers when building application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. Broadly speaking, the software development tool refers to a collection of relevant documents, examples, and tools for assisting in the development of a certain type of software. The document engine refers to a network system that, according to certain strategies, uses computer programs to search for document resources existing on the network, organizes and processes the document information, and displays the processed information to users, and is a network system dedicated to providing document retrieval services for users. The business scenarios include at least one of the following: document business, flow business, interruption business, and user business. It can be understood that the above description is only exemplary, and this embodiment does not make any limitations in this regard.

[0022] In step S102, the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule, so as to obtain the document display function corresponding to the business scenario of the online education client.

[0023] In this embodiment, the function configuration rule can be understood as a configuration rule generated according to the correspondence between the business scenario and the document display function. The document display function includes at least one of the following: pen, animation demonstration, annotation, page turning, and laser pointer. It can be understood that the above description is only exemplary, and this embodiment does not make any limitations in this regard.

[0024] In some alternative embodiments, before the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule, the method further includes: the software development kit configures the document display function corresponding to the business scenario, establishes the correspondence between the business scenario and the document display function, and then sends the correspondence to the document engine; the document engine pre-sets the function configuration rule according to the correspondence. Thus, the document engine can pre-set the function configuration rule according to the correspondence between the business scenario and the document display function sent by the software development kit, and thus can accurately obtain the document display function corresponding to the business scenario of the online education client. It can be understood that the above description is only exemplary, and this embodiment does not make any limitations in this regard.

[0025] In a specific example, the software development kit does not need to care about any document drawing operations, which are uniformly managed by the document engine and can be protocolized and customized according to the needs of different business logics. Specifically, according to the different requirements of business scenarios, the multi-scenario of the document engine can be realized by customizing the function protocol. It can be understood that the above description is only exemplary, and this embodiment does not make any limitations in this regard.

[0026] In some alternative embodiments, the method further includes: the software development kit sending an instruction to the document engine for indicating to erase a partial document display function corresponding to the business scenario of the online education client; the document engine erasing the partial document display function corresponding to the business scenario of the online education client according to the instruction for indicating to erase the partial document display function corresponding to the business scenario of the online education client. Thereby, through the instruction for indicating to erase the partial document display function corresponding to the business scenario of the online education client, the document engine can effectively erase the partial document display function corresponding to the business scenario of the online education client. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0027] In a specific example, the document engine can be responsible for the erasure operations of all the related functions such as the paintbrush, animation, annotation, etc. of the software development kit. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0028] In step S103, the document engine selects an application programming interface and a callback method that match the document display function, and assembles the application programming interface and the callback method to obtain a function module corresponding to the document display function.

[0029] In this embodiment, the document engine calls the corresponding application programming interface and callback method according to the application scenario of the online education platform, and can flexibly implement document display functions such as page turning, animation, paintbrush, laser pointer, etc. through the integrated unified external interface. In addition, through the preset function configuration rules, the application programming interface and the callback method can be flexibly assembled to meet the customization requirements in different scenarios. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0030] In step S104, the document engine calls the function module corresponding to the document display function, and sends the operation result of the function module to the script manager of the online education client.

[0031] In this embodiment, the document engine calls the function module corresponding to the document display function through the application programming interface, and sends the operation result of the function module to the script manager of the online education client. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0032] In step S105, the script manager generates a rendering instruction for document display based on the running result of the functional module, and sends the rendering instruction for document display to the document rendering core of the online education client.

[0033] In step S106, the document rendering core renders the document display interface of the online education client according to the rendering instruction for document display, so as to obtain the display result of the document display function corresponding to the business scenario.

[0034] In some optional embodiments, the method further includes: the script manager registers to listen for a web view control associated with the document display interface and a JS callback method, processes the listened events, and then sends the processed events to the software development kit in a protocol proxy manner. Thus, by specifically registering the script manager to listen for the web view control associated with the document display interface and the JS callback method, it is not necessary for the software development kit to directly listen for the web view control associated with the document display interface and the JS callback method, thereby achieving decoupling from the software development kit and avoiding the risk of resource unrelease and memory leakage caused by strong references. It can be understood that the above description is only exemplary, and this embodiment makes no limitation thereto.

[0035] In some optional embodiments, the method further includes: the script manager coordinates the interaction between the web view control associated with the document display interface and the JS callback method associated with the document display interface. Thus, by coordinating the interaction between the web view control associated with the document display interface and the JS callback method associated with the document display interface by the script manager, it is not necessary for the software development kit to coordinate the interaction between the web view control associated with the document display interface and the JS callback method associated with the document display interface, thereby achieving decoupling from the software development kit and avoiding the risk of resource unrelease and memory leakage caused by strong references. It can be understood that the above description is only exemplary, and this embodiment makes no limitation thereto.

[0036] In some optional embodiments, the method further includes: the document engine configures the mask of the document display interface according to the document display mode, so that different document display modes correspond to different masks. Thus, the display function of the dynamic mask can be realized. It can be understood that the above description is only exemplary, and this embodiment makes no limitation thereto.

[0037] In a specific example, the document display mode includes at least one of the following: scaling proportionally, stretching to fill, filling proportionally, centering proportionally. The document engine can configure the mask correspondingly according to different display modes such as scaling proportionally and stretching to fill of the current document, so as to complete the display function. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0038] In some alternative embodiments, the method further includes: the document engine determines, according to the relative relationship algorithm, the relative parameters of the document display position and size of the script manager and the document display position and size of the document display interface in the same display mode, and adjusts the mask corresponding to the same display mode according to the relative parameters, so as to perform corresponding document display on the document display interface. Thereby, display effects such as document scaling, deformation, and stretching that cannot be satisfied by the existing JS drawing engine are achieved. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0039] In some alternative embodiments, the method further includes: the document engine expands the document display function corresponding to the business scenario of the online education client according to the requirements of the business scenario of the online education client. Thereby, the document display function corresponding to the business scenario of the online education client can be expanded. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0040] In a specific example, according to the business scenario, corresponding configuration rules and custom protocols are added to the document engine for modular assembly. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation thereto.

[0041] In a specific example, such as Figure 1BAs shown, the software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client; the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule to obtain the document display function corresponding to the business scenario of the online education client; the document engine selects an application programming interface and a callback method that match the document display function, and assembles the application programming interface and the callback method to obtain a function module corresponding to the document display function; the document engine calls the function module corresponding to the document display function and sends the operation result of the function module to the script manager of the online education client; the script manager generates a rendering instruction for document display according to the operation result of the function module and sends the rendering instruction for document display to the document rendering core of the online education client; the document rendering core renders the document display interface of the online education client according to the rendering instruction for document display to obtain the display result of the document display function corresponding to the business scenario. Among them, the business scenario includes at least one of the following: document service, streaming service, interruption service, user service. It can be understood that the above description is only exemplary, and this embodiment does not make any limitations thereto.

[0042] According to the document display method of the online education platform provided in this embodiment, the software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client; the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to the preset function configuration rules, so as to obtain the document display function corresponding to the business scenario of the online education client. The software development kit does not need to care about the document display function corresponding to the business scenario of the online education client. The document engine manages the document display function corresponding to the business scenario of the online education client. Furthermore, the business layer of the online education client does not need to process a large amount of underlying logic, reducing the business coupling of the online education client. In addition, the document engine selects application program interfaces and callback methods that match the document display function, and assembles the application program interfaces and callback methods to obtain a function module corresponding to the document display function; the document engine calls the function module corresponding to the document display function and sends the operation result of the function module to the script manager of the online education client; the script manager generates a rendering instruction for document display according to the operation result of the function module and sends the rendering instruction for document display to the document rendering core of the online education client; the document rendering core renders the document display interface of the online education client according to the rendering instruction for document display to obtain the display result of the document display function corresponding to the business scenario, and uses the operation result of the function module corresponding to the document display function to display the document, so that the validity of the document data can be guaranteed, and thus the validity of the document display can be ensured.

[0043] The document display method of the online education platform provided in this embodiment can be executed by any suitable device with data processing capabilities, including but not limited to: cameras, terminals, mobile terminals, PCs, servers, in-vehicle devices, entertainment devices, advertising devices, personal digital assistants (PDAs), tablet computers, laptop computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices, etc.

[0044] Referring to Figure 2 , a schematic structural diagram of the document display system of the online education platform according to the second embodiment of the present application is shown.

[0045] The document display system of the online education platform provided in this embodiment is applied to the online education client of the terminal device. The system includes: the software development kit 201 of the online education client, the document engine 202 of the online education client, the script manager 203 of the online education client, and the document rendering core 204 of the online education client. The software development kit 201 is used to send an instruction indicating the business scenario of the online education client to the document engine 202. The document engine 202 is used to configure the document display function corresponding to the business scenario of the online education client indicated by the instruction according to the preset function configuration rules, so as to obtain the document display function corresponding to the business scenario of the online education client, select the application programming interface and callback method that match the document display function, then assemble the application programming interface and callback method to obtain a function module corresponding to the document display function, then call the function module corresponding to the document display function, and then send the operation result of the function module to the script manager 203. The script manager 203 is used to generate a rendering instruction for document display according to the operation result of the function module, and send the rendering instruction for document display to the document rendering core 204. The document rendering core 204 is used to render the document display interface of the online education client according to the rendering instruction for document display, so as to obtain the display result of the document display function corresponding to the business scenario.

[0046] Optionally, the software development kit 201 is further used to configure the document display function corresponding to the business scenario before configuring the document display function corresponding to the business scenario of the online education client indicated by the instruction according to the preset function configuration rules, establish the correspondence between the business scenario and the document display function, and then send the correspondence to the document engine. The document engine 202 is further used to preset the function configuration rules according to the correspondence.

[0047] Optionally, the script manager 203 is further used to register and monitor the web view control and JS callback method associated with the document display interface, process the monitored events, and then send the processed events to the software development kit in the form of protocol proxy.

[0048] Optionally, the document engine 202 is further used to configure the mask of the document display interface according to the document display mode, so that different document display modes correspond to different masks.

[0049] Optionally, the document engine 202 is further configured to determine, according to the relative relationship algorithm, relative parameters of the document display position and size of the script manager and the document display position and size of the document display interface in the same display mode, and adjust the mask corresponding to the same display mode according to the relative parameters, so as to perform corresponding document display on the document display interface.

[0050] Optionally, the document display mode includes at least one of the following: equal ratio scaling, stretching to fill, equal ratio filling, and equal ratio centering.

[0051] Optionally, the software development kit 201 is further configured to send an instruction to the document engine for instructing to erase a part of the document display function corresponding to the business scenario of the online education client; the document engine 202 is further configured to erase a part of the document display function corresponding to the business scenario of the online education client according to the instruction for instructing to erase a part of the document display function corresponding to the business scenario of the online education client.

[0052] Optionally, the document engine 202 is further configured to expand the document display function corresponding to the business scenario of the online education client according to the requirements of the business scenario of the online education client.

[0053] Optionally, the script manager 203 is further configured to coordinate the interaction between the web view control associated with the document display interface and the JS callback method associated with the document display interface.

[0054] Optionally, the business scenario includes at least one of the following: document business, flow business, interruption business, and user business.

[0055] Optionally, the document display function includes at least one of the following: brush, animation demonstration, annotation, page turning, and laser pointer.

[0056] The document display system of the online education platform provided in this embodiment is used to implement the corresponding document display method of the online education platform in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.

[0057] Figure 3 It is a schematic structural diagram of an electronic device in Embodiment 3 of this application; the electronic device may include:

[0058] One or more processors 301;

[0059] A computer-readable medium 302, which can be configured to store one or more programs,

[0060] When the one or more programs are executed by the one or more processors, the one or more processors implement the document display method of the online education platform as described in the first embodiment above.

[0061] Figure 4 This is the hardware structure of the electronic device in the fourth embodiment of this application; as Figure 4 shown, the hardware structure of the electronic device may include: a processor 401, a communication interface 402, a computer-readable medium 403, and a communication bus 404;

[0062] Among them, the processor 401, the communication interface 402, and the computer-readable medium 403 complete mutual communication through the communication bus 404;

[0063] Optionally, the communication interface 402 may be an interface of a communication module, such as an interface of a GSM module;

[0064] Among them, the processor 401 may be specifically configured as follows: the software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client; the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule to obtain the document display function corresponding to the business scenario of the online education client; the document engine selects an application program interface and a callback method that match the document display function, and assembles the application program interface and the callback method to obtain a function module corresponding to the document display function; the document engine calls the function module corresponding to the document display function and sends the operation result of the function module to the script manager of the online education client; the script manager generates a rendering instruction for document display according to the operation result of the function module and sends the rendering instruction for document display to the document rendering core of the online education client; the document rendering core renders the document display interface of the online education client according to the rendering instruction for document display to obtain a display result of the document display function corresponding to the business scenario.

[0065] The processor 401 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0066] The computer-readable medium 403 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electric Erasable Programmable Read-Only Memory (EEPROM), etc.

[0067] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program including program code configured to execute the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through a communication portion and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above-described functions defined in the methods of the present application are performed. It should be noted that the computer-readable medium described in the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable medium can, for example, but is not limited to, be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the computer-readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program configured to be used by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination of the above.

[0068] Computer program code configured to perform the operations of the present application may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0069] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions configured to implement a specified logical function. There are specific sequential relationships in the above specific embodiments, but these sequential relationships are only exemplary. In specific implementations, these steps may be fewer, more, or the execution order may be adjusted. That is, in some alternative implementations, the functions marked in the blocks may also occur in an order different from that marked in the accompanying drawings. For example, two consecutively represented blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system configured to perform the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0070] The modules described in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor. For example, it may be described as: a processor includes a software development kit, a document engine, a script manager, and a document rendering core. Among them, these names do not constitute a limitation on the module itself in some cases. For example, the software development kit may also be described as "a module that sends instructions for indicating the business scenarios of the online education client to the document engine".

[0071] As another aspect, the present application also provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, it implements the document display method of the online education platform described in the first embodiment above.

[0072] As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the device described in the above embodiment; or it may exist alone without being assembled into the device. The above computer-readable medium carries one or more programs. When the one or more programs are executed by the system, the system is caused to: The software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client; The document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule to obtain the document display function corresponding to the business scenario of the online education client; The document engine selects an application programming interface and a callback method that match the document display function, and assembles the application programming interface and the callback method to obtain a function module corresponding to the document display function; The document engine calls the function module corresponding to the document display function and sends the operation result of the function module to the script manager of the online education client; The script manager generates a rendering instruction for document display according to the operation result of the function module and sends the rendering instruction for document display to the document rendering core of the online education client; The document rendering core renders the document display interface of the online education client according to the rendering instruction for document display to obtain the display result of the document display function corresponding to the business scenario.

[0073] In the various embodiments of the present disclosure, the expressions "first", "second", "the first" or "the second" may modify various components regardless of order and / or importance, but these expressions do not limit the corresponding components. The above expressions are only configured for the purpose of distinguishing an element from other elements. For example, a first user device and a second user device represent different user devices, although both are user devices. For example, without departing from the scope of the present disclosure, the first element may be referred to as the second element, and similarly, the second element may be referred to as the first element.

[0074] When an element (e.g., a first element) is referred to as being "(operatively or communicatively) coupled" or "(operatively or communicatively) coupled to" another element (e.g., a second element) or "connected to" another element (e.g., a second element), it should be understood that the one element is directly connected to the other element or the one element is indirectly connected to the other element via yet another element (e.g., a third element). Conversely, it can be understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (a second element), no element (e.g., a third element) is inserted therebetween.

[0075] The above description is only a preferred embodiment of the present application and an illustration of the technical principles applied. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present application.

Claims

1. A method for document display on an online education platform, characterized in that, applied to an online education client of a terminal device, the method includes: The software development kit of the online education client sends an instruction for indicating the business scenario of the online education client to the document engine of the online education client; The document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule, so as to obtain the document display function corresponding to the business scenario of the online education client; The document engine selects an application programming interface and a callback method that match the document display function, and assembles the application programming interface and the callback method to obtain a function module corresponding to the document display function; The document engine calls the function module corresponding to the document display function and sends the operation result of the function module to the script manager of the online education client; The script manager generates a rendering instruction for document display according to the operation result of the function module, and sends the rendering instruction for document display to the document rendering core of the online education client; The document rendering core renders the document display interface of the online education client according to the rendering instruction for document display, so as to obtain a display result of the document display function corresponding to the business scenario.

2. The method for document display on an online education platform according to claim 1, characterized in that, Before the document engine configures the document display function corresponding to the business scenario of the online education client indicated by the instruction according to a preset function configuration rule, the method further includes: The software development kit configures the document display function corresponding to the business scenario, establishes the correspondence between the business scenario and the document display function, and then sends the correspondence to the document engine; the document engine pre-sets the function configuration rule according to the correspondence.

3. The method for document display on an online education platform according to claim 1, characterized in that, The method further includes: The script manager registers to listen for a web view control and a JS callback method associated with the document display interface, processes the listened events, and then sends the processed events to the software development kit in a protocol proxy manner.

4. The method for document display on an online education platform according to claim 1, characterized in that, The method further includes: The document engine configures the mask of the document display interface according to the document display mode, so that different document display modes correspond to different masks.

5. The method for document display on an online education platform according to claim 4, characterized in that, The method further includes: The document engine determines the relative parameters of the document display position and size of the script manager and the document display position and size of the document display interface in the same display mode according to the relative relationship algorithm, and adjusts the mask corresponding to the same display mode according to the relative parameters, so as to perform corresponding document display on the document display interface.

6. The method for displaying a document on an online education platform according to claim 4, wherein, the document display mode includes at least one of the following: equal ratio scaling, stretching and filling, equal ratio filling, equal ratio centering.

7. The method for displaying a document on an online education platform according to any one of claims 1-6, wherein, the document display function includes at least one of the following: brush, animation demonstration, annotation, page turning, laser pointer.

8. A document display system for an online education platform, wherein, it is applied to an online education client of a terminal device, and the system includes: the software development kit of the online education client, the document engine of the online education client, the script manager of the online education client, and the document rendering core of the online education client; the software development kit is used to send an instruction for indicating the business scenario of the online education client to the document engine; the document engine is used to configure the document display function corresponding to the business scenario of the online education client indicated by the instruction according to the preset function configuration rule, so as to obtain the document display function corresponding to the business scenario of the online education client, select the application program interface and callback method matching the document display function, then assemble the application program interface and callback method to obtain the function module corresponding to the document display function, then call the function module corresponding to the document display function, and then send the operation result of the function module to the script manager; the script manager is used to generate a rendering instruction for document display according to the operation result of the function module, and send the rendering instruction for document display to the document rendering core; the document rendering core is used to render the document display interface of the online education client according to the rendering instruction for document display, so as to obtain the display result of the document display function corresponding to the business scenario.

9. An electronic device, wherein, the device includes: one or more processors; a computer-readable medium configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying a document on an online education platform according to any one of claims 1-7.

10. A computer-readable medium, wherein, a computer program is stored thereon, and when the program is executed by a processor, it implements the method for displaying a document on an online education platform according to any one of claims 1-7.

Citation Information

Patent Citations

  • Information search method and device based on cloud technology, equipment and storage medium

    CN111339421A

  • Database access method, system and device, storage medium and processor

    CN112988879A