A file processing method, a computer and a computer-readable storage medium
By displaying and selecting target file pages in online media files, the method solves the problem of low efficiency in merging local slide content in existing technologies, enables rapid content transfer and multi-user collaboration, and improves file processing efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2021-04-27
- Publication Date
- 2026-06-19
AI Technical Summary
When merging local slide content into online media files, existing technologies require repeated creation and editing, resulting in cumbersome and inefficient operations.
A file processing method and apparatus are provided, which enables rapid content transfer and display by displaying a page of a target media file in an online media file, adding a target file page in response to a selection operation, and supporting theme retention or cancellation functions.
It improves the efficiency and convenience of file processing, reduces operating costs, provides flexible file content transfer methods, and supports multi-user collaboration and file synchronization.
Smart Images

Figure CN115248800B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese Patent Application No. 202110462033.8, filed on April 27, 2021, entitled "A document processing method, computer and readable storage medium", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of computer technology, and in particular to a file processing method, a computer, and a readable storage medium. Background Technology
[0003] When collaborating on online media files, users often merge and collaborate on multiple presentation files (PowerPoint, PPT), which may involve importing content from local slide documents into the online media file. Typically, when users need to add content from a local slide document to an online media file (File A), they need to recreate and edit the content from the local slide document in File A, which is time-consuming and resource-intensive, resulting in low file processing efficiency. Alternatively, they may need to convert the local slide document into a new online media file (File B), copy the required content from File B, and paste the copied content into File A. This process is lengthy, cumbersome, and incurs significant operational costs, leading to low file processing efficiency. Summary of the Invention
[0004] This application provides a file processing method, a computer, and a readable storage medium, which can reduce the operational costs of adding local slideshow content to online media files and improve file processing efficiency.
[0005] One embodiment of this application provides a file processing method, the method comprising:
[0006] In the online media file, the first user equipment responds to the import operation for the target media file and displays N target file pages included in the target media file; N is a positive integer; the online media file includes M online file pages; M is a positive integer;
[0007] In response to a selection operation on k target file pages out of N target file pages, add k target file pages to the online media file to obtain the online updated file; k is a positive integer, less than or equal to N; the online updated file is the online media file after adding k target file pages;
[0008] Display the online update file, which contains M online file pages and k target file pages.
[0009] One embodiment of this application provides a document processing apparatus, the apparatus comprising:
[0010] The file import module is used by the first user device to respond to the import operation of the target media file in the online media file, and display the N target file pages included in the target media file; N is a positive integer; the online media file includes M online file pages; M is a positive integer;
[0011] The page selection module is used to respond to the selection operation of k target file pages out of N target file pages, add k target file pages to the online media file, and obtain the online updated file; k is a positive integer, k is less than or equal to N; the online updated file is the online media file after adding k target file pages;
[0012] The file display module is used to display online updated files that contain M online file pages and k target file pages.
[0013] The import module for this file includes:
[0014] The progress display unit is used by the first user device to display the import progress message of the target media file in the progress display area when responding to the import operation for the target media file in the online media file.
[0015] The failure notification unit is used to display an import failure notification message in the progress display area if the target media file import fails.
[0016] The page display unit is used to display the N target file pages included in the target media file if the target media file is successfully imported.
[0017] The import module for this file includes:
[0018] The theme component display unit is used to display theme retention components for the target media file in online media files;
[0019] The theme retention unit is used to respond to the selection operation of k target file pages out of N target file pages when the component function corresponding to the theme retention component is set to the theme retention function. Based on the target file theme corresponding to the target media file, it adds k target file pages to the online media file to obtain the online updated file.
[0020] The theme cancellation unit is used to respond to the selection operation of k target file pages out of N target file pages when the component function corresponding to the theme retention component is set to theme cancellation function. Based on the default file theme of the online media file, it adds k target file pages to the online media file to obtain the online updated file.
[0021] This topic-reserved unit includes:
[0022] The topic acquisition subunit is used to retrieve the target file topic corresponding to the target media file when the component function corresponding to the topic retention component is set to the topic retention function, in response to the selection operation of k target file pages out of N target file pages;
[0023] The structure generation subunit is used to obtain the file conversion data corresponding to the target media file and generate a theme data structure based on the theme of the target file.
[0024] The format display subunit is used to determine the online display format of k target file pages in the target media file based on the topic data structure and file conversion data. Based on the online display format, k target file pages are added to the online media file to obtain the online updated file.
[0025] The device also includes:
[0026] The function display module is used to display online editing components in online media files, respond to trigger operations on online editing components, and display application function components of online media files; the application function components include the first file import component;
[0027] The first trigger module is used to respond to the trigger operation of the first file import component and display h media files; h is a positive integer, and the h media files include the target media file;
[0028] This file imports modules, specifically for:
[0029] In the online media files, the first user device responds to the import operation of the target media file in h media files and displays the N target file pages included in the target media file.
[0030] The device also includes:
[0031] The thumbnail display module is used to display the area where the file page thumbnails of online media files are located;
[0032] The area display module is used to respond to trigger operations on the display area and display the default page area at the trigger position indicated by the trigger operation on the display area;
[0033] The page component display module is used to respond to trigger operations on the default page area and display the page functional components associated with the default page area; the page functional components include the second file import component;
[0034] The second trigger module is used to respond to the trigger operation of the second file import component and display h media files; h is a positive integer, and the h media files include the target media file;
[0035] This file imports modules, specifically for, including:
[0036] In the online media files, the first user device responds to the import operation of the target media file in h media files and displays the N target file pages included in the target media file based on the default page area.
[0037] The import module for this file includes:
[0038] The trajectory acquisition unit is used to acquire the drag trajectory corresponding to the drag operation in response to a drag operation on a target media file by the first user device.
[0039] The operation determination unit is used to determine the drag operation as an import operation for the target media file if the drag trajectory is from the starting position of the target media file to the import position; the import position refers to the location of the online media file.
[0040] The import response unit is used to respond to import operations for the target media file and display the N target file pages included in the target media file.
[0041] The import module for this file includes:
[0042] The history display unit is used to respond to the trigger operation of the history data acquisition component and display f historical media files on the history file display page; the historical media files are the media files used by the first user device when it used the online editing application in the past, and the online editing application is the application where the online media files are located; f is a positive integer; the f historical media files include the target media file;
[0043] This page display unit is also used to respond to import operations for target media files in f historical media files, and to display N target file pages included in the target media file in the online media file.
[0044] The device also includes:
[0045] The update synchronization module is used to send the online update file to the second user device so that the second user device can display the online update file; the online update file contains M online file pages and k target file pages; the second user device and the first user device jointly update and display the online media file.
[0046] The import module for this file includes:
[0047] The account acquisition unit is used by the first user device to obtain the device account information associated with the online media file in response to the import operation of the target media file in the online media file.
[0048] The permission verification unit is used to obtain the data upload permission corresponding to the device account information. If the device account information has data upload permission, the target media file is uploaded to the online editing application, and the N target file pages included in the target media file are displayed; the online editing application is the application where the online media file is located.
[0049] The import module for this file includes:
[0050] The file detection unit is used by the first user device to respond to the import operation of the target media file in the online media file, obtain the file format of the target media file, and perform security detection on the target media file.
[0051] The verification unit is used to upload the target media file to the online editing application and display the N target file pages included in the target media file if the target media file's file format is the default file format and the target media file's security check passes. The online editing application is the application where the online media file is located.
[0052] The import module for this file includes:
[0053] The data partitioning unit is used by the first user device in response to an import operation for a target media file in an online media file, to divide the target media file into r file data packets; where r is a positive integer.
[0054] The data upload unit is used to sequentially upload r file data packages to the online editing application; the online editing application is the application where the online media files are located.
[0055] The data retransmission unit is used to obtain the data upload status of each file data packet, and re-upload the file data packets with the data upload status of "upload failed" among r file data packets to the online editing application;
[0056] This page display unit is also used to display the N target file pages included in the target media file when all r file data packets have been successfully uploaded.
[0057] Each of the r file data packets carries a packet position; the packet position is used to indicate the location of the file data packet in the target media file;
[0058] This page displays units, including:
[0059] The location acquisition subunit is used to obtain the packet location carried by each file data packet when all r file data packets are successfully uploaded;
[0060] The data combination subunit is used to combine r file data packets sequentially based on the packet position carried by each file data packet to obtain the target media file and display the N target file pages included in the target media file.
[0061] The device also includes:
[0062] The storage display module is used to display a storage confirmation message for the target media file in online media files;
[0063] The term acquisition module is used to respond to the confirmation operation in response to the storage confirmation message and obtain the storage term configuration message of the target media file;
[0064] The file storage module is used to store the target media file to the online media database by storing the file storage period indicated by the storage period configuration message.
[0065] The file deletion module is used to delete target media files from the online media database if the storage time of the target media file reaches the file storage expiration date.
[0066] The modules selected on this page include:
[0067] The method acquisition unit is used to respond to the selection operation of k target file pages out of N target file pages and to acquire the triggering method of the import operation for the target media file;
[0068] The position addition unit is used to obtain the page addition position based on the triggering method of the import operation for the target media file, and add k target file pages to M online file pages of the online media file based on the page addition position to obtain the online updated file;
[0069] This location is used to add a cell, specifically for:
[0070] Obtain the page addition position corresponding to the trigger method of the import operation for the target media file, add the k target file pages to the page addition positions of the M online file pages of the online media file, and obtain the online updated file;
[0071] or,
[0072] Based on the triggering method of the import operation for the target media file, the page addition position corresponding to each of the k target file pages is obtained. Based on the page addition position corresponding to each of the k target file pages, the k target file pages are added to the M online file pages of the online media file to obtain the online updated file.
[0073] The file display module includes:
[0074] The identifier generation unit is used to obtain the online identifiers carried by M online file pages, and generate a target media identifier associated with the target media file based on the online identifiers;
[0075] The associated display unit is used to associate and display the target media identifier with k target file pages;
[0076] The device also includes:
[0077] The identifier triggering module is used to respond to triggering operations targeting a target media identifier and obtain the identifier prompt message associated with the target media identifier. The identifier prompt message is used to indicate that the target file page associated with the target media identifier belongs to the target media file.
[0078] The device also includes:
[0079] The status update module is used to respond to page triggering operations for k target file pages out of N target file pages. If the page triggering operation is used to update the selection status of the k target file pages to the page selected state, then a highlight label is added to the k target file pages.
[0080] The highlighting module is used to respond to triggering operations on highlighting tags and display page selection prompt messages for k target file pages.
[0081] The device also includes:
[0082] The update receiving module is used to receive file update data for online update files sent by the second user equipment; the file update data includes update location information and update content;
[0083] The file update module is used to update and display online update files based on update location information and update content.
[0084] One embodiment of this application provides a computer device, including a processor, a memory, and an input / output interface;
[0085] The processor is connected to a memory and an input / output interface, respectively. The input / output interface is used to receive and output data, the memory is used to store computer programs, and the processor is used to invoke the computer programs so that the computer device containing the processor executes the file processing method in one aspect of the embodiments of this application.
[0086] One aspect of this application provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having the processor performs the file processing method of one aspect of this application.
[0087] One aspect of this application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional embodiments of this application.
[0088] Implementing the embodiments of this application will have the following beneficial effects:
[0089] In this embodiment, the first user equipment, in response to an import operation for a target media file in an online media file, displays N target file pages included in the target media file; N is a positive integer; the online media file includes M online file pages; M is a positive integer; in response to a selection operation for k target file pages among the N target file pages, adds k target file pages to the online media file to obtain an online updated file; k is a positive integer, k is less than or equal to N; and displays the online updated file containing M online file pages and k target file pages. Through the above process, the first user device provides a function for quickly transferring content when managing online media files. For different media files, the first user device can provide an import interface for other media files in the online media file and display the target file pages included in the target media file to be imported into the online media file. This allows users to intuitively view the file pages that can be imported into the online media file, improving the convenience of file content transfer. In addition, it also provides an interface for selecting specific file pages, which allows any other media file to be added to the online media file, and any one or more file pages from the target media file to be added to the online media file. This improves the flexibility of file content transfer, while reducing the operational cost of adding other media file content to the online media file and improving file processing efficiency. Attached Figure Description
[0090] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0091] Figure 1 This is a network interaction architecture diagram for file processing provided in an embodiment of this application;
[0092] Figure 2 This is a schematic diagram of a file processing scenario provided in an embodiment of this application;
[0093] Figure 3 This is a flowchart of a document processing method provided in an embodiment of this application;
[0094] Figure 4 This is a schematic diagram of a progress display scenario provided in an embodiment of this application;
[0095] Figure 5a This is a schematic diagram of a file import scenario based on an editing component area provided in an embodiment of this application;
[0096] Figure 5b This is a schematic diagram illustrating a file import scenario based on a default page area, as provided in an embodiment of this application.
[0097] Figure 5c This is a schematic diagram of a default page area display scenario provided in an embodiment of this application;
[0098] Figure 5d This is a schematic diagram of a file import scenario based on drag-and-drop operation provided in an embodiment of this application;
[0099] Figure 6 This is a schematic diagram of a theme setting scenario provided in an embodiment of this application;
[0100] Figure 7 This is a schematic diagram of a subject data structure provided in an embodiment of this application;
[0101] Figure 8 This is a schematic diagram of another subject data structure provided in an embodiment of this application;
[0102] Figure 9 This is a schematic diagram of a file import process provided in an embodiment of this application;
[0103] Figure 10 This is a schematic diagram of a file upload process provided in an embodiment of this application;
[0104] Figure 11 This is a flowchart of a file import function provided in an embodiment of this application;
[0105] Figure 12 This is a timing diagram of a file import function provided in an embodiment of this application;
[0106] Figure 13 This is an import timing diagram of a file import method provided in an embodiment of this application;
[0107] Figure 14 This is a file import workflow provided in an embodiment of this application;
[0108] Figure 15 This is a use case diagram of a media file processing function provided in an embodiment of this application;
[0109] Figure 16 This is a schematic diagram of a document processing device provided in an embodiment of this application;
[0110] Figure 17 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0111] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0112] In the embodiments of this application, please refer to Figure 1 , Figure 1 This is a network interaction architecture diagram for file processing provided in an embodiment of this application. This embodiment can be implemented by a user device. The online editing application is a document tool that allows online editing, viewing, and multi-user collaboration. Different users can simultaneously edit and share the same file based on this online file program. The online editing application can manage media files of one or more media formats, such as document files (e.g., .doc or .docx formats), video files, or presentation files. A presentation file (PowerPoint, PPT) is a file that transforms static file content into dynamically viewable material, making complex content more accessible and memorable through visual information. A presentation file consists of one or more slides.
[0113] Specifically, when d user devices collaborate based on this online editing application, these d user devices can exchange data. Each user device that makes changes to the online media file (such as adding, deleting, or modifying content) will share the changes to the online media file with the other user devices, where d is a positive integer. These d user devices can also exchange data through a server (e.g., Figure 1 (As shown by the solid line in the middle), data interaction can also be performed directly (such as...). Figure 1(As shown by the dashed line in the middle), or it can simultaneously achieve data interaction between different user devices based on both server and direct communication. For example... Figure 1 As shown, the d user devices may include user device 102a and user device 102b, etc. User device 102a and user device 102b can interact with each other through server 101 or directly. Each user device can be considered to include a local layer and an online layer. The user device can respond to operations on itself through the local layer and to operations on the online editing application through the online layer, thus enabling data interaction with other user devices. For example, user device 102a and user device 102b can interact based on their respective online layers to achieve sharing and collaboration of online media files in the online editing application. Taking user device 102a as an example, user device 102a can manage online media files based on the online layer, and can retrieve target media files from its storage space (or local database) based on the local layer, or directly retrieve target media files from the online editing application based on the online layer. It can then add selected file pages from the target media files to the online media files. Simultaneously, user device 102a can synchronize the file pages added to the online media files to user device 102b.
[0114] For details, please see Figure 2 , Figure 2 This is a schematic diagram of a file processing scenario provided in an embodiment of this application. For example... Figure 2 As shown, the first user device can manage online media files 202 based on the online editing application 201, and the first user can edit the online media files 202 on the first user device. The first user device can respond to a triggering operation of the file import component 2021 in the online media files 202 to obtain h media files from the first user device or the online editing application 201, where h is a positive integer. In response to an import operation for a target media file among the h media files, it displays N target file pages 204 included in the target media file, where N is a positive integer. The first user device can respond to a selection operation for k target file pages among the N target file pages 204, adding k target file pages to the online media files 202 to obtain an online updated file. Based on the online editing application 201, the online updated file is displayed. Optionally, k target file pages 205 can be added to the online media files to obtain an online updated file, where k is a positive integer, and k is less than or equal to N. Optionally, the first user device can synchronize k target file pages to the second user device 206, so that the second user device 206 can display the online update file, which includes k target file pages.
[0115] It is understood that the user equipment mentioned in the embodiments of this application (such as the first user equipment or the second user equipment, etc.) can be a computer device. The computer device in the embodiments of this application includes, but is not limited to, terminal devices or servers. In other words, the computer device can be a server or a terminal device, or a system composed of a server and a terminal device. Among them, the terminal device mentioned above can be an electronic device, including but not limited to mobile phones, tablets, desktop computers, laptops, handheld computers, in-vehicle devices, augmented reality / virtual reality (AR / VR) devices, head-mounted displays, smart TVs, wearable devices, smart speakers, digital cameras, webcams and other mobile internet devices (MIDs) with network access capabilities, or terminal devices in scenarios such as trains, ships, and flights. The servers mentioned above can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, vehicle services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0116] Optionally, the data involved in the embodiments of this application may be stored in a computer device or may be stored based on cloud storage technology, without any limitation.
[0117] Further, please see Figure 3 , Figure 3 This is a flowchart of a file processing method provided in an embodiment of this application. Figure 3 As shown, the file processing procedure includes the following steps:
[0118] In step S301, the first user device, in the online media file, responds to the import operation for the target media file and displays the N target file pages included in the target media file.
[0119] In this embodiment, the first user equipment, in response to an import operation on a target media file within an online media file, displays N target file pages included in the target media file, where N is a positive integer. The online media file includes M online file pages, where M is zero or a positive integer. Optionally, the online media file can be a document file, video file, or presentation file, etc. In response to an import operation on a target media file within an online media file, the first user equipment splits the target media file to obtain the N target file pages included in the target media file and displays the N target file pages included in the target media file.
[0120] For example, if the target media file is a document file, the first user device can obtain the pagination information of the document file and divide the target media file into N target file pages based on the pagination information of the document file. For example, if the target media file is a document file A, which includes 5 pages, the document file A can be divided into 5 target file pages based on the pagination information of the document file A, that is, N can be 5. For example, if the target media file is a video file, the first user device can split the target media file into N video frame images, and determine the N video frame images as the N target file pages included in the target media file; or, if the target media file is a video file, the first user device can split the target media file into N video segments, and determine the N video segments as the N target file pages included in the target media file. The first user device can split the target media file into N video segments based on the video duration. Optionally, the first user device can split the target media file into N video segments based on the video duration and the default number of segments (i.e., N is the default number of segments), or the first user device can split the target media file into N video segments based on the video duration and the default segment duration (i.e., N is the ratio of the video duration to the default segment duration), etc., without limitation. For example, if the target media file is a presentation file, the first user device can identify the slides in the target media file as target file pages. In other words, the first user device can obtain one or more slides that make up the target media file and identify one or more slides as N target file pages, etc.
[0121] Optionally, when importing a target media file, the first user device can display an import progress message for that target media file. Specifically, in the online media file, the first user device responds to the import operation for the target media file and displays the import progress message of the target media file in the progress display area; if the import of the target media file fails, an import failure prompt message is displayed in the progress display area; if the import of the target media file is successful, the N target file pages included in the target media file are displayed. Optionally, the first user device can also display an import success prompt message in the progress display area.
[0122] For details, please see Figure 4 , Figure 4 This is a schematic diagram of a progress display scenario provided in an embodiment of this application. For example... Figure 4 As shown, in online media file 401, the first user device, in response to a trigger operation on file import component 402, obtains the media file associated with the trigger operation on file import component 402, and determines the target media file 403 from the associated media file. This file import component can be displayed anywhere in the online editing application, or it can be a control displayed independently in the online editing application, or a control that needs to be triggered to display, etc. This file import component is associated with the online editing application and with the media file currently displayed in the online editing application (such as the online media file); online media file 401 can include one or at least two file import components. In response to the import operation on target media file 403, the device monitors the import progress of target media file 403 in real time, and displays an import progress message in the progress display area 404 based on the monitored import progress of target media file 403, for example... Figure 4 Assuming the import progress of the target media file 403 is 4%, an import progress message can be displayed in the progress display area 404. This message can include the import progress (e.g., "4%)" and import prompts (e.g., "Importing"). Furthermore, if the target media file import fails, an import failure message is displayed in the progress display area 404; if the target media file import succeeds, the first user device can also display an import success message in the progress display area 404, and then further cancel the display of the progress display area 404 to display the N target file pages included in the target media file.
[0123] The file import component can be located anywhere in the online editing application, and it can have different triggering methods.
[0124] In one triggering method A for the file import component, the first user device displays an online editing component in the online media file, and in response to a triggering operation on the online editing component, displays the application function component of the online media file; the application function component includes the first file import component; wherein, the online editing component is a component associated with the online media file in the online editing application. The first user device can respond to a triggering operation on the first file import component and display h media files; h is a positive integer, and the h media files include the target media file. Specifically, the first user device can respond to a triggering operation on the first file import component, display the file path indicated by the triggering operation on the first file import component, respond to a selection operation on the file path, determine the target file path, and display the h media files corresponding to the target file path. Further, in the online media file, the first user device, in response to an import operation on the target media file among the h media files, displays N target file pages included in the target media file.
[0125] For example, please see Figures 5a to 5d , Figures 5a to 5d This is a schematic diagram illustrating a file import component triggering scenario provided in an embodiment of this application. For example... Figures 5a to 5d As shown, the online editing application 501 may include, but is not limited to, application areas such as the editing component area 502, the thumbnail display area 503, and the file display area 504. The relative position of these application areas within the online editing application is not limited. When managing online media files in the online editing application 501, the online media file can be considered to include the application area, and its relevant data can be displayed through this application area. Figure 5a As shown, Figure 5a This is a schematic diagram illustrating a file import scenario based on an editing component area, as provided in an embodiment of this application. Figure 5aAs shown, a file import component can be displayed in the editing component area 502 of the online editing application 501; alternatively, it can be displayed in the application function component list associated with any online editing component (such as a file component or editing component) in the editing component area 502. Taking the display of a file import component in the application function component list as an example, let's call this file import component the first file import component. The first user device can respond to a trigger operation for an online editing component (such as a file component) and display the application function component 501 of the online media file. This application function component 501 includes the first file import component. Specifically, the first user device responds to a trigger operation for an online editing component and displays the application function component 501 of the online media file in the application function component list associated with that online editing component. The first user device can respond to a trigger operation for the first file import component and display h media files; h is a positive integer, and the h media files include the target media file. Further, in the online media files, the first user device, in response to an import operation for the target media file among the h media files, displays N target file pages included in the target media file.
[0126] In one triggering method B for the file import component, the first user device can display the display area (i.e., the thumbnail display area) where the file page thumbnails of the online media files are located; in response to a triggering operation on the display area, a default page area is displayed at the triggering position indicated by the triggering operation on the display area, wherein the default page area is located within the display area; in response to a triggering operation on the default page area, the page function component associated with the default page area is displayed; the page function component includes a second file import component. In response to a triggering operation on the second file import component, h media files are displayed; h is a positive integer, and the h media files include a target media file. Further, in the online media files, in response to an import operation on the target media file among the h media files, the first user device displays N target file pages included in the target media file based on the default page area.
[0127] Among them, such as Figure 5b As shown, Figure 5bThis is a schematic diagram of a file import scenario based on a default page area provided in an embodiment of this application. A first user device can display a thumbnail display area (i.e., the display area where the file page thumbnails of the online media file are located) 503 in an online editing application 501. In response to a trigger operation targeting the thumbnail display area 503, the default page area is displayed at the trigger position indicated by the trigger operation targeting the thumbnail display area 503. The online media file includes M online file pages. The first user device can display the file page thumbnails corresponding to each of the M online file pages in the thumbnail display area 503. Optionally, each online file page can be a file page with content or a file page without content. In response to a trigger operation targeting the thumbnail display area 503, the default page area is displayed at the trigger position indicated by the trigger operation targeting the thumbnail display area 503. In response to a trigger operation targeting the default page area, the page function component 5031 associated with the default page area is displayed; the page function component 5031 includes a second file import component (such as the component corresponding to "Import Media File"). In response to a trigger operation on the second file import component, h media files are displayed; h is a positive integer, and the h media files include the target media file. Further, in the online media files, in response to an import operation on the target media file in the h media files, the first user device displays N target file pages included in the target media file based on the default page area.
[0128] Optionally, if the trigger position indicated by the trigger operation targeting the display area is the location of the file page thumbnail of the target online file page, then the area at the location of the file page thumbnail of the target online file page is determined as the default page area, wherein the target online file page is any one of the M online file pages; if the trigger position indicated by the trigger operation targeting the display area is the position between the file page thumbnails of adjacent online file pages, then a default page area is inserted between the file thumbnails of the adjacent online file pages. For example, the trigger position indicated by the trigger operation targeting the display area is... Figure 5b If the position of page region 1 where the file page thumbnail of online file page 1 is located is the same as the position of page region 2 where the file page thumbnail of online file page 2 is located, then a default page region is inserted between page region 1 and page region 2; if the trigger position indicated by the trigger operation for the display area is an empty sub-region in the display area, then a default page region is added to that empty sub-region.
[0129] For example, please see Figure 5c , Figure 5c This is a schematic diagram illustrating a default page area display scenario provided in an embodiment of this application. For example... Figure 5cAs shown, assuming the thumbnail display area (i.e., the display area where the file page thumbnail is located) 503 includes page area 1 where the file page thumbnail of online file page 1 is located, page area 2 where the file page thumbnail of online file page 2 is located, and page area 3 where the file page thumbnail of online file page 3 is located. In the first default page area display mode, the trigger position indicated by the trigger operation for the display area is the location of the file page thumbnail of the target online file page. For example, if the trigger position indicated by the trigger operation for the display area is page area 1 corresponding to online file page 1, then page area 1 is determined as the default page area. In the second default page area display mode, the trigger position indicated by the trigger operation for the display area is the position between the file page thumbnails of adjacent online file pages. Assuming the trigger position indicated by the trigger operation for the display area is between page area 1 and page area 2, a default page area is inserted between page area 1 and page area 2. Optionally, the numbering of each page area in the thumbnail display area 503 can be adjusted based on the default page area. For example, if the default page area number is 2, page area 2 is updated to page area 3, and page area 3 is updated to page area 4. In the third default page area display mode, the trigger position indicated by the trigger operation for the display area is an empty sub-area within the display area. Therefore, a default page area can be added to this empty sub-area. That is, after the page areas corresponding to the M online file pages, such as... Figure 5c In the middle, a default page area is added to the thumbnail display area 503. At this time, the default page area is page area 4, that is, the default page area is added after page area 1 to page area 3.
[0130] In one of the file import component triggering methods C, the first user device responds to a drag operation on the target media file and obtains the drag trajectory corresponding to the drag operation; if the drag trajectory is a trajectory from the starting position of the target media file to the import position, then the drag operation is determined to be an import operation on the target media file; the import position refers to the location of the online media file; in response to the import operation on the target media file, the N target file pages included in the target media file are displayed.
[0131] For example, please see Figure 5d , Figure 5d This is a schematic diagram illustrating a file import scenario based on drag-and-drop operations, as provided in an embodiment of this application. Figure 5dAs shown, the target media file can be a media file in an online editing application or a media file stored on a first user device. Specifically, the target media file 506 is displayed in the target application 505. If the target media file 506 is a media file in an online editing application, then the target application 505 is an online editing application; if the target media file 506 is stored on the first user device, then the first user device 505 is a file management application. The first user device responds to a drag operation on the target media file 506 and obtains the drag trajectory corresponding to the drag operation. If the drag trajectory is from the starting position of the target media file 506 to the import position—in other words, the drag trajectory is from the target application 505 to the online editing application 501 where the online media file is located—then the drag operation is determined to be an import operation on the target media file 506. Wherein, if the target application 505 is an online editing application, then the target application 505 and the online editing application 501 refer to the windows used by the online editing application to display different media files.
[0132] Optionally, the value of h may be the same or different depending on the triggering method of different file import components.
[0133] Optionally, the first user device may acquire the target media file from historical media files. In response to a trigger operation on the historical data acquisition component, the first user device may display f historical media files on the historical file display page; these historical media files are media files used by the first user device in the past when using the online editing application, and the online editing application is the application containing the online media files; f is a positive integer; the f historical media files include the target media file. In response to an import operation on the target media file among the f historical media files, the first user device may display N target file pages included in the target media file on the online media file display page.
[0134] Step S302: In response to the selection operation of k target file pages out of N target file pages, add k target file pages to the online media file to obtain the online updated file.
[0135] In this embodiment, k is a positive integer, less than or equal to N. Optionally, the first user equipment may display a theme retention component for the target media file in the online media file. When the component function corresponding to the theme retention component is set to theme retention function, in response to the selection operation of k target file pages out of N target file pages, k target file pages are added to the online media file based on the target file theme corresponding to the target media file, resulting in an online updated file; the online updated file is the online media file after adding k target file pages; when the component function corresponding to the theme retention component is set to theme cancellation function, in response to the selection operation of k target file pages out of N target file pages, k target file pages are added to the online media file based on the default file theme of the online media file, resulting in an online updated file; the online updated file is the online media file after adding k target file pages.
[0136] For example, please see Figure 6 , Figure 6 This is a schematic diagram of a theme setting scenario provided in an embodiment of this application. For example... Figure 6As shown, in the online media file 601, the first user device, in response to the trigger operation of the file import component 602, displays h media files, and in response to the import operation of a target media file among the h media files, displays the file page management area 603. This file page management area 603 can be displayed independently on the page containing the online media files, or it can be displayed directly on the page containing the online media files, etc., without limitation. The first user device can display N target file pages 6031 in the file page management area 603. Optionally, it can also display a theme retention component 6032 and a select all function component 6033 for the target media files in the file page management area 603. The trigger state of the theme retention component 6032 indicates the component function corresponding to it. For example, if the trigger state of the theme retention component 6032 is selected, it means that the component function is set to theme retention; if the trigger state of the theme retention component 6032 is unselected, it means that the component function is set to theme retention cancellation. When the select all component 6033 is selected, it indicates that a selection operation has been triggered for all N target file pages, where k is N. In response to the trigger operation for adding components to pages, the first user device obtains the trigger state of the theme retention component 6032, the selection state (selected or unselected) of the select all component 6033, and the target file pages corresponding to the selection operation. It then determines k target file pages and adds them to the online media file 601 to obtain the online updated file. Optionally, thumbnails of the target file pages can be added to the thumbnail display area 604.
[0137] Optionally, the first user equipment can respond to page triggering operations for k target file pages out of N target file pages. If the page triggering operation is used to update the selection state of the k target file pages to a selected state, then a highlight label is added to the k target file pages. The page triggering operation is used to change the selection state of the corresponding target file page, which includes a selected state and a deselected state. For example, if the selection state of target file page 1 is deselected, in response to the page triggering operation for target file page 1, the selection state of target file page 1 is updated to a selected state. The highlight label is used to indicate that the selection state of the k target file pages is a selected state. The highlight label can be a page border highlight label (such as adding a colored border indicator or thickening the page border), a size highlight label for the k target file pages (such as increasing the size), or a label mask (such as a color mask) added to the k target file pages, etc. In response to a trigger operation targeting a highlighted label or k target file pages, the system can display a page selection tooltip message for the k target file pages, or it can display the main information of the corresponding target file pages. Furthermore, in response to a selection operation targeting the k target file pages, it can add the k target file pages to the online media file. Optionally, if the page trigger operation updates the selection status of the k target file pages to an unselected state, the highlighted label for the k target file pages is deselected; that is, the k target file pages are displayed with a default label indicating that the selection status of the k target file pages is unselected.
[0138] For example, such as Figure 6 As shown, in the file page management area 603, the first user device responds to a page triggering operation for k target file pages (such as the first target file page and the second target file page) out of N target file pages 6031. This page triggering operation updates the selection state of the k target file pages to the selected state and adds highlight labels to the k target file pages, such as... Figure 6 In the code, the page borders of the first and second target file pages out of N target file pages are displayed in bold. In response to a trigger action on the highlighted label or k target file pages, a page selection tooltip message is displayed for those k target file pages. For example, when the mouse moves over the highlighted label or k target file pages, the page selection tooltip message is displayed; that is, the trigger action for the highlighted label or k target file pages is a mouse hover operation. Of course, other operations are also possible and are not limited here.
[0139] When the first user device adds k target file pages to the online media file 601, it can obtain the triggering method of the file import component. Based on the page addition position corresponding to the triggering method, it adds the k target file pages to M online file pages to obtain the online updated file. In other words, the first user device responds to the selection operation of k target file pages out of N target file pages, obtains the triggering method of the import operation for that target media file (i.e., the triggering method of the file import component), obtains the page addition position based on the triggering method of the import operation for the target media file, and adds the k target file pages to M online file pages of the online media file based on the page addition position to obtain the online updated file. This import operation for the target media file is implemented by triggering the file import component.
[0140] Specifically, k target file pages can be added in batches based on their page addition positions. This batch addition means adding the k target file pages to the same location. That is, after determining the page addition position, the k target file pages are added to that position. Specifically, the first user device can obtain the page addition position corresponding to the trigger method of the import operation for the target media file, and add the k target file pages to the page addition position among the M online file pages of the online media file, thus obtaining the online updated file.
[0141] For example, if the file import component is triggered by a file import method based on the online editing component (i.e., trigger method A of the file import component), the first user device can determine the default add position as the page add position. Based on this page add position, k target file pages are added to M online file pages to obtain online updated files. This default add position can be the end of the file, the beginning of the file, or the default file position, etc. If the file import component is triggered by a file import method based on the default page area (i.e., trigger method B of the file import component), the first user device can determine the trigger position indicated by the trigger operation for the display area as the page add position. Based on this page add position, k target file pages are added to M online file pages to obtain online updated files. For example, if the trigger position indicated by the trigger operation for the display area is between page area 1 and page area 2, then the page add position is between online file page 1 corresponding to page area 1 and online file page 2 corresponding to page area 2. If the file import component is triggered by a drag-and-drop operation (i.e., triggering method C), the first user device can determine the default addition location as the page addition location, or determine the import location indicated by the drag trajectory as the page addition location. Based on the page addition location, k target file pages are added to M online file pages to obtain online updated files.
[0142] Specifically, k target file pages can be added in batches based on their page addition positions. This batch addition means adding the k target file pages to different locations. That is, at least two page addition positions are determined, and the k target file pages are added to each of these at least two page addition positions, where the number of these at least two page addition positions is less than or equal to k. Specifically, the first user device can obtain the page addition positions corresponding to each of the k target file pages based on the triggering method of the import operation for the target media file. Based on these page addition positions, the k target file pages are added to the M online file pages of the online media file, resulting in an online updated file.
[0143] For example, the first user equipment can perform multiple selection operations on k target file pages, obtain the page addition position corresponding to each selection operation, and determine the page addition position corresponding to each of the k target file pages. Based on the page addition positions corresponding to each of the k target file pages, the k target file pages are added to the M online file pages of the online media file to obtain the online updated file. For example, when the first user equipment responds to a selection operation on k1 target file pages out of N target file pages, it obtains the page addition position corresponding to the selection operation and determines the page addition position of the k1 target file pages, where k1 is a positive integer less than or equal to k; when responding to a selection operation on k2 target file pages out of N target file pages, it obtains the page addition position corresponding to the selection operation and determines the page addition position of the k2 target file pages, where k2 is a positive integer less than or equal to k; ...; until the page addition positions corresponding to each of the k target file pages are obtained.
[0144] Alternatively, the first user device can respond to multiple import operations on the target media file, and determine the page addition position of the target file page associated with each import operation based on the triggering method of each import operation, thereby obtaining the page addition positions corresponding to each of the k target file pages. For example, in response to a selection operation on k1 target file pages out of N target file pages, the triggering method of the import operation corresponding to the selection operation on the k1 target file pages is obtained, and the page addition position of the k1 target file pages is determined based on the triggering method of the import operation. Similarly, the page addition positions corresponding to each of the k target file pages are obtained. For example, if it is necessary to add the first to sixth target file pages from the target media file to the online media file, in response to the import operation for the target media file, N target file pages are displayed. In response to the selection operation for the first to second target file pages from the N target file pages, the page addition positions for the first to second target file pages are determined based on the current import operation for the target media file. Similarly, in response to the import operation for the target media file, N target file pages are displayed. In response to the selection operation for the third to sixth target file pages from the N target file pages, the page addition positions for the third to sixth target file pages are determined based on the current import operation for the target media file.
[0145] Alternatively, the first user device can respond to a selection operation for k target file pages out of N target file pages, display a location selection page, and obtain the page addition positions corresponding to the k target file pages submitted in the location selection page.
[0146] Specifically, when the component function corresponding to the theme retention component is set to theme retention, the online update file generation process involves the first user device responding to a selection operation for k target file pages out of N target file pages, obtaining the target file theme corresponding to the target media file; obtaining the file conversion data corresponding to the target media file, and generating a theme data structure based on the target file theme; determining the online display format of the k target file pages in the target media file based on the theme data structure and the file conversion data; and adding the k target file pages to the online media file based on the online display format to obtain the online update file. Optionally, the first user device can generate the theme data structure based on the target file theme, or it can generate the theme data structure based on the associated file theme related to the k target file pages in the target file theme, etc. By adding the k target file pages to the online media file based on the online display format to obtain the online update file, the k target file pages can be displayed in a format supported by the online editing application, thereby improving the format compatibility of media file content transfer and improving the display effect of the k target file pages in the online editing application. Optionally, if the target media file is located in an online editing application, the format conversion of the k target file pages can be omitted. That is, when responding to a selection operation for k target file pages out of N target file pages, the k target file pages can be directly added to the online media file to obtain an online updated file.
[0147] The topic data structure represents the display method of k target file pages when k target file pages are added to an online media file. Optionally, the topic data structure may include, but is not limited to, topic physical structure, topic logical relationship, and topic tree. Specifically, when the target media file is a document file, the topic data structure can represent the positional relationship, font, paragraph format, segmentation style, and style of inserted attachments among the N target file pages included in the target media file; when the target media file is a video file, the topic data structure can represent the adjacency relationship, video resolution, video duration, and video and audio formats among the N target file pages included in the target media file; when the target media file is a presentation file, the topic data structure can represent the adjacency relationship, master slide, layout, and elements within the target file pages of the target media file.
[0148] For example, please see Figure 7 , Figure 7 This is a schematic diagram of a subject data structure provided in an embodiment of this application. For example... Figure 7As shown, assuming the target media file is a presentation file, the physical structure of the theme corresponding to the target media file may include a set of master pages and corresponding master relationship files, a set of layout pages and corresponding layout relationship files, a set of file pages and corresponding page relationship files, and a set of themes. The theme set includes one or at least two themes, each theme including a slide master and a set of related layouts. A theme refers to a set of colors, fonts, and special effects (such as shadows, reflections, and 3D effects) that complement each other. The master slide (SlideMaster) is a slide view or page that defines the format of all slides or pages in the presentation file, containing display elements that can appear on every slide, including master slide types such as slide master, handout master, and notes master. Slide layouts can be changed and managed in the master slide. Each theme has one or at least two slide layouts, containing the format, position, and placeholder boxes of all content displayed on the slide.
[0149] When generating a theme data structure based on the target file theme, the master page set includes the masters included in the target media file. The master relationship file represents the relationships between the masters included in the target media file, as well as the relationships between the masters and the layout, file pages, and themes of the target media file. The layout page set includes the layouts included in the target media file. The layout relationship file represents the relationships between each layout and the masters, file pages, and themes. The file page set includes N target file pages, or optionally, the content of N target file pages. The page relationship set represents the relationships between each target file page, as well as the relationships between each target file page and the masters, layouts, and themes.
[0150] When generating a topic data structure based on associated file topics, the topic physical structure may only include data related to the associated file topics. For example, the master page set may include the masters included in k target file pages, the layout page set may include the layouts included in k target file pages, and the file page set may include k target file pages, etc. Similarly, master relationship files, layout relationship files, and page relationship files represent the relationships between the masters, layouts, file pages, and topics corresponding to k target file pages.
[0151] The logical relationship of the theme can be the association between master pages, layout pages, and file pages included in the target media file or k target file pages. For example, a master page (also called a master slide) includes one or at least two layout pages (also called layouts) and elements in the master page; a layout page corresponds to a file page, including elements in the layout; a file page includes elements, graphics, and combinations in the file page, where a combination refers to a combination of images, text boxes, and / or connecting lines. The physical structure of the theme and the logical relationship of the theme can be mutually converted.
[0152] Among them, see Figure 8 , Figure 8 This is a schematic diagram of another subject data structure provided in an embodiment of this application. For example... Figure 8 As shown, assuming the target media file is a presentation file, the theme tree corresponding to this target media file can be a tree composed of presentation nodes as the root node. This theme tree includes one or more style nodes, such as master nodes, layout nodes, document page nodes, note master nodes, note document page nodes, handout master nodes, themes nodes, code nodes, presentation file property nodes, view property nodes, and font nodes, etc. The root node and style nodes in this theme tree, as well as the edges between style nodes, are used to represent the relationships between the nodes connected by the edges.
[0153] Step S303: Display the online update files.
[0154] In this embodiment, an online update file comprising M online file pages and k target file pages is displayed. Optionally, the online identifiers carried by the M online file pages are obtained, and a target media identifier associated with the target media file is generated based on the online identifiers. The number of online identifiers can be zero, one, or at least two. Specifically, if the number of online identifiers in the M online file pages is zero, a target media identifier associated with the target media file is randomly generated. If there is a file page belonging to the target media file among the M online file pages, the historical associated online identifiers associated with the online file page belonging to the target media file are obtained, and a target media identifier associated with the target media file is generated based on the historical associated online identifiers. In this case, the target media identifier and the historical associated online identifier have the same identifier type, indicating that the online file page corresponding to the historical associated online identifier and the target file page corresponding to the target media identifier belong to the same media file; for example, if the historical associated online identifier is a red dot identifier, the target media identifier generated based on the historical online identifier is also a red dot identifier. If none of the M online file pages belong to the target media file, a target media identifier is generated based on the online identifier carried by the M online file pages, and this target media identifier is different from the online identifier. This target media identifier indicates that the target file page corresponding to the target media identifier and the online file page corresponding to the online identifier belong to different media files. For example, if the online identifier is a red dot, the target media identifier generated based on this online identifier can be a red triangle or a green dot, etc. Further, the first user device can associate the target media identifier with the k target file pages. Specifically, in the thumbnail display area, the target media identifier can be added to and displayed on the thumbnails corresponding to the k target file pages, such as... Figure 6 The thumbnail display area displays the target media identifier in page area 2 and page area 3 corresponding to the k target file pages, associating the target media identifier with the k target file pages corresponding to page area 2 and page area 3; alternatively, when displaying any one of the k target file pages in the file display area, the target media identifier can be associated with that target file page, for example... Figures 5a to 5d In the file display area 504, when displaying any one of the k target file pages, the target media identifier associated with that target file page can be displayed in the file display area 504.
[0155] Furthermore, in response to the trigger operation targeting the target media identifier, the first user equipment can obtain an identifier prompt message associated with the target media identifier. This identifier prompt message indicates that the target file page associated with the target media identifier belongs to the target media file. The identifier prompt message may be the identifier of the target media file, the storage location information of the target media file (such as the storage path), or the file name of the target media file.
[0156] Furthermore, the first user device can send an online update file to the second user device, enabling the second user device to display the online update file. The online update file contains M online file pages and k target file pages. The second user device and the first user device jointly update and display the online media file. Optionally, the first user device can directly send a file update message to the second user device. This file update message includes the k target file pages, their display positions and display methods within the online media file, etc. Based on this file update message, the first user device can add the k target file pages to the online media file in the second user device, thus obtaining the online update file in the second user device.
[0157] Optionally, the first user device can receive file update data for the online updated file sent by the second user device; the file update data includes update location information and update content. Based on the update location information and update content, the online updated file is updated and displayed. That is, the first user device and the second user device can synchronously edit the online media file, and both the first user device and the second user device have editing permissions for the online media file. The number of second user devices can be one or at least two.
[0158] Optionally, the first user device can display a storage confirmation message for the target media file in the online media files. In response to the confirmation operation for the storage confirmation message, it obtains the storage period configuration message for the target media file; stores the target media file in the online media database according to the file storage period indicated in the storage period configuration message; if the storage time of the target media file reaches the file storage period, it deletes the target media file from the online media database. Optionally, it can obtain historical usage information of the target media file to determine the storage period configuration message for the target media file. This historical usage information includes, but is not limited to, historical usage frequency and historical usage content percentage (i.e., the percentage of historically used content in the target media file); or, it can obtain the storage period configuration message submitted by the first user device and obtain the file storage period included in that storage period configuration message. Media files in the online media database can be recorded as historical media files. Optionally, if the target media file is a historical media file, the first user device can retrieve f historical media files from the online media database in response to a trigger operation on the historical data acquisition component, and display the f historical media files on the historical file display page. In this case, since the target media file is obtained from the online media database, it is not necessary to store the target media file again.
[0159] Optionally, when importing a new media file into the online media file, the theme data structure can be updated to represent the theme information of the target media file and the new media file, thus preserving the style of different media files and improving the compatibility of the online editing application with media files.
[0160] In this embodiment, the first user equipment, in response to an import operation for a target media file in an online media file, displays N target file pages included in the target media file; N is a positive integer; the online media file includes M online file pages; M is a positive integer; in response to a selection operation for k target file pages among the N target file pages, adds k target file pages to the online media file to obtain an online updated file; k is a positive integer, k is less than or equal to N; and displays the online updated file containing M online file pages and k target file pages. Through the above process, the first user device provides a function for quickly transferring content when managing online media files. For different media files, the first user device can provide an import interface for other media files in the online media file and display the target file pages included in the target media file to be imported into the online media file. This allows users to intuitively view the file pages that can be imported into the online media file, improving the convenience of file content transfer. In addition, it also provides an interface for selecting specific file pages, which allows any other media file to be added to the online media file, and any one or more file pages from the target media file to be added to the online media file. This improves the flexibility of file content transfer, while reducing the operational cost of adding other media file content to the online media file and improving file processing efficiency.
[0161] Furthermore, Figure 3 Step S301 can be found in Figure 9 , Figure 9 This is a schematic diagram of a file import process provided in an embodiment of this application. For example... Figure 9 As shown, the process includes the following steps:
[0162] In step S901, the first user device, in the online media file, responds to the trigger operation for the file import component and obtains the target media file.
[0163] In this embodiment, the first user equipment, in the online media files, responds to a trigger operation for the file import component, obtains h media files associated with the trigger operation for the file import component, and responds to a trigger operation for a target media file among the h media files, obtains the target media file. For details, please refer to... Figure 3 The specific description of step S301 in the above steps will not be repeated here.
[0164] Step S902: Detect the target media file.
[0165] In this embodiment, the first user equipment can detect the target media file and obtain a file detection result. Specifically, the first user equipment can detect one or more of the following: the security of the target media file, the file format, and the device account information of the first user equipment, to obtain a file detection result.
[0166] In one detection scenario, the first user device can obtain the device account information associated with the online media file; obtain the data upload permissions corresponding to the device account information; if the device account information has data upload permissions, then the file detection result of the target media file is determined to be a pass result, and step S903 is executed to upload the target media file to the online editing application, displaying the N target file pages included in the target media file; the online editing application is the application where the online media file is located. If the device account information does not have data upload permissions, then the file detection result of the target media file is determined to be an abnormal result.
[0167] In one detection scenario, the first user device can obtain the file format of the target media file and perform a security check on it. Specifically, the first user device can invoke its own file detection program to perform a security check on the target media file, for example, detecting whether the target media file carries a virus or is corrupted. If the target media file's file format is the default file format and the security check passes, the file detection result is determined to be a pass result, and step S903 is executed: the target media file is uploaded to an online editing application, displaying the N target file pages included in the target media file; the online editing application is the application containing the online media file. If the target media file's file format is not the default file format, or the security check fails, the file detection result is determined to be an abnormal result. The default file format can be a file format supported by the online editing application; or, if it is necessary to add content from a media file with the same file format as the online media file to the online media file, the first user device can obtain the file format of the online media file and determine it as the default file format.
[0168] Step S903: Based on the file detection results, display the N target file pages included in the target media file.
[0169] In this embodiment, if the file detection result is abnormal, an error message can be displayed. Specifically, if the abnormal detection result is due to the device account information lacking data upload permissions, the error message can be an account permission error message; if the abnormal detection result is due to the target media file's file format not being a default file format, the error message can be a format incompatibility message; if the abnormal detection result is due to the target media file failing security detection, the error message can be a file error message, etc. If the file detection result is successful, the target media file is imported into the online editing application, and the N target file pages included in the target media file are displayed.
[0170] Optionally, when importing the target media file into the online editing application and displaying the N target file pages included in the target media file, the first user device, in the online media file, responds to the import operation for the target media file and divides the target media file into r file data packets; r is a positive integer. The r file data packets are then sequentially uploaded to the online editing application; this online editing application is the application where the online media file resides. The upload status of each file data packet is obtained, and the file data packets with an upload failure status among the r file data packets are re-uploaded to the online editing application. When all r file data packets are successfully uploaded, the N target file pages included in the target media file are displayed.
[0171] Each of the r file data packets carries a packet position; the packet position indicates the location of the file data packet within the target media file. When all r file data packets are successfully uploaded, the N target file pages included in the target media file are displayed. Specifically, when all r file data packets are successfully uploaded, the packet position carried by each file data packet is obtained; based on the packet position carried by each file data packet, the r file data packets are sequentially combined to obtain the target media file, and the N target file pages included in the target media file are displayed.
[0172] Optionally, when displaying the N target file pages included in the target media file, the first user device may display thumbnails of the file pages corresponding to the N target file pages, or it may display N images obtained from the N target file pages, etc., without limitation. Optionally, when the first user device obtains the target media file, it may perform format conversion on the target media file to obtain the file conversion data corresponding to the target media file. Based on the file conversion data, the N target file pages included in the target media file are displayed. In other words, by first converting the target media data in the background and then rendering the N target file pages on the front end, the convenience of front-end rendering and display efficiency can be improved. Alternatively, when the first user device obtains the target media file, it may display the N target file pages included in the target media file. When responding to the selection operation of k target file pages among the N target file pages, it may perform format conversion on the k target file pages to obtain the file conversion data corresponding to the target media file. This can reduce the number of target file pages that need to be format converted and improve the performance of the online editing application.
[0173] Among them, see Figure 10 , Figure 10 This is a schematic diagram of a file upload process provided in an embodiment of this application. Figure 10As shown, this process specifically uses a file selector to determine the target media file to be imported into the online editing application. It can also filter the file format of the target media file. When the target media file's file format is a default file format, it is pre-uploaded, reducing bandwidth and storage consumption. During pre-uploading, the target media file is added to a file upload queue, and then uploaded to the online editing application based on this queue. Cloud Object Storage (COS) authentication is performed on the target media file to authenticate its source, preventing unauthorized users (such as users without data upload permissions) from uploading illegal file types or from illegal sources to the online editing application, further reducing parsing risks. COS authentication is a distributed storage service with no directory hierarchy, no data format restrictions, capable of accommodating massive amounts of data, and supporting Hypertext Transfer Protocol / Hypertext Transfer Protocol over Secure Socket Layer (HTTP / HTTPS) access protocols. After the target media file is authenticated, it is uploaded in segments. Specifically, the target media file is divided into r file data packets, and these r file data packets are uploaded sequentially to the online editing application. The upload is complete when all r file data packets are successfully uploaded. Based on the packet positions carried by the r file data packets, they are combined to obtain the target media file. Optionally, if any file data packets with a failed upload status are uploaded during the upload of the r file data packets, these packets will be re-uploaded multiple times. If multiple re-uploads trigger the circuit breaker, the upload will fail. If the file data packets with a failed upload status are successfully uploaded after multiple re-uploads, the upload is considered complete. Specifically, the system can detect whether a circuit breaker is triggered based on re-upload parameters. These re-upload parameters may include, but are not limited to, the number of re-uploads and the re-upload duration. For example, when the number of re-uploads reaches a threshold, a circuit breaker is triggered; or, when the re-upload duration reaches a threshold, a circuit breaker is triggered; or, when both the number of re-uploads and the re-upload duration reach a threshold, a circuit breaker is triggered.
[0174] Further, see Figure 11 , Figure 11 This is a flowchart illustrating a file import function provided in an embodiment of this application. For example... Figure 11As shown, the process includes the following steps:
[0175] Step S1101: Select the target media file to import.
[0176] In this embodiment, the first user equipment responds to a trigger operation on the file import component, acquires h media files associated with the trigger operation on the file import component, and responds to an import operation on a target media file among the h media files to acquire the target media file. See details below. Figure 9 Step S901 and Figure 3 The specific description of step S301 in the above steps will not be repeated here.
[0177] Step S1102: The target media file is uploaded to the backend.
[0178] In this embodiment, the first user equipment uploads the target media file to the backend; in other words, it uploads the target media file to the online editing application. This process can be found in [reference needed]. Figure 3 Step S301 and Figure 9 The specific description shown in step S903 is as follows.
[0179] Step S1103: The front end queries the import progress message and updates the progress display area.
[0180] In this embodiment, the front end queries the import progress message and updates the progress display area to display the import progress message of the target media file in real time in the updated progress display area. For details, please refer to... Figure 3 The relevant description in step S301 includes Figure 4 As shown in the description.
[0181] Step S1104: The front end obtains the data parsing results after the target media file is uploaded.
[0182] In this embodiment of the application, the front end obtains the data parsing result after the target media file is uploaded, and can display the N target file pages included in the target media file based on the data parsing result.
[0183] Step S1105: Was the upload successful?
[0184] In this embodiment of the application, it is detected whether the target media file has been successfully uploaded. If the target media file has been successfully uploaded (i.e., successfully imported), then step S1108 is executed; if the target media file has failed to be uploaded (i.e., failed to be imported), then step S1106 is executed.
[0185] In step S1106, the user interface displays an import failure message.
[0186] In this embodiment of the application, the user interface (UI) displays an import failure message. Optionally, the import failure message can be displayed directly in the progress display area, or a prompt window can be generated to display the import failure message, etc. There are no restrictions here.
[0187] Step S1107, retry.
[0188] In this embodiment of the application, the target media file is re-uploaded, and step S1102 is executed.
[0189] Step S1108: Enter user page selection mode.
[0190] In this embodiment, the first user device enters a user page selection mode, that is, displays N target file pages, and the user can select the target file page to be added to the online media file from the N target file pages. Optionally, the N target file pages can be displayed in a file page management area. Optionally, a theme retention component can also be displayed in the file page management area.
[0191] Step S1109: In response to the selection operation for k target file pages, obtain the component functions of the theme retention component.
[0192] In this embodiment, the user can select the target file page to be added to the online media file from N target file pages, and can also choose whether to retain the target file theme of the target media file. The first user equipment can respond to the selection operation of k target file pages from the N target file pages, obtain the component function of the theme retention component. If the component function corresponding to the theme retention component is set to theme retention function, it means that the target file theme of the target media file is retained; if the component function corresponding to the theme retention component is set to theme cancellation function, it means that the target file theme of the target media file is not retained.
[0193] Step S1110: Add k target file pages to the online media file.
[0194] In this embodiment, the first user equipment can determine the display theme of k target file pages based on the component function corresponding to the theme retention component, and add the k target file pages to the online media files based on the display theme. Specifically, if the component function corresponding to the theme retention component is set to theme retention, the display theme of the k target file pages is determined to be the target file theme; if the component function corresponding to the theme retention component is set to theme cancellation, the display theme of the k target file pages is determined to be the default file theme.
[0195] Step S1111: Data processing to obtain the online update file.
[0196] In this embodiment of the application, the first user equipment can perform data processing, including updating page size, theme template style, etc., to adjust the format of k target file pages and obtain online updated files.
[0197] Further, see Figure 12 , Figure 12 This is a timing diagram of a file import function provided in an embodiment of this application. For example... Figure 12 As shown, the process includes the following steps:
[0198] Step S1201: Invite the file selector and select a file.
[0199] In this embodiment of the application, the first user equipment can respond to a trigger operation on the file import component, invoke the file selector, select a file, and determine the target media file.
[0200] Step S1202: File upload.
[0201] In this embodiment, the first user equipment can upload the target media file to the background, that is, to the online editing application.
[0202] Step S1203: Return to import status.
[0203] In this embodiment, the backend can return the import status of the target media file to the frontend file upload panel. This import status indicates whether any abnormalities occurred during the import process. Optionally, the target media file can be divided into r data packets, and the backend returns the import status of each data packet to the frontend file upload panel. The frontend file upload panel can determine the import result of the target media file based on this import status, which includes successful import and failed import results. Optionally, the import status can carry a task identifier, which indicates the task of importing the target media file into the online editing application.
[0204] Step S1204: Poll the import progress message.
[0205] In this embodiment of the application, the front-end file upload panel can poll the back-end for import progress messages. Optionally, the polling request for the import progress message can carry a task identifier.
[0206] Step S1205: Return to progress status.
[0207] In this embodiment, the backend returns a progress status to the frontend file upload panel, which indicates the import progress of the target media file. Optionally, the backend can determine the progress status of the target media file based on the task identifier and return that progress status to the frontend file upload panel.
[0208] Step S1206: Progress status reaches 100, task identifier is passed.
[0209] In this embodiment, when the front-end file upload panel detects that the import status indicates the task progress percentage has reached 100%, it means that the target media file has been successfully imported, and the task identifier is transmitted to the file page management area.
[0210] Step S1207: Request the topic data structure.
[0211] In this embodiment, the file page management area can request topic data structures from the background based on task identifiers, such as topic trees, topic physical structures, or topic logical relationships.
[0212] Step S1208: Return to topic status.
[0213] In this embodiment of the application, the background returns the theme status to the file page management area, and the theme status includes the theme data structure.
[0214] Step S1209, Data & (and) Parameters, Add Page.
[0215] In this embodiment, the file page management area adds k target file pages to the online media file based on the theme data structure and the selected k target file pages. Specifically, the format of the k target file pages can be adjusted based on the data structure layer to meet the format requirements of the online editing application, thereby obtaining an online updated file.
[0216] Furthermore, you can also see Figure 13 , Figure 13 This is an import timing diagram for a file import method provided in an embodiment of this application. For example... Figure 13As shown, the file import process includes a client (i.e., the first user device), a server, and an import server. The client provides the target media file, receives the file conversion data, and can display the target media file. The server receives the target media file, acts as a forwarding layer for the conversion server, and stores the file conversion data. The import service receives the target media file and outputs the file conversion data. The import service can be considered a microservice unit. Optionally, the server and import service can be located on the same device providing different services, or they can be located on different devices. Optionally, the server and import service can be implemented based on cloud services or virtualization, etc., without restriction. The file import process includes the following steps:
[0217] Step S1301: Import the target media file.
[0218] In this embodiment of the application, the client imports the target media file.
[0219] Step S1302: Convert the target media file to obtain file conversion data.
[0220] In this embodiment of the application, the import service performs format conversion on the target media file to obtain file conversion data.
[0221] Step S1303: Return the file conversion data.
[0222] In this embodiment of the application, the import service returns file conversion data to the server. Optionally, it may also return topic data structures, etc.
[0223] Step S1304: Store in the database.
[0224] In this embodiment of the application, the server can store file conversion data and topic data structures in a database.
[0225] Step S1305, Response.
[0226] In this embodiment, the server can respond to the client's import operation on the target media file by sending file conversion data and theme data structure to the client, so that the client can import the target media file into the online editing application based on the file conversion data and theme data structure.
[0227] For further information, please see [link / reference]. Figure 14 , Figure 14 This is a file import workflow provided in an embodiment of this application. For example... Figure 14As shown, the target media file is imported using a file processing control. 1. The target media file is converted into file conversion data. Optionally, this data can be a JavaScript Object Notation (JSON). JSON is a lightweight data-interchange format that uses a text format completely independent of programming languages to store and represent data. 2. The images corresponding to the target media file are extracted; that is, the images corresponding to the N target file pages included in the target media file are obtained. The images are uploaded, their URLs are filled back, and the JavaScript Object Notation is added to the database. The first user device can then retrieve the images corresponding to the N target file pages based on these image URLs and display the N target file pages.
[0228] Further options can be found in Figure 15 , Figure 15 This is a use case diagram of a media file processing function provided in an embodiment of this application. For example... Figure 15 As shown, a file user 1501 with editing permissions for online media files can trigger functions included in the online editing application. This online editing application may include file import functionality, import progress viewing functionality, and import page selection functionality. The file import functionality refers to the function of importing media files from the first user device or the online editing application into the online editing application. This file import functionality can be provided to file user 1501 through a file import function entry. The import progress viewing functionality is used to display the import progress of the target media file when it is being imported into the online media file. The import page selection functionality is used to determine the file pages to be imported into the online media file. For example, based on this function, k target file pages can be selected from N target file pages included in the target media file and added to the online media file. The file import functionality can be triggered in different ways, such as based on the top menu (i.e., the editing component area) of the online media file, based on the thumbnail list menu (i.e., the thumbnail display area), or based on a movement operation of the media file, etc., without limitation. The media file can be a media file stored on the first user's device or a media file in an online editing application.
[0229] The import page selection function can include sub-functions such as "Whether to retain the file theme," "Click on the file page," and "Select all files on the file page." The sub-function "Whether to retain the file theme" indicates whether to retain the file theme of the target media file imported into the online media file. The first user device can determine the theme display state of the target media file based on the trigger state of the theme retention component corresponding to the "Whether to retain the file theme" sub-function. For example, if the theme retention component is triggered in a theme-selected state, the theme display state of the target media file is determined to be "theme-retained," meaning the component function corresponding to the theme retention component is set to "theme-retained." If the theme retention component is triggered in a theme-unselected state, the theme display state of the target media file is determined to be "theme-cancelled," meaning the component function corresponding to the theme retention component is set to "theme-cancelled." The sub-function "Click File Page" toggles the selection state of the clicked file page. This sub-function can be considered to include both "select" and "deselect" functions. For example, if a file page is selected, triggering the "Click File Page" sub-function (i.e., clicking the file page) is equivalent to triggering the "deselect" function, changing the selection state from selected to unselected. Conversely, if a file page is unselected, triggering the "Click File Page" sub-function (i.e., clicking the file page) is equivalent to triggering the "select" function, changing the selection state from unselected to selected. The sub-function "Select All File Pages" changes the selection state of all N target file pages within the target media file to selected, i.e., selects all file pages within the target media file. Optionally, the import page selection function may also include a sub-function of displaying thumbnails of file pages. The sub-function "displaying thumbnails of file pages" is used to display N target thumbnails in the online editing application. These N target thumbnails refer to the thumbnails corresponding to the N target file pages included in the imported target media file; or, to display thumbnails of file pages added to the online media file. For example, if k target file pages out of N target file pages are added to the online media file, then the thumbnails corresponding to the k target file pages can be displayed in the online media file.
[0230] When importing a target media file into an online media file, the import progress can be displayed using this import progress view function. Optionally, if the import of the target media file fails, an import failure message can be displayed in the online media file; if the import of the target media file succeeds, an import success message can be displayed in the online media file.
[0231] Further, please see Figure 16 , Figure 16 This is a schematic diagram of a file processing apparatus provided in an embodiment of this application. The file processing apparatus can be a computer program (including program code, etc.) running on a computer device; for example, the file processing apparatus can be an application software. This apparatus can be used to execute corresponding steps in the method provided in the embodiments of this application. Figure 16 As shown, the file processing device 1600 can be used for Figure 3 Specifically, the computer device in the corresponding embodiment may include: a file import module 11, a page selection module 12, and a file display module 13.
[0232] The file import module 11 is used by the first user device to respond to the import operation of the target media file in the online media file, and display the N target file pages included in the target media file; N is a positive integer; the online media file includes M online file pages; M is a positive integer;
[0233] Page selection module 12 is used to respond to the selection operation of k target file pages out of N target file pages, add k target file pages to the online media file to obtain the online updated file; k is a positive integer, k is less than or equal to N; the online updated file is the online media file after adding k target file pages;
[0234] The file display module 13 is used to display online updated files containing M online file pages and k target file pages.
[0235] The file import module 11 includes:
[0236] The progress display unit 11a is used by the first user device to display the import progress message of the target media file in the progress display area in response to the import operation of the target media file in the online media file.
[0237] The failure notification unit 11b is used to display an import failure notification message in the progress display area if the target media file import fails.
[0238] Page display unit 11c is used to display the N target file pages included in the target media file if the target media file is successfully imported.
[0239] The file import module 11 includes:
[0240] The theme component display unit 11d is used to display a theme retention component for a target media file in an online media file;
[0241] The theme retention unit 11e is used to respond to the selection operation of k target file pages out of N target file pages when the component function corresponding to the theme retention component is set to the theme retention function, and add k target file pages to the online media file based on the target file theme corresponding to the target media file to obtain the online updated file;
[0242] The theme cancellation unit 11f is used to respond to the selection operation of k target file pages out of N target file pages when the component function corresponding to the theme retention component is set to the theme cancellation function. Based on the default file theme of the online media file, it adds k target file pages to the online media file to obtain the online updated file.
[0243] The topic-reserved unit 11e includes:
[0244] The topic acquisition subunit 111e is used to obtain the target file topic corresponding to the target media file when the component function corresponding to the topic retention component is set to the topic retention function, in response to the selection operation of k target file pages out of N target file pages;
[0245] The structure generation subunit 112e is used to obtain the file conversion data corresponding to the target media file and generate a theme data structure based on the theme of the target file.
[0246] The format display subunit 113e is used to determine the online display format of k target file pages in the target media file based on the theme data structure and file conversion data, and add k target file pages to the online media file based on the online display format to obtain the online updated file.
[0247] The device 1600 also includes:
[0248] The function display module 14 is used to display online editing components in online media files, respond to trigger operations on online editing components, and display application function components of online media files; the application function components include a first file import component;
[0249] The first trigger module 15 is used to respond to the trigger operation of the first file import component and display h media files; h is a positive integer, and the h media files include the target media file;
[0250] This file imports module 11, specifically for:
[0251] In the online media files, the first user device responds to the import operation of the target media file in h media files and displays the N target file pages included in the target media file.
[0252] The device 1600 also includes:
[0253] Thumbnail display module 16 is used to display the display area where the file page thumbnail of the online media file is located;
[0254] The area display module 17 is used to respond to a trigger operation on the display area and display the default page area at the trigger position indicated by the trigger operation on the display area.
[0255] Page component display module 18 is used to respond to trigger operations on the default page area and display the page function components associated with the default page area; the page function components include the second file import component;
[0256] The second trigger module 19 is used to respond to the trigger operation of the second file import component and display h media files; h is a positive integer, and the h media files include the target media file;
[0257] This file imports module 11, specifically for, including:
[0258] In the online media files, the first user device responds to the import operation of the target media file in h media files and displays the N target file pages included in the target media file based on the default page area.
[0259] The file import module 11 includes:
[0260] The trajectory acquisition unit 11g is used by the first user device to respond to a drag operation on the target media file and acquire the drag trajectory corresponding to the drag operation.
[0261] The operation determination unit 11h is used to determine the drag operation as an import operation for the target media file if the drag trajectory is from the starting position of the target media file to the import position; the import position refers to the location of the online media file.
[0262] Import response unit 11i is used to respond to import operations for the target media file and display the N target file pages included in the target media file.
[0263] The file import module 11 includes:
[0264] The history display unit 11j is used to respond to the trigger operation of the history data acquisition component and display f historical media files on the history file display page; the historical media files are the media files used by the first user device when using the online editing application in the past, and the online editing application is the application where the online media file is located; f is a positive integer; the f historical media files include the target media file;
[0265] The page display unit 11c is also used to respond to import operations for target media files in f historical media files, and to display N target file pages included in the target media file in the online media file.
[0266] The device 1600 also includes:
[0267] The update synchronization module 20 is used to send the online update file to the second user device so that the second user device can display the online update file; the online update file contains M online file pages and k target file pages; the second user device and the first user device jointly update and display the online media file.
[0268] The file import module 11 includes:
[0269] The account acquisition unit 11k is used by the first user device to obtain the device account information associated with the online media file in response to the import operation of the target media file in the online media file.
[0270] The permission verification unit 11l is used to obtain the data upload permission corresponding to the device account information. If the device account information has data upload permission, the target media file is uploaded to the online editing application, and the N target file pages included in the target media file are displayed; the online editing application is the application where the online media file is located.
[0271] The file import module 11 includes:
[0272] The file detection unit 11m is used by the first user device to respond to the import operation of the target media file in the online media file, obtain the file format of the target media file, and perform security detection on the target media file.
[0273] The verification unit 11n is used to upload the target media file to the online editing application and display the N target file pages included in the target media file if the target media file's file format is the default file format and the target media file's security check passes; the online editing application is the application where the online media file is located.
[0274] The file import module 11 includes:
[0275] The data partitioning unit 11o is used by the first user device in an online media file to divide the target media file into r file data packets in response to an import operation for the target media file; where r is a positive integer.
[0276] The data upload unit 11p is used to sequentially upload r file data packets to the online editing application; the online editing application is the application where the online media files are located.
[0277] The data retransmission unit 11q is used to obtain the data upload status of each file data packet, and re-upload the file data packets with the data upload status of upload failure among the r file data packets to the online editing application;
[0278] The page display unit 11c is also used to display the N target file pages included in the target media file when all r file data packets are successfully uploaded.
[0279] Each of the r file data packets carries a packet position; the packet position is used to indicate the location of the file data packet in the target media file;
[0280] This page displays unit 11c, including:
[0281] The location acquisition subunit 111c is used to obtain the packet location carried by each file data packet when all r file data packets are successfully uploaded;
[0282] The data combination subunit 112c is used to combine r file data packets sequentially based on the packet position carried by each file data packet to obtain the target media file and display the N target file pages included in the target media file.
[0283] The device 1600 also includes:
[0284] The storage display module 21 is used to display a storage confirmation message for the target media file in the online media file;
[0285] The term acquisition module 22 is used to respond to the confirmation operation for the storage confirmation message and acquire the storage term configuration message of the target media file;
[0286] File storage module 23 is used to store the target media file to the online media database by storing the file storage period indicated by the storage period configuration message;
[0287] The file deletion module 24 is used to delete the target media file in the online media database if the storage time of the target media file reaches the file storage period.
[0288] Module 12 on this page includes:
[0289] The method acquisition unit 12a is used to respond to the selection operation of k target file pages out of N target file pages and acquire the triggering method of the import operation for the target media file;
[0290] The position addition unit 12b is used to obtain the page addition position based on the triggering method of the import operation for the target media file, and add k target file pages to M online file pages of the online media file based on the page addition position to obtain the online updated file;
[0291] Add unit 12b at this location, specifically for:
[0292] Obtain the page addition position corresponding to the trigger method of the import operation for the target media file, add the k target file pages to the page addition positions of the M online file pages of the online media file, and obtain the online updated file;
[0293] or,
[0294] Based on the triggering method of the import operation for the target media file, the page addition position corresponding to each of the k target file pages is obtained. Based on the page addition position corresponding to each of the k target file pages, the k target file pages are added to the M online file pages of the online media file to obtain the online updated file.
[0295] The file display module 13 includes:
[0296] The identifier generation unit 13a is used to obtain the online identifiers carried by M online file pages and generate a target media identifier associated with the target media file based on the online identifiers;
[0297] The associated display unit 13b is used to associate and display the target media identifier with k target file pages;
[0298] The device 1600 also includes:
[0299] The identifier triggering module 25 is used to respond to the triggering operation for the target media identifier and obtain the identifier prompt message associated with the target media identifier; the identifier prompt message is used to indicate that the target file page associated with the target media identifier belongs to the target media file.
[0300] The device 1600 also includes:
[0301] The status update module 26 is used to respond to page triggering operations for k target file pages out of N target file pages. If the page triggering operation is used to update the selection status of the k target file pages to the page selected state, then a highlight label is added to the k target file pages.
[0302] The highlighting module 27 is used to respond to a trigger operation on the highlighting label and display a page selection prompt message for k target file pages.
[0303] The device 1600 also includes:
[0304] The update receiving module 28 is used to receive file update data for online update files sent by the second user equipment; the file update data includes update location information and update content;
[0305] The file update module 29 is used to update and display online update files based on update location information and update content.
[0306] This application provides a file processing apparatus that can operate in a first user device. In an online media file, the first user device, in response to an import operation on a target media file, displays N target file pages included in the target media file; N is a positive integer; the online media file includes M online file pages; M is a positive integer; in response to a selection operation on k target file pages among the N target file pages, k target file pages are added to the online media file to obtain an online updated file; k is a positive integer, k is less than or equal to N; and the online updated file containing M online file pages and k target file pages is displayed. Through the above process, the first user device provides a function for quickly transferring content when managing online media files. For different media files, the first user device can provide an import interface for other media files in the online media file and display the target file pages included in the target media file to be imported into the online media file. This allows users to intuitively view the file pages that can be imported into the online media file, improving the convenience of file content transfer. In addition, it also provides an interface for selecting specific file pages, which allows any other media file to be added to the online media file, and any one or more file pages from the target media file to be added to the online media file. This improves the flexibility of file content transfer, while reducing the operational cost of adding other media file content to the online media file and improving file processing efficiency.
[0307] See Figure 17 , Figure 17 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 17 As shown, the computer device in this embodiment may include one or more processors 1701, a memory 1702, and an input / output interface 1703. The processor 1701, memory 1702, and input / output interface 1703 are connected via a bus 1704. The memory 1702 stores a computer program, which includes program instructions. The input / output interface 1703 receives and outputs data, such as for data interaction between a first user device and a second user device, or for data interaction between the online layer and the local layer in the first user device. The processor 1701 executes the program instructions stored in the memory 1702.
[0308] The processor 1701 can perform the following operations:
[0309] In the online media file, the first user equipment responds to the import operation for the target media file and displays N target file pages included in the target media file; N is a positive integer; the online media file includes M online file pages; M is a positive integer;
[0310] In response to a selection operation on k target file pages out of N target file pages, add k target file pages to the online media file to obtain the online updated file; k is a positive integer, less than or equal to N; the online updated file is the online media file after adding k target file pages;
[0311] Display the online update file, which contains M online file pages and k target file pages.
[0312] In some feasible implementations, the processor 1701 may be a central processing unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0313] The memory 1702 may include read-only memory and random access memory, and provides instructions and data to the processor 1701 and the input / output interface 703. A portion of the memory 1702 may also include non-volatile random access memory. For example, the memory 1702 may also store device type information.
[0314] In practice, the computer device can perform actions such as these through its built-in functional modules. Figure 3 For details on the implementation methods provided for each step, please refer to [the relevant documentation / document / etc.]. Figure 3 The implementation methods provided for each step are not elaborated here.
[0315] This application provides a computer device including a processor, an input / output interface, and a memory. The processor retrieves a computer program from the memory and executes it. Figure 3Each step of the method shown is used for file processing operations. This application embodiment provides a function for quickly transferring content when managing online media files. For different media files, the first user device can provide an import interface for other media files within the online media file and display the target file pages included in the target media file to be imported. This allows users to intuitively view the file pages that can be imported into the online media file, improving the convenience of file content transfer. Furthermore, it provides an interface for selecting specific file pages, allowing the addition of any other media file to the online media file, and the addition of any one or more file pages from the target media file. This improves the flexibility of file content transfer while reducing the operational cost of adding other media file content to the online media file, thus improving file processing efficiency.
[0316] This application also provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor. Figure 3 For details on the file processing methods provided in each step, please refer to the document. Figure 3 The implementation methods provided for each step are not repeated here. Furthermore, the beneficial effects of using the same method are also not repeated. For technical details not disclosed in the computer-readable storage medium embodiments involved in this application, please refer to the description of the method embodiments of this application. As an example, a computer program may be deployed to execute on a single computer device, or on multiple computer devices located in one location, or on multiple computer devices distributed across multiple locations and interconnected via a communication network.
[0317] The computer-readable storage medium can be the file processing apparatus provided in any of the foregoing embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the computer-readable storage medium can include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0318] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform... Figure 3 The various optional methods provided enable a quick content transfer function when managing online media files. For different media files, the first user device can provide an import interface for other media files within the online media file and display the target file pages included in the target media file to be imported. This allows users to intuitively view the file pages that can be imported into the online media file, improving the convenience of file content transfer. Furthermore, it provides a selection interface for specific file pages, allowing the addition of any other media file to the online media file, and the addition of any one or more file pages from the target media file. This enhances the flexibility of file content transfer, reduces the operational cost of adding other media file content to the online media file, and improves file processing efficiency.
[0319] The terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.
[0320] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of functionality. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.
[0321] The methods and related apparatus provided in this application are described with reference to the method flowcharts and / or structural diagrams provided in this application. Specifically, each block of the method flowchart and / or structural diagram, as well as combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable file processing device to create a machine, such that the instructions, which execute via the processor of the computer or other programmable file processing device, generate instructions for implementing the process. Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable document processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable document processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or structures illustrate the steps of the functions specified in one or more boxes.
[0322] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.
[0323] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.
[0324] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A file processing method characterized by, The method includes: The first user device, based on an online editing application, responds to an import operation for a target media file in an online media file, displaying N target file pages that make up the target media file; the online media file includes M online file pages; M is a natural number; the online editing application is a document tool for online editing, viewing, and multi-user collaboration, allowing different users to simultaneously edit and share the same file based on the online editing application; In the online media file, a theme retention component for the target media file is displayed; the theme retention component has any of the following settings: theme retention function or theme cancellation function; When the component function corresponding to the theme retention component is set to theme retention, k target file pages out of the N target file pages and their respective page addition positions are obtained. Based on the target file theme corresponding to the target media file and the respective page addition positions of the k target file pages, the k target file pages are added to the online media file to obtain an online updated file. The online updated file containing the M online file pages and the k target file pages is then displayed. The target file theme is used to represent the display theme of the k target file pages when the component function corresponding to the theme retention component is set to theme retention; where k is less than or equal to N. Alternatively, when the component function corresponding to the theme retention component is set to theme cancellation, obtain k target file pages from the N target file pages and the page addition positions corresponding to the k target file pages respectively. Based on the default file theme of the online media file and the page addition positions corresponding to the k target file pages respectively, add the k target file pages to the online media file to obtain the online updated file. Display the online updated file containing the M online file pages and the k target file pages. The default file theme is used to indicate the display theme of the k target file pages when the component function corresponding to the theme retention component is set to theme cancellation. The online update file is the online media file after adding the k target file pages.
2. The method of claim 1, wherein, The first user equipment, based on an online editing application, responds to an import operation for a target media file in an online media file, displaying N target file pages that make up the target media file, including: The first user equipment, based on an online editing application, responds to an import operation for a target media file in an online media file and displays the import progress message of the target media file in a progress display area. If the import of the target media file fails, an import failure message will be displayed in the progress display area; If the target media file is successfully imported, the N target file pages that make up the target media file will be displayed.
3. The method of claim 1, wherein, The process involves obtaining k target file pages from the N target file pages and their corresponding page addition positions, and then, based on the target file theme corresponding to the target media file and the corresponding page addition positions of the k target file pages, adding the k target file pages to the online media file to obtain an online updated file. This includes: Obtain the selection operations for k1 target file pages out of the N target file pages and the corresponding page addition positions for the k1 target file pages; obtain the selection operations for k2 target file pages out of the N target file pages and the corresponding page addition positions for the k2 target file pages, until the page addition positions corresponding to each of the k target file pages are obtained; k1 is a positive integer less than or equal to k; k2 is a positive integer less than or equal to k; Based on the target file theme corresponding to the target media file, the k1 target file pages are added to the online media file using the page addition positions corresponding to the k1 target file pages, and the k2 target file pages are added to the online media file using the page addition positions corresponding to the k2 target file pages, until all k target file pages have been added to the online media file, thus obtaining the online updated file.
4. The method of claim 1, wherein, The process involves obtaining k target file pages from the N target file pages and their corresponding page addition positions, and then, based on the target file theme corresponding to the target media file and the corresponding page addition positions of the k target file pages, adding the k target file pages to the online media file to obtain an online updated file. This includes: In response to the selection operation of k target file pages out of the N target file pages, display the position selection page and obtain the page addition positions corresponding to the k target file pages determined in the position selection page; Based on the target file theme corresponding to the target media file and the page addition positions corresponding to the k target file pages, the k target file pages are added to the online media file respectively to obtain the online updated file.
5. The method of claim 1, wherein, The process involves obtaining k target file pages from the N target file pages and their corresponding page addition positions, and then, based on the target file theme corresponding to the target media file and the corresponding page addition positions of the k target file pages, adding the k target file pages to the online media file to obtain an online updated file. This includes: In response to the selection operation of k1 target file pages out of the N target file pages, obtain the triggering method of the import operation corresponding to the selection operation of the k1 target file pages, determine the page addition position of the k1 target file pages based on the triggering method of the import operation, until the page addition position corresponding to each of the k target file pages is obtained; k1 is a positive integer less than or equal to k; Based on the target file theme corresponding to the target media file and the page addition positions corresponding to the k1 target file pages, the k1 target file pages are added to the online media file until all k target file pages have been added to the online media file, thus obtaining the online updated file.
6. The method of claim 1, wherein, When the component function corresponding to the theme retention component is set to theme retention function, k target file pages from the N target file pages and the page addition positions corresponding to the k target file pages are obtained. Based on the target file theme corresponding to the target media file and the page addition positions corresponding to the k target file pages, the k target file pages are added to the online media file to obtain the online updated file, including: When the component function corresponding to the theme retention component is set to theme retention function, obtain k target file pages out of the N target file pages and the page addition position corresponding to the k target file pages respectively, and obtain the target file theme corresponding to the target media file; Obtain the file conversion data corresponding to the target media file, and generate a theme data structure based on the target file theme; the theme data structure is used to represent the display method of the k target file pages when the k target file pages are added to the online media file; Based on the topic data structure and the file conversion data, the online display format of the k target file pages in the target media file is determined. Based on the online display format and the page addition positions corresponding to the k target file pages, the k target file pages are added to the online media file to obtain the online updated file.
7. The method of claim 1, wherein, The method further includes: An online editing component is displayed in the online media file, and in response to a trigger operation on the online editing component, an application function component of the online media file is displayed; the application function component includes a first file import component; In response to a trigger operation on the first file import component, the file path indicated by the trigger operation on the first file import component is displayed; in response to a selection operation on the file path, the target file path is determined. Display the h media files corresponding to the target file path; h is a positive integer, and the h media files include the target media file; The first user equipment, based on an online editing application, responds to an import operation for a target media file in an online media file, displaying N target file pages that make up the target media file, including: The first user equipment, based on an online editing application, responds to an import operation for a target media file in the h media files and displays N target file pages that make up the target media file.
8. The method of claim 1, wherein, The method further includes: The display area shows the location of the file page thumbnail of the online media file; In response to a trigger operation targeting the display area, a default page area is displayed at the trigger location indicated by the trigger operation targeting the display area; In response to a trigger operation targeting the default page area, the page functional components associated with the default page area are displayed; the page functional components include a second file import component; In response to a trigger operation on the second file import component, h media files are displayed; h is a positive integer, and the h media files include the target media file; The first user equipment, based on an online editing application, responds to an import operation for a target media file in an online media file, displaying N target file pages that make up the target media file, including: The first user device, based on an online editing application, responds to an import operation for a target media file in the h media files in the online media files, and displays N target file pages that make up the target media file based on the default page area.
9. The method as described in claim 8, characterized in that, The method further includes: If the trigger location indicated by the trigger operation for the display area is the location of the file page thumbnail of the target online file page, then the area where the file page thumbnail of the target online file page is located is determined as the default page area; the target online file page is any one of the M online file pages; or, If the trigger position indicated by the trigger operation for the display area is between the file page thumbnails of adjacent online file pages, then the default page area is inserted between the file page thumbnails of the adjacent online file pages; or, If the trigger location indicated by the trigger operation for the display area is an empty sub-area in the display area, then the default page area is added to the empty sub-area.
10. The method of claim 1, wherein, The first user equipment, based on an online editing application, responds to an import operation for a target media file in an online media file, displaying N target file pages that make up the target media file, including: The first user equipment, based on an online editing application, responds to a drag operation on the target media file and obtains the drag trajectory corresponding to the drag operation. If the dragging trajectory is a trajectory from the starting position of the target media file to the import position, then the dragging operation is determined as an import operation for the target media file; the import position refers to the location of the online media file. In response to an import operation on the target media file, display the N target file pages that make up the target media file.
11. The method of claim 1, wherein, The method further includes: If the target media file is a document file, then obtain the pagination information of the document file, and based on the pagination information, divide the target media file into the N target file pages; If the target media file is a presentation file, then the slides in the target media file are determined as N target file pages that make up the target media file; If the target media file is a video file, then the target media file is split into N video frame images, and the N video frame images are determined as N target file pages that make up the target media file; or, the target media file is split into N video segments, and the N video segments are determined as N target file pages that make up the target media file.
12. The method of claim 11, wherein, The step of splitting the target media file into N video segments includes: Obtain the video duration of the target media file; The target media file is split into N video segments based on the video duration and the default number of segments; or, the target media file is split into N video segments based on the video duration and the default segment duration.
13. The method of claim 1, wherein, The method further includes: The system receives file update data for the online update file sent by a second user equipment; the file update data includes update location information and update content. Based on the updated location information and the updated content, the online update file is updated and displayed.
14. A file processing apparatus characterized by comprising: The device includes: The file import module is used by a first user device, based on an online editing application, to respond to an import operation on a target media file within an online media file, and to display N target file pages that make up the target media file; the online media file includes M online file pages; M is a natural number; the online editing application is a document tool for online editing, viewing, and multi-user collaboration, allowing different users to simultaneously edit and share the same file based on the online editing application; The file import module is used to display a theme retention component for the target media file in the online media file; The file import module is further configured to, when the component function corresponding to the theme retention component is set to theme retention function, obtain k target file pages from the N target file pages and the page addition positions corresponding to the k target file pages respectively, and add the k target file pages to the online media file based on the target file theme corresponding to the target media file and the page addition positions corresponding to the k target file pages respectively, to obtain an online updated file; the target file theme is used to represent the display theme of the k target file pages when the component function corresponding to the theme retention component is set to theme retention function; wherein, k is less than or equal to N; The file import module is further configured to, when the component function corresponding to the theme retention component is set to theme cancellation function, obtain k target file pages from the N target file pages and the page addition positions corresponding to the k target file pages respectively, and add the k target file pages to the online media file based on the default file theme of the online media file and the page addition positions corresponding to the k target file pages respectively, to obtain the online updated file; the default file theme is used to indicate the display theme of the k target file pages when the component function corresponding to the theme retention component is set to theme cancellation function; The file display module is used to display the online updated file, which includes the M online file pages and the k target file pages; The online update file is the online media file after adding the k target file pages.
15. A computer device, comprising: Includes processor, memory, and input / output interfaces; The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used to receive data and output data, the memory is used to store computer programs, and the processor is used to call the computer programs so that the computer device executes the method according to any one of claims 1-13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, perform the method as described in any one of claims 1-13.