Multimedia file uploading method and device and computer device
By scanning the mini-program code of the target mini-program and compressing multimedia files according to the business identifier, the problem of poor stability in multimedia file transmission is solved, resulting in more efficient file uploads and a better user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2020-01-19
- Publication Date
- 2026-05-05
AI Technical Summary
Multimedia files are unstable during transmission, leading to transmission failures.
Scan the mini-program code of the target mini-program, parse the interface address and business identifier, obtain the compression strategy, compress the multimedia file and upload it to the business processing website.
It improves the stability and success rate of multimedia file transfer, simplifies the upload process, and enhances the user experience.
Smart Images

Figure CN111291287B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a multimedia file uploading method, apparatus, and computer equipment. Background Technology
[0002] Currently, when users apply for and process services on business websites, they are required to submit multimedia files as application materials. For example, multimedia files may be videos of users holding their identification documents or videos of users reading a passage of certification text.
[0003] Users need to access the service website via PC (Personal Computer) to apply for and process services. If multimedia files are required as application materials, users need to record the multimedia files using their mobile devices, upload the recorded multimedia files to their PCs via wired or wireless networks, locate the multimedia files to be submitted using the file selector on their PCs, select the multimedia files, and submit them to the service website.
[0004] When submitting multimedia files to the business processing website, the large size of the files often leads to poor transmission stability, resulting in transmission failures. Summary of the Invention
[0005] This application provides a multimedia file uploading method, apparatus, and computer device, which can improve the stability of multimedia file transmission. The technical solution is as follows:
[0006] According to one aspect of the embodiments of this application, a multimedia file uploading method is provided, the method comprising:
[0007] Based on the multimedia file upload interface of the business processing website displayed on the first terminal, scan the mini-program code of the target mini-program, wherein the upload interface includes the mini-program code;
[0008] Parse the mini-program code to obtain the interface address of the target mini-program; and parse the mini-program code to obtain the business identifier of the business scenario to which the upload interface belongs;
[0009] Based on the interface address, display the mini-program interface corresponding to the interface address, and based on the mini-program interface, obtain the first multimedia file to be compressed;
[0010] Based on the business identifier, obtain the compression strategy corresponding to the business scenario to which the upload interface belongs;
[0011] According to the compression strategy, the first multimedia file is compressed to obtain a second multimedia file, and the second multimedia file is sent to the server corresponding to the target mini-program. The server is used to upload the second multimedia file to the business processing website.
[0012] According to another aspect of the embodiments of this application, a multimedia file uploading method is provided, the method comprising:
[0013] The system receives a multimedia file upload request sent by a first terminal, the multimedia file upload request being used to request the upload of a multimedia file to the business processing website accessed by the first terminal through the target mini-program;
[0014] Based on the multimedia file upload request, determine the business scenario to which the multimedia file upload interface corresponding to the multimedia upload request belongs;
[0015] Based on the business identifier of the business scenario and the interface address of the target mini-program, a mini-program code for the target mini-program is generated. The mini-program code is used to instruct the upload of multimedia files to the business processing website through the target mini-program.
[0016] The mini-program code is sent to the first terminal, which displays the mini-program code on the multimedia file upload interface of the business processing website, and the mini-program code is scanned by the second terminal to enter the target mini-program.
[0017] Receive the second multimedia file sent by the second terminal through the target mini-program, and upload the second multimedia file to the business processing website.
[0018] According to another aspect of the embodiments of this application, a multimedia file uploading device is provided, the device comprising:
[0019] The scanning module is configured to scan the mini-program code of the target mini-program based on the multimedia file upload interface of the business processing website displayed on the first terminal, wherein the upload interface includes the mini-program code;
[0020] The parsing module is configured to parse the mini-program code to obtain the interface address of the target mini-program; and to parse the mini-program code to obtain the business identifier of the business scenario to which the upload interface belongs.
[0021] The display module is configured to display the mini-program interface corresponding to the interface address based on the interface address;
[0022] The acquisition module is configured to acquire the first multimedia file to be compressed based on the mini-program interface; and to acquire the compression strategy corresponding to the business scenario to which the upload interface belongs based on the business identifier.
[0023] The compression module is configured to compress the first multimedia file according to the compression strategy to obtain a second multimedia file;
[0024] The first sending module is configured to send the second multimedia file to the server corresponding to the target mini-program, and the server is used to upload the second multimedia file to the business processing website.
[0025] In one possible implementation, the acquisition module is further configured to send a compression strategy acquisition request to the server, the compression strategy acquisition request carrying the service identifier, the server being configured to acquire the compression strategy corresponding to the service scenario to which the upload interface belongs based on the correspondence between the service identifier and the compression strategy, return the compression strategy to the second terminal, and receive the compression strategy returned by the server.
[0026] In another possible implementation, the acquisition module is further configured to: acquire a third multimedia file based on the mini-program interface; in response to a confirmation operation on the third multimedia file, acquire the recording requirements corresponding to the business scenario to which the upload interface belongs, based on the business identifier, wherein the confirmation operation is used to indicate confirmation of uploading the third multimedia file; in response to the third multimedia file meeting the recording requirements, use the third multimedia file as a first multimedia file to be compressed; and in response to the third multimedia file not meeting the recording requirements, display a first prompt message, wherein the first prompt message is used to prompt the upload of the first multimedia file according to the recording requirements.
[0027] In another possible implementation, the device further includes:
[0028] The recognition module is configured to recognize the third multimedia file and obtain the recognition result of the third multimedia file;
[0029] The first determining module is configured to determine, in response to the identification result indicating that the third multimedia file has not undergone post-processing, that the third multimedia file meets the recording requirements for avoiding post-processing.
[0030] In another possible implementation, the acquisition module is further configured to, based on the mini-program interface, display a multimedia file shooting interface in response to an instruction to shoot a multimedia file; acquire a first multimedia file based on the shooting interface, wherein the shooting interface includes second prompt information, the second prompt information being used to indicate the recording requirements corresponding to the business scenario; display a display interface for the first multimedia file; and, in response to a confirmation operation on the first multimedia file, acquire the first multimedia file to be compressed.
[0031] According to another aspect of the embodiments of this application, a multimedia file uploading device is provided, the device comprising:
[0032] The receiving module is configured to receive a multimedia file upload request sent by the first terminal, wherein the multimedia file upload request is used to request the upload of a multimedia file to the business processing website accessed by the first terminal through the target applet;
[0033] The second determining module is configured to determine the business scenario to which the upload interface of the multimedia file corresponding to the multimedia upload request belongs based on the multimedia file upload request.
[0034] The generation module is configured to generate a mini-program code for the target mini-program based on the business identifier of the business scenario and the interface address of the target mini-program. The mini-program code is used to instruct the upload of multimedia files to the business processing website through the target mini-program.
[0035] The second sending module is configured to send the mini-program code to the first terminal, the first terminal is used to display the mini-program code on the multimedia file upload interface of the business processing website, and the mini-program code is used to be scanned by the second terminal to enter the target mini-program;
[0036] The upload module is configured to receive a second multimedia file sent by the second terminal through the target mini-program, and upload the second multimedia file to the business processing website.
[0037] In one possible implementation, the upload module is further configured to: update the submission status of the second multimedia file to "not submitted" in response to the second terminal not sending the second multimedia file; update the submission status of the second multimedia file to "submitting" in response to the second terminal sending the second multimedia file; update the submission status of the second multimedia file to "submitted" in response to receiving the second multimedia file sent by the second terminal through the target applet, and generate a link address for the second multimedia file. The submission status of the second multimedia file is used by the first terminal to poll and send a link address retrieval request when the submission status of the second multimedia file is updated to "submitted"; receive the link address retrieval request, and send the link address of the second multimedia file to the first terminal according to the link address retrieval request. The first terminal is used to receive the link address of the second multimedia file, retrieve the second multimedia file according to the link address of the second multimedia file, and display the second multimedia file in the business processing website.
[0038] According to another aspect of the embodiments of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one piece of program code, the at least one piece of program code being loaded and executed by the processor to implement the multimedia file upload method described in any of the possible implementations above.
[0039] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein at least one piece of program code is stored in the computer-readable storage medium, the at least one piece of program code being loaded and executed by a processor to implement the multimedia file upload method described in any of the possible implementations above.
[0040] In this embodiment, based on the multimedia file upload interface of the business processing website displayed on the first terminal, the mini-program code of the target mini-program is scanned. The upload interface includes the mini-program code. The mini-program code is parsed to obtain the interface address of the target mini-program. The mini-program code is also parsed to obtain the business identifier of the business scenario to which the upload interface belongs. Based on the business identifier, the compression strategy corresponding to the business scenario to which the upload interface belongs is obtained. Based on the interface address, the mini-program interface corresponding to the interface address is displayed. Based on the mini-program interface, a first multimedia file to be compressed is obtained. According to the compression strategy, the first multimedia file is compressed to obtain a second multimedia file, which is then sent to the server corresponding to the target mini-program. The server uses this second multimedia file to upload the second multimedia file to the business processing website. In this application, the first multimedia file to be uploaded is compressed by the target mini-program, and the compressed second multimedia file is uploaded to the business processing website. Because the data size of the compressed second multimedia file is smaller, the stability of transmitting the second multimedia file to the business processing website is improved, thereby increasing the success rate of transmitting multimedia files to the business processing website. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0042] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;
[0043] Figure 2 This is a flowchart of a multimedia file upload method provided in an embodiment of this application;
[0044] Figure 3 This is a schematic diagram of a multimedia file upload interface provided in an embodiment of this application;
[0045] Figure 4 This is a schematic diagram of a mini-program interface provided in an embodiment of this application;
[0046] Figure 5 This is a schematic diagram of a shooting interface provided in an embodiment of this application;
[0047] Figure 6 This is a schematic diagram of a display interface provided in an embodiment of this application;
[0048] Figure 7 This is a schematic diagram of an interface showing a first multimedia file being compressed, provided in an embodiment of this application;
[0049] Figure 8 This is a schematic diagram of the upload interface of a business processing website provided in an embodiment of this application;
[0050] Figure 9 This is a flowchart of a multimedia file upload method provided in an embodiment of this application;
[0051] Figure 10 This is a block diagram of a multimedia file uploading device provided in an embodiment of this application;
[0052] Figure 11 This is a block diagram of a multimedia file uploading device provided in an embodiment of this application;
[0053] Figure 12 This is a block diagram of a terminal provided in an embodiment of this application;
[0054] Figure 13 This is a block diagram of a server provided in an embodiment of this application. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0056] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0057] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application. See also... Figure 1The implementation environment includes a first terminal 101, a second terminal 102, and a server 103; the first terminal 101 and the second terminal 102 are respectively connected to the server 103 via a wireless or wired network.
[0058] The first terminal 101 and the second terminal 102 can be mobile phones, tablets, computers, or other electronic devices. The first terminal 101 can access a business processing website via the Internet, and the second terminal 102 has a camera function. In this embodiment, the first terminal 101 is a computer and the second terminal 102 is a mobile phone, as an example for illustration.
[0059] The first terminal 101 is equipped with a first client for accessing the business processing website. For example, the first client can be a browser or any application that contains a webview control.
[0060] The second terminal 102 has a second client installed, which provides a runtime environment for the target mini-program. The second client can be an application, operating system, or server program. For example, the second client can be a social application. The second terminal 102 can run the target mini-program based on the runtime environment provided by the second client without needing to download and install it.
[0061] Server 103 can be a single server, a server cluster consisting of several servers, or a cloud computing service center. Server 103 is used to provide backend services for the first terminal 101 and the second terminal 102.
[0062] Users can access the business processing website through the first terminal 101 to process business. When multimedia files need to be uploaded as application materials for business processing, the first terminal 101 sends a multimedia file upload request to the server 103 to obtain the mini-program code of the target mini-program. The target mini-program is used to upload the multimedia file recorded by the second terminal 102 to the business processing website. The server 103 generates the mini-program code of the target mini-program based on the multimedia file upload request sent by the first terminal 101 and returns it to the first terminal 101. The first terminal 101 displays the received mini-program code in the multimedia file upload interface. Users scan the mini-program code displayed by the first terminal 101 through the target application of the second terminal 102 to enter the target mini-program. The second terminal 102 uses the target mini-program to acquire, compress, and upload multimedia files.
[0063] Figure 2 This is a flowchart illustrating a multimedia file upload method provided in an embodiment of this application. See also... Figure 2 This embodiment includes:
[0064] 201. The first terminal displays the multimedia file upload interface of the business processing website.
[0065] A multimedia file is a file used for information exchange and dissemination. A multimedia file can be an audio file, a video file, or an audio-visual file combining sound and images. In this embodiment, the multimedia file is used as supporting documentation for business transactions through a business processing website. For example, the multimedia file can be a video of a user holding their identification document or a video of a user reading a passage of text.
[0066] Users can access the service processing website through a primary terminal to process their applications. When processing applications, users typically need to submit corresponding multimedia files as supporting documentation via the multimedia file upload interface, according to the requirements of the service being processed.
[0067] For example, Figure 3 This is a schematic diagram of a multimedia file upload interface provided in an embodiment of this application. See also... Figure 3 The user is applying for a merchant account on a third-party payment platform, and needs to submit a video of the legal representative's intention to open an account as proof. The multimedia file upload interface includes upload control 301 and mini-program upload control 302. Upload control 301 corresponds to uploading multimedia files via a file selector; mini-program upload control 302 corresponds to uploading multimedia files via a target mini-program. Users can upload multimedia files using either of these two methods.
[0068] Users can choose to upload multimedia files via a file selector. In response to the trigger operation of the upload control 301, the first terminal displays a file list based on the file selection interface; in response to the upload operation of multimedia files in the first terminal's file list; the multimedia file to be uploaded is uploaded to the business processing website; and the uploaded multimedia file is displayed on the multimedia file upload interface of the business processing website.
[0069] It should be noted that when a user chooses to upload a multimedia file via the file selector, the first terminal needs to have the multimedia file to be uploaded stored in advance. Accordingly, before uploading a multimedia file via the file selector, the following steps are required: taking a picture of the multimedia file with the second terminal; searching for the multimedia file to be uploaded in the gallery of the second terminal; transferring the multimedia file to be uploaded from the second terminal to the first terminal via a synchronization program or IM (Instant Messaging) software; and the first terminal receiving and storing the multimedia file transmitted from the second terminal.
[0070] The synchronization program is used to synchronize files between the first terminal and the second terminal. For example, the synchronization programs on the first and second terminals can transfer and synchronize files via Bluetooth or a wired connection. Alternatively, the second terminal can transfer multimedia files to be uploaded from its IM software to the first terminal's IM software via a wireless network; the first terminal receives the multimedia files transmitted by the second terminal through its IM software and stores the multimedia files in its storage space.
[0071] In this embodiment, compared to uploading multimedia files via a file selector, uploading multimedia files via a mini-program eliminates the need for users to switch between the gallery, IM, sync program, and file list on the first terminal multiple times. This simplifies the process of uploading multimedia files, improves the user experience, and increases the efficiency of uploading multimedia files.
[0072] 202. The first terminal sends a multimedia file upload request to the server.
[0073] The multimedia file upload request is used to request the upload of multimedia files to the business processing website accessed by the first terminal through the target mini-program.
[0074] In one possible implementation, the first terminal sends a multimedia file upload request to the server only when the user selects to upload the multimedia file via the target mini-program. Accordingly, the steps for the first terminal to send the multimedia file upload request to the server can be: the first terminal, in response to the operation instructing the user to upload the multimedia file via the target mini-program, sends a multimedia file upload request to the server.
[0075] For example, see continue. Figure 3 This indicates that the operation of uploading a multimedia file through the target mini-program can be a trigger operation on the mini-program upload control 302. In response to the trigger operation on the mini-program upload control 302, the first terminal sends a multimedia file upload request to the server.
[0076] In another possible implementation, the first terminal sends a multimedia file upload request to the server when rendering the multimedia file upload interface of the business processing website.
[0077] 203. The server receives a multimedia file upload request sent by the first terminal, and determines the business scenario to which the multimedia file upload interface belongs based on the multimedia file upload request.
[0078] Different multimedia file upload interfaces cater to different business scenarios, and these scenarios have varying recording requirements. For example, in a scenario where the uploaded multimedia file is a video of a user holding their identification document, the recording requirements include at least capturing a clear frontal image of the user's face and a clear image of the identification document. Similarly, in a scenario where the uploaded multimedia file is a video of a user reading a document, the recording requirements include at least capturing clear audio of the reading.
[0079] A multimedia file upload request can carry the address of the multimedia file upload interface. The server can determine the business scenario to which the upload interface belongs based on the correspondence between the business scenario and the upload interface address. Accordingly, the steps for the server to determine the business scenario to which the multimedia file upload interface belongs based on the multimedia file upload request can be as follows: the server receives the multimedia file upload request; obtains the address of the multimedia file upload interface from the multimedia upload request; and determines the business scenario to which the upload interface belongs based on the correspondence between the business scenario and the upload interface address.
[0080] 204. The server generates the mini-program code for the target mini-program based on the business identifier of the business scenario and the interface address of the target mini-program.
[0081] A mini-program code is a type of QR code that allows users to access the corresponding mini-program by scanning it. (See also...) Figure 3 A mini-program code can be a QR code that includes an image area and an encoding area. The image area is the circular area in the center of the mini-program code, and the encoding area is a bar-shaped area composed of code elements of the mini-program code, with the bar-shaped area arranged radially around the image area. A mini-program code can also be a QR code composed of multiple black and white colored square code elements.
[0082] In this embodiment, the mini-program code of the target mini-program is used to instruct the upload of multimedia files to the business processing website through the target mini-program. The second terminal can enter the mini-program interface of the target mini-program by scanning the mini-program code. In this embodiment, the presentation method of the mini-program code is not limited.
[0083] The server encodes the business identifier of the business scenario and the interface address of the target mini-program to generate the mini-program code of the target mini-program.
[0084] 205. The server sends the mini-program code to the first terminal.
[0085] In one possible implementation, the mini-program code can be a one-time QR code, which can only be scanned once by a second terminal; that is, the mini-program code becomes invalid after being scanned once by the second terminal. If it is necessary to re-upload multimedia files through the target mini-program, the first terminal needs to send a multimedia file upload request to the server again to obtain a new mini-program code. The second terminal then scans the new mini-program code to enter the target mini-program and re-upload the multimedia file.
[0086] It should be noted that, after the first terminal's QR code on the multimedia file upload interface is scanned and it receives an instruction to upload the multimedia file via the target mini-program, it can send another multimedia file upload request to the server to obtain a new QR code. Alternatively, the first terminal can also send a multimedia file upload request to the server to obtain a new QR code simply in response to the QR code being scanned on the multimedia file upload interface.
[0087] In another possible implementation, the mini-program code has an expiration date. If the mini-program code is not scanned within a preset time period from its generation, it becomes invalid. If the mini-program code expires and a multimedia file needs to be uploaded through the target mini-program, the first terminal needs to send a multimedia file upload request to the server again to obtain a new mini-program code. The second terminal then scans the new mini-program code to enter the target mini-program and upload the multimedia file. The preset time period can be set to any duration, such as 10 minutes, 15 minutes, or 30 minutes.
[0088] It should be noted that when the first terminal receives an operation instructing it to upload a multimedia file via the target mini-program, it can send another multimedia file upload request to the server to obtain a new mini-program code. The first terminal can also respond to a refresh operation on the mini-program code by sending a multimedia file upload request to the server to obtain a new mini-program code. Furthermore, the first terminal can respond to a refresh operation on the multimedia file upload interface by sending a multimedia file upload request to the server to obtain a new mini-program code.
[0089] 206. The first terminal receives the mini-program code sent by the server and displays the mini-program code on the multimedia file upload interface of the business processing website.
[0090] See also Figure 3 The first terminal displays the mini-program code on the multimedia file upload interface of the business processing website.
[0091] In one possible implementation, the first terminal, in response to an operation instructing the upload of a multimedia file via a target mini-program, sends a multimedia file upload request to the server, receives the mini-program code of the target mini-program returned by the server, and displays the mini-program code in the multimedia file upload interface.
[0092] In this embodiment, the initial multimedia file upload interface displayed on the first terminal does not include the target mini-program's QR code. Only when the first terminal receives an operation instructing it to upload a multimedia file via the target mini-program does it send a multimedia file upload request to the server, obtain the target mini-program's QR code, and display the QR code on the multimedia file upload interface. If the user does not need to upload a multimedia file via the target mini-program, the first terminal will not request the target mini-program's QR code from the server, thereby saving unnecessary server resource consumption and improving server operating efficiency.
[0093] In another possible implementation, when the first terminal is rendering the multimedia file upload interface of the business processing website, it sends a multimedia file upload request to the server, receives the mini-program code of the target mini-program returned by the server, and displays the mini-program code in the multimedia file upload interface.
[0094] In this embodiment, when the first terminal renders the multimedia file upload interface of the business processing website, it requests the mini-program code of the target mini-program from the server. When the first terminal finishes rendering and displays the upload interface, the mini-program code of the target mini-program is displayed in the upload interface, so that the user can quickly scan the mini-program code through the second terminal to upload multimedia files through the target mini-program, thereby improving the efficiency of multimedia file upload.
[0095] 207. The second terminal scans the mini-program code of the target mini-program based on the multimedia file upload interface of the business processing website displayed on the first terminal.
[0096] The first terminal displays a multimedia file upload interface on the business processing website, which includes a mini-program QR code. The second terminal can scan the mini-program QR code displayed on the first terminal using a target application. The second terminal uses the target application's camera component to scan the mini-program QR code.
[0097] 208. The second terminal parses the mini-program code to obtain the interface address of the target mini-program, and parses the mini-program code to obtain the business identifier of the business scenario to which the upload interface belongs.
[0098] The target application on the second terminal has parsing rules for the target mini-program's QR code. The second terminal can parse the mini-program QR code according to these rules to obtain the parsing result. From the parsing result, it can obtain the target mini-program's interface address and the business identifier of the business scenario to which the multimedia file upload interface belongs. Accordingly, the steps for the second terminal to parse the mini-program QR code to obtain the target mini-program's interface address and the business identifier of the business scenario to which the upload interface belongs can be as follows: The second terminal obtains the parsing rules for the target mini-program's QR code; according to these rules, it parses the code elements in the encoded area of the mini-program QR code to obtain the parsing result, which includes at least the target mini-program's interface address and the business identifier of the business scenario to which the multimedia file upload interface belongs; the second terminal obtains the target mini-program's interface address and the business identifier of the business scenario to which the multimedia file belongs from the parsing result.
[0099] 209. The second terminal displays the mini-program interface corresponding to the interface address based on the interface address.
[0100] The second terminal obtains the interface address of the target mini-program by parsing the mini-program code, retrieves the interface file used to render the mini-program interface, and renders the mini-program interface based on this interface file. This mini-program interface can be an interface for retrieving multimedia files.
[0101] In one possible implementation, the mini-program interface includes at least a control for obtaining multimedia files, and the second terminal obtains the multimedia files in response to a trigger operation on the control for obtaining multimedia files.
[0102] In another possible implementation, the mini-program interface includes the name of the target mini-program, the name of the multimedia file to be uploaded, and controls for retrieving the multimedia file. For example, Figure 4 This is a schematic diagram of a mini-program interface provided in an embodiment of this application. See also... Figure 4 For business scenarios requiring the uploading of a video expressing the legal representative's intention to open an account, the mini-program interface accessed via the corresponding mini-program code includes the name of the target mini-program (401), the name of the multimedia file to be uploaded (402), and an upload control (403). The target mini-program name (401) can be an audio / video upload mini-program, the multimedia file name (402) can be a video expressing the legal representative's intention to open an account, and the upload control (403) is used to retrieve the multimedia file.
[0103] It's important to note that the name of the multimedia file to be uploaded displayed on the second terminal can be obtained from the parsing result of the mini-program code. The multimedia file to be uploaded is the name of the multimedia file currently displayed on the upload interface of the first terminal. When the server generates the mini-program code for the target mini-program, it can also encode the name of the multimedia file to be uploaded into the mini-program code. Correspondingly, when the second terminal parses the mini-program code, it can obtain a parsing result including the name of the multimedia file to be uploaded; it can then retrieve the name of the multimedia file to be uploaded from this parsing result; and finally, it can display the name of the multimedia file to be uploaded in the mini-program interface.
[0104] The second terminal can also obtain the name of the multimedia file to be uploaded this time from the server based on the business identifier of the business scenario. Accordingly, the steps for the second terminal to obtain the name of the multimedia file to be uploaded this time are as follows: the second terminal obtains the business identifier from the parsing result of the mini-program code; sends an acquisition request to the server, which carries the business identifier of the business scenario to which the upload interface displayed on the first terminal belongs; the server uses this request to obtain the name of the multimedia file corresponding to the business identifier and returns the name of the multimedia file corresponding to the business identifier to the second terminal; the second terminal receives the name of the multimedia file corresponding to the business identifier returned by the server and uses this name as the name of the multimedia file to be uploaded this time.
[0105] 210. The second terminal obtains the first multimedia file to be compressed based on the mini-program interface.
[0106] In the first possible implementation, the second terminal, based on the mini-program interface, uses its camera function to acquire the first multimedia file to be compressed. Accordingly, this step can be achieved through the following steps (1) to (3):
[0107] (1) The second terminal is based on the mini-program interface and responds to the shooting operation for instructing the shooting of multimedia files, and displays the shooting interface of multimedia files.
[0108] The mini-program interface accessed by the second terminal after scanning the mini-program code includes at least a control for acquiring multimedia files. In one possible implementation, the second terminal, in response to a trigger operation on the control for acquiring multimedia files, directly enters the multimedia file capture interface. The trigger operation on the control for acquiring multimedia files is used to instruct the capture operation of a multimedia file. For example, see [link to previous section]. Figure 4The second terminal responds to the trigger operation of the upload control 403 and enters the multimedia file shooting interface. The trigger operation of the upload control 403 can be a click operation on the upload control 403 or a voice input operation, which is used to instruct the trigger of the upload control 403.
[0109] In another possible implementation, the second terminal, in response to a triggering operation on the control used to acquire multimedia files, displays an option list, which includes a first option and a second option. The first option is used to indicate entering the shooting interface to capture multimedia files, and the second option is used to indicate acquiring the captured multimedia files from the second terminal's gallery. In response to a triggering operation on the first option, the multimedia file shooting interface is displayed; in response to a triggering operation on the second option, the gallery list of the second terminal is displayed.
[0110] (2) The second terminal captures the first multimedia file based on the shooting interface.
[0111] In one possible implementation, the second terminal, based on the shooting interface, calls the camera component of the second terminal and uses the camera function of the second terminal to capture the first multimedia file. Figure 5 This is a schematic diagram of a shooting interface provided in an embodiment of this application. See also... Figure 5 The second terminal, based on a shooting interface, captures a first multimedia file in response to a trigger operation on the shooting control 501. The steps for the second terminal to respond to the trigger operation on the shooting control 501 can be as follows: upon a first click on the shooting control 501, the second terminal invokes the camera component to capture the first multimedia file; upon a second click on the shooting control 501, it stops capturing the first multimedia file. In response to the first click on the shooting control 501, the second terminal can also display a pause control and an image capture control on the interface for capturing the first multimedia file. The trigger operation on the shooting control 501 can also be achieved by long-pressing the shooting control 501. In this embodiment, the method by which the second terminal captures the first multimedia file is not limited.
[0112] In another possible implementation, the shooting interface displayed on the second terminal also includes a second prompt message, which is used to indicate the recording requirements corresponding to the business scenario.
[0113] The second prompt can be a graphic guide box displayed in the shooting area 502 of the shooting interface. This graphic guide box provides graphical guidance for the user to shoot the first multimedia file. For example, if the multimedia file to be uploaded is a video of the user reading a passage of evidence, and the recording requirements for the business scenario include capturing a clear, frontal face, the graphic guide box indicates that the area where the user's face is located should be within the first range defined by the graphic guide box. As another example, if the multimedia file to be uploaded is a video of the user holding their identification document, and the recording requirements for the business scenario include capturing a clear, frontal face and a clear identification document, the graphic guide box indicates that the area where the user's face is located should be within the first range defined by the graphic guide box, and the area where the user's identification document is located should be within the second range defined by the graphic guide box. The first range indicates the position where the user's face should be in the shooting area, and the second range indicates the position where the user's identification document should be in the shooting area.
[0114] It should be noted that during the recording of multimedia files, if the area where the user's face is located exceeds the first range defined by the graphic guide frame, or if the area where the user's ID is located exceeds the second range defined by the graphic guide frame, a third prompt message will be displayed on the recording interface. The third prompt message is used to remind the user that the area where the face is located should be within the first range defined by the graphic guide frame, or the third prompt message is used to remind the user that the area where the ID is located should be within the second range defined by the graphic guide frame.
[0115] In this embodiment of the application, the shooting interface of the second terminal also includes a second prompt message. The second prompt message is a graphical guide box that provides graphical guidance for the user to shoot the first multimedia file. The user can quickly and accurately shoot multimedia files that meet the recording requirements according to the graphical guide box, thereby reducing the user's shooting cost, improving shooting efficiency, and enhancing the user's experience.
[0116] The second prompt can also be a sample image or video displayed on the shooting interface, which serves as an example for the user to capture the first multimedia file. For example, if the multimedia file to be uploaded is a video of the user holding their ID, the second prompt can be a sample image or video indicating the user's posture while holding the ID and the location of their face. The sample image or video can be displayed on the shooting interface without affecting the user's capture of the first multimedia file.
[0117] In this embodiment of the application, the shooting interface of the second terminal also includes a second prompt message. The second prompt message is used to provide the user with an example image or example video for shooting the first multimedia file. The user can quickly and accurately shoot a multimedia file that meets the recording requirements based on the example image or example video, thereby reducing the user's shooting cost, improving shooting efficiency, and enhancing the user's experience.
[0118] The second prompt can also be text displayed on the shooting interface, which is used to prompt the recording requirements of the multimedia file. For example, if the multimedia file to be uploaded is a video of the user reading a certain certificate, and the recording requirements corresponding to the business scenario include recording in Mandarin according to the XX script and capturing a clear, frontal face, the text information on the shooting interface may include: "Please record the video with the following script: I am the legal representative (or person in charge) of XX Co., Ltd., and hereby certify that the merchant number applied for by our company is opened with our true intention and is used for XX business (or XX service). Our company's existing business complies with laws, regulations and relevant provisions," "Please record the video in Mandarin," and "Please keep your face facing the camera and do not cover your face."
[0119] In this embodiment of the application, the shooting interface of the second terminal also includes a second prompt message, which is text information used to prompt the recording requirements of multimedia files. Users can quickly and accurately shoot multimedia files that meet the recording requirements based on the text information, thereby reducing the user's shooting cost, improving shooting efficiency, and enhancing the user experience.
[0120] In another possible implementation, the shooting interface of the second terminal also includes a gallery control 503 for accessing the gallery. The second terminal can access the gallery through the gallery control 503 and directly obtain the captured first multimedia file from the gallery. Accordingly, the steps for the second terminal to acquire the first multimedia file based on the shooting interface can be as follows: in response to a trigger operation on the gallery control 503, the second terminal displays a gallery list; in response to a selection operation on any multimedia file in the gallery list, the selected multimedia file is determined to be the first multimedia file.
[0121] (3) The second terminal displays the display interface of the first multimedia file and, in response to the confirmation operation of the first multimedia file, obtains the first multimedia file to be compressed.
[0122] The second terminal displays a display interface for the first multimedia file. The display interface is used to display the first multimedia file that has been captured. In response to the confirmation operation of the first multimedia file, the second terminal uses the first multimedia file as the first multimedia file to be compressed.
[0123] The display interface also includes a confirmation control for uploading the first multimedia file, for example, Figure 6 This is a schematic diagram of a display interface provided in an embodiment of this application. See also: Figure 6 The display interface shows a first multimedia file 601 that has been captured, named "Proof of Legal Person's Intent to Open an Account". The captured first multimedia file 601 may display cover information, which can be any frame image of the first multimedia file; the second terminal can respond to a trigger operation on the captured first multimedia file 601 and play the captured first multimedia file.
[0124] The display interface also includes a confirmation control 602 for confirming the upload of the first multimedia file. The second terminal, in response to triggering the confirmation control 602 (i.e., in response to confirming the first multimedia file), obtains the first multimedia file to be compressed. The triggering operation for the confirmation control 602 can be a click operation on the confirmation control 602.
[0125] In this embodiment, after the second terminal collects the first multimedia file, it also displays the first multimedia file on the display interface so that the user can confirm whether the first multimedia file to be uploaded is correct. This reduces the user's erroneous upload of the first multimedia file, reduces unnecessary consumption of compression resources and server resources, and thus improves the upload efficiency of multimedia files.
[0126] In the second possible implementation, before the second terminal obtains the first multimedia file to be compressed, it can first determine whether the captured third multimedia file meets the recording requirements. Only if the captured third multimedia file meets the recording requirements will it be used as the first multimedia file to be compressed. Accordingly, the second terminal, based on the mini-program interface, can obtain the first multimedia file to be compressed through the following steps (i) to (iii):
[0127] (i) The second terminal obtains the third multimedia file based on the mini-program interface.
[0128] Step (i) is similar to the first possible implementation in step 210, where the second terminal, based on the mini-program interface, responds to the instruction to capture a multimedia file and displays the multimedia file capture interface; the step of acquiring the first multimedia file based on the capture interface is similar and will not be repeated here.
[0129] (ii) In response to the confirmation operation of the third multimedia file, the second terminal obtains the recording requirements corresponding to the business scenario to which the upload interface belongs based on the business identifier. This confirmation operation is used to indicate confirmation of uploading the third multimedia file.
[0130] The second terminal can obtain the recording requirements corresponding to the service identifier of the service scenario from the server. Accordingly, this step can be as follows: In response to the confirmation operation of the third multimedia file, the second terminal sends a request to the server. This request carries the service identifier of the service scenario to which the upload interface displayed by the first terminal belongs. The server obtains the recording requirements corresponding to the service identifier and returns the recording requirements to the second terminal. The second terminal receives the recording requirements corresponding to the service identifier returned by the server.
[0131] It should be noted that the server stores the configuration information of the business processing website. When the business processing website accesses the services provided by the server, it configures this information. Before the second terminal obtains the recording requirements corresponding to the business identifier from the server, the server stores the configuration information of the business processing website. Accordingly, the steps for the server to store the configuration information of the business processing website can be as follows: the server receives the configuration information of the business processing website, which includes the address of the multimedia file upload interface of the business processing website and the recording requirements corresponding to the business scenario to which the upload interface belongs; generates the business identifier of the business scenario to which the multimedia file upload interface of the business processing website belongs; and stores the correspondence between the business identifier, the recording requirements, and the address of the upload interface.
[0132] (iii) In response to the fact that the third multimedia file meets the recording requirements, the second terminal uses the third multimedia file as the first multimedia file to be compressed; in response to the fact that the third multimedia file does not meet the recording requirements, the second terminal displays a first prompt message, which prompts the user to upload the first multimedia file according to the recording requirements.
[0133] Different business processing websites typically have different recording requirements for different business scenarios. For example, for a business scenario that requires uploading a video of a legal representative's intention to open an account, the corresponding recording requirements include: recording in Mandarin according to the XX script, capturing a clear, frontal face, avoiding any processing of the original image and audio in the recorded video (such as filters, beauty effects, voice changing, and other post-production effects), and the format can be avi, wmv, mpeg, mp4, mov, mkv, flv, f4v, m4v, or rmvb.
[0134] Before the second terminal uses the third multimedia file as the first multimedia file to be compressed or displays the first prompt message, it also determines whether the third multimedia file meets the recording requirements.
[0135] In one possible implementation, the second terminal can identify the third multimedia file and determine whether it meets the recording requirements for avoiding post-processing. Accordingly, the steps for the second terminal to determine whether the third multimedia file meets the recording requirements can be: the second terminal identifies the third multimedia file and obtains an identification result; in response to the identification result indicating that the third multimedia file has not undergone post-processing, the second terminal determines that the third multimedia file meets the recording requirements for avoiding post-processing.
[0136] The second terminal can obtain a recognition model using deep learning methods, and then use this model to recognize the third multimedia file, obtaining a recognition result. Accordingly, the steps for the second terminal to recognize the third multimedia file and obtain a recognition result can be as follows: the second terminal acquires the image and audio of the third multimedia file; inputs the image of the third multimedia file into an image recognition model, and outputs a first recognition result, which indicates that either the image of the third multimedia file has not undergone post-processing or that it has undergone post-processing; inputs the audio of the third multimedia file into an audio recognition model; outputs a second recognition result, which indicates that either the audio of the third multimedia file has not undergone post-processing or that it has undergone post-processing; in response to both the first and second recognition results indicating that the image and audio of the third multimedia file have not undergone post-processing, the recognition result of the third multimedia file is determined to be unprocessed; in response to either the first or second recognition result indicating that the third multimedia file has undergone post-processing, the recognition result of the third multimedia file is determined to be post-processed.
[0137] The images of the third multimedia file acquired by the second terminal can be each frame of the third multimedia file, or the images of the third multimedia file acquired by the second terminal can be any number of frames in the third multimedia file.
[0138] The second terminal can also identify the third multimedia file based on its detailed information to obtain an identification result. Accordingly, the steps for the second terminal to identify the third multimedia file and obtain its identification result can be as follows: the second terminal obtains the detailed information of the third multimedia file; identifies the third multimedia file based on its detailed information; in response to the detailed information indicating that the third multimedia file has undergone post-processing, the identification result is determined to be post-processed; in response to the detailed information indicating that the third multimedia file has not undergone post-processing, the identification result is determined to be unprocessed.
[0139] For example, if the details of a third multimedia file include an identifier for a filter added to the file, then the file is determined to have undergone post-processing. Similarly, if the details of a third multimedia file include an identifier for the application used to capture the file, and that application identifier is for post-processing multimedia files, then the file is determined to have undergone post-processing.
[0140] In another possible implementation, the second terminal can also perform speech recognition on the audio of the third multimedia file to obtain the speech recognition result corresponding to the audio. Based on the speech recognition result, it can determine whether the third multimedia file meets the recording requirements of recording in Mandarin according to the XX script. Accordingly, the steps for the second terminal to determine whether the third multimedia file meets the recording requirements can be as follows: the second terminal performs speech recognition on the audio of the third multimedia file to obtain the speech recognition result corresponding to the audio, which can be the text information corresponding to the audio of the third multimedia file; determines the degree of matching between the speech recognition result and the XX script; in response to the degree of matching being greater than a specified threshold, determines that the third multimedia file meets the recording requirements of recording in Mandarin according to the XX script; in response to the degree of matching not being greater than the specified threshold, determines that the third multimedia file does not meet the recording requirements of recording in Mandarin according to the XX script.
[0141] In another possible implementation, the second terminal can also identify the image of the third multimedia file to determine whether the third multimedia file meets the recording requirements for capturing a clear, frontal face. Accordingly, the steps for the second terminal to determine whether the third multimedia file meets the recording requirements can be: the second terminal acquires the image of the third multimedia file; detects the face image in the image of the third multimedia file; in response to the face image being a clear, frontal face image, determines that the third multimedia file meets the recording requirements for capturing a clear, frontal face; in response to either the face image not being clear or being a frontal face image, determines that the third multimedia file does not meet the recording requirements for capturing a clear, frontal face.
[0142] In another possible implementation, the second terminal determines whether the format of the third multimedia file meets the recording requirements. Accordingly, the steps for the second terminal to determine whether the third multimedia file meets the recording requirements can be: the second terminal obtains the detailed information of the third multimedia file; obtains the format of the third multimedia file from the detailed information of the third multimedia file; in response to the format of the third multimedia file matching the format requirements in the recording requirements, determines that the format of the third multimedia file meets the recording requirements; in response to the format of the third multimedia file not matching the format requirements in the recording requirements, determines that the format of the third multimedia file does not meet the recording requirements.
[0143] In this embodiment of the application, after the second terminal collects the multimedia file, it can determine whether the collected multimedia file meets the recording requirements corresponding to the business scenario. If the collected multimedia file meets the recording requirements corresponding to the business scenario, the collected multimedia file will be used as the first multimedia file to be compressed, thereby reducing unnecessary consumption of compression resources and improving the efficiency of uploading multimedia files.
[0144] 211. The second terminal obtains the compression strategy corresponding to the business scenario to which the upload interface belongs based on the business identifier.
[0145] In one possible implementation, the second terminal can obtain the compression strategy corresponding to the business scenario to which the upload interface belongs from the server based on the business identifier of the business scenario. Accordingly, this step can be as follows: the second terminal sends a compression strategy retrieval request to the server, the request carrying the business identifier; the server retrieves the compression strategy corresponding to the business scenario to which the upload interface belongs based on the correspondence between the business identifier and the compression strategy, and returns the compression strategy to the second terminal; the second terminal receives the compression strategy returned by the server.
[0146] In another possible implementation, the second terminal can also obtain the compression strategy corresponding to the business scenario of the upload interface from the parsing result of the mini-program code. When the server generates the mini-program code for the target mini-program, it can also encode the compression strategy corresponding to the business scenario of the upload interface into the mini-program code. Accordingly, when the second terminal parses the mini-program code, it can obtain a parsing result including the compression strategy, and obtain the compression strategy corresponding to the business scenario of the upload interface from this parsing result.
[0147] 212. The second terminal compresses the first multimedia file according to the compression strategy to obtain the second multimedia file.
[0148] In one possible implementation, the second terminal compresses the first multimedia file to obtain a second multimedia file. Accordingly, this step can be: the second terminal obtains the bitrate and resolution corresponding to the business scenario from the compression strategy; and compresses the first multimedia file according to the bitrate and resolution corresponding to the business scenario to obtain the second multimedia file.
[0149] In this embodiment, the second terminal compresses the first multimedia file according to a compression strategy to obtain a compressed second multimedia file, and sends the compressed second multimedia file to the server. Since the compressed second multimedia file has a smaller data size, the stability of transmitting the second multimedia file to the server is improved. Furthermore, the compressed second multimedia file is stored on the server, which reduces the occupation of server storage resources and saves bandwidth for transmitting the second multimedia file to the server, thereby improving the efficiency of multimedia file uploading.
[0150] In another possible implementation, the second terminal can also compress the first multimedia file according to the data volume requirement of the multimedia file in the recording requirements to obtain the second multimedia file. Accordingly, the steps for the second terminal to compress the first multimedia file according to a compression strategy to obtain the second multimedia file can be as follows: the second terminal obtains the data volume requirement of the multimedia file from the recording requirements; determines a compression strategy that meets the data volume requirement; and compresses the first multimedia file according to the compression strategy to obtain the second multimedia file.
[0151] In this embodiment, the second terminal can also compress the first multimedia file according to the recording requirements to obtain a second multimedia file that meets the data volume requirements in the recording requirements, thereby reducing the problem of needing to upload multiple times due to not meeting the data volume requirements and improving the upload efficiency of multimedia files.
[0152] For example, if the recording requirement specifies that the multimedia file must be 5MB, the second terminal determines a compression strategy that can compress the first multimedia file into a second multimedia file with a data size of less than 5MB. Based on this compression strategy, the first multimedia file is compressed to obtain the second multimedia file.
[0153] It should be noted that when the second terminal compresses the first multimedia file according to the compression strategy, it displays an interface indicating that the first multimedia file is being compressed, for example, Figure 7 This is a schematic diagram of an interface showing a first multimedia file being compressed, provided in an embodiment of this application. See also... Figure 7 The interface displays a prompt box 701 indicating that the first multimedia file is being compressed, which prompts the user that the first multimedia file is being compressed.
[0154] In this embodiment, the second terminal displays a prompt box indicating that the first multimedia file is being compressed, which allows the user to determine the current status of the first multimedia file and improves the user experience.
[0155] 213. The second terminal sends the second multimedia file to the server corresponding to the target mini-program.
[0156] The second terminal sends a second multimedia file to the server corresponding to the target mini-program. This second multimedia file may also carry a business identifier corresponding to it. The business identifier is used to indicate the business scenario of the business processing website corresponding to the second multimedia file.
[0157] It's worth noting that the compression strategy corresponding to the business scenario of the upload interface can also involve the second terminal sending the first multimedia file to the server, where the server compresses the first multimedia file to obtain the second multimedia file. Based on this compression strategy, the resource consumption of the second terminal can be reduced, improving its operating efficiency.
[0158] 214. The server receives the second multimedia file sent by the second terminal through the target mini-program and uploads the second multimedia file to the business processing website.
[0159] The server receives a second multimedia file sent by a second terminal through a target mini-program. This second multimedia file carries a corresponding service identifier. Based on this service identifier, the server can upload the second multimedia file to the service processing website. Accordingly, the steps for the server to receive the second multimedia file sent by the second terminal through the target mini-program and upload it to the service processing website can be as follows: The server receives the second multimedia file sent by the second terminal through the target mini-program; based on the service identifier carried by the second multimedia file, it determines the address of the multimedia file upload interface of the service processing website corresponding to that service identifier; and uploads the second multimedia file to the upload interface corresponding to that address.
[0160] The server uploads the second multimedia file to the business processing website, and the uploaded second multimedia file is displayed on the multimedia file upload interface of the business processing website on the first terminal. For example, Figure 8 This is a schematic diagram of the upload interface of a business processing website provided in an embodiment of this application. See also... Figure 8The upload interface displays the second uploaded multimedia file 801. It also includes a re-upload control 802 and a mini-program re-upload control 803. The re-upload control 802 corresponds to re-uploading multimedia files via a file selector; the mini-program re-upload control 803 corresponds to re-uploading multimedia files via a target mini-program. Users can re-upload multimedia files using either of these two methods.
[0161] In this embodiment, based on the multimedia file upload interface of the business processing website displayed on the first terminal, the mini-program code of the target mini-program is scanned. The upload interface includes the mini-program code. The mini-program code is parsed to obtain the interface address of the target mini-program. The mini-program code is also parsed to obtain the business identifier of the business scenario to which the upload interface belongs. Based on the business identifier, the compression strategy corresponding to the business scenario to which the upload interface belongs is obtained. Based on the interface address, the mini-program interface corresponding to the interface address is displayed. Based on the mini-program interface, a first multimedia file to be compressed is obtained. According to the compression strategy, the first multimedia file is compressed to obtain a second multimedia file, which is then sent to the server corresponding to the target mini-program. The server uses this second multimedia file to upload the second multimedia file to the business processing website. In this application, the first multimedia file to be uploaded is compressed by the target mini-program, and the compressed second multimedia file is uploaded to the business processing website. Because the data size of the compressed second multimedia file is smaller, the stability of transmitting the second multimedia file to the business processing website is improved, thereby increasing the success rate of transmitting multimedia files to the business processing website.
[0162] Figure 9 This is a flowchart illustrating a multimedia file upload method provided in an embodiment of this application. In this embodiment, the server is a server integrated with an open platform that provides a multimedia file upload service and a target application. See also... Figure 9 This embodiment includes:
[0163] 901. The first terminal displays the multimedia file upload interface of the business processing website.
[0164] This step is similar to step 201, and will not be repeated here.
[0165] 902. The first terminal sends a multimedia file upload request to the backend system.
[0166] In one possible implementation, the first terminal, in response to an operation instructing the upload of a multimedia file via the target app, sends a multimedia file upload request to the background system.
[0167] In another possible implementation, the first terminal sends a multimedia file upload request to the backend system when rendering the multimedia file upload interface of the business processing website.
[0168] 903. The backend system receives the multimedia file upload request sent by the first terminal and sends the multimedia file upload request to the open platform.
[0169] The target mini-program runs on the target application. The target application's open platform provides a mini-program code generation service. The backend system receives a multimedia file upload request from the first terminal, sends the multimedia file upload request to the open platform, and the open platform generates the mini-program code for the target mini-program.
[0170] 904. The open platform receives multimedia file upload requests and generates the mini-program code for the target mini-program based on the multimedia file upload requests.
[0171] Based on the multimedia file upload request, the open platform determines the business identifier of the business scenario and the interface address of the target mini-program, encodes the business identifier of the business scenario and the interface address of the target mini-program, and generates the mini-program code of the target mini-program.
[0172] 905. The open platform sends the mini-program code to the backend system.
[0173] After the open platform generates the mini-program code, it sends the mini-program code to the backend system.
[0174] 906. The backend system sends the mini-program code to the first terminal.
[0175] The backend system receives the mini-program code sent by the open platform and sends the mini-program code to the first terminal.
[0176] 907. The first terminal receives the mini-program code sent by the backend system and displays the mini-program code on the multimedia file upload interface of the business processing website.
[0177] This step is similar to step 206, and will not be repeated here.
[0178] 908. First terminal polling backend system.
[0179] In one possible implementation, the first terminal polls the background system and sends a multimedia file retrieval request to the background system. This multimedia file retrieval request is used to request the retrieval of a second multimedia file.
[0180] The backend system receives a multimedia file retrieval request. In response to the second terminal not sending the second multimedia file, it either does not return content to the first terminal, returns empty content to the first terminal, or returns a status code indicating that the second terminal has not sent the second multimedia file. The first terminal, in response to the backend system not returning content, returning empty content, or returning a status code indicating that the second terminal has not sent the second multimedia file, determines that the submission status of the second multimedia file is not submitted and displays the submission status of the second multimedia file in the multimedia file upload interface.
[0181] The backend system responds to the fact that the second terminal is sending the second multimedia file by returning a status code to the first terminal indicating that the second terminal is sending the second multimedia file; the first terminal responds to the status code returned by the backend system indicating that the second terminal is sending the second multimedia file by determining that the submission status of the second multimedia file is "submitting" and displays the submission status of the second multimedia file in the multimedia file upload interface.
[0182] Upon receiving the second multimedia file sent by the second terminal, the backend system determines the link address of the second multimedia file and returns the link address to the first terminal. The first terminal, in response to the link address returned by the backend system, determines that the submission status of the second multimedia file is "submitted," displays the submission status of the second multimedia file in the multimedia file upload interface, and retrieves the second multimedia file corresponding to the link address; and displays the second multimedia file in the multimedia file upload interface.
[0183] In another possible implementation, the first terminal polls the backend system and sends a submission status retrieval request to the backend system. This submission status retrieval request is used to request the submission status of the second multimedia file, which can be unsubmitted, submitting, or submitted. The first terminal receives the submission status returned by the backend system, displays the submission status in the multimedia file upload interface, and the first terminal responds by indicating that the submission status is submitted. The first terminal then sends a link address retrieval request to the backend system to request the link address of the second multimedia file. The first terminal receives the link address returned by the backend system, retrieves the second multimedia file corresponding to the link address, and displays the second multimedia file in the multimedia file upload interface.
[0184] The first terminal polls the backend system and sends multimedia file retrieval requests or status retrieval requests to the backend system at any preset time interval, such as 30 seconds or 1 minute.
[0185] 909. The second terminal scans the mini-program code of the target mini-program based on the multimedia file upload interface of the business processing website displayed on the first terminal.
[0186] This step is similar to step 207, and will not be repeated here.
[0187] 910. The second terminal parses the mini-program code to obtain the interface address of the target mini-program, and parses the mini-program code to obtain the business identifier of the business scenario to which the upload interface belongs.
[0188] This step is similar to step 208, and will not be repeated here.
[0189] 911. The second terminal displays the mini-program interface corresponding to the interface address based on the interface address.
[0190] This step is similar to step 209, and will not be repeated here.
[0191] 912. The second terminal obtains the first multimedia file to be compressed based on the mini-program interface.
[0192] This step is similar to step 210, and will not be repeated here.
[0193] 913. The second terminal obtains the compression strategy corresponding to the business scenario to which the upload interface belongs based on the business identifier.
[0194] This step is similar to step 211, and will not be repeated here.
[0195] 914. The second terminal compresses the first multimedia file according to the compression strategy to obtain the second multimedia file.
[0196] This step is similar to step 212, and will not be repeated here.
[0197] 915. The second terminal sends a second multimedia file to the backend system.
[0198] This step is similar to step 213, and will not be repeated here.
[0199] 916. The backend system receives the second multimedia file sent by the second terminal through the target mini-program, and returns the link address of the second multimedia file to the first terminal according to the status of the second multimedia file sent by the second terminal.
[0200] In one possible implementation, the first terminal polls the background system and sends a multimedia file retrieval request to the background system. The background system receives the multimedia file retrieval request and, based on the status of the second terminal sending the second multimedia file, returns the second multimedia file to the first terminal. Correspondingly, the steps for the background system to return the second multimedia file to the first terminal based on the status of the second terminal sending the second multimedia file can be as follows: If the second terminal has not sent the second multimedia file, the background system either does not return any content to the first terminal, returns empty content, or returns a status code indicating that the second terminal has not sent the second multimedia file; if the second terminal is sending the second multimedia file, the background system returns a status code indicating that the second terminal is sending the second multimedia file; if the background system receives the second multimedia file sent by the second terminal, determines the link address of the second multimedia file, and returns the link address to the first terminal.
[0201] In another possible implementation, the first terminal polls the backend system and sends a submission status retrieval request. The backend system receives the submission status retrieval request, determines the submission status of the second multimedia file based on the status of the second multimedia file sent by the second terminal, and returns the link address of the second multimedia file to the first terminal based on the submission status of the second multimedia file. Correspondingly, the steps by which the backend system returns the second multimedia file to the first terminal based on the status of the second multimedia file sent by the second terminal can be as follows: If the second terminal has not sent the second multimedia file, the backend system updates the submission status of the second multimedia file to "not submitted"; if the second terminal is sending the second multimedia file, the backend system updates the submission status of the second multimedia file to "submitting"; if the backend system receives the second multimedia file sent by the second terminal through the target mini-program, the backend system updates the submission status of the second multimedia file to "submitted" and generates the link address of the second multimedia file. The submission status of the second multimedia file is used by the first terminal to poll and send a link address retrieval request when the submission status of the second multimedia file is updated to "submitted"; and upon receiving the link address retrieval request, the backend system sends the link address of the second multimedia file to the first terminal based on the link address retrieval request.
[0202] In this embodiment, the first terminal obtains the second multimedia file by polling the background system, thereby saving resources occupied by the background system, improving the operating efficiency of the background system, and thus improving the efficiency of the first terminal in obtaining the second multimedia file.
[0203] 917. The first terminal receives the link address of the second multimedia file, obtains the second multimedia file based on the link address, and displays the second multimedia file on the business processing website.
[0204] The first terminal receives the link address of the second multimedia file, obtains the second multimedia file corresponding to the link address, displays the second multimedia file on the business processing website, and presents the second multimedia file to the user. After the second multimedia file is successfully uploaded, the user can continue to process business through the first terminal.
[0205] In this embodiment, based on the multimedia file upload interface of the business processing website displayed on the first terminal, the mini-program code of the target mini-program is scanned. The upload interface includes the mini-program code. The mini-program code is parsed to obtain the interface address of the target mini-program. The mini-program code is also parsed to obtain the business identifier of the business scenario to which the upload interface belongs. Based on the business identifier, the compression strategy corresponding to the business scenario to which the upload interface belongs is obtained. Based on the interface address, the mini-program interface corresponding to the interface address is displayed. Based on the mini-program interface, a first multimedia file to be compressed is obtained. According to the compression strategy, the first multimedia file is compressed to obtain a second multimedia file, which is then sent to the server corresponding to the target mini-program. The server uses this second multimedia file to upload the second multimedia file to the business processing website. In this application, the first multimedia file to be uploaded is compressed by the target mini-program, and the compressed second multimedia file is uploaded to the business processing website. Because the data size of the compressed second multimedia file is smaller, the stability of transmitting the second multimedia file to the business processing website is improved, thereby increasing the success rate of transmitting multimedia files to the business processing website.
[0206] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
[0207] Figure 10 This is a block diagram of a multimedia file upload device provided in an embodiment of this application. See also... Figure 10 The device includes:
[0208] The scanning module 1001 is configured to scan the mini-program code of the target mini-program based on the multimedia file upload interface of the business processing website displayed on the first terminal, and the upload interface includes the mini-program code.
[0209] The parsing module 1002 is configured to parse the mini-program code to obtain the interface address of the target mini-program; and to parse the mini-program code to obtain the business identifier of the business scenario to which the upload interface belongs.
[0210] Display module 1003 is configured to display the mini-program interface corresponding to the interface address based on the interface address.
[0211] The acquisition module 1004 is configured to acquire the first multimedia file to be compressed based on the mini-program interface; and to acquire the compression strategy corresponding to the business scenario to which the upload interface belongs based on the business identifier.
[0212] Compression module 1005 is configured to compress a first multimedia file according to a compression strategy to obtain a second multimedia file;
[0213] The first sending module 1006 is configured to send a second multimedia file to the server corresponding to the target mini-program, and the server is used to upload the second multimedia file to the business processing website.
[0214] In one possible implementation, the acquisition module 1004 is further configured to send a compression strategy acquisition request to the server. The compression strategy acquisition request carries a business identifier. The server is used to obtain the compression strategy corresponding to the business scenario to which the upload interface belongs based on the correspondence between the business identifier and the compression strategy, and return the compression strategy to the second terminal; and receive the compression strategy returned by the server.
[0215] In another possible implementation, the acquisition module 1004 is further configured to acquire a third multimedia file based on the mini-program interface; in response to a confirmation operation on the third multimedia file, acquire the recording requirements corresponding to the business scenario to which the upload interface belongs based on the business identifier, and the confirmation operation is used to indicate confirmation of uploading the third multimedia file; in response to the third multimedia file meeting the recording requirements, use the third multimedia file as the first multimedia file to be compressed; in response to the third multimedia file not meeting the recording requirements, display a first prompt message, which is used to prompt the upload of the first multimedia file according to the recording requirements.
[0216] In another possible implementation, the device further includes:
[0217] The recognition module is configured to recognize the third multimedia file and obtain the recognition result of the third multimedia file;
[0218] The first determining module is configured to determine, in response to the identification result indicating that the third multimedia file has not undergone post-processing, that the third multimedia file meets the recording requirements for avoiding post-processing.
[0219] In another possible implementation, the acquisition module 1004 is also configured to, based on the mini-program interface, display a multimedia file shooting interface in response to an instruction to shoot a multimedia file; based on the shooting interface, acquire a first multimedia file, the shooting interface including a second prompt message, the second prompt message being used to indicate the recording requirements corresponding to the business scenario; display a display interface for the first multimedia file, and in response to a confirmation operation on the first multimedia file, acquire the first multimedia file to be compressed.
[0220] It should be noted that the multimedia file uploading device provided in the above embodiments is only illustrated by the division of the above functional modules when uploading multimedia files. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the multimedia file uploading device and the multimedia file uploading method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0221] In this embodiment, based on the multimedia file upload interface of the business processing website displayed on the first terminal, the mini-program code of the target mini-program is scanned. The upload interface includes the mini-program code. The mini-program code is parsed to obtain the interface address of the target mini-program. The mini-program code is also parsed to obtain the business identifier of the business scenario to which the upload interface belongs. Based on the business identifier, the compression strategy corresponding to the business scenario to which the upload interface belongs is obtained. Based on the interface address, the mini-program interface corresponding to the interface address is displayed. Based on the mini-program interface, a first multimedia file to be compressed is obtained. According to the compression strategy, the first multimedia file is compressed to obtain a second multimedia file, which is then sent to the server corresponding to the target mini-program. The server uses this second multimedia file to upload the second multimedia file to the business processing website. In this application, the first multimedia file to be uploaded is compressed by the target mini-program, and the compressed second multimedia file is uploaded to the business processing website. Because the data size of the compressed second multimedia file is smaller, the stability of transmitting the second multimedia file to the business processing website is improved, thereby increasing the success rate of transmitting multimedia files to the business processing website.
[0222] Figure 11 This is a block diagram of a multimedia file upload device provided in an embodiment of this application. See also... Figure 11 The device includes:
[0223] The receiving module 1101 is configured to receive a multimedia file upload request sent by the first terminal. The multimedia file upload request is used to request the upload of a multimedia file to the business processing website accessed by the first terminal through the target applet.
[0224] The second determining module 1102 is configured to determine the business scenario to which the upload interface of the multimedia file corresponding to the multimedia upload request belongs based on the multimedia file upload request.
[0225] The generation module 1103 is configured to generate a mini-program code for the target mini-program based on the business identifier of the business scenario and the interface address of the target mini-program. The mini-program code is used to indicate the upload of multimedia files to the business processing website through the target mini-program.
[0226] The second sending module 1104 is configured to send a mini-program code to the first terminal. The first terminal is used to display the mini-program code on the multimedia file upload interface of the business processing website. The mini-program code is used to be scanned by the second terminal to enter the target mini-program.
[0227] The upload module 1105 is configured to receive a second multimedia file sent by a second terminal through a target mini-program and upload the second multimedia file to the business processing website.
[0228] In one possible implementation, the upload module 1105 is further configured to: update the submission status of the second multimedia file to "not submitted" in response to the second terminal not sending the second multimedia file; update the submission status of the second multimedia file to "submitting" in response to the second terminal sending the second multimedia file; update the submission status of the second multimedia file to "submitted" in response to receiving the second multimedia file sent by the second terminal through the target applet, and generate a link address for the second multimedia file. The submission status of the second multimedia file is used by the first terminal to poll and send a link address retrieval request when the submission status of the second multimedia file is updated to "submitted"; receive the link address retrieval request, and send the link address of the second multimedia file to the first terminal according to the link address retrieval request. The first terminal is used to receive the link address of the second multimedia file, retrieve the second multimedia file according to the link address, and display the second multimedia file on the business processing website.
[0229] It should be noted that the multimedia file uploading device provided in the above embodiments is only illustrated by the division of the above functional modules when uploading multimedia files. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the server can be divided into different functional modules to complete all or part of the functions described above. In addition, the multimedia file uploading device and the multimedia file uploading method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0230] In this embodiment, a multimedia file upload request is received from a first terminal. This request requests the upload of a multimedia file to a business processing website accessed by the first terminal via a target mini-program. Based on the multimedia file upload request, the business scenario to which the upload interface of the multimedia file belongs is determined. A mini-program code for the target mini-program is generated based on the business identifier of the business scenario and the interface address of the target mini-program. This mini-program code instructs the upload of the multimedia file to the business processing website via the target mini-program. The mini-program code is sent to the first terminal, which displays it on the multimedia file upload interface of the business processing website. The mini-program code is scanned by a second terminal to access the target mini-program. A second multimedia file is received from the second terminal via the target mini-program and uploaded to the business processing website. In this application, by generating a mini-program code for the target mini-program and transmitting multimedia files based on this code, the user's operation steps are simplified, the user experience is improved, and the efficiency of multimedia uploads is increased.
[0231] This application provides a computer device, which can be a terminal or a server. Responding to the computer device being a terminal, the terminal can be a first terminal in the above method embodiments, or it can be a second terminal in the above method embodiments. Figure 12 This is a block diagram of a terminal provided in an embodiment of this application. The terminal 1200 can be: a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 1200 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0232] Typically, terminal 1200 includes a processor 1201 and a memory 1202.
[0233] Processor 1201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1201 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1201 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1201 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0234] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1202 are used to store at least one line of program code, which is executed by the processor 1201 to implement the multimedia file upload method provided in the method embodiments of this application.
[0235] In some embodiments, the terminal 1200 may also optionally include a peripheral device interface 1203 and at least one peripheral device. The processor 1201, memory 1202, and peripheral device interface 1203 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1204, a touch display screen 1205, a camera assembly 1206, an audio circuit 1207, a positioning assembly 1208, and a power supply 1209.
[0236] Peripheral device interface 1203 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1201 and memory 1202. In some embodiments, processor 1201, memory 1202 and peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1201, memory 1202 and peripheral device interface 1203 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0237] The radio frequency (RF) circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1204 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1204 can communicate with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1204 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0238] Display screen 1205 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1205 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1201 for processing. In this case, display screen 1205 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1205, which serves as the front panel of terminal 1200; in other embodiments, there may be at least two display screens 1205, respectively disposed on different surfaces of terminal 1200 or in a folded design; in still other embodiments, display screen 1205 may be a flexible display screen, disposed on a curved or folded surface of terminal 1200. Furthermore, display screen 1205 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1205 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0239] The camera assembly 1206 is used to acquire images or videos. Optionally, the camera assembly 1206 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1206 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0240] The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1201 for processing, or input to the radio frequency circuit 1204 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 1200. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1207 may also include a headphone jack.
[0241] The positioning component 1208 is used to locate the current geographical location of the terminal 1200 in order to enable navigation or LBS (Location Based Service). The positioning component 1208 can be a positioning component based on the US GPS (Global Positioning System), China's BeiDou system, Russia's Granas system, or the EU's Galileo system.
[0242] Power supply 1209 is used to power the various components in terminal 1200. Power supply 1209 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1209 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0243] In some embodiments, the terminal 1200 further includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: an accelerometer 1211, a gyroscope 1212, a pressure sensor 1213, a fingerprint sensor 1214, an optical sensor 1215, and a proximity sensor 1216.
[0244] Accelerometer 1211 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established with terminal 1200. For example, accelerometer 1211 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1201 can control touchscreen 1205 to display the user interface in landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1211. Accelerometer 1211 can also be used for games or for acquiring user motion data.
[0245] The gyroscope sensor 1212 can detect the orientation and rotation angle of the terminal 1200. The gyroscope sensor 1212 can work in conjunction with the accelerometer sensor 1211 to collect the user's 3D movements on the terminal 1200. Based on the data collected by the gyroscope sensor 1212, the processor 1201 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0246] The pressure sensor 1213 can be disposed on the side bezel of the terminal 1200 and / or on the lower layer of the touch display screen 1205. When the pressure sensor 1213 is disposed on the side bezel of the terminal 1200, it can detect the user's grip signal on the terminal 1200, and the processor 1201 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1213. When the pressure sensor 1213 is disposed on the lower layer of the touch display screen 1205, the processor 1201 can control the operable controls on the UI interface based on the user's pressure operation on the touch display screen 1205. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0247] The fingerprint sensor 1214 is used to collect a user's fingerprint. The processor 1201 identifies the user based on the fingerprint collected by the fingerprint sensor 1214, or vice versa. When the user's identity is identified as trusted, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1214 can be located on the front, back, or side of the terminal 1200. When the terminal 1200 has physical buttons or a manufacturer's logo, the fingerprint sensor 1214 can be integrated with the physical buttons or manufacturer's logo.
[0248] The optical sensor 1215 is used to collect ambient light intensity. In one embodiment, the processor 1201 can control the display brightness of the touch screen 1205 based on the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 1205 is increased; when the ambient light intensity is low, the display brightness of the touch screen 1205 is decreased. In another embodiment, the processor 1201 can also dynamically adjust the shooting parameters of the camera assembly 1206 based on the ambient light intensity collected by the optical sensor 1215.
[0249] The proximity sensor 1216, also known as a distance sensor, is typically located on the front panel of the terminal 1200. The proximity sensor 1216 is used to detect the distance between the user and the front of the terminal 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front of the terminal 1200 is gradually decreasing, the processor 1201 controls the touchscreen display 1205 to switch from a screen-on state to a screen-off state; when the proximity sensor 1216 detects that the distance between the user and the front of the terminal 1200 is gradually increasing, the processor 1201 controls the touchscreen display 1205 to switch from a screen-off state to a screen-on state.
[0250] Those skilled in the art will understand that Figure 12 The structure shown does not constitute a limitation on terminal 1200 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0251] The computer device is a server; Figure 13 This is a block diagram of a server provided in an embodiment of this application. The server 1300 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 1301 and one or more memories 1302. The memories 1302 store at least one line of program code, which is loaded and executed by the processor 1301 to implement the multimedia file upload method provided in the various method embodiments described above. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be elaborated upon here.
[0252] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one piece of program code that can be executed by a processor in a computer device to complete the multimedia file upload method in the above embodiments. For example, the computer-readable storage medium may be ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (CompactDisc Read-Only Memory), magnetic tape, floppy disk, and optical data storage device, etc.
[0253] This application also provides a computer program product, which includes one or more computer programs. When the computer programs are executed by a processor, they are used to implement the multimedia file upload method provided in the above-described method embodiments.
[0254] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0255] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for uploading multimedia files, characterized in that, The method includes: Based on the multimedia file upload interface of the business processing website displayed on the first terminal, scan the mini-program code of the target mini-program. The upload interface includes the mini-program code. Different multimedia file upload interfaces belong to different business scenarios, and different business scenarios have different recording requirements for multimedia files. Parse the mini-program code to obtain the interface address of the target mini-program; and parse the mini-program code to obtain the business identifier of the business scenario to which the upload interface belongs; Based on the interface address, display the mini-program interface corresponding to the interface address, and based on the mini-program interface, obtain the first multimedia file to be compressed; Based on the business identifier, obtain the compression strategy corresponding to the business scenario to which the upload interface belongs; According to the compression strategy, the first multimedia file is compressed to obtain a second multimedia file, and the second multimedia file is sent to the server corresponding to the target mini-program. The server is used to upload the second multimedia file to the business processing website. The step of obtaining the first multimedia file to be compressed based on the mini-program interface includes: obtaining a third multimedia file based on the mini-program interface; in response to a confirmation operation on the third multimedia file, obtaining the recording requirements corresponding to the business scenario to which the upload interface belongs, according to the business identifier, wherein the confirmation operation is used to indicate confirmation of uploading the third multimedia file; in response to the third multimedia file meeting the recording requirements, using the third multimedia file as the first multimedia file to be compressed; and in response to the third multimedia file not meeting the recording requirements, displaying a first prompt message, wherein the first prompt message is used to prompt the upload of the first multimedia file according to the recording requirements. Before using the third multimedia file as the first multimedia file to be compressed, in response to the third multimedia file meeting the recording requirements, the method further includes: identifying the third multimedia file to obtain an identification result of the third multimedia file; and determining that the third multimedia file meets the recording requirements to avoid post-processing, in response to the identification result indicating that the third multimedia file has not undergone post-processing.
2. The method according to claim 1, characterized in that, The step of obtaining the compression strategy corresponding to the business scenario to which the upload interface belongs based on the business identifier includes: A compression strategy retrieval request is sent to the server. The compression strategy retrieval request carries the service identifier. The server is used to obtain the compression strategy corresponding to the service scenario to which the upload interface belongs based on the correspondence between the service identifier and the compression strategy, and return the compression strategy to the second terminal. Receive the compression strategy returned by the server.
3. The method according to claim 1, characterized in that, The step of obtaining the first multimedia file to be compressed based on the mini-program interface includes: Based on the mini-program interface, in response to the instruction to shoot a multimedia file, the multimedia file shooting interface is displayed. Based on the shooting interface, a first multimedia file is captured. The shooting interface includes a second prompt message, which is used to indicate the recording requirements corresponding to the business scenario. Display the interface of the first multimedia file, and in response to the confirmation operation of the first multimedia file, obtain the first multimedia file to be compressed.
4. A method for uploading multimedia files, characterized in that, The method includes: The system receives a multimedia file upload request sent by a first terminal, the multimedia file upload request being used to request the upload of a multimedia file to the business processing website accessed by the first terminal through the target mini-program; Based on the multimedia file upload request, determine the business scenario to which the multimedia file upload interface belongs. Different multimedia file upload interfaces belong to different business scenarios, and different business scenarios have different recording requirements for multimedia files. Based on the business identifier of the business scenario and the interface address of the target mini-program, a mini-program code for the target mini-program is generated. The mini-program code is used to instruct the upload of multimedia files to the business processing website through the target mini-program. The first terminal sends the mini-program code to the first terminal, which displays the mini-program code on the multimedia file upload interface of the business processing website, and the mini-program code is scanned by the second terminal to enter the target mini-program. The second terminal receives a second multimedia file sent by the second terminal through the target mini-program and uploads the second multimedia file to the business processing website. The second terminal uses the multimedia file upload method of any one of claims 1-3 to send the second multimedia file through the target mini-program.
5. The method according to claim 4, characterized in that, The step of receiving the second multimedia file sent by the second terminal through the target mini-program and uploading the second multimedia file to the business processing website includes: In response to the second terminal not sending the second multimedia file, the submission status of the second multimedia file is updated to "not submitted"; In response to the second terminal sending the second multimedia file, the submission status of the second multimedia file is updated to "submitting"; In response to receiving the second multimedia file sent by the second terminal through the target applet, the submission status of the second multimedia file is updated to "submitted", and a link address of the second multimedia file is generated. The submission status of the second multimedia file is used by the first terminal to poll the second multimedia file and send a link address acquisition request when the submission status of the second multimedia file is updated to "submitted". The system receives the link address acquisition request, sends the link address of the second multimedia file to the first terminal according to the link address acquisition request, and the first terminal is used to receive the link address of the second multimedia file, acquire the second multimedia file according to the link address of the second multimedia file, and display the second multimedia file in the business processing website.
6. A multimedia file upload device, characterized in that, The device includes: The scanning module is configured to scan the mini-program code of the target mini-program based on the multimedia file upload interface of the business processing website displayed on the first terminal. The upload interface includes the mini-program code. Different multimedia file upload interfaces belong to different business scenarios, and different business scenarios have different recording requirements for multimedia files. The parsing module is configured to parse the mini-program code to obtain the interface address of the target mini-program; and to parse the mini-program code to obtain the business identifier of the business scenario to which the upload interface belongs. The display module is configured to display the mini-program interface corresponding to the interface address based on the interface address; The acquisition module is configured to: acquire a third multimedia file based on the mini-program interface; in response to a confirmation operation on the third multimedia file, acquire the recording requirements corresponding to the business scenario to which the upload interface belongs, based on the business identifier, wherein the confirmation operation is used to indicate confirmation of uploading the third multimedia file; in response to the third multimedia file meeting the recording requirements, designate the third multimedia file as a first multimedia file to be compressed; in response to the third multimedia file not meeting the recording requirements, display a first prompt message, wherein the first prompt message is used to prompt the upload of the first multimedia file according to the recording requirements; and acquire the compression strategy corresponding to the business scenario to which the upload interface belongs, based on the business identifier. The compression module is configured to compress the first multimedia file according to the compression strategy to obtain a second multimedia file; The first sending module is configured to send the second multimedia file to the server corresponding to the target mini-program, and the server is used to upload the second multimedia file to the business processing website; The recognition module is configured to recognize the third multimedia file and obtain the recognition result of the third multimedia file; The first determining module is configured to determine, in response to the identification result indicating that the third multimedia file has not undergone post-processing, that the third multimedia file meets the recording requirements for avoiding post-processing.
7. The apparatus according to claim 6, characterized in that, The acquisition module is further configured to send a compression strategy acquisition request to the server. The compression strategy acquisition request carries the service identifier. The server is used to acquire the compression strategy corresponding to the service scenario to which the upload interface belongs based on the correspondence between the service identifier and the compression strategy, and return the compression strategy to the second terminal. Receive the compression strategy returned by the server.
8. The apparatus according to claim 6, characterized in that, The acquisition module is further configured to, based on the mini-program interface, in response to an instruction to capture a multimedia file, display a multimedia file capture interface; based on the capture interface, acquire a first multimedia file, wherein the capture interface includes second prompt information, the second prompt information being used to indicate the recording requirements corresponding to the business scenario; display a display interface for the first multimedia file, and in response to a confirmation operation on the first multimedia file, acquire the first multimedia file to be compressed.
9. A multimedia file upload device, characterized in that, The device includes: The receiving module is configured to receive a multimedia file upload request sent by the first terminal, wherein the multimedia file upload request is used to request the upload of a multimedia file to the business processing website accessed by the first terminal through the target applet; The second determining module is configured to determine the business scenario to which the upload interface of the multimedia file corresponding to the multimedia upload request belongs based on the multimedia file upload request. Different multimedia file upload interfaces belong to different business scenarios, and different business scenarios have different recording requirements for multimedia files. The generation module is configured to generate a mini-program code for the target mini-program based on the business identifier of the business scenario and the interface address of the target mini-program. The mini-program code is used to instruct the upload of multimedia files to the business processing website through the target mini-program. The second sending module is configured to send the mini-program code to the first terminal, the first terminal is used to display the mini-program code on the multimedia file upload interface of the business processing website, and the mini-program code is used to be scanned by the second terminal to enter the target mini-program; The upload module is configured to receive a second multimedia file sent by the second terminal through the target mini-program using the multimedia file upload method described in any one of claims 1-3, and upload the second multimedia file to the business processing website.
10. The apparatus according to claim 9, characterized in that, The upload module is also configured to update the submission status of the second multimedia file to "not submitted" in response to the second terminal not sending the second multimedia file. In response to the second terminal sending the second multimedia file, the submission status of the second multimedia file is updated to "submitting"; In response to receiving the second multimedia file sent by the second terminal through the target applet, the submission status of the second multimedia file is updated to "submitted", and a link address of the second multimedia file is generated. The submission status of the second multimedia file is used by the first terminal to poll the second multimedia file and send a link address acquisition request when the submission status of the second multimedia file is updated to "submitted". The system receives the link address acquisition request, sends the link address of the second multimedia file to the first terminal according to the link address acquisition request, and the first terminal is used to receive the link address of the second multimedia file, acquire the second multimedia file according to the link address of the second multimedia file, and display the second multimedia file in the business processing website.
11. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one piece of program code, which is loaded and executed by the processor to implement the multimedia file upload method as described in any one of claims 1-3 or 4-5.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the multimedia file upload method as described in any one of claims 1-3 or 4-5.
13. A computer program product, characterized in that, The computer program product includes computer program code, which, when executed by a processor, implements the multimedia file upload method as described in any one of claims 1-3 or 4-5.
Citation Information
Patent Citations
Cloud rendering mixed compression transmission system and method based on file type
CN106341482A
Business processing method and device based on credit enhancement, computer equipment and storage medium
CN109816517A
WeChat-based file transmission system and method
CN110191046A