CN117648290A - Method, device, equipment and storage medium for small program recording screen - Google Patents

Method, device, equipment and storage medium for small program recording screen Download PDF

Info

Publication number
CN117648290A
CN117648290A CN202211075013.6A CN202211075013A CN117648290A CN 117648290 A CN117648290 A CN 117648290A CN 202211075013 A CN202211075013 A CN 202211075013A CN 117648290 A CN117648290 A CN 117648290A
Authority
CN
China
Prior art keywords
page
applet
screen recording
meta information
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211075013.6A
Other languages
Chinese (zh)
Inventor
张勇
李可先
覃志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Tencent Technology Co Ltd
Original Assignee
Guangzhou Tencent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tencent Technology Co Ltd filed Critical Guangzhou Tencent Technology Co Ltd
Priority to CN202211075013.6A priority Critical patent/CN117648290A/en
Publication of CN117648290A publication Critical patent/CN117648290A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides an applet screen recording method, device, equipment and storage medium, wherein the method comprises the following steps: the terminal equipment responds to the triggering operation of the screen recording starting option, acquires meta information of at least one page displayed by the applet in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time, and sends the meta information of the at least one page to an applet server corresponding to the applet. The operation platform acquires a screen recording file from the applet server, analyzes the screen recording file, and obtains the version number of the applet and meta information of the at least one page; acquiring a source file of the applet based on the version number of the applet; and rendering a reconstructed page of the obtained page based on the source file of the applet and the meta information of the page for each page of the at least one page. The screen recording file generated by the method comprises the path of the page, page data and display time, and the data volume of the data is small, so that the data is convenient to transmit.

Description

Method, device, equipment and storage medium for small program recording screen
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for recording an applet.
Background
The screen recording is to record the interface currently displayed by the terminal equipment, and is widely applied in a plurality of fields. For example, to quickly locate a problem, the user may re-operate the process once along the path that had previously failed and screen the re-operation to form a screen file, which is then sent to the developer. The developer can quickly locate and repair the problem by playing the screen recording file.
The existing screen recording method is that screen recording software of a terminal equipment system is directly used for screen recording, and a canvas (canvas) screen capturing mode is used for forming a screen recording file. However, the data size of the screen recording file generated by the current screen recording mode is large, and transmission failure may occur under a weak network.
Disclosure of Invention
The embodiment of the application provides an applet screen recording method, device, equipment and storage medium, which are used for reducing the data volume of an applet screen recording file and improving the transmission reliability of the applet screen recording file.
In a first aspect, an embodiment of the present application provides an applet screen recording method, which is applied to an operation platform, and includes:
responding to triggering operation on the name of the screen recording file, and acquiring the screen recording file from the small program server;
Analyzing the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process, wherein the meta information comprises a path of the page, page data and display time;
acquiring a source file of the applet based on the version number of the applet;
and rendering a reconstructed page of the page based on the source file of the applet and the meta information of the page for each page of the at least one page.
In a second aspect, an embodiment of the present application provides an applet screen recording method, applied to a terminal device running an applet, including:
responding to the triggering operation of starting the screen recording option, and acquiring meta information of at least one page displayed by the applet in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time;
and sending the meta information of the at least one page to an applet server corresponding to the applet.
In a third aspect, an embodiment of the present application provides an applet screen recording method, applied to an applet server, including:
receiving meta information of at least one page displayed by an applet transmitted by terminal equipment in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time;
Storing meta information of the at least one page in one screen recording file in a screen recording file list;
and sending the screen recording file to an operation platform.
In a fourth aspect, an embodiment of the present application provides an applet screen recording device, which is applied to an operation platform, and includes:
a first acquisition unit for acquiring a screen file from a applet server in response to a triggering operation on the screen file name;
the analysis unit is used for analyzing the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process, wherein the meta information comprises a path of the page, page data and display time;
a second obtaining unit, configured to obtain a source file of the applet based on a version number of the applet;
and the rendering unit is used for rendering a reconstructed page of the page based on the source file of the applet and the meta information of the page aiming at each page of the at least one page.
In a fifth aspect, an embodiment of the present application provides an applet screen recording apparatus, which is applied to a terminal device running an applet, including:
The screen recording unit is used for responding to the triggering operation of the screen recording starting option and acquiring meta information of at least one page displayed by the applet in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time;
and the receiving and transmitting unit is used for transmitting the meta information of the at least one page to the applet server corresponding to the applet.
In a sixth aspect, an embodiment of the present application provides an applet screen recording device, applied to an applet server, including:
the receiving unit is used for receiving meta information of at least one page displayed in the current screen recording process of the applet sent by the terminal equipment, wherein the meta information comprises a path of the page, page data and display time;
the storage unit is used for storing the meta information of the at least one page in one screen recording file in the screen recording file list;
and the sending unit is used for sending the screen recording file to an operation platform.
In a seventh aspect, embodiments of the present application provide an electronic device including a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory to execute the method in the first aspect or the second aspect or the third aspect.
In an eighth aspect, embodiments of the present application provide a chip configured to implement the method in any one of the first aspect or the second aspect or each implementation manner thereof. Specifically, the chip includes: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method as in the first or second or third aspect or implementations thereof described above.
In a ninth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, where the computer program causes a computer to perform the method in any one of the first aspect, the second aspect, or the third aspect, or each implementation manner thereof.
In a tenth aspect, embodiments of the present application provide a computer program product comprising computer program instructions for causing a computer to perform the method of any one of the above-described first or second or third aspects or implementations thereof.
In an eleventh aspect, embodiments of the present application provide a computer program which, when run on a computer, causes the computer to perform the method of any one of the above-described first aspect or second aspect or third aspect or implementations thereof.
In summary, a terminal device running an applet responds to a triggering operation of a screen recording starting option, acquires meta information of at least one page displayed by the applet in a current screen recording process, wherein the meta information comprises a path of the page, page data and display time, and sends the meta information of the at least one page to an applet server corresponding to the applet. The applet server receives the meta information of at least one page displayed in the current screen recording process of the applet transmitted by the terminal equipment, and stores the meta information of at least one page in one screen recording file in the screen recording file list. The operation platform responds to the triggering operation on the name of the screen recording file, and the screen recording file is acquired from the small program server; analyzing the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process; acquiring a source file of the applet based on the version number of the applet; and rendering a reconstructed page of the page based on the source file of the applet and the meta information of the page for each page of the at least one page. In the embodiment of the application, the screen recording file generated by the applet end comprises the path of the page, page data and display time, and the data volume of the data is smaller, so that the transmission is convenient. In addition, the method of the embodiment of the application has smaller dependence on the user and has no influence on the performance of the applet, thereby improving the screen recording experience of the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
FIG. 2 is a flow chart of a positioning method according to an embodiment of the present disclosure;
fig. 3A to 3D are schematic views illustrating a process of starting a screen recording function;
FIG. 4 is a schematic diagram of stopping a screen recording;
FIG. 5 is a schematic diagram of a display interface of an operation platform;
FIG. 6 is a schematic rendering of a screen page;
FIG. 7 is a flowchart of an applet recording method according to an embodiment of the present application;
FIG. 8 is a schematic block diagram of an applet screen apparatus provided in one embodiment of the present application;
FIG. 9 is a schematic block diagram of an applet screen apparatus provided in one embodiment of the present application;
FIG. 10 is a schematic block diagram of an applet screen apparatus provided in one embodiment of the present application;
fig. 11 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be understood that in embodiments of the present invention, "B corresponding to a" means that B is associated with a. In one implementation, B may be determined from a. It should also be understood that determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information.
In the description of the present application, unless otherwise indicated, "a plurality" means two or more than two.
In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", and the like are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
The small program screen recording method provided by the embodiment of the application can meet the recording requirement of products under the ecological condition of small programs, and the generated screen recording file is small in data size and convenient to transmit, so that the transmission reliability of the small program screen recording file is improved.
In order to facilitate understanding of the embodiments of the present application, the following brief description will be first given to related concepts related to the embodiments of the present application:
small procedure: the applet is an application program which is developed based on a programming language and runs depending on a host program, is an application form between a traditional webpage and a traditional application program, and can be run in the host program by a user without downloading and installing the applet.
Host program: in a computer environment, the software environment in which software depends to survive is called a host environment, and the environment is called a host. The host program in the embodiment of the present application is an application program for providing an operating environment for the applet. The host application may be an Android application or an apple operating system (iPhone Operation System, iOS).
The host program may be an instant messaging application installed in a personal device, a payment type application, a news reading type application, or a social application, among others; or a face-brushing application, check-in application, etc. installed in the shared device.
The foregoing describes related concepts related to embodiments of the present application, and the following describes a system architecture related to embodiments of the present application.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application, including a terminal device 110, an operation platform 120, and an applet server 130.
The host program 101 is installed and operated on the terminal device 110, and the host program 101 has an applet 102 operation function for providing an operation environment for the applet, that is, at least one applet 102 is operated on the host program 101. When using applet 102, the user first needs to open host program 101 and run applet 102 on host program 101. For example, when the applet 102 is recorded, the applet 102 is opened on the host program 101, and then the recording function on the applet 102 is opened, so as to obtain meta information of at least one page displayed by the applet in the current recording process, where the meta information includes a path of the page, page data and display time.
The terminal device 110 is communicatively connected to the applet server 130 by wire or wirelessly.
The applet server 130 may be understood as a background server of the applet for providing services to the applet. For example, when an applet is running in the host program, the applet is in data communication with the corresponding applet server 130 to implement the corresponding applet function. In this embodiment of the present application, the applet server 130 is further configured to store the screen recording data of the applet, that is, the terminal device 110 sends the meta information of at least one page displayed in the current screen recording process of the applet to the applet server 130, and the applet server 130 stores the meta information of at least one page of the applet in one screen recording file in the list of screen recording files.
The applet server 130 is communicatively coupled to the operator platform 120 by wire or wirelessly.
The operation platform 120 may obtain the applet's recording file from the applet server 130, process the recording file, and replay the applet's recording process. For example, the screen recording file includes meta information of at least one page displayed by the applet in the current screen recording process, and for each page, the operation platform reconstructs a reconstructed page of the page based on the meta information of the page to display the reconstructed page.
The embodiments of the present application are not limited to the specific form of the operation platform 120.
In some embodiments, the operations platform 120 includes one or more servers.
In some embodiments, the operations platform 120 is a device having data processing and display capabilities.
In some embodiments, the operations platform 120 includes a server and an interaction device through which a background person may operate with the server. Alternatively, the interaction means may be a terminal device having a display function.
In some embodiments, the operations platform 120 of embodiments of the present application includes an operations system, which may be a web site that may be understood as an application with a C/S architecture of a web server and a client browser. The background personnel can send a request for playing the applet screen recording file to the web server through the client browser, the client browser sends the request to the web server, and the web server processes the recorded data reported by the applet. Alternatively, the web server may be an applet server.
In some embodiments, terminal device 110 includes, but is not limited to: PC (Personal Computer ), PDA (tablet computer), mobile phone, wearable smart device, smart voice interaction device, smart home appliance, vehicle-mounted terminal, etc. The terminal device 110 is configured with a display device, which may also be a display, a display screen, a touch screen, etc., a touch screen, a touch panel, etc., and the display device may be used to display pages of an applet, etc.
In some embodiments, the server of embodiments of the present application may be one or more. If there are at least two servers for providing different services and/or at least two servers for providing the same service, such as providing the same service in a load balancing manner, the embodiments of the present application are not limited. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. Servers may also become nodes of the blockchain.
It should be noted that, the application scenario of the embodiment of the present application includes, but is not limited to, the scenario shown in fig. 1.
The existing applet screen recording method is a mode of directly using a system screen recording, the mode has no invasiveness to service codes, and the applet-based applet can be operated on an iOS and Android system. However, the behavior difference between the iOS and the Android screen recording is relatively large, so that the user is generally required to be informed of the operation steps in a document mode, the dependence on the user is relatively deep, the formed data is large, and the transmission is inconvenient.
Another applet recording method is to record content within a canvas (canvas) using Media Recorder (Media Recorder) capabilities provided by the applet platform. This approach requires the integration of the business code, all pages require a canvas to be configured, the nodes presented on the applet document object model (Document Object Model, DOM for short) also present a copy to the canvas, then the Media Recorder records the content on the canvas frame by frame, and a video file is assembled and finally uploaded. This approach has a relatively large impact on applet performance because the extra canvas does not help business logic, but rather stresses applet rendering pages. Meanwhile, the video file generated by the scheme is larger, and the video playing of one minute can generate about 120M according to one frame of picture 100K, and the time required for locating a user problem is usually longer than 1 minute, so that the data transmission pressure ratio is larger.
In order to solve the above technical problems, in the embodiment of the present application, when a applet is recorded, meta information of at least one page displayed in the process of recording the applet is obtained, where the meta information includes a path of the page, page data and display time, and the meta information of the at least one page is sent to an applet server of the applet. The operation platform obtains meta information of the at least one page from the applet server, and performs rendering reconstruction on each page in the at least one page to obtain a reconstructed page of each page for display. Therefore, the screen recording file in the embodiment of the application comprises the path of the page, page data and display time, and the data volume of the data is small, so that the data is convenient to transmit. In addition, the method of the embodiment of the application has smaller dependence on the user and has no influence on the performance of the applet, thereby improving the screen recording experience of the user.
The following describes the technical solutions of the embodiments of the present application in detail through some embodiments. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 2 is a flow chart of a positioning method according to an embodiment of the present application. As shown in fig. 2, the method of the embodiment of the present application includes:
S201, the terminal equipment responds to triggering operation of a screen recording start option, and acquires meta information of at least one page displayed by the applet in the current screen recording process.
The meta information comprises information such as a path of the page, page data, display time and the like.
An exemplary applet launching process may be a host program that launches an applet in the terminal device, where the applet is launched. Assuming that the host program of the applet is an application program a, as shown in fig. 3A, an icon of the application program a in the terminal device is triggered, the application program a is started, and the interface shown in fig. 3B is displayed. The interface shown in fig. 3B displays an applet option, and the interface shown in fig. 3C is displayed by triggering the applet option. The interface shown in fig. 3C includes an applet list including the names of the applets running under the application a. The name of the applet that triggered the object in the applet list, the applet, e.g. applet 4, is started and the interface of applet 4 is displayed as shown in fig. 3D. Illustratively, the interface shown in FIG. 3D includes a start screen option. Triggering the screen recording starting option, the applet starts the screen recording function and then the screen recording state.
In the screen recording process, a user can operate the applet, and the applet displays a corresponding page based on the operation of the user. The terminal equipment acquires meta information of each page in at least one page displayed by the applet in the current screen recording process, wherein the meta information of each page comprises a path of the page, page data and display time.
The path of the page may be understood as the path of the page, and optionally, the path of the page may be a wxml (a set of markup language for WeChat) path.
Page data (page data) can be understood as data required for rendering the page.
The embodiment of the application does not limit the specific party for acquiring the path and the page data of the page, and in one possible implementation manner, the path and the page data of the page are acquired by a crawler and the like.
The display time of a page may be understood as the display duration of the page, i.e. the start display time and the end display time of the page.
In some embodiments, in response to a trigger to begin a screen recording option, a timer may be started through which the display time of the page may be obtained.
In some embodiments, the meta information of the page may also include other information related to the page, which is not limited by embodiments of the present application.
In the embodiment of the application, meta information of at least one page displayed by the applet in the current screen recording process is acquired, and the meta information of the at least one page is sent to the applet server. The operation platform obtains meta information of the at least one page from the applet server, and re-renders the at least one page based on the meta information of the at least one page and the source file of the applet to obtain a reconstructed page of the at least one page for display, thereby realizing the re-play of the at least one page of the applet in the screen. That is, the screen recording data in the embodiment of the present application includes meta information of at least one page, where the meta information includes a path of the page, page data and delay time, and has a smaller data size, so that the transmission is convenient, and the transmission reliability of the screen recording data of the applet is further improved. In some scenes, if the problem is located based on the screen recording data of the applet, the method of the embodiment of the invention can start to reliably transmit the screen recording data, so that the problem of user operation or the problem of the applet can be located rapidly and effectively, and the operation efficiency of the applet is improved.
In the above S201, the specific manner of obtaining the meta information of at least one page displayed by the applet in the current screen recording process is not limited.
In some embodiments, the meta information for each page that the applet displays during the current recording process may be obtained. For example, the applet may display N pages during the current screen recording process, and may obtain meta information for each of the N pages.
In some embodiments, meta information of the page is obtained every preset time in the current screen recording process of the applet. For example, the meta information of the page of the applet is acquired every 5 seconds, so that the meta information of the page currently displayed by the applet can be acquired at the 0 th second of the current screen recording, the meta information of the page currently displayed by the applet can be acquired at the 5 th second, and so on until the screen recording is finished.
In some embodiments, in the current screen recording process of the applet, when the first event is detected to be triggered, meta information of a page displayed by the current applet is acquired.
The embodiment of the application does not limit the specific type of the first event.
In some embodiments, the first event is a predetermined event, such as a predetermined page meta-information acquisition period.
In some embodiments, the first event comprises at least one of a page primary rendering complete event, a page route change event, a page click or slide event, a form control operation event, a receipt of a network data wrap event.
After the applet is registered, the page is loaded, the onLoad function is triggered, and one page is called only once. Triggering an onShow function after loading the page, displaying the page, and calling the page once every time. The first time the page is displayed, the onReady function is triggered, the page elements and styles are rendered, and one page is called only once. That is, if the first event includes a page first rendering completion event, meta information of each new page displayed by the applet is acquired in the applet screen recording process. For example, in the procedure of the applet screen recording, the applet displays the A page, and then the meta information of the A page is obtained. The applet jumps from page a to page B, then obtains the meta information of page B, and so on.
If the first event comprises a page route change event, acquiring meta-information of the current page when the route of the page is changed. For example, a watch may be used to monitor changes in page routing.
If the first event comprises a page clicking or sliding event, when operations such as clicking or sliding of the object on the current page are detected, meta-information of the current page is obtained so as to record operations of the object on the applet. Alternatively, the object may be a user.
Form controls are controls that provide a set of controls that allow a user to operate, thereby receiving data entered by the user. If the first event comprises a form control operation event, when the form control of the object operation applet on the current page of the applet is detected, acquiring the meta-information of the current page.
If the first event comprises a network data packet returning event received by the terminal equipment, when the applet displays the current page, the terminal equipment receives the network data packet returning, and then the meta information of the current page is obtained.
It should be noted that, the first event in the embodiment of the present application may include other events besides at least one event of a page primary rendering completion event, a page route change event, a page click event, a form control operation event, and a received network data packet return event, which is not limited in this embodiment of the present application.
As can be seen from the above description, in this embodiment, during the process of recording the applet, if the occurrence of the first event is detected, the meta information of the currently displayed page of the applet is obtained, so that the meta information of at least one page of the applet can be obtained.
For example, the first event includes a page primary rendering completion event and a page clicking event, and in the screen recording process, at time t1, the applet displays the page a, and at this time, meta information of the page a may be obtained, that is, a path of the page a, page data of the page a, and display time of the page a may be obtained. At time t2, the applet jumps from page a to page B, and at this time, the meta information of page B may be obtained, i.e. the path of page B, the page data of page B, and the display time of page B are obtained. When the page B is displayed, at the time t3, the user performs clicking operation on one option in the page B, and meta-information of the page when the user clicks the option in the page B is obtained.
In some embodiments, the display time may include a start display time of the page, e.g., the display time of page a includes a start display time t1 of page a. In some embodiments, the display time may include a start display time and an end display time of the page, e.g., the display time of page a includes a start display time and an end display time of page a.
In some embodiments, page data of a page is converted into serializable file data. That is, for the convenience of transmission, the terminal device converts the page data into serializable file data, for example, converts the page data into serializable file data such as JSON data.
In this embodiment of the present application, the ways to stop the current screen recording event include, but are not limited to, the following:
in mode 1, the recording event is ended in response to the triggering operation of the recording stop option.
Exemplary, as shown in fig. 4, the recording interface of the applet includes a recording stop option, and when the recording stop option is triggered, the recording event is ended.
And 2, ending the screen recording event when the application process of the applet is deleted.
In the mode 2, if the application process of the applet is killed, the screen recording event is ended.
According to the above method, after acquiring meta information of at least one page displayed by the applet in the current screen recording process, the following step S202 is executed.
S202, the terminal equipment sends meta information of the at least one page to an applet server corresponding to the applet.
According to the method, the terminal equipment obtains the meta information of at least one page displayed by the applet in the screen recording process of the applet, and sends the meta information of at least one page to the applet server corresponding to the applet.
The applet server may be understood as a background server corresponding to the applet.
The embodiment of the application does not limit the specific process of uploading the meta information of the page by the terminal equipment.
In one possible implementation, in a one-time screen recording process, the terminal device sends the meta information of the page acquired in the screen recording process to the applet server several times.
In example 1, in the current screen recording process, the terminal device uploads the meta information of the page acquired in the current preset time period once every preset time. For example, the terminal device sends the applet display meta information acquired in the first 5 seconds to the applet server in the 5 th second, sends the applet server meta information acquired between the 5 th and 10 th seconds until the end of recording.
In example 2, in the current screen recording process, after each time the terminal device obtains meta information of a preset page, the meta information of the page obtained at one time is uploaded. For example, after each time the terminal device obtains meta information of 5 pages, the obtained meta information of 5 pages is sent to the applet server until the recording is finished.
The methods of example 1 and example 2 have a smaller amount of data to upload each time, which improves the data transmission efficiency.
In another possible implementation manner, after the current recording process is finished, the terminal device may uniformly send meta information of at least one page displayed by the obtained applet in the current recording process to the applet server.
S203, the applet server stores the meta information of the at least one page in one screen recording file in the screen recording file list.
The screen recording file list comprises a plurality of screen recording files, and the applet server stores the meta information of at least one page in one screen recording file in the screen recording file list after receiving the meta information of at least one page displayed in the current screen recording process of the applet uploaded by the terminal equipment.
In some embodiments, the method of embodiments of the present application further comprises: the terminal equipment responds to the triggering operation of the screen recording starting option and sends a first request to the applet server, wherein the first request is used for requesting the identification of the screen recording event; after receiving the first request, the server responds to the first request, generates an identifier of the screen recording event, and sends the identifier of the screen recording event to the terminal equipment. The identification of the logging event is used to uniquely identify the logging event.
Based on the above, in the present screen recording process, the terminal device not only sends the meta information of at least one page to the applet server, but also sends the identification of the screen recording event to the applet server, and the applet server stores the meta information of at least one page in the screen recording file corresponding to the identification of the screen recording event. For example, the applet server receives meta information of at least one page and an identifier of a screen recording event sent by the terminal device, and stores the meta information of at least one page in a list of screen recording files, where the identifier of the screen recording event corresponds to the screen recording file.
In one example, if in the present screen recording process, the terminal device intermittently sends meta information of the page to the applet server, then when the meta information of the page is sent each time, the identity of the screen recording event needs to be sent at the same time, and the applet server stores the meta information of the page reported each time in the screen recording file corresponding to the identity of the screen recording event based on the identity of the screen recording event.
In some embodiments, the first request includes a version number of the applet and an identification of an object currently operating the applet, based on which the applet server generates a screen file including not only meta information of the page, identification of the screen event, but also the version number of the applet and identification of the object. Optionally, if the object is a user, the identification of the object is the identification of the user, i.e. the use id.
S204, the operation platform responds to the triggering operation on the name of the screen recording file, and the screen recording file is acquired from the applet server.
The operation platform of the embodiment of the application is in communication connection with the applet server corresponding to the applet.
In some embodiments, the operation platform is only in communication connection with the applet server, and only processes the screen recording file corresponding to the applet.
In some embodiments, the operation platform may be communicatively connected to a plurality of applet servers, and may process the screen files corresponding to a plurality of different applets.
From the above, the applet server includes at least one screen file, and the operation platform detects a triggering operation on the name of the screen file, and obtains the screen file from the applet server.
In one example, the operator platform has displayed thereon the name of at least one of the screen files among which the user can filter. For example, the name of the screen recording file also includes the object identifier, so that the name of the screen recording file corresponding to the target object identifier can be selected.
In some embodiments, the name of the at least one screen file displayed on the operations platform is obtained from the applet server. For example, the applet server may include a list of screen files that the operator platform may obtain from the applet server for display. Optionally, the list of the screen recording files acquired by the operation platform in the embodiment of the present application includes a name of the screen recording file, and does not include meta information of the page.
Exemplary, as shown in fig. 5, the names of the screen files included in the screen file list included in the operation platform include a screen file a, a screen file B, a screen file C, a screen file D, and the like. The user clicks a screen recording file named as a screen recording file B, and the operation platform responds to the triggering operation to acquire the screen recording file B from the small program server.
The operation platform in the embodiment of the application does not limit the specific mode of acquiring the screen recording file from the applet server.
In one example, in response to a triggering operation on the screen file name, the operator platform pulls the screen file directly from the applet server.
In another example, in response to a triggering operation on the screen file name, the operation platform sends a second request to the applet server, the second request including a screen event identification corresponding to the screen file; after receiving the second request sent by the operation platform, the applet server searches the screen recording file corresponding to the screen recording event identifier in the screen recording file list and sends the screen recording file to the operation platform.
After obtaining the screen recording file according to the method, the operation platform executes the following step S205.
S205, the operation platform analyzes the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process.
The screen recording file in the embodiment of the application comprises the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process.
Based on the information, after the operation platform obtains the screen recording file, the screen recording file is analyzed to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process.
The meta information of each page included in the screen file is a meta information list comprising [ { page path, page data, page display time } 1 { Page Path, page data, page display time } 2 ...]Wherein the subscript indicates
S206, the operation platform obtains a source file of the applet based on the version number of the applet.
The operation platform judges whether the applet of the version number issues a source file on line or not based on the version number of the applet, and the source file can be understood as a source code of the applet. The applet in the embodiment of the present application is typically a published applet, and therefore, the operating platform may obtain the source file of the applet by online loading based on the applet's version number.
In some embodiments, if the operation platform cannot load the source file of the applet on-line, the operation platform may obtain the source file of the applet from the applet server corresponding to the applet.
S207, the operation platform renders a reconstructed page of the page according to the source file of the applet and meta information of the page aiming at each page of at least one page of the applet.
In the embodiment of the application, for each page in at least one page included in a screen recording file, the screen recording file is analyzed to obtain meta information of the page, the meta information of the page includes a path of the page, page data and display time, rendering is performed again based on a source file of an applet and the meta information of the page to obtain a reconstructed page of the page, and the reconstructed page is displayed.
That is, in the embodiment of the present application, the operation platform restores the same page as the page displayed on the applet based on the source file of the applet and the meta information of the page.
In the embodiment of the present invention, the process of rendering to obtain the reconstructed page of each page is basically the same, for example, when the display time of the page arrives, the reconstructed page of the page is rendered to obtain and displayed based on the source file of the applet and the path and page data of the page, and when the display time of the next page arrives, the reconstructed page of the next page is rendered to obtain and displayed based on the source file of the applet and the path and page data of the next page, and so on, the reconstructed page of each page in at least one page corresponding to the applet can be displayed, so as to realize the video callback of the video recording file.
In some embodiments, the rebuilt page generated by the operation platform is a web page, that is, the operation platform restores the page on the applet in the form of a web page.
The embodiment of the application does not limit the specific mode of rendering the reconstructed page of the page based on the source file of the applet and the meta information of the page by the operation platform.
In one possible implementation manner, the page data includes data required for rendering the page, based on this, the operation platform may obtain, in the source file of the applet, a related function corresponding to the page, for example, a rendering function, and further, based on the page data and the rendering function of the page, re-render a reconstructed page of the page, for example, input the page data of the page into the rendering function corresponding to the page, render the reconstructed page of the page, and display the reconstructed page in the web page.
In another possible implementation manner, the step of rendering the reconstructed page to obtain the page in S207 includes the following steps S207-a to S207-D based on the source file of the applet and the meta information of the page in S207:
S207-A, compiling a source file of an applet when the display time of a page arrives to obtain a first function corresponding to the page, wherein the first function is used for generating a virtual document object model of the page;
S207-B, processing the path of the page and page data through a first function to obtain a virtual document object model of the page;
S207-C, generating a real document object model of the page based on the virtual document object model;
S207-D, adding the real document object model into the content block of the webpage to obtain a reconstructed page of the webpage.
In this embodiment of the present application, the meta information of the page includes a display time of the page, where the display time may reflect a display duration of the page, that is, a start display time of the page and a display end time of the page. When each page is rendered, the operation platform renders and displays the next page based on the display time of the page after the rendering and displaying of one page are finished, and then the display time and the display sequence of each page on the operation platform are consistent with the display time and the display sequence of each page on the applet.
Specifically, as shown in fig. 6, for each page in at least one page displayed in the current screen recording process of the applet, the operation platform compiles the source file of the applet based on the display time of the page to obtain a first function corresponding to the page, for example, compiles the source file through simulating the applet to obtain the first function corresponding to the page. The embodiment of the application does not limit the specific type of the simulation applet, for example, a combire (comparison) function in a simulation applet miniprogram is used to compile a source file of the applet to obtain a compiled product of the page, namely a first function corresponding to the page. The first function is used to generate a virtual DOM for the page, and optionally the first function is a gwx function.
For example, assuming that the display time of the page includes the start display time of the page, since the rendering time is faster, when the start display time of the page arrives, the source file of the applet may be compiled to obtain a first function corresponding to the page, where the first function is used to generate a virtual DOM of the page. For example, when the display starting time of the page arrives, compiling the source file of the applet based on the path of the page and the page data to obtain a first function corresponding to the page.
Based on the step, the operation platform executes the following step S207-B after obtaining the first function corresponding to the page.
As shown in fig. 6, the specific manner of obtaining the virtual DOM of the page is not limited by processing the path of the page and the page data by the operation platform through the first function.
For example, the path of the page and the page data are input into the first function, and the virtual DOM of the page is obtained.
Illustratively, the software code corresponding to the virtual DOM of the page is as follows:
next, a true DOM for the page is generated based on the virtual DOM for the page. For example, as shown in fig. 6, the real DOM is further generated by means of the private method create Instance of the virtual DOM.
Illustratively, the software code corresponding to the true DOM of the page is as follows:
then, the operation platform adds the true DOM of the page into the content block of the webpage to obtain a reconstructed page of the page. For example, adding the true DOM of the page to the html body can complete the restoration of the page, which can be understood as completing the playing of a frame of page.
And after the operation platform reconstructs the reconstructed page of the page and displays the reconstructed page in the webpage, when the display time of one page is reached, rendering the reconstructed page of the next page and displaying the reconstructed page in the webpage, and the like, until the access of the page meta information in the screen recording file is finished, and playing the screen recording file.
In some embodiments, in order to further improve the consistency of the reconstructed page and the applet page, the operation platform further compiles the source file of the applet to obtain a style of the page, adds the real DOM in a content block of the webpage, and attaches the style of the page to the webpage to obtain the reconstructed page of the page. The content of the reconstructed page obtained in this way is consistent with the content of the page of the applet, and the style is consistent with the style of the page of the applet, so that the restoration effect of the page is improved, and the quality of the reconstructed page is improved.
In some embodiments, assuming that the operation platform of the embodiments of the present application includes a client browser and a web server, the data interaction and display occurs on the client browser and the data processing occurs on the text server. For example, the client browser displays a list of screen files including at least one screen file name. The user clicks on a certain screen file name in the screen file list, and the client browser responds to the triggering operation of the user on the screen file name and sends a message to the web server, wherein the message is used for indicating the playing of the screen file. Then, the web server sends a second request to the applet server, the second request including a screen recording event identification corresponding to the screen recording file. The applet server sends the screen file to the web server. The web server analyzes the screen recording file to obtain a version number of the applet and meta information of at least one page displayed by the applet in the screen recording process, obtains source files of the applet based on the version number of the applet, and renders a reconstructed page of the page on a webpage of a client browser for display according to each page of the at least one page of the applet, the source files of the applet and the meta information of the page.
According to the applet screen recording method, the terminal equipment running the applet responds to the triggering operation of the screen recording starting option, the meta information of at least one page displayed by the applet in the current screen recording process is obtained, the meta information comprises the path of the page, the page data and the display time, and the meta information of the at least one page is sent to the applet server corresponding to the applet. The applet server receives the meta information of at least one page displayed in the current screen recording process of the applet transmitted by the terminal equipment, and stores the meta information of at least one page in one screen recording file in the screen recording file list. The operation platform responds to the triggering operation on the name of the screen recording file, and the screen recording file is acquired from the small program server; analyzing the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process; acquiring a source file of the applet based on the version number of the applet; and rendering a reconstructed page of the obtained page based on the source file of the applet and the meta information of the page for each page of the at least one page. In the embodiment of the application, the screen recording file generated by the applet end comprises the path of the page, page data and display time, and the data volume of the data is smaller, so that the transmission is convenient. In addition, the method of the embodiment of the application has smaller dependence on the user and has no influence on the performance of the applet, thereby improving the screen recording experience of the user.
Fig. 7 is a flowchart of an applet recording method according to an embodiment of the present application. The embodiment shown in fig. 7 can be understood as a more specific embodiment of the embodiment shown in fig. 2 described above. As shown in fig. 7, the method in the embodiment of the present application includes:
s701, the terminal equipment responds to the triggering operation of starting the screen recording option and sends a first request to the applet server.
The first request is used for requesting identification of the current screen recording event.
S702, the applet server responds to the first request to generate an identification of the screen recording event.
The identification of the screen recording event is used for being positioned at the identification of the screen recording event, and the identification of different screen recording events is different.
S703, the applet server sends the identification of the screen recording event to the terminal equipment.
S704, the terminal equipment responds to the triggering operation of the screen recording starting option to acquire meta information of at least one page displayed by the applet in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time.
It should be noted that, the terminal device sends the first request to the applet and the terminal device obtains the meta information of at least one page displayed in the current screen recording process of the applet without strict execution sequence, for example, the terminal device may respond to the triggering operation of starting the screen recording option, send the first request to the applet server first, and obtain the meta information of at least one page displayed in the current screen recording process of the applet after receiving the identification of the screen recording event. Optionally, the terminal device may respond to a triggering operation of starting the screen recording option, and may first acquire meta information of at least one page displayed by the applet in the current screen recording process, and then send a first request to the applet server. Optionally, the terminal device may respond to the triggering operation of the screen recording starting option to acquire meta information of at least one page displayed by the applet in the current screen recording process, and send a first request to the applet server, that is, the terminal device responds to the triggering operation of the screen recording starting option to start two parallel threads, one thread sends the first request to the applet server, and the other thread acquires meta information of at least one page displayed by the applet in the current screen recording process.
And S705, the terminal equipment sends the acquired meta information of at least one page to an applet server corresponding to the applet.
In the embodiment of the application, the screen recording data sent by the terminal equipment to the applet server is meta information of at least one page, the meta information comprises a path of the page, page data, display time and the like, the included data volume is small, the transmission is convenient, and further the reliability of the applet screen recording is improved.
S706, the applet server stores the meta information of the at least one page in one of the screen files in the list of screen files.
For example, the applet server stores the meta information of the at least one page in a list of the screen files, the identification of the screen event corresponding to the screen file.
S707, the operation platform responds to the triggering operation on the screen recording file name and sends a second request to the applet server, wherein the second request comprises a screen recording event identifier corresponding to the screen recording file.
The second request is used for requesting a screen file corresponding to the screen event identifier.
S708, the applet server searches a screen recording file corresponding to the screen recording event identifier in the screen recording file list, and sends the screen recording file to the operation platform.
S709, the operation platform analyzes the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process.
The screen recording file comprises the version number of the applet and the meta information of at least one page displayed by the applet in the screen recording process, so that after the operation platform obtains the screen recording file, the operation platform analyzes the screen recording file to obtain the version number of the applet contained in the screen recording file and the meta information of at least one page displayed by the applet in the screen recording process.
S710, the operation platform obtains a source file of the applet based on the version number of the applet.
S711, the operation platform renders a reconstructed page of the page according to the source file of the applet and the meta information of the page aiming at each page of at least one page of the applet.
For example, the operation platform compiles the source file of the applet based on the display time of the page to obtain a first function corresponding to the page, wherein the first function is used for generating a virtual document object model of the page; processing the path of the page and the page data through a first function to obtain a virtual document object model of the page; generating a real document object model of the page based on the virtual document object model; and adding the real document object model into the content block of the webpage to obtain a reconstructed page of the webpage.
In the embodiment of the application, the screen recording file generated by the applet end comprises the path of the page, page data and display time, the data volume of the data is smaller, smaller network transmission resources are occupied, the transmission among the terminal equipment, the applet server and the operation platform is facilitated, the function of recording user operation in an efficient, convenient and small-size manner on the applet is realized, the operation platform can rapidly and accurately position the applet or the user operation problem, the efficient operation of the applet product is realized, and the competitiveness of the applet product is rapidly promoted.
Method embodiments of the present application are described above in detail in connection with fig. 4-7, and apparatus embodiments of the present application are described below in connection with fig. 8-10.
Fig. 8 is a schematic block diagram of an applet recording apparatus according to an embodiment of the present application. The apparatus 10 may be a terminal device or part of a terminal device that is adapted to run an applet.
As shown in fig. 8, the applet screen recording apparatus 10 includes:
the screen recording unit 11 is used for responding to the triggering operation of starting the screen recording option and acquiring meta information of at least one page displayed by the applet in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time;
And the transceiver unit 12 is configured to send the meta information of the at least one page to an applet server corresponding to the applet.
In some embodiments, the transceiver unit 12 is further configured to send, to the applet server, a first request for requesting an identification of the present screen recording event in response to a triggering operation to start the screen recording option; receiving an identification of the screen recording event sent by the applet server based on the first request; and sending the identification of the screen recording event and the meta information of the at least one page to the applet server, and storing the meta information of the at least one page in a screen recording file corresponding to the identification of the screen recording event by the applet server.
In some embodiments, the first request includes a version number of the applet and an identification of an object currently operating the applet.
In some embodiments, the screen recording unit 11 is specifically configured to obtain meta information of a page currently displayed by the applet when the first event is detected to be triggered.
In some embodiments, the first event includes at least one event of a page primary rendering completion event, a page route change event, a page click or slide event, a form control operation event, and a network data packet return event received by the terminal device.
Optionally, the page data of the page is converted into serializable file data.
In some embodiments, the recording unit 11 is further configured to respond to a triggering operation of the recording stop option, and end the recording event; or if the application process of the applet is deleted, ending the screen recording event.
It should be understood that apparatus embodiments and method embodiments may correspond with each other and that similar descriptions may refer to the method embodiments. To avoid repetition, no further description is provided here. Specifically, the apparatus shown in fig. 8 may execute an embodiment of a terminal device in the applet recording method, and the foregoing and other operations and/or functions of each module in the apparatus are respectively for implementing the foregoing method embodiment, which is not described herein for brevity.
Fig. 9 is a schematic block diagram of an applet recording apparatus provided in an embodiment of the present application. The apparatus 20 may be applied to or part of an operating platform.
As shown in fig. 9, the applet screen recording apparatus 20 includes:
a first acquisition unit 21 for acquiring a screen file from a applet server in response to a trigger operation on the screen file name;
The parsing unit 22 is configured to parse the screen recording file to obtain a version number of an applet, and meta information of at least one page displayed by the applet in a screen recording process, where the meta information includes a path of the page, page data and display time;
a second obtaining unit 23, configured to obtain a source file of the applet based on the version number of the applet;
a rendering unit 24, configured to render, for each page of the at least one page of the applet, a reconstructed page resulting in the page based on the source file of the applet and meta information of the page.
In some embodiments, the reconstructed page is a web page.
In some embodiments, the rendering unit 24 is configured to compile a source file of the applet based on a display time of the page to obtain a first function corresponding to the page, where the first function is used to generate a virtual document object model of the page; processing the path of the page and the page data through the first function to obtain a virtual document object model of the page; generating a real document object model of the page based on the virtual document object model; and adding the real document object model into a content block of a webpage to obtain a reconstructed page of the webpage.
In some embodiments, the rendering unit 24 is further configured to compile a source file of the applet to obtain a style of the page; and adding the real document object model into a content block of a webpage, and attaching the style of the webpage to obtain a reconstructed page of the webpage.
In some embodiments, the first obtaining unit 21 is specifically configured to respond to a triggering operation on the screen file name, and send a second request to the applet server, where the second request includes a screen event identifier corresponding to the screen file; and receiving the screen recording file sent by the applet server based on the screen recording event identification.
It should be understood that apparatus embodiments and method embodiments may correspond with each other and that similar descriptions may refer to the method embodiments. To avoid repetition, no further description is provided here. Specifically, the apparatus shown in fig. 9 may execute an embodiment of an operation platform in the applet recording method, and the foregoing and other operations and/or functions of each module in the apparatus are respectively for implementing the foregoing method embodiment, which is not described herein for brevity.
Fig. 10 is a schematic block diagram of an applet recording apparatus provided in an embodiment of the present application. The apparatus 30 may be an application applet server or a part of an applet server.
As shown in fig. 10, the applet screen recording apparatus 30 includes:
a receiving unit 31, configured to receive meta information of at least one page displayed in a current screen recording process by an applet sent by a terminal device, where the meta information includes a path of the page, page data and display time;
a storage unit 32, configured to store meta information of the at least one page in one screen file in the list of screen files;
and the sending unit 33 is used for sending the screen recording file to an operation platform.
In some embodiments, the receiving unit 31 is further configured to receive a first request sent by the terminal device, where the first request is used to request to configure an identifier for the current screen recording event of the applet; responding to the first request, and generating an identification of the screen recording event; and the sending unit 33 is further configured to send the identifier of the screen recording event to the terminal device.
In some embodiments, the first request includes a version number of the applet and an identification of an object currently operating the applet.
In some embodiments, the receiving unit 31 is further configured to receive meta information of the at least one page and an identifier of the screen recording event sent by the terminal device; the storage unit 32 is specifically configured to store meta information of the at least one page in the list of screen recording files, where the identifier of the screen recording event corresponds to the screen recording file.
In some embodiments, the screen recording file further includes a version number of the applet, and the receiving unit 31 is further configured to receive a second request sent by the operation platform, where the second request includes a screen recording event identifier corresponding to the screen recording file; the sending unit 33 is specifically configured to search the list of screen recording files for a screen recording file corresponding to the screen recording event identifier, and send the screen recording file to an operation platform.
It should be understood that apparatus embodiments and method embodiments may correspond with each other and that similar descriptions may refer to the method embodiments. To avoid repetition, no further description is provided here. Specifically, the apparatus shown in fig. 10 may execute an embodiment of a applet server in the applet screen recording method, and the foregoing and other operations and/or functions of each module in the apparatus are respectively for implementing the foregoing method embodiment, which is not repeated herein for brevity.
The apparatus of the embodiments of the present application are described above in terms of functional modules in conjunction with the accompanying drawings. It should be understood that the functional module may be implemented in hardware, or may be implemented by instructions in software, or may be implemented by a combination of hardware and software modules. Specifically, each step of the method embodiments in the embodiments of the present application may be implemented by an integrated logic circuit of hardware in a processor and/or an instruction in software form, and the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented as a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. Alternatively, the software modules may be located in a well-established storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, and the like. The storage medium is located in a memory, and the processor reads information in the memory, and in combination with hardware, performs the steps in the above method embodiments.
Fig. 11 is a schematic block diagram of an electronic device provided in an embodiment of the present application, where the electronic device is configured to perform the above-described model training method and/or model testing method embodiments.
As shown in fig. 11, the electronic device 30 may include:
a memory 31 and a processor 32, the memory 31 being arranged to store a computer program 33 and to transmit the program code 33 to the processor 32. In other words, the processor 32 may call and run the computer program 33 from the memory 31 to implement the methods in the embodiments of the present application.
For example, the processor 32 may be configured to perform the above-described method steps according to instructions in the computer program 33.
In some embodiments of the present application, the processor 32 may include, but is not limited to:
a general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
In some embodiments of the present application, the memory 31 includes, but is not limited to:
volatile memory and/or nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Ran DOM Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DR RAM).
In some embodiments of the present application, the computer program 33 may be partitioned into one or more modules that are stored in the memory 31 and executed by the processor 32 to perform the methods of recording pages provided herein. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments describe the execution of the computer program 33 in the electronic device.
As shown in fig. 11, the electronic device 30 may further include:
a transceiver 34, the transceiver 34 being connectable to the processor 32 or the memory 31.
The processor 32 may control the transceiver 34 to communicate with other devices, and in particular, may send information or data to other devices or receive information or data sent by other devices. The transceiver 34 may include a transmitter and a receiver. The transceiver 34 may further include antennas, the number of which may be one or more.
It will be appreciated that the various components in the electronic device 30 are connected by a bus system that includes, in addition to a data bus, a power bus, a control bus, and a status signal bus.
According to an aspect of the present application, there is provided a computer storage medium having stored thereon a computer program which, when executed by a computer, enables the computer to perform the method of the above-described method embodiments.
Embodiments of the present application also provide a computer program product comprising instructions which, when executed by a computer, cause the computer to perform the method of the method embodiments described above.
According to another aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the electronic device to perform the method of the above-described method embodiments.
In other words, when implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, a flow or function consistent with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. For example, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. An applet screen recording method, characterized by being applied to an operation platform, comprising:
responding to triggering operation on the name of the screen recording file, and acquiring the screen recording file from the small program server;
Analyzing the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process, wherein the meta information comprises a path of the page, page data and display time;
acquiring a source file of the applet based on the version number of the applet;
and rendering a reconstructed page of the page based on the source file of the applet and the meta information of the page for each page of the at least one page.
2. The method of claim 1, wherein the reconstructed page is a web page.
3. The method of claim 2, wherein rendering the reconstructed page of the page based on the source file of the applet and the meta information of the page comprises:
compiling a source file of the applet based on the display time of the page to obtain a first function corresponding to the page, wherein the first function is used for generating a virtual document object model of the page;
processing the path of the page and the page data through the first function to obtain a virtual document object model of the page;
Generating a real document object model of the page based on the virtual document object model;
and adding the real document object model into a content block of a webpage to obtain a reconstructed page of the webpage.
4. A method according to claim 3, characterized in that the method further comprises:
compiling the source file of the applet to obtain the style of the page;
the adding the real document object model in the content block of the webpage to obtain a reconstructed page of the webpage comprises the following steps:
and adding the real document object model into a content block of a webpage, and attaching the style of the webpage to obtain a reconstructed page of the webpage.
5. The method of claim 1, wherein the retrieving the screen file from the applet server in response to a triggering operation on a screen file name comprises:
responding to triggering operation on the screen recording file name, and sending a second request to the applet server, wherein the second request comprises a screen recording event identifier corresponding to the screen recording file;
and receiving the screen recording file sent by the applet server based on the screen recording event identification.
6. An applet screen recording method, applied to a terminal device running an applet, comprising:
responding to the triggering operation of starting the screen recording option, and acquiring meta information of at least one page displayed by the applet in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time;
and sending the meta information of the at least one page to an applet server corresponding to the applet.
7. The method of claim 6, wherein the method further comprises:
responding to the triggering operation, and sending a first request to the applet server, wherein the first request is used for requesting the identification of the current screen recording event;
receiving an identification of the screen recording event sent by the applet server based on the first request;
the sending the meta information of the at least one page to the applet server corresponding to the applet includes:
and sending the identification of the screen recording event and the meta information of the at least one page to the applet server, and storing the meta information of the at least one page in a screen recording file corresponding to the identification of the screen recording event by the applet server.
8. The method of claim 7, wherein the first request includes a version number of the applet and an identification of an object currently operating the applet.
9. The method of claim 6, wherein the obtaining meta information of at least one page displayed by the applet during the current recording process comprises:
and when the first event is detected to be triggered, acquiring meta information of a page displayed by the applet currently.
10. The method of claim 9, wherein the first event comprises at least one of a page primary rendering complete event, a page route change event, a page click or slide event, a form control operation event, a network data callback event received by the terminal device.
11. An applet screen recording method, applied to an applet server, comprising:
receiving meta information of at least one page displayed by an applet transmitted by terminal equipment in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time;
storing meta information of the at least one page in one screen recording file in a screen recording file list;
And sending the screen recording file to an operation platform.
12. The method of claim 11, wherein the method further comprises:
receiving a first request sent by the terminal equipment, wherein the first request is used for requesting to configure an identifier for the current screen recording event of the applet;
responding to the first request, and generating an identification of the screen recording event;
and sending the identification of the screen recording event to the terminal equipment.
13. The method of claim 12, wherein the first request includes a version number of the applet and an identification of an object currently operating the applet.
14. The method according to claim 13, wherein said receiving meta information of at least one page displayed by said applet transmitted by said terminal device during a recording process comprises:
receiving meta information of at least one page and an identification of the screen recording event, which are sent by the terminal equipment;
the storing the meta information of the at least one page in one screen recording file in the screen recording file list includes:
and storing the meta information of the at least one page in the screen recording file list, wherein the screen recording file corresponds to the identification of the screen recording event.
15. The method of claim 12, wherein the screen file further includes a version number of the applet, and wherein the sending the screen file to an operation platform includes:
receiving a second request sent by the operation platform, wherein the second request comprises a screen recording event identifier corresponding to the screen recording file;
searching a screen recording file corresponding to the screen recording event identifier in the screen recording file list, and sending the screen recording file to an operation platform.
16. An applet screen recording apparatus for use with an operating platform, the apparatus comprising:
a first acquisition unit for acquiring a screen file from a applet server in response to a triggering operation on the screen file name;
the analysis unit is used for analyzing the screen recording file to obtain the version number of the applet and meta information of at least one page displayed by the applet in the screen recording process, wherein the meta information comprises a path of the page, page data and display time;
a second obtaining unit, configured to obtain a source file of the applet based on a version number of the applet;
and the rendering unit is used for rendering a reconstructed page of the page based on the source file of the applet and the meta information of the page aiming at each page of the at least one page.
17. An applet screen recording apparatus for use with a terminal device running an applet, said apparatus comprising:
the screen recording unit is used for responding to the triggering operation of the screen recording starting option and acquiring meta information of at least one page displayed by the applet in the current screen recording process, wherein the meta information comprises a path of the page, page data and display time;
and the receiving and transmitting unit is used for transmitting the meta information of the at least one page to the applet server corresponding to the applet.
18. An applet screen recording apparatus for application to an applet server, said apparatus comprising:
the receiving unit is used for receiving meta information of at least one page displayed in the current screen recording process of the applet sent by the terminal equipment, wherein the meta information comprises a path of the page, page data and display time;
the storage unit is used for storing the meta information of the at least one page in one screen recording file in the screen recording file list;
and the sending unit is used for sending the screen recording file to an operation platform.
19. An electronic device comprising a processor and a memory;
The memory is used for storing a computer program;
the processor for executing the computer program to implement the method of any of the preceding claims 1 to 5 or 6 to 10 or 11 to 15.
20. A computer readable storage medium storing a computer program for causing a computer to perform the method of any one of the preceding claims 1 to 5 or 6 to 10 or 11 to 15.
CN202211075013.6A 2022-09-02 2022-09-02 Method, device, equipment and storage medium for small program recording screen Pending CN117648290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211075013.6A CN117648290A (en) 2022-09-02 2022-09-02 Method, device, equipment and storage medium for small program recording screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211075013.6A CN117648290A (en) 2022-09-02 2022-09-02 Method, device, equipment and storage medium for small program recording screen

Publications (1)

Publication Number Publication Date
CN117648290A true CN117648290A (en) 2024-03-05

Family

ID=90043844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211075013.6A Pending CN117648290A (en) 2022-09-02 2022-09-02 Method, device, equipment and storage medium for small program recording screen

Country Status (1)

Country Link
CN (1) CN117648290A (en)

Similar Documents

Publication Publication Date Title
US10430487B2 (en) System and method to share content utilizing universal link format
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
US10102306B2 (en) Patching base document object model (DOM) with DOM-differentials to generate high fidelity replay of webpage user interactions
US20170308279A1 (en) Customization of Mobile Applications Using Web-Based Technology
US10698797B2 (en) Mobile application program testing method, server, terminal, and storage medium
CN108293081A (en) Pass through the program playback deep linking of user interface event to mobile application state
CN103944944B (en) Method, electronic equipment and the system of sharing web page link
US7987243B2 (en) Method for media discovery
CN108829693A (en) A kind of user accesses acquisition methods, device and the storage medium of track
CN108319662A (en) Page processing method, device, electronic equipment and readable storage medium storing program for executing
CN103150513A (en) Method and device for intercepting embedded information in application program
CN107104924B (en) Verification method and device for website backdoor file
CN106649446B (en) Information pushing method and device
CN105808399A (en) Method and device for remote debugging
CN108959939B (en) System authority opening method, device, system and storage medium
CN104834588B (en) The method and apparatus for detecting resident formula cross site scripting loophole
CN113590974B (en) Recommendation page configuration method and device, electronic equipment and computer readable medium
US20130198333A1 (en) Method and device for recording and reproducing web operation
CN106713011A (en) Method and system for obtaining test data
CN110998503A (en) Capture content sharing interface
CN103618760B (en) Processing method of cookie information in browser and browser
CN114816637B (en) Application display method, device and system embedded in applet
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN117648290A (en) Method, device, equipment and storage medium for small program recording screen
CN105262829B (en) Geographical position monitoring method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination