CN-111291287-B - Multimedia file uploading method and device and computer equipment
Abstract
The application provides a method and a device for uploading multimedia files and computer equipment, and belongs to the technical field of computers. The method comprises the steps of scanning applet codes of target applets based on an uploading interface of a multimedia file of a business handling website displayed by a first terminal, analyzing the applet codes to obtain an interface address of the target applets, analyzing the applet codes to obtain a business identifier of a business scene to which the uploading interface belongs, displaying the applet interface corresponding to the interface address based on the interface address, obtaining a first multimedia file to be compressed based on the applet interface, obtaining a compression strategy according to the business identifier, compressing the first multimedia file according to the compression strategy to obtain a second multimedia file, and sending the second multimedia file to a server, wherein the server is used for uploading the second multimedia file to the business handling website. And as the data volume of the compressed second multimedia file is smaller, the stability of transmitting the second multimedia file to the service handling website is improved.
Inventors
- Song huai
Assignees
- 腾讯科技(深圳)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20200119
Claims (13)
- 1. A method for uploading a multimedia file, the method comprising: based on an uploading interface of a multimedia file of a business handling website displayed by a first terminal, scanning applet codes of a target applet, wherein the uploading interface comprises the applet codes, business scenes to which uploading interfaces of different multimedia files belong are different, and recording requirements of the multimedia files corresponding to the different business scenes are different; analyzing the applet code to obtain the interface address of the target applet, and analyzing the applet code to obtain the service identification of the service scene of the uploading interface; displaying an applet interface corresponding to the interface address based on the interface address, and acquiring a first multimedia file to be compressed based on the applet interface; acquiring a compression strategy corresponding to the service scene to which the uploading interface belongs according to the service identifier; according to the compression strategy, compressing the first multimedia file to obtain a second multimedia file, and sending the second multimedia file to a server corresponding to the target applet, wherein the server is used for uploading the second multimedia file to the service handling website; The acquiring the first multimedia file to be compressed based on the applet interface comprises acquiring a third multimedia file based on the applet interface; the method comprises the steps of obtaining a service scene to which an uploading interface belongs according to a service identifier, responding to a confirmation operation of a third multimedia file, obtaining a recording requirement corresponding to the service scene to which the uploading interface belongs according to the service identifier, wherein the confirmation operation is used for indicating to confirm uploading of the third multimedia file; The method further comprises the steps of identifying the third multimedia file to obtain an identification result of the third multimedia file before the third multimedia file is used as a first multimedia file to be compressed in response to the third multimedia file meeting the recording requirement, and determining that the third multimedia file meets the recording requirement for avoiding post-processing according to the identification result, wherein the identification result is used for indicating that the third multimedia file does not undergo post-processing.
- 2. The method of claim 1, wherein the obtaining, according to the service identifier, a compression policy corresponding to a service scenario to which the upload interface belongs, includes: A compression strategy acquisition request is sent to the server, the compression strategy acquisition request carries the service identifier, the server is used for acquiring a compression strategy corresponding to a service scene to which the uploading interface belongs according to the corresponding relation between the service identifier and the compression strategy, and the compression strategy is returned to the second terminal; and receiving the compression strategy returned by the server.
- 3. The method of claim 1, wherein the obtaining the first multimedia file to be compressed based on the applet interface comprises: Based on the applet interface, displaying a shooting interface of the multimedia file in response to a shooting operation for instructing shooting of the multimedia file; collecting a first multimedia file based on the shooting interface, wherein the shooting interface comprises second prompt information which is used for indicating a recording requirement corresponding to the service scene; And displaying a display interface of the first multimedia file, and responding to the confirmation operation of the first multimedia file to acquire the first multimedia file to be compressed.
- 4. A method for uploading a multimedia file, the method comprising: receiving a multimedia file uploading request sent by a first terminal, wherein the multimedia file uploading request is used for requesting a service handling website accessed to the first terminal through a target applet to upload a multimedia file; determining a service scene to which an uploading interface of a multimedia file corresponding to the multimedia uploading request belongs according to the multimedia file uploading request, wherein the service scenes to which the uploading interfaces of different multimedia files belong are different, and the recording requirements of the multimedia files corresponding to the different service scenes are different; According to the service identification of the service scene and the interface address of the target applet, generating applet codes of the target applet, wherein the applet codes are used for indicating uploading of the multimedia file to the service handling website through the target applet; The applet codes are sent to the first terminal, the first terminal is used for displaying the applet codes on an uploading interface of a multimedia file of the business transaction website, and the applet codes are used for being scanned by a second terminal to enter the target applet; Receiving a second multimedia file sent by the second terminal through the target applet, and uploading the second multimedia file to the service handling website, wherein the second terminal adopts the multimedia file uploading method according to any one of the preceding claims 1-3, and sends the second multimedia file through the target applet.
- 5. The method of claim 4, wherein the receiving the second multimedia file sent by the second terminal through the object applet, and uploading the second multimedia file to the service handling website, comprises: Updating the submitting state of the second multimedia file to be non-submitting in response to the second terminal not sending the second multimedia file; Updating the submitting state of the second multimedia file into submitting in response to the second terminal sending the second multimedia file; In response to receiving the second multimedia file sent by the second terminal through the target applet, updating the commit status of the second multimedia file to committed, and generating a link address of the second multimedia file, wherein the commit status of the second multimedia file is used for the first terminal to poll that the commit status of the second multimedia file is updated to committed, and sending a link address acquisition request; the link address acquisition request is received, the link address of the second multimedia file is sent to the first terminal according to the link address acquisition request, the first terminal is used for receiving the link address of the second multimedia file, the second multimedia file is acquired according to the link address of the second multimedia file, and the second multimedia file is displayed in the business handling website.
- 6. A multimedia file uploading apparatus, the apparatus comprising: the scanning module is configured to scan the applet codes of the target applet based on the uploading interface of the multimedia file of the business handling website displayed by the first terminal, wherein the uploading interface comprises the applet codes, the uploading interfaces of different multimedia files are different in business scenes, and the recording requirements of the multimedia files corresponding to the different business scenes are different; The analysis module is configured to analyze the applet codes to obtain the interface address of the target applet, and analyze the applet codes to obtain the service identification of the service scene to which the uploading interface belongs; the display module is configured to display an applet interface corresponding to the interface address based on the interface address; The system comprises an acquisition module, a confirmation operation, a first prompt message, a compression strategy and a second prompt message, wherein the acquisition module is configured to acquire a third multimedia file based on the applet interface, respond to confirmation operation of the third multimedia file, acquire a recording requirement corresponding to a service scene to which the uploading interface belongs according to the service identifier, the confirmation operation is used for indicating to confirm uploading of the third multimedia file, respond to the third multimedia file to conform to the recording requirement, take the third multimedia file as a first multimedia file to be compressed, respond to the third multimedia file not conform to the recording requirement, display first prompt message, and prompt uploading of the first multimedia file according to the recording requirement; 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 a server corresponding to the target applet, and the server is used for uploading the second multimedia file to the service handling website; the identification module is configured to identify the third multimedia file to obtain an identification result of the third multimedia file; And the first determining module is configured to determine that the third multimedia file meets the recording requirement for avoiding post-processing in response to the identification result, wherein the identification result is used for indicating that the third multimedia file is not subjected to post-processing.
- 7. The apparatus of claim 6, wherein the obtaining module is further configured to send a compression policy obtaining request to the server, where the compression policy obtaining request carries the service identifier, the server is configured to obtain, according to a correspondence between the service identifier and the compression policy, a compression policy corresponding to a service scenario to which the uploading interface belongs, return the compression policy to the second terminal, and receive the compression policy returned by the server.
- 8. The apparatus of claim 6, wherein the obtaining module is further configured to display a shooting interface for capturing the multimedia file in response to a shooting operation for indicating to capture the multimedia file based on the applet interface, collect a first multimedia file based on the shooting interface, wherein the shooting interface includes second prompt information for indicating a recording requirement corresponding to the service scene, display a display interface for the first multimedia file, and obtain the first multimedia file to be compressed in response to a confirmation operation for the first multimedia file.
- 9. A multimedia file uploading apparatus, the apparatus comprising: The receiving module is configured to receive a multimedia file uploading request sent by a first terminal, wherein the multimedia file uploading request is used for requesting a business handling website accessed to the first terminal through a target applet to upload the multimedia file; The second determining module is configured to determine, according to the multimedia file uploading request, a service scene to which an uploading interface of a multimedia file corresponding to the multimedia uploading request belongs, wherein the service scenes to which uploading interfaces of different multimedia files belong are different, and recording requirements of the multimedia files corresponding to the different service scenes are different; The generation module is configured to generate an applet code of the target applet according to the service identification of the service scene and the interface address of the target applet, wherein the applet code is used for indicating the uploading of the multimedia file to the service handling website through the target applet; the second sending module is configured to send the applet codes to the first terminal, wherein the first terminal is used for displaying the applet codes on an uploading interface of a multimedia file of the business handling website, and the applet codes are used for being scanned into the target applet by the second terminal; An uploading module configured to receive a second multimedia file sent by the second terminal through the target applet by adopting the multimedia file uploading method of any one of the preceding claims 1-3, and upload the second multimedia file to the service handling website.
- 10. The apparatus of claim 9, wherein the upload module is further configured to update a commit status of the second multimedia file to uncommitted in response to the second terminal not sending the second multimedia file, update a commit status of the second multimedia file to commit in response to the second terminal sending the second multimedia file, update a commit status of the second multimedia file to commit in response to receiving the second multimedia file sent by the second terminal through the applet, update a commit status of the second multimedia file to committed in response to receiving the second multimedia file sent by the second terminal through the applet, and generate a link address of the second multimedia file, the commit status of the second multimedia file for the first terminal to poll to the second multimedia file to commit, send a link address acquisition request, send a link address of the second multimedia file to the first terminal in response to the link address acquisition request, the first terminal to receive the second multimedia file and to handle the link address of the second multimedia file, and the link address of the second multimedia file is displayed in the second multimedia file.
- 11. A computer device comprising a processor and a memory, wherein the memory has stored therein at least one program code that is loaded and executed by the processor to implement the multimedia file uploading method of any of claims 1-3 or claims 4-5.
- 12. A computer readable storage medium, characterized in that at least one section of a computer program is stored in the computer readable storage medium, which is loaded and executed by a processor to implement the multimedia file uploading method of any of claims 1-3 or 4-5.
- 13. A computer program product, characterized in that the computer program product comprises computer program code which, when executed by a processor, implements the multimedia file uploading method of any of claims 1-3 or claims 4-5.
Description
Multimedia file uploading method and device and computer equipment Technical Field The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for uploading a multimedia file, and a computer device. Background Currently, when a user applies for and processes a service at a service processing website, a multimedia file needs to be submitted as an application material. For example, the multimedia file is a video of a document held by a user or a video of a document read by a user. The user needs to enter a service handling website through a PC (Personal Computer ) end to apply for and handle the service, if the user needs to submit a multimedia file as an application material, the user needs to record the multimedia file needing to be submitted through a mobile terminal, the recorded multimedia file is uploaded to the PC end through a wired or wireless network, the multimedia file needing to be submitted is searched in the PC end through a file selector, the multimedia file needing to be submitted is selected, and the multimedia file is submitted to the service handling website. When the multimedia file is submitted to a business handling website, the transmission stability is poor due to the fact that the multimedia file is large, and the problem of transmission failure occurs. Disclosure of Invention The embodiment of the application provides a method, a device and computer equipment for uploading multimedia files, which can improve the stability of multimedia file transmission. The technical scheme is as follows: according to an aspect of the embodiment of the present application, there is provided a multimedia file uploading method, including: Based on an uploading interface of a multimedia file of a business handling website displayed by a first terminal, scanning an applet code of a target applet, wherein the uploading interface comprises the applet code; analyzing the applet code to obtain the interface address of the target applet, and analyzing the applet code to obtain the service identification of the service scene of the uploading interface; displaying an applet interface corresponding to the interface address based on the interface address, and acquiring a first multimedia file to be compressed based on the applet interface; acquiring a compression strategy corresponding to the service scene to which the uploading interface belongs according to the service identifier; And compressing the first multimedia file according to the compression strategy to obtain a second multimedia file, and sending the second multimedia file to a server corresponding to the target applet, wherein the server is used for uploading the second multimedia file to the service handling website. According to another aspect of the embodiment of the present application, there is provided a multimedia file uploading method, including: receiving a multimedia file uploading request sent by a first terminal, wherein the multimedia file uploading request is used for requesting a service handling website accessed to the first terminal through a target applet to upload a multimedia file; determining a service scene to which an uploading interface of the multimedia file corresponding to the multimedia uploading request belongs according to the multimedia file uploading request; According to the service identification of the service scene and the interface address of the target applet, generating applet codes of the target applet, wherein the applet codes are used for indicating uploading of the multimedia file to the service handling website through the target applet; The applet codes are sent to the first terminal, the first terminal is used for displaying the applet codes on an uploading interface of a multimedia file of the business transaction website, and the applet codes are used for being scanned by a second terminal to enter the target applet; And receiving a second multimedia file sent by the second terminal through the target applet, and uploading the second multimedia file to the service handling website. According to another aspect of the embodiment of the present application, there is provided a multimedia file uploading apparatus, including: The scanning module is configured to scan the applet codes of the target applet based on an uploading interface of the multimedia file of the business transaction website displayed by the first terminal, wherein the uploading interface comprises the applet codes; The analysis module is configured to analyze the applet codes to obtain the interface address of the target applet, and analyze the applet codes to obtain the service identification of the service scene to which the uploading interface belongs; the display module is configured to display an applet interface corresponding to the interface address based on the interface address; The acquisition module is configured to acquire a first multimedia file to be compressed bas