CN111291287A - Multimedia file uploading method and device and computer equipment - Google Patents

Multimedia file uploading method and device and computer equipment Download PDF

Info

Publication number
CN111291287A
CN111291287A CN202010057574.8A CN202010057574A CN111291287A CN 111291287 A CN111291287 A CN 111291287A CN 202010057574 A CN202010057574 A CN 202010057574A CN 111291287 A CN111291287 A CN 111291287A
Authority
CN
China
Prior art keywords
multimedia file
terminal
applet
interface
uploading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010057574.8A
Other languages
Chinese (zh)
Inventor
宋淮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010057574.8A priority Critical patent/CN111291287A/en
Publication of CN111291287A publication Critical patent/CN111291287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading

Abstract

The application provides a multimedia file uploading method and device and computer equipment, and belongs to the technical field of computers. The method comprises the following steps: scanning the applet codes of the target applet based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal; analyzing the applet codes to obtain the interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs; 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 according to the service identifier; and 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, wherein the server is used for uploading the second multimedia file to a service handling website. The data volume of the compressed second multimedia file is small, so that the stability of transmitting the second multimedia file to the service handling website is improved.

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 multimedia file uploading method and apparatus, and a computer device.
Background
Currently, when a user applies and transacts a service at a service transaction website, the user needs to submit a multimedia file as application material. For example, a multimedia file is a video of a user holding a certificate or a video of a user reciting a piece of proof text.
A user needs to enter a service handling website through a Personal Computer (PC) end to apply and handle services; if the multimedia file is required to be submitted as application material, the user needs to record the multimedia file required to be submitted through the mobile terminal; uploading the recorded multimedia file to a PC (personal computer) end through a wired or wireless network; searching a multimedia file to be submitted in a PC terminal through a file selector; and selecting the multimedia file to be submitted, and submitting the multimedia file to a service handling website.
When a 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 therefore the problem of transmission failure occurs.
Disclosure of Invention
The embodiment of the application provides a multimedia file uploading method, a multimedia file uploading device and computer equipment, and the stability of multimedia file transmission can be improved. The technical scheme is as follows:
according to an aspect of an embodiment of the present application, there is provided a multimedia file uploading method, including:
scanning the applet codes of the target applets based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the applet codes;
analyzing the applet codes to obtain the interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs;
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 a 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 embodiments 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 to upload a multimedia file to a service handling website accessed by the first terminal through a target applet;
determining a service scene to which an uploading interface of the multimedia file corresponding to the multimedia file uploading request belongs according to the multimedia file uploading request;
generating an applet code of the target applet according to the service identifier of the service scene and the interface address of the target applet, wherein the applet code is used for indicating that a multimedia file is uploaded to the service handling website through the target applet;
sending the applet code to the first terminal, wherein the first terminal is used for displaying the applet code on an uploading interface of a multimedia file of the business handling website, and the applet code is 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 embodiments 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 a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the applet codes;
the analysis module is configured to analyze the applet codes and acquire an interface address of the target applet; analyzing the small program code to obtain a service identifier of a 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 based on the applet interface; acquiring a compression strategy corresponding to a service scene to which the uploading interface belongs according to the service identifier;
the compression module is configured to compress the first multimedia file according to the compression strategy to obtain a second multimedia file;
and 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.
In a possible implementation manner, 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, and 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 upload interface belongs, and return the compression policy to the second terminal; and receiving the compression strategy returned by the server.
In another possible implementation manner, the obtaining module is further configured to obtain a third multimedia file based on the applet interface; responding to a confirmation operation on the third multimedia file, and acquiring a recording requirement corresponding to a service scene to which the uploading interface belongs according to the service identifier, wherein the confirmation operation is used for indicating to confirm the uploading of the third multimedia file; in response to the third multimedia file meeting the recording requirement, taking the third multimedia file as a first multimedia file to be compressed; and responding to the fact that the third multimedia file does not accord with the recording requirement, and displaying first prompt information, wherein the first prompt information is used for prompting the uploading of the first multimedia file according to the recording requirement.
In another possible implementation manner, the apparatus further includes:
the identification module is configured to identify the third multimedia file to obtain an identification result of the third multimedia file;
a first determining module configured to determine that the third multimedia file meets a recording requirement for avoiding post-processing in response to the recognition result indicating that the third multimedia file is not post-processed.
In another possible implementation manner, the obtaining module is further configured to display a shooting interface of the multimedia file in response to a shooting operation for instructing shooting of the multimedia file based on the applet interface; acquiring 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 obtain the first multimedia file to be compressed.
According to another aspect of embodiments of the present application, there is provided a multimedia file uploading apparatus, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is configured to receive a multimedia file uploading request sent by a first terminal, and the multimedia file uploading request is used for requesting to upload a multimedia file to a service handling website accessed by the first terminal through a target applet;
the second determining module is configured to determine a service scene to which an uploading interface of a multimedia file corresponding to the multimedia file uploading request belongs according to the multimedia file uploading request;
the generating module is configured to generate an applet code of the target applet according to the service identifier of the service scene and the interface address of the target applet, wherein the applet code is used for indicating that a multimedia file is uploaded to the service handling website through the target applet;
the second sending module is configured to send the applet codes to the first terminal, the first terminal is used for displaying the applet codes on an uploading interface of the multimedia files of the business handling website, and the applet codes are used for being scanned into the target applet by the second terminal;
and the uploading module is configured to receive a second multimedia file sent by the second terminal through the target applet and upload the second multimedia file to the service handling website.
In a possible implementation manner, the uploading module is further configured to update the submission status of the second multimedia file to uncommitted in response to the second terminal not sending the second multimedia file; updating the commit status of the second multimedia file to be in commit in response to the second terminal being transmitting the second multimedia file; in response to receiving the second multimedia file sent by the second terminal through the target applet, updating the submission status of the second multimedia file to be submitted, generating a link address of the second multimedia file, wherein the submission status of the second multimedia file is used for the first terminal to poll the submission status of the second multimedia file to be updated to be submitted, and sending a link address acquisition request; and receiving the link address acquisition request, sending the link address of the second multimedia file to the first terminal according to the link address acquisition request, wherein the first terminal is used for receiving the link address of the second multimedia file, acquiring the second multimedia file according to the link address of the second multimedia file, and displaying the second multimedia file in the service handling website.
According to another aspect of the embodiments of the present application, there is provided a computer device, the computer device includes a processor and a memory, the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the method for uploading a multimedia file according to any one of the above possible implementation manners.
According to another aspect of embodiments of the present application, there is provided a computer-readable storage medium having at least one program code stored therein, where the at least one program code is loaded and executed by a processor to implement the method for uploading a multimedia file according to any of the above-mentioned possible implementation manners.
In the embodiment of the application, a small program code of a target small program is scanned based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the small program code; analyzing the applet codes to obtain the interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs; acquiring a compression strategy corresponding to a service scene to which an uploading interface belongs according to the service identifier; displaying the small program interface corresponding to the interface address based on the interface address; acquiring a first multimedia file to be compressed based on the small program interface; 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 a service handling website. According to the method and the device, the first multimedia file needing to be uploaded is compressed through the target applet, the compressed second multimedia file is uploaded to the business handling website, and due to the fact that the data volume of the compressed second multimedia file is small, the stability of transmitting the second multimedia file to the business handling website is improved, and the success rate of transmitting the multimedia file to the business handling website can be further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a multimedia file uploading method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of an uploading interface of a multimedia file provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an applet interface provided in an embodiment of the application;
FIG. 5 is a schematic diagram of a shooting interface provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a presentation interface provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of an interface for representing a first multimedia file being compressed according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an upload interface of a business transaction website according to an embodiment of the present application;
fig. 9 is a flowchart of a multimedia file uploading method provided by an embodiment of the present application;
fig. 10 is a block diagram of a multimedia file uploading apparatus provided in an embodiment of the present application;
fig. 11 is a block diagram of a multimedia file uploading apparatus according to an embodiment of the present application;
fig. 12 is a block diagram of a terminal according to an embodiment of the present application;
fig. 13 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the 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 connected to the server 103 via a wireless or wired network, respectively.
The first terminal 101 and the second terminal 102 may be mobile phones, tablet computers, computers or other electronic devices. The first terminal 101 may access a business transaction website through 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.
The first terminal 101 has a first client installed thereon for accessing a business transaction website, for example, the first client may be a browser or any application program containing a webview control.
The second terminal 102 is installed with a second client, and the second client can provide an operating environment for the target applet. The second client may be an application program, an operating system, or a server program. For example, the second client may be a social application. The second terminal 102 can run the target applet based on the execution environment provided by the second client without downloading and installing the target applet.
The server 103 may be a server, a server cluster composed of several servers, or a cloud computing service center. The server 103 is configured to provide background services for the first terminal 101 and the second terminal 102.
A user can access a service handling website through the first terminal 101 to handle services; when a multimedia file needs to be uploaded as application material for service handling, the first terminal 101 sends a multimedia file uploading request to the server 103 to obtain an applet code of a target applet, wherein the target applet is used for uploading the multimedia file recorded by the second terminal 102 to a service handling website; the server 103 generates an applet code of the target applet according to the multimedia file uploading request sent by the first terminal 101, and returns the applet code to the first terminal 101; the first terminal 101 displays the received applet codes in an uploading interface of the multimedia file; a user scans the applet codes displayed by the first terminal 101 through the target application program of the second terminal 102 and enters the target applet; the second terminal 102 performs acquisition, compression and uploading of the multimedia file through the target applet.
Fig. 2 is a flowchart of a multimedia file uploading method according to an embodiment of the present application. Referring to fig. 2, the embodiment includes:
201. and the first terminal displays an uploading interface of the multimedia file of the service handling website.
The multimedia file is a file for information communication and dissemination, and can be an audio file, a video file or an audio-video file combining sound and images. In the embodiment of the application, the multimedia file is used as the certification material for conducting business transaction through the business transaction website, for example, the multimedia file can be a video of a user holding a certificate or a video of a user reading a certain section of certification text.
The user can access the service handling website through the first terminal and handle the service through the service handling website. When a user transacts a service, the user generally needs to submit a corresponding multimedia file as a certification material on an uploading interface of the multimedia file according to the requirements of the service to be transacted.
For example, fig. 3 is a schematic diagram of an upload interface of a multimedia file provided in an embodiment of the present application, and referring to fig. 3, a service transacted by a user is a business number applied for a third party payment platform, and the user needs to submit a video of a legal user's desire to open an account as a proof material. The uploading interface of the multimedia file comprises an uploading control 301 and an applet uploading control 302. Wherein, the uploading control 301 corresponds to a mode of uploading the multimedia file through the file selector; the applet upload control 302 corresponds to the manner in which multimedia files are uploaded through the target applet. The user can upload the multimedia file by any one of the two ways of uploading the multimedia file.
The user can select the mode of uploading the multimedia files through the file selector. The first terminal responds to the trigger operation of the uploading control 301, and displays a file list of the first terminal based on a file selection interface; responding to the uploading operation of the multimedia files in the file list of the first terminal; uploading a multimedia file to be uploaded to a service handling website; and displaying the uploaded multimedia file on an uploading interface of the multimedia file of the business handling website.
It should be noted that, when the user selects to upload the multimedia file through the file selector, the first terminal needs to store the multimedia file to be uploaded in advance. Correspondingly, before the multimedia file is uploaded through the file selector, the following steps are required: shooting a multimedia file through a second terminal; searching a multimedia file to be uploaded from a gallery of the second terminal; transmitting the multimedia file to be uploaded from the second terminal to the first terminal through a synchronization program or Instant Messaging (IM) software; the first terminal receives the multimedia file transmitted by the second terminal and stores the multimedia file.
The synchronization program is used to synchronize the file of the first terminal and the file of the second terminal, for example, the synchronization program of the first terminal and the synchronization program of the second terminal perform file transmission and synchronization by means of bluetooth or wired connection. Or the second terminal can transmit the multimedia file to be uploaded to the IM software of the first terminal from the IM software of the second terminal through the wireless network; the first terminal receives the multimedia file transmitted by the second terminal through the IM software and stores the multimedia file in the storage space of the first terminal.
In the embodiment of the application, compared with a mode that a user uploads a multimedia file through a file selector and a mode that the multimedia file is uploaded through an applet, the user does not need to switch among a gallery, an IM (instant messaging), a synchronization program and a file list of a first terminal for many times, operation steps of uploading the multimedia file by the user are simplified, user experience is improved, and uploading efficiency of the multimedia file is improved.
202. The first terminal sends a multimedia file uploading request to the server.
The multimedia file uploading request is used for requesting to upload a multimedia file to a service handling website accessed by the first terminal through the target applet.
In one possible implementation, when the user selects to upload the multimedia file through the target applet, the first terminal sends a multimedia file upload request to the server. Correspondingly, the step of sending the multimedia file upload request to the server by the first terminal may be: the first terminal transmits a multimedia file upload request to the server in response to an operation for instructing upload of a multimedia file through the target applet.
For example, with continued reference to fig. 3, the operation for indicating an upload of a multimedia file by the target applet may be a triggering operation on the applet upload control 302. The first terminal sends a multimedia file upload request to the server in response to the triggering operation of the applet upload control 302.
In another possible implementation manner, when the first terminal renders an uploading interface of a multimedia file of a service handling website, the first terminal sends a multimedia file uploading request to the server.
203. The server receives a multimedia file uploading request sent by the first terminal, and determines a service scene to which an uploading interface of a multimedia file corresponding to the multimedia file uploading request belongs according to the multimedia file uploading request.
The uploading interfaces of different multimedia files belong to different service scenes, and the recording requirements of the multimedia files corresponding to the different service scenes are different. For example, in a service scenario where a multimedia file to be uploaded is a video of a user holding a certificate, the recording requirement of the multimedia file at least includes acquiring a clear front face image and a clear certificate image. For another example, in a service scenario where the multimedia file to be uploaded is a video where the user recites a certain text, the recording requirement of the multimedia file at least includes collecting audio of clear text.
The multimedia file uploading request may carry an address of an uploading interface of the multimedia file, and the server may determine a service scene to which the uploading interface belongs according to a correspondence between the service scene and the address of the uploading interface. Correspondingly, the step of determining, by the server, the service scene to which the upload interface of the multimedia file corresponding to the multimedia file upload request belongs according to the multimedia file upload request may be: the server receives the multimedia file uploading request; acquiring the address of an uploading interface of a multimedia file from the multimedia uploading request; and determining the business scene to which the uploading interface belongs according to the corresponding relation between the business scene and the address of the uploading interface.
204. And the server generates the applet codes of the target applets according to the service identifiers of the service scenes and the interface addresses of the target applets.
The small program code is a two-dimensional code, and the terminal can enter the small program corresponding to the small program code by scanning the small program code. With continued reference to fig. 3, the applet code may be a two-dimensional code including an image region and a coding region, wherein the image region is a circular region in the middle of the applet code, and the coding region is a bar region composed of code elements of the applet code, and the bar regions are radially arranged around the image region. The applet code can also be a two-dimensional code consisting of a plurality of black and white colored square symbols.
In an embodiment of the application, the applet code of the target applet is used to instruct the upload of the multimedia file to the service transaction website via the target applet. The second terminal may enter the applet interface of the target applet by scanning the applet code of the target applet. In the embodiment of the present application, the presentation manner of the applet code is not limited.
And the server encodes the service identifier of the service scene and the interface address of the target applet to generate the applet code of the target applet.
205. The server sends the applet code to the first terminal.
In a possible implementation manner, the applet code may be a one-time two-dimensional code, and the applet code may only respond to one scan of the second terminal, that is, the applet code is invalid after being scanned by the second terminal once. And if the multimedia file needs to be uploaded again through the target applet, the first terminal needs to send a multimedia file uploading request to the server again to obtain a new applet code, and the second terminal enters the target applet and uploads the multimedia file again by scanning the new applet code.
It should be noted that, after the applet codes in the upload interface of the multimedia file are scanned and when the operation for instructing to upload the multimedia file through the target applet is received, the first terminal may send a multimedia file upload request to the server again to obtain a new applet code. The first terminal can also respond to the scanned applet codes in the uploading interface of the multimedia files, and then sends a multimedia file uploading request to the server to acquire new applet codes.
In another possible implementation, the applet code is time efficient, and fails if the applet code has not been scanned for a preset length of time from the generation of the applet code. And if the applet codes fail, the multimedia files need to be uploaded through the target applet, the first terminal needs to send a multimedia file uploading request to the server again to obtain new applet codes, and the second terminal enters the target applet and uploads the multimedia files by scanning the new applet codes. The preset time period may be set to any time period, for example, the preset time period may be 10 minutes, 15 minutes, 30 minutes, or the like.
It should be noted that, when receiving an operation for instructing to upload a multimedia file through a target applet, the first terminal may send a multimedia file upload request to the server again to obtain a new applet code. The first terminal can also respond to the refreshing operation of the applet codes and send a multimedia file uploading request to the server to acquire new applet codes. The first terminal can also respond to the refreshing operation of the uploading interface of the multimedia file, send a multimedia file uploading request to the server and acquire a new applet code.
206. And the first terminal receives the applet codes sent by the server and displays the applet codes on an uploading interface of the multimedia file of the service handling website.
With continued reference to fig. 3, the first terminal displays the applet code on the upload interface of the multimedia file of the service transaction website.
In one possible implementation manner, the first terminal responds to the operation for indicating the uploading of the multimedia file through the target applet, sends a multimedia file uploading request to the server, receives the applet codes of the target applet returned by the server, and displays the applet codes in an uploading interface of the multimedia file.
In the embodiment of the application, the initial uploading interface of the multimedia file displayed by the first terminal does not include the applet code of the target applet, and when the first terminal receives an operation for indicating the uploading of the multimedia file through the target applet, the first terminal sends a multimedia file uploading request to the server to obtain the applet code of the target applet and displays the applet code on the uploading interface of the multimedia file. If the user does not need to upload the multimedia file through the target applet, the first terminal does not request the server to acquire the applet code of the target applet, so that unnecessary resource consumption of the server can be saved, and the operating efficiency of the server is improved.
In another possible implementation manner, when rendering an uploading interface of a multimedia file of a service handling website, the first terminal sends a multimedia file uploading request to the server, receives an applet code of a target applet returned by the server, and displays the applet code in the uploading interface of the multimedia file.
In the embodiment of the application, when the first terminal renders the uploading interface of the multimedia file of the service handling website, the first terminal requests the server to acquire the applet code of the target applet. When the first terminal finishes rendering and displaying the uploading interface, the applet codes of the target applets are displayed in the uploading interface, so that a user can quickly scan the applet codes through the second terminal and upload the multimedia files through the target applets, and the uploading efficiency of the multimedia files is improved.
207. And the second terminal scans the applet codes of the target applets based on the uploading interface of the multimedia files of the service handling website displayed by the first terminal.
The uploading interface of the multimedia file of the service handling website displayed by the first terminal comprises the applet codes. The second terminal may scan the applet code displayed by the first terminal through the target application. And the second terminal calls the camera assembly to scan the small program codes through the target application program.
208. And the second terminal analyzes the applet codes, acquires the interface address of the target applet, analyzes the applet codes and acquires the service identifier of the service scene to which the uploading interface belongs.
The target application program of the second terminal is provided with an analysis rule of the applet code of the target applet, the second terminal can analyze the applet code according to the analysis rule to obtain an analysis result, and the interface address of the target applet and the service identifier of the service scene to which the uploading interface of the multimedia file belongs are obtained from the obtained analysis result. Correspondingly, the step of the second terminal analyzing the applet code, obtaining the interface address of the target applet, analyzing the applet code, and obtaining the service identifier of the service scene to which the upload interface belongs may be: the second terminal acquires an analysis rule of the applet code of the target applet; analyzing the code elements in the coding region of the applet code according to the analysis rule to obtain an analysis result, wherein the analysis result at least comprises an interface address of the target applet and a service identifier of a service scene to which an uploading interface of the multimedia file belongs; and the second terminal acquires the interface address of the target small program from the analysis result and acquires the service identifier of the service scene to which the multimedia file belongs.
209. And the second terminal displays the small program interface corresponding to the interface address based on the interface address.
And the second terminal acquires an interface file for rendering the small program interface based on the interface address of the target small program acquired by analyzing the small program code, and renders the small program interface based on the interface file. The applet interface may be an interface for obtaining multimedia files.
In a possible implementation manner, the applet interface at least includes a control for acquiring the multimedia file, and the second terminal acquires the multimedia file in response to a trigger operation on the control for acquiring the multimedia file.
In another possible implementation manner, the applet interface includes a name of the target applet, a name of the multimedia file that needs to be uploaded this time, and a control for acquiring the multimedia file. For example, fig. 4 is a schematic diagram of an applet interface provided in an embodiment of the present application, and referring to fig. 4, for a service scene that requires uploading of a legal person to open an account wish video, an applet interface entered based on an applet code corresponding to the service scene includes a name 401 of a target applet, a name 402 of a multimedia file that needs to be uploaded this time, and an upload control 403. The name 401 of the target applet may be an audio/video uploading applet, the name 402 of the multimedia file to be uploaded at this time may be a video of an account opening desire of a legal person, and the uploading control 403 is used for acquiring the multimedia file.
It should be noted that the name of the multimedia file that needs to be uploaded this time and displayed by the second terminal may be obtained from the analysis result corresponding to the applet code. The multimedia file to be uploaded is the name of the multimedia file to be uploaded in the uploading interface currently displayed by the first terminal, and when the server generates the applet code of the target applet, the name of the multimedia file to be uploaded can be coded into the applet code. Correspondingly, when the second terminal analyzes the applet codes, an analysis result comprising the names of the multimedia files needing to be uploaded at this time can be obtained; acquiring the name of the multimedia file needing to be uploaded from the analysis result; and displaying the name of the multimedia file to be uploaded in the small program interface.
The second terminal can also obtain the name of the multimedia file which needs to be uploaded and corresponds to the service identifier from the server according to the service identifier of the service scene. Correspondingly, the step of the second terminal obtaining the name of the multimedia file to be uploaded can be as follows: the second terminal acquires the service identifier from the analysis result of the applet code; sending an acquisition request to a server, wherein the acquisition request carries a service identifier of a service scene to which an uploading interface displayed by a first terminal belongs, and the server is used for acquiring the name of a multimedia file corresponding to the service identifier and returning the name of the multimedia file corresponding to the service identifier to a second terminal; and the second terminal receives the name of the multimedia file corresponding to the service identifier returned by the server, and takes the name of the multimedia file corresponding to the service identifier as the name of the multimedia file which needs to be uploaded.
210. And the second terminal acquires the first multimedia file to be compressed based on the small program interface.
In a first possible implementation manner, the second terminal obtains the first multimedia file to be compressed by using a camera function of the second terminal based on the applet interface, and accordingly, the steps may be implemented through the following steps (1) to (3):
(1) the second terminal displays a shooting interface of the multimedia file in response to a shooting operation for instructing shooting of the multimedia file based on the applet interface.
The applet interface entered by the second terminal scanning the applet code comprises at least a control for acquiring the multimedia file. In a possible implementation manner, the second terminal responds to the triggering operation of the control for acquiring the multimedia file and directly enters a shooting interface of the multimedia file. The triggering operation of the control for acquiring the multimedia file is a shooting operation for indicating to shoot the multimedia file. For example, with continued reference to fig. 4, the second terminal enters a shooting interface of the multimedia file in response to a triggering operation on the upload control 403, where the triggering operation on the upload control 403 may be a clicking operation on the upload control 403; the triggering operation on the upload control 403 may also be a voice input indicating that the upload control 403 is triggered.
In another possible implementation manner, the second terminal responds to the triggering operation of the control for acquiring the multimedia file, and displays an option list, wherein the option list comprises a first option and a second option, the first option is used for indicating to enter a shooting interface for shooting the multimedia file, and the second option is used for indicating to acquire the shot multimedia file from a gallery of the second terminal; responding to the triggering operation of the first option, and displaying a shooting interface of the multimedia file; and displaying the gallery list of the second terminal in response to the triggering operation of the second option.
(2) And the second terminal collects the first multimedia file based on the shooting interface.
In a possible implementation manner, the second terminal calls a camera assembly of the second terminal based on the shooting interface, and the first multimedia file is collected by using the camera function of the second terminal. Fig. 5 is a schematic diagram of a shooting interface provided in an embodiment of the present application, and referring to fig. 5, a second terminal is based on the shooting interface; in response to a triggering operation on the shooting control 501, a first multimedia file is collected. The step of the second terminal responding to the triggering operation of the shooting control 501 may be: the second terminal responds to the first click operation on the shooting control 501, and calls a camera assembly to collect a first multimedia file; and in response to the second click operation on the shooting control 501, stopping collecting the first multimedia file. The second terminal may further display a pause control and a control for shooting an image in the interface for acquiring the first multimedia file in response to the first click operation on the shooting control 501. The trigger operation on the shooting control 501 can also be realized by long-pressing the shooting control 501. In this embodiment of the application, the manner in which the second terminal collects the first multimedia file is not limited.
In another possible implementation manner, the shooting interface displayed by the second terminal further includes second prompt information, and the second prompt information is used for indicating a recording requirement corresponding to the service scene.
The second prompt message may be a graphical guide box displayed in the capture area 502 of the capture interface for providing graphical guide for the user to capture the first multimedia file. For example, the multimedia file to be uploaded reads a video of a certain section of certificate text for the user, and the recording requirement corresponding to the service scene comprises the collection of a clear front face, and the graphical guide box is used for indicating that the area where the face of the user is located is within the first range determined by the graphical guide box. For another example, the multimedia file to be uploaded is a video of a certificate held by a user, the recording requirement corresponding to the service scene includes that a clear front face and a clear certificate are acquired, the graphic guide frame is used for indicating that the area where the face of the user is located is within a first range determined by the graphic guide frame and the area where the certificate of the user is located is within a second range determined by the graphic guide frame, the first range is used for identifying the position where the face of the user is located in the shooting area, and the second range is used for identifying the position where the certificate of the user is located in the shooting area.
It should be noted that, during the shooting process of the multimedia file, if the area where the face of the user is located exceeds the first range determined by the graphical guide frame or the area where the certificate of the user is located exceeds the second range determined by the graphical guide frame, third prompting information is displayed in the shooting interface, the third prompting information is used for prompting the user that the area where the face is located should be within the first range determined by the graphical guide frame, or the third prompting information is used for prompting the user that the area where the certificate is located should be within the second range determined by the graphical guide frame.
In the embodiment of the application, the shooting interface of the second terminal further comprises second prompt information, the second prompt information is a graphic guide frame used for providing graphic guide for a user to shoot the first multimedia file, the user can fast and accurately shoot the multimedia file meeting the recording requirement according to the graphic guide frame, the shooting cost of the user is reduced, the shooting efficiency is improved, and the experience of the user is improved.
The second prompt may also be an example image or an example video displayed in the capture interface that provides an example for the user to capture the first multimedia file. For example, the multimedia file to be uploaded is a video of a user holding a certificate, and the second prompt message may be an example image or an example video indicating a gesture of the user holding the certificate and a position where a face of the user is located. The example image or the example video may be displayed in the capture interface without affecting the location where the user captured the first multimedia file.
In the embodiment of the application, the shooting interface of the second terminal further includes second prompt information, the second prompt information is used for providing example images or example videos for the user to shoot the first multimedia file, the user can fast and accurately shoot the multimedia file meeting the recording requirement according to the example images or the example videos, the shooting cost of the user is reduced, the shooting efficiency is improved, and the experience degree of the user is improved.
The second prompt message can also be a text message displayed in the shooting interface, and the text message is used for prompting the recording requirement of the multimedia file. For example, the multimedia file to be uploaded reads a video of a certain certificate text for the user, and the recording requirement corresponding to the service scenario includes recording and collecting a clear front face according to the XX technique in mandarin, and the text information in the shooting interface may include "please record a video according to the following mandarin technique: i am a legal representative (or principal) of XX limited, thereby proving that the merchant number applied for by this company is open to me real will and is used for XX business (or XX service). I am in compliance with laws and regulations and associated regulations "," please record video in mandarin chinese ", and" please keep the front face facing the camera and not block the face ".
In the embodiment of the application, the shooting interface of the second terminal further includes second prompt information, the second prompt information is text information used for prompting the recording requirement of the multimedia file, and a user can quickly and accurately shoot the multimedia file meeting the recording requirement according to the text information, so that the shooting cost of the user is reduced, the shooting efficiency is improved, and the experience of the user is improved.
In another possible implementation manner, the shooting interface of the second terminal further includes a gallery control 503 for entering a gallery, and the second terminal may enter the gallery through the gallery control 503 and directly obtain the shot first multimedia file from the gallery. Correspondingly, the step of acquiring the first multimedia file by the second terminal based on the shooting interface may be: the second terminal responds to the triggering operation of the gallery control 503 and displays the gallery list; and responding to the selection operation of any multimedia file in the gallery list, and determining that the selected multimedia file is the first multimedia file.
(3) And the second terminal displays a display interface of the first multimedia file, and responds to the confirmation operation of the first multimedia file to acquire the first multimedia file to be compressed.
And the second terminal displays a display interface of the first multimedia file, wherein the display interface is used for displaying the shot first multimedia file, and the second terminal responds to the confirmation operation of the first multimedia file and takes the first multimedia file as the first multimedia file to be compressed.
The presentation interface further includes a confirmation control for confirming uploading of the first multimedia file, for example, fig. 6 is a schematic view of the presentation interface provided in the embodiment of the present application, and referring to fig. 6, a photographed first multimedia file 601 is presented in the presentation interface, and the name of the first multimedia file is a proof of willingness to open an account of a legal person. The shot first multimedia file 601 may display cover information, which may be any frame image of the first multimedia file; the second terminal may play the photographed first multimedia file in response to a trigger operation on the photographed first multimedia file 601.
The display interface further includes a confirmation control 602 for confirming uploading of the first multimedia file, and the second terminal acquires the first multimedia file to be compressed in response to a trigger operation on the confirmation control 602, that is, in response to a confirmation operation on the first multimedia file. Wherein, the triggering operation on the confirmation control 602 may be a clicking operation on the confirmation control 602.
In the embodiment of the application, after the second terminal collects the first multimedia file, the first multimedia file is displayed in the display interface, so that a user can confirm whether the first multimedia file to be uploaded is correct, the wrong uploading of the first multimedia file by the user is reduced, the unnecessary consumption of compressed resources and the consumption of server resources are reduced, and the uploading efficiency of the multimedia file is improved.
In a second possible implementation manner, before the second terminal obtains the first multimedia file to be compressed, it may be further determined whether the shot third multimedia file meets the recording requirement, and if the shot third multimedia file meets the recording requirement, the shot third multimedia file is used as the first multimedia file to be compressed. Correspondingly, the second terminal acquires the first multimedia file to be compressed based on the applet interface through the following steps (a) to (b):
and (I) the second terminal acquires a third multimedia file based on the small program interface.
In step (a) and step 210, in a first possible implementation manner, the second terminal responds to a shooting operation for instructing shooting of a multimedia file based on the applet interface, and displays a shooting interface of the multimedia file; based on the shooting interface, the steps of collecting the first multimedia file are similar, and are not described herein again.
And (II) the second terminal responds to the confirmation operation of the third multimedia file, acquires the recording requirement corresponding to the service scene to which the uploading interface belongs according to the service identification, and the confirmation operation is used for indicating to confirm the uploading of the third multimedia file.
The second terminal may obtain, from the server, the recording requirement corresponding to the service identifier according to the service identifier of the service scenario. Correspondingly, the steps can be as follows: the second terminal responds to the confirmation operation of the third multimedia file and sends an acquisition request to the server, wherein the acquisition request carries a service identifier of a service scene to which an uploading interface displayed by the first terminal belongs, and the server is used for acquiring a recording requirement corresponding to the service identifier and returning the recording requirement to the second terminal; and the second terminal receives the recording requirement corresponding to the service identifier returned by the server.
The server stores configuration information of a business transaction website, and the business transaction website configures the configuration information when accessing a service provided by the server. And before the second terminal acquires the recording requirement corresponding to the service identifier from the server, the server stores the configuration information of the service handling website. Correspondingly, the step of the server storing the configuration information of the business handling website may be: the method comprises the steps that a server receives configuration information of a business handling website, wherein the configuration information comprises an address of an uploading interface of a multimedia file of the business handling website and a recording requirement corresponding to a business scene to which the uploading interface belongs; generating a service identifier of a service scene to which an uploading interface of the multimedia file of the service handling website belongs; and storing the corresponding relation among the service identification, the recording requirement and the address of the uploading interface.
(III) the second terminal responds to the third multimedia file meeting the recording requirement, and takes the third multimedia file as the first multimedia file to be compressed; and responding to the fact that the third multimedia file does not meet the recording requirement, and displaying first prompt information, wherein the first prompt information is used for prompting uploading of the first multimedia file according to the recording requirement.
Different recording requirements are usually applied to service scenes of different service handling websites. For example, for a service scenario requiring uploading of a legal person wish video to open an account, the recording requirements corresponding to the service scenario include: mandarin chinese is recorded according to the XX technique, a clear frontal face is captured, any processing of the original image and audio in the recorded video is avoided (e.g., filters, beautification, inflections, and other post-effects) and the format may be avi, wmv, mpeg, mp4, mov, mkv, flv, f4v, m4v, rmvb.
And before the second terminal takes the third multimedia file as the first multimedia file to be compressed or displays the first prompt message, determining whether the third multimedia file meets the recording requirement.
In a possible implementation manner, the second terminal may identify the third multimedia file, and determine whether the third multimedia file meets the recording requirement for avoiding the post-processing. Correspondingly, the step of the second terminal determining whether the third multimedia file meets the recording requirement may be: the second terminal identifies the third multimedia file to obtain an identification result of the third multimedia file; and responding to the identification result for indicating that the third multimedia file is not subjected to post-processing, and determining that the third multimedia file meets the recording requirement for avoiding the post-processing.
The second terminal can obtain the identification model through a deep learning method, and the third multimedia file is identified through the identification model to obtain an identification result. Correspondingly, the step of identifying the third multimedia file by the second terminal to obtain the identification result of the third multimedia file may be: the second terminal acquires the image and the audio of the third multimedia file; inputting the image of the third multimedia file into an image recognition model, and outputting a first recognition result, wherein the first recognition result is used for indicating that the image of the third multimedia file is not subjected to post-processing or indicating that the image of the third multimedia file is subjected to post-processing; inputting the audio of the third multimedia file into an audio recognition model; outputting a second recognition result, wherein the second recognition result is used for indicating that the audio of the third multimedia file is not subjected to post-processing or indicating that the audio of the third multimedia file is subjected to post-processing; determining that the identification result of the third multimedia file is not post-processed in response to the first identification result indicating that the image of the third multimedia file is not post-processed and the second identification result indicating that the audio of the third multimedia file is not post-processed; and determining the identification result of the third multimedia file as post-processed in response to either the first identification result or the second identification result indicating that the third multimedia file is post-processed.
The image of the third multimedia file acquired by the second terminal may be each frame image in the third multimedia file, and the image of the third multimedia file acquired by the second terminal may also be any multi-frame image in a preset number in the third multimedia file.
The second terminal can also identify the third multimedia file according to the detailed information of the third multimedia file to obtain the identification result of the third multimedia file. Correspondingly, the step of identifying the third multimedia file by the second terminal to obtain the identification result of the third multimedia file may be: the second terminal acquires the detailed information of the third multimedia file; identifying the third multimedia file according to the detailed information of the third multimedia file, responding to the detailed information of the third multimedia file for indicating the third multimedia file to be subjected to post-processing, and determining the identification result of the third multimedia file as being subjected to post-processing; and determining that the identification result of the third multimedia file is not post-processed in response to the detailed information of the third multimedia file indicating that the third multimedia file is not post-processed.
For example, if the detailed information of the third multimedia file includes an identifier of a filter added to the third multimedia file, it is determined that the identification result of the third multimedia file is post-processed. If the detailed information of the third multimedia file includes an application identifier for shooting the third multimedia file, and the application identifier is an identifier of an application for performing post-processing on the multimedia file, it is determined that the identification result of the third multimedia file is post-processed.
In another possible implementation manner, the second terminal may further perform voice recognition on the audio of the third multimedia file to obtain a voice recognition result corresponding to the audio, and determine whether the third multimedia file meets the recording requirement of mandarin that is recorded according to the XX mandarin technique according to the voice recognition result. Correspondingly, the step of the second terminal determining whether the third multimedia file meets the recording requirement may be: the second terminal performs voice recognition on the audio frequency of the third multimedia file to obtain a voice recognition result corresponding to the audio frequency, wherein the voice recognition result can be character information corresponding to the audio frequency of the third multimedia file; determining the matching degree of the voice recognition result and the XX dialect; in response to the match being greater than the specified threshold, determining that the third multimedia file meets a recording requirement for a Mandarin recording according to the XX Mandarin; in response to the matching procedure not being greater than the specified threshold, determining that the third multimedia file does not comply with the recording requirements for a Mandarin recording according to the XX Mandarin.
In another possible implementation manner, the second terminal may further identify an image of a third multimedia file, and determine whether the third multimedia file meets a recording requirement for acquiring a clear front face. Correspondingly, the step of the second terminal determining whether the third multimedia file meets the recording requirement may be: the second terminal acquires an image of a third multimedia file; detecting a face image in an image of a third multimedia file; responding to the face image as a clear front face image, and determining that the third multimedia file meets the recording requirement of collecting the clear front face; and in response to either the face image not conforming to the legibility or the face image being the front face image, determining that the third multimedia file does not conform to the recording requirement for acquiring a legible front face.
In another possible implementation manner, the second terminal determines whether the format of the third multimedia file meets the recording requirement, and accordingly, the step of determining whether the third multimedia file meets the recording requirement by the second terminal may be: the second terminal acquires the detailed information of the third multimedia file; acquiring the format of the third multimedia file from the detailed information of the third multimedia file; responding to the matching of the format of the third multimedia file and the format requirement in the recording requirement, and determining that the format of the third multimedia file meets the recording requirement; and in response to the format of the third multimedia file not matching a format requirement of the recording requirements, determining that the format of the third multimedia file does not meet the recording requirements.
In the embodiment of the application, after the second terminal collects the multimedia file, whether the collected multimedia file meets the recording requirement corresponding to the service scene or not can be judged, and if the collected multimedia file meets the recording requirement corresponding to the service scene, the collected multimedia file is used as the first multimedia file to be compressed, so that the consumption of unnecessary compression resources is reduced, and the uploading efficiency of the multimedia file is improved.
211. And the second terminal acquires a compression strategy corresponding to the service scene to which the uploading interface belongs according to the service identifier.
In a possible implementation manner, the second terminal may obtain, from the server, a compression policy corresponding to a service scenario to which the upload interface belongs according to the service identifier of the service scenario. Correspondingly, the steps can be as follows: the second terminal sends a compression strategy acquisition request to the server, wherein the compression strategy acquisition request carries a service identifier; the server is used for acquiring a compression strategy corresponding to the service scene to which the uploading interface belongs according to the corresponding relation between the service identifier and the compression strategy, and returning the compression strategy to the second terminal; and the second terminal receives the compression strategy returned by the server.
In another possible implementation manner, the second terminal may further obtain, from the analysis result corresponding to the applet code, a compression policy corresponding to a service scenario to which the upload interface belongs. When the server generates the applet code of the target applet, the compression strategy corresponding to the service scene to which the upload interface belongs can be encoded into the applet code. Correspondingly, when the second terminal analyzes the applet codes, the analysis result including the compression strategy can be obtained, and the compression strategy corresponding to the service scene to which the uploading interface belongs is obtained from the analysis result.
212. And the second terminal compresses the first multimedia file according to the compression strategy to obtain a second multimedia file.
In a possible implementation manner, the second terminal performs compression processing on the first multimedia file to obtain a second multimedia file, and accordingly, this step may be: the second terminal acquires the code rate and the resolution corresponding to the service scene from the compression strategy; and compressing the first multimedia file according to the code rate and the resolution ratio corresponding to the service scene to obtain a second multimedia file.
In the embodiment of the application, the second terminal compresses the first multimedia file according to the compression strategy to obtain the compressed second multimedia file, and sends the compressed second multimedia file to the server, and because the data volume of the compressed second multimedia file is small, the stability of transmitting the second multimedia file to the server is improved, and the compressed second multimedia file is stored in the server, the occupation of the storage resources of the server is reduced, the bandwidth for transmitting the second multimedia file to the server can be saved, and the efficiency of uploading the multimedia file is improved.
In another possible implementation manner, the second terminal may further perform compression processing on the first multimedia file according to the data volume requirement of the multimedia file in the recording requirement, so as to obtain the second multimedia file. Correspondingly, the step of compressing the first multimedia file by the second terminal according to the compression policy to obtain the second multimedia file may be: the second terminal acquires the data volume requirement of the multimedia file from the recording requirement; determining a compression strategy meeting the data volume requirement according to the data volume requirement of the multimedia file; and compressing the first multimedia file according to the compression strategy to obtain a second multimedia file.
In the embodiment of the application, the second terminal can also compress the first multimedia file according to the recording requirement to obtain the second multimedia file meeting the data volume requirement in the recording requirement, so that the problem that the second multimedia file needs to be uploaded for many times due to the fact that the second multimedia file does not meet the data volume requirement is reduced, and the uploading efficiency of the multimedia file is improved.
For example, the data volume of the multimedia file in the recording requirement is required to be 5M, the second terminal determines a compression policy capable of compressing the first multimedia file into a second multimedia file with the data volume within 5M, and compresses the first multimedia file according to the compression policy to obtain the second multimedia file.
It should be noted that, when the second terminal compresses the first multimedia file according to the compression policy, an interface for indicating that the first multimedia file is being compressed is displayed, for example, fig. 7 is a schematic diagram of an interface for indicating that the first multimedia file is being compressed according to an embodiment of the present application, and referring to fig. 7, a prompt box 701 for indicating that the first multimedia file is being compressed is displayed in the interface for prompting the user that the first multimedia file is being compressed.
In the embodiment of the application, the second terminal displays the prompt box for indicating that the first multimedia file is being compressed, so that a user can determine the current state of the first multimedia file through the prompt box, and the experience of the user is improved.
213. And the second terminal sends the second multimedia file to the server corresponding to the target applet.
And the second terminal sends a second multimedia file to the server corresponding to the target applet, wherein the second multimedia file can also carry a service identifier corresponding to the second multimedia file. The service identifier is used for indicating a service scene of a service handling website corresponding to the second multimedia file.
It should be noted that, the compression policy corresponding to the service scenario to which the upload interface belongs may also be that the second terminal sends the first multimedia file to the server, and the server compresses the first multimedia file. A second multimedia file is obtained. Based on the compression strategy, the resource consumption of the second terminal can be reduced, and the operation efficiency of the second terminal is improved.
214. And the server receives a second multimedia file sent by the second terminal through the target applet and uploads the second multimedia file to the service handling website.
The server receives a second multimedia file sent by the second terminal through the target applet, the second multimedia file carries a service identifier corresponding to the second multimedia file, and the server can upload the second multimedia file to a service handling website according to the service identifier. Correspondingly, the step of receiving the second multimedia file sent by the second terminal through the target applet and uploading the second multimedia file to the service handling website by the server may be: the server receives a second multimedia file sent by a second terminal through the target applet; determining the address of the uploading interface of the multimedia file of the service handling website corresponding to the service identification according to the service identification carried by the second multimedia file; and uploading the second multimedia file to an uploading interface corresponding to the address.
And the server uploads the second multimedia file to the service handling website, and the uploaded second multimedia file is displayed in an uploading interface of the multimedia file of the service handling website of the first terminal. For example, fig. 8 is a schematic diagram of an upload interface of a service transaction website provided in an embodiment of the present application, and referring to fig. 8, an uploaded second multimedia file 801 is displayed in the upload interface. Also included in the upload interface are a re-upload control 802 and an applet re-upload control 803. Wherein the re-uploading control 802 corresponds to a manner of re-uploading the multimedia file through the file selector; the applet re-upload control 803 corresponds to the manner in which the multimedia file is re-uploaded by the target applet. The user can re-upload the multimedia file through any one of the two ways of uploading the multimedia file.
In the embodiment of the application, a small program code of a target small program is scanned based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the small program code; analyzing the applet codes to obtain the interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs; acquiring a compression strategy corresponding to a service scene to which an uploading interface belongs according to the service identifier; displaying the small program interface corresponding to the interface address based on the interface address; acquiring a first multimedia file to be compressed based on the small program interface; 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 a service handling website. According to the method and the device, the first multimedia file needing to be uploaded is compressed through the target applet, the compressed second multimedia file is uploaded to the business handling website, and due to the fact that the data volume of the compressed second multimedia file is small, the stability of transmitting the second multimedia file to the business handling website is improved, and the success rate of transmitting the multimedia file to the business handling website can be further improved.
Fig. 9 is a flowchart of a multimedia file uploading method provided in an embodiment of the present application, in the embodiment of the present application, a server is a server integrated based on an open platform of a background system and a target application providing a multimedia file uploading service, and referring to fig. 9, the embodiment includes:
901. and the first terminal displays an uploading interface of the multimedia file of the service handling website.
This step is similar to step 201 and will not be described herein again.
902. The first terminal sends a multimedia file uploading request to the background system.
In one possible implementation, the first terminal sends a multimedia file upload request to the background system in response to an operation for instructing an upload of a multimedia file through the target applet.
In another possible implementation manner, when the first terminal renders an uploading interface of a multimedia file of a service handling website, the first terminal sends a multimedia file uploading request to the background system.
903. The background system receives a multimedia file uploading request sent by the first terminal and sends the multimedia file uploading request to the open platform.
The target applet runs based on the target application program, an open platform of the target application program provides service for generating the applet codes, the background system receives a multimedia file uploading request sent by the first terminal, sends the multimedia file uploading request to the open platform, and the open platform generates the applet codes of the target applet.
904. And the open platform receives the multimedia file uploading request and generates the applet codes of the target applets according to the multimedia file uploading request.
And the open platform determines the service identifier of the service scene and the interface address of the target small program according to the multimedia file uploading request, and codes the service identifier of the service scene and the interface address of the target small program to generate a small program code of the target small program.
905. And the open platform sends the applet codes to the background system.
And after the open platform completes the generation of the applet codes, the applet codes are sent to a background system.
906. And the background system sends the applet codes to the first terminal.
And the background system receives the applet codes sent by the open platform and sends the applet codes to the first terminal.
907. And the first terminal receives the applet codes sent by the background system and displays the applet codes on an uploading interface of the multimedia file of the service handling website.
This step is similar to step 206 and will not be described herein again.
908. And the first terminal polls the background system.
In a possible implementation manner, the first terminal polls the background system and sends a multimedia file acquisition request to the background system, where the multimedia file acquisition request is used to request to acquire the second multimedia file.
The background system receives the multimedia file acquisition request, responds to the fact that the second terminal does not send the second multimedia file, does not return content to the first terminal, or returns a null content to the first terminal, or returns a status code used for indicating that the second terminal does not send the second multimedia file to the first terminal; and the first terminal responds to that the background system does not return content, or the returned content is empty, or returns a status code for indicating that the second terminal does not send 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 an uploading interface of the multimedia file.
The background system responds to the second multimedia file being sent by the second terminal and returns a state code for indicating that the second terminal is sending the second multimedia file to the first terminal; and the first terminal responds to the state code returned by the background system and used for indicating that the second terminal is sending the second multimedia file, determines the submission state of the second multimedia file to be in submission, and displays the submission state of the second multimedia file in an uploading interface of the multimedia file.
The background system determines a link address of a second multimedia file in response to receiving the second multimedia file sent by the second terminal, and returns the link address to the first terminal; the first terminal responds to the link address returned by the background system; determining that the submission state of the second multimedia file is submitted, displaying the submission state of the second multimedia file in an uploading interface of the multimedia file, and acquiring the second multimedia file corresponding to the link address according to the link address; and displaying the second multimedia file in the uploading interface of the multimedia file.
In another possible implementation manner, the first terminal polls the background system and sends a submission state acquisition request to the background system, where the submission state acquisition request is used to request to acquire the submission state of the second multimedia file, and the submission state of the second multimedia file may be uncommitted, submitted, or submitted; the first terminal receives a submission state returned by the background system, the submission state is displayed in an uploading interface of the multimedia file, and the first terminal responds that the submission state is submitted; sending a link address acquisition request to a background system, wherein the link address acquisition request is used for requesting to acquire a link address of a second multimedia file; the first terminal receives a link address returned by the background system; acquiring a second multimedia file corresponding to the link address; and displaying the second multimedia file in the uploading interface of the multimedia file.
The time interval for the first terminal to poll the background system and send the multimedia file acquisition request or submit the status acquisition request to the background system may be any preset time length, for example, the preset time length may be 30 seconds or 1 minute.
909. And the second terminal scans the applet codes of the target applets based on the uploading interface of the multimedia files of the service handling website displayed by the first terminal.
This step is similar to step 207 and will not be described herein.
910. And the second terminal analyzes the applet codes, acquires the interface address of the target applet, analyzes the applet codes and acquires the service identifier of the service scene to which the uploading interface belongs.
This step is similar to step 208 and will not be described herein.
911. And the second terminal displays the small program interface corresponding to the interface address based on the interface address.
This step is similar to step 209 and will not be described herein.
912. And the second terminal acquires the first multimedia file to be compressed based on the small program interface.
This step is similar to step 210 and will not be described herein again.
913. And the second terminal acquires a compression strategy corresponding to the service scene to which the uploading interface belongs according to the service identifier.
This step is similar to step 211 and will not be described herein again.
914. And the second terminal compresses the first multimedia file according to the compression strategy to obtain a second multimedia file.
This step is similar to step 212 and will not be described herein.
915. And the second terminal sends the second multimedia file to the background system.
This step is similar to step 213 and will not be described herein.
916. And the background system receives a second multimedia file sent by the second terminal through the target applet and returns a link address of the second multimedia file to the first terminal according to the state of the second multimedia file sent by the second terminal.
In a possible implementation manner, the step of the first terminal polling the background system to send a multimedia file acquisition request to the background system, the background system receiving the multimedia file acquisition request and returning the second multimedia file to the first terminal according to the state of the second terminal sending the second multimedia file, and correspondingly, the step of the background system returning the second multimedia file to the first terminal according to the state of the second terminal sending the second multimedia file may be: the background system responds to that the second terminal does not send the second multimedia file, does not return content to the first terminal, or returns a null content to the first terminal, or returns a status code for indicating that the second terminal does not send the second multimedia file to the first terminal; the background system responds to the second multimedia file being sent by the second terminal and returns a state code for indicating that the second terminal is sending the second multimedia file to the first terminal; and the background system determines a link address of the second multimedia file in response to receiving the second multimedia file sent by the second terminal, and returns the link address to the first terminal.
In another possible implementation manner, the first terminal polls the background system, sends a submission state acquisition request to the background system, the background system receives the submission state acquisition request, determines the submission state of the second multimedia file according to the state of the second multimedia file sent by the second terminal, and returns the link address of the second multimedia file to the first terminal according to the submission state of the second multimedia file. Correspondingly, the step of the background system returning the second multimedia file to the first terminal according to the state of the second multimedia file sent by the second terminal may be: the background system responds to that the second terminal does not send the second multimedia file, and updates the submitting state of the second multimedia file to be uncommitted; updating the submission status of the second multimedia file to be in submission in response to the second terminal being sending the second multimedia file; in response to receiving a second multimedia file sent by a second terminal through a target applet, updating the submission status of the second multimedia file to be submitted, generating a link address of the second multimedia file, wherein the submission status of the second multimedia file is used for the first terminal to poll the submission status of the second multimedia file to be updated to be submitted, and sending a link address acquisition request; and receiving a link address acquisition request, and sending the link address of the second multimedia file to the first terminal according to the link address acquisition request.
In the embodiment of the application, the first terminal acquires the second multimedia file by polling the background system, so that the resource occupation of the background system is saved, the operating efficiency of the background system is improved, and the efficiency of acquiring the second multimedia file by the first terminal is further improved.
917. And the first terminal receives the link address of the second multimedia file, acquires the second multimedia file according to the link address of the second multimedia file, and displays the second multimedia file in the service handling website.
And the first terminal receives the link address of the second multimedia file, acquires the second multimedia file corresponding to the link address, displays the second multimedia file in the service handling website, displays the second multimedia file to the user, and after the second multimedia file is uploaded successfully, the user can continue to handle the service through the first terminal.
In the embodiment of the application, a small program code of a target small program is scanned based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the small program code; analyzing the applet codes to obtain the interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs; acquiring a compression strategy corresponding to a service scene to which an uploading interface belongs according to the service identifier; displaying the small program interface corresponding to the interface address based on the interface address; acquiring a first multimedia file to be compressed based on the small program interface; 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 a service handling website. According to the method and the device, the first multimedia file needing to be uploaded is compressed through the target applet, the compressed second multimedia file is uploaded to the business handling website, and due to the fact that the data volume of the compressed second multimedia file is small, the stability of transmitting the second multimedia file to the business handling website is improved, and the success rate of transmitting the multimedia file to the business handling website can be further improved.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 10 is a block diagram of a multimedia file uploading apparatus according to an embodiment of the present application. Referring to fig. 10, the apparatus includes:
a scanning module 1001 configured to scan an applet code of a target applet based on an upload interface of a multimedia file of a service handling website displayed by a first terminal, the upload interface including the applet code;
the analysis module 1002 is configured to analyze the applet codes and obtain an interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs;
a display module 1003 configured to display an applet interface corresponding to the interface address based on the interface address;
an obtaining module 1004 configured to obtain a first multimedia file to be compressed based on the applet interface; acquiring a compression strategy corresponding to a service scene to which an uploading interface belongs according to the service identifier;
a compression module 1005 configured to compress the first multimedia file according to a compression policy to obtain a second multimedia file;
and a first sending module 1006, configured to send the second multimedia file to a server corresponding to the target applet, where the server is configured to upload the second multimedia file to a service handling website.
In a possible implementation manner, the obtaining module 1004 is further configured to send a compression policy obtaining request to the server, where the compression policy obtaining request carries the service identifier, and the server is configured to obtain, according to a correspondence between the service identifier and the compression policy, the compression policy corresponding to the service scenario to which the upload interface belongs, and return the compression policy to the second terminal; and receiving the compression strategy returned by the server.
In another possible implementation manner, the obtaining module 1004 is further configured to obtain a third multimedia file based on the applet interface; responding to the confirmation operation of the third multimedia file, acquiring a recording requirement corresponding to the service scene to which the uploading interface belongs according to the service identification, wherein the confirmation operation is used for indicating to confirm the uploading of the third multimedia file; in response to the third multimedia file meeting the recording requirement, taking the third multimedia file as a first multimedia file to be compressed; and responding to the fact that the third multimedia file does not meet the recording requirement, and displaying first prompt information, wherein the first prompt information is used for prompting uploading of the first multimedia file according to the recording requirement.
In another possible implementation manner, the apparatus further includes:
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 respond to the identification result for indicating that the third multimedia file is not subjected to post-processing, and determine that the third multimedia file meets the recording requirement for avoiding the post-processing.
In another possible implementation manner, the obtaining module 1004 is further configured to display a shooting interface of the multimedia file in response to a shooting operation for instructing to shoot the multimedia file based on the applet interface; acquiring a first multimedia file based on a shooting interface, wherein the shooting interface comprises second prompt information, and the second prompt information is used for indicating a recording requirement corresponding to a service scene; and displaying a display interface of the first multimedia file, and responding to the confirmation operation of the first multimedia file to obtain the first multimedia file to be compressed.
It should be noted that: in the above embodiment, when the multimedia file uploading apparatus uploads the multimedia file, only the division of the functional modules is used for illustration, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the multimedia file uploading device provided by the above embodiment and the multimedia file uploading method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
In the embodiment of the application, a small program code of a target small program is scanned based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the small program code; analyzing the applet codes to obtain the interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs; acquiring a compression strategy corresponding to a service scene to which an uploading interface belongs according to the service identifier; displaying the small program interface corresponding to the interface address based on the interface address; acquiring a first multimedia file to be compressed based on the small program interface; 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 a service handling website. According to the method and the device, the first multimedia file needing to be uploaded is compressed through the target applet, the compressed second multimedia file is uploaded to the business handling website, and due to the fact that the data volume of the compressed second multimedia file is small, the stability of transmitting the second multimedia file to the business handling website is improved, and the success rate of transmitting the multimedia file to the business handling website can be further improved.
Fig. 11 is a block diagram of a multimedia file uploading apparatus according to an embodiment of the present application. Referring to fig. 11, the apparatus includes:
the receiving module 1101 is configured to receive a multimedia file uploading request sent by a first terminal, where the multimedia file uploading request is used for requesting to upload a multimedia file to a service handling website accessed by the first terminal through a target applet;
the second determining module 1102 is configured to determine, according to the multimedia file upload request, a service scene to which an upload interface of a multimedia file corresponding to the multimedia file upload request belongs;
the generating module 1103 is configured to generate an applet code of the target applet according to the service identifier of the service scene and the interface address of the target applet, where the applet code is used to instruct to upload a multimedia file to a service handling website through the target applet;
a second sending module 1104, configured to send the applet code to the first terminal, where the first terminal is configured to display the applet code on an upload interface of a multimedia file of a service handling website, and the applet code is used for being scanned into a target applet by the second terminal;
and an upload module 1105 configured to receive a second multimedia file sent by the second terminal through the target applet, and upload the second multimedia file to the service handling website.
In one possible implementation, the uploading module 1105 is further configured to update the submitting status of the second multimedia file to uncommitted in response to the second terminal not sending the second multimedia file; updating the submission status of the second multimedia file to be in submission in response to the second terminal being sending the second multimedia file; in response to receiving a second multimedia file sent by a second terminal through a target applet, updating the submission status of the second multimedia file to be submitted, generating a link address of the second multimedia file, wherein the submission status of the second multimedia file is used for the first terminal to poll the submission status of the second multimedia file to be updated to be submitted, and sending a link address acquisition request; and receiving a link address acquisition request, sending a link address of the second multimedia file to the first terminal according to the link address acquisition request, wherein the first terminal is used for receiving the link address of the second multimedia file, acquiring the second multimedia file according to the link address of the second multimedia file, and displaying the second multimedia file in the service handling website.
It should be noted that: in the above embodiment, when the multimedia file uploading apparatus uploads the multimedia file, only the division of the functional modules is taken as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the multimedia file uploading device provided by the above embodiment and the multimedia file uploading method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
In the embodiment of the application, a multimedia file uploading request sent by a first terminal is received, wherein the multimedia file uploading request is used for requesting to upload a multimedia file to a service handling website accessed by the first terminal through a target applet; determining a service scene to which an uploading interface of a multimedia file corresponding to a multimedia file uploading request belongs according to the multimedia file uploading request; generating an applet code of the target applet according to the service identifier of the service scene and the interface address of the target applet, wherein the applet code is used for indicating that a multimedia file is uploaded to a service handling website through the target applet; sending the applet codes to a first terminal, wherein the first terminal is used for displaying the applet codes on an uploading interface of a multimedia file of a service handling website, and the applet codes are used for being scanned by a second terminal to enter target applets; and receiving a second multimedia file sent by the second terminal through the target applet, and uploading the second multimedia file to a service handling website. In the application, the small program code of the target small program is generated, and the multimedia file is transmitted based on the small program code, so that the operation steps of a user are simplified, the experience degree of the user is improved, and the multimedia uploading efficiency is improved.
The embodiment of the application provides a computer device, which can be a terminal or a server. In response to that the computer device is a terminal, the terminal may be a first terminal in the above method embodiment, and the terminal may also be a second terminal in the above method embodiment; fig. 12 is a block diagram of a terminal according to an embodiment of the present application. The terminal 1200 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio layer iii, motion video Experts compression standard Audio layer 3), an MP4 player (Moving Picture Experts Group Audio layer IV, motion video Experts compression standard Audio layer 4), a notebook computer, or a desktop computer. Terminal 1200 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, terminal 1200 includes: a processor 1201 and a memory 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1202 may include one or more computer-readable storage media, which may be non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1202 is used to store at least one program code for execution by the processor 1201 to implement the multimedia file uploading method provided by the method embodiments of the present application.
In some embodiments, the terminal 1200 may further optionally include: a peripheral interface 1203 and at least one peripheral. The processor 1201, memory 1202, and peripheral interface 1203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, touch display 1205, camera assembly 1206, audio circuitry 1207, positioning assembly 1208, and power supply 1209.
The peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1204 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to acquire touch signals on or over the surface of the display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. At this point, the display 1205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1205 may be one, providing the front panel of the terminal 1200; in other embodiments, the display 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folded design; in still other embodiments, the display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 1200. Even further, the display screen 1205 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display panel 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
Camera assembly 1206 is used to capture images or video. Optionally, camera assembly 1206 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1201 for processing or inputting the electric signals into the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided at different locations of terminal 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is used to locate a current geographic location of the terminal 1200 to implement navigation or LBS (location based Service). The positioning component 1208 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 1209 is used to provide power to various components within the terminal 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable. When the power source 1209 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 can detect magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the touch display 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the terminal 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the terminal 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1213 may be disposed on a side bezel of terminal 1200 and/or an underlying layer of touch display 1205. When the pressure sensor 1213 is disposed on the side frame of the terminal 1200, the user's holding signal of the terminal 1200 can be detected, and the processor 1201 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1213. When the pressure sensor 1213 is disposed at a lower layer of the touch display screen 1205, the processor 1201 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used for collecting a fingerprint of the user, and the processor 1201 identifies the user according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1214 may be provided on the front, back, or side of the terminal 1200. When a physical button or vendor Logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the touch display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
A proximity sensor 1216, also known as a distance sensor, is typically disposed on the front panel of the terminal 1200. The proximity sensor 1216 is used to collect a distance between the user and the front surface of the terminal 1200. In one embodiment, when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually decreases, the processor 1201 controls the touch display 1205 to switch from the bright screen state to the dark screen state; when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually becomes larger, the processor 1201 controls the touch display 1205 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not intended to be limiting of terminal 1200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In response to the computer device being a server; fig. 13 is a block diagram of a server 1300 according to an embodiment of the present application, where the server 1300 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1301 and one or more memories 1302, where at least one program code is stored in the memory 1302, and the at least one program code is loaded and executed by the processor 1301 to implement the multimedia file uploading method provided by each method embodiment. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, there is also provided a computer readable storage medium having at least one program code stored therein, the at least one program code being executable by a processor in a computer device to perform the multimedia file uploading method in the above embodiments. For example, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (compact disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present application further provides a computer program product, which includes one or more computer programs, and when the computer program is executed by a processor, the computer program is used for implementing the multimedia file uploading method provided by the above method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for uploading a multimedia file, the method comprising:
scanning the applet codes of the target applets based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the applet codes;
analyzing the applet codes to obtain the interface address of the target applet; analyzing the small program code to obtain a service identifier of a service scene to which the uploading interface belongs;
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 a 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.
2. The method according to 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:
sending a compression strategy acquisition request to the server, wherein the compression strategy acquisition request carries the service identifier, and 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 returning the compression strategy to a second terminal;
and receiving the compression strategy returned by the server.
3. The method of claim 1, wherein obtaining the first multimedia file to be compressed based on the applet interface comprises:
acquiring a third multimedia file based on the small program interface;
responding to a confirmation operation on the third multimedia file, and acquiring a recording requirement corresponding to a service scene to which the uploading interface belongs according to the service identifier, wherein the confirmation operation is used for indicating to confirm the uploading of the third multimedia file;
in response to the third multimedia file meeting the recording requirement, taking the third multimedia file as a first multimedia file to be compressed;
and responding to the fact that the third multimedia file does not accord with the recording requirement, and displaying first prompt information, wherein the first prompt information is used for prompting the uploading of the first multimedia file according to the recording requirement.
4. The method of claim 3, wherein prior to the third multimedia file being the first multimedia file to be compressed in response to the third multimedia file complying with the recording requirement, the method further comprises:
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 requirement for avoiding post-processing in response to the identification result indicating that the third multimedia file is not subjected to post-processing.
5. The method of claim 1, wherein obtaining the first multimedia file to be compressed based on the applet interface comprises:
displaying a shooting interface of the multimedia file in response to a shooting operation for instructing shooting of the multimedia file based on the applet interface;
acquiring 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 obtain the first multimedia file to be compressed.
6. 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 to upload a multimedia file to a service handling website accessed by the first terminal through a target applet;
determining a service scene to which an uploading interface of the multimedia file corresponding to the multimedia file uploading request belongs according to the multimedia file uploading request;
generating an applet code of the target applet according to the service identifier of the service scene and the interface address of the target applet, wherein the applet code is used for indicating that a multimedia file is uploaded to the service handling website through the target applet;
sending the applet code to the first terminal, wherein the first terminal is used for displaying the applet code on an uploading interface of a multimedia file of the business handling website, and the applet code is 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.
7. The method of claim 6, wherein the 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 comprises:
in response to the second terminal not sending the second multimedia file, updating the commit status of the second multimedia file to uncommitted;
updating the commit status of the second multimedia file to be in commit in response to the second terminal being transmitting the second multimedia file;
in response to receiving the second multimedia file sent by the second terminal through the target applet, updating the submission status of the second multimedia file to be submitted, generating a link address of the second multimedia file, wherein the submission status of the second multimedia file is used for the first terminal to poll the submission status of the second multimedia file to be updated to be submitted, and sending a link address acquisition request;
and receiving the link address acquisition request, sending the link address of the second multimedia file to the first terminal according to the link address acquisition request, wherein the first terminal is used for receiving the link address of the second multimedia file, acquiring the second multimedia file according to the link address of the second multimedia file, and displaying the second multimedia file in the service handling website.
8. An apparatus for uploading a multimedia file, the apparatus comprising:
the scanning module is configured to scan the applet codes of the target applet based on an uploading interface of a multimedia file of a service handling website displayed by a first terminal, wherein the uploading interface comprises the applet codes;
the analysis module is configured to analyze the applet codes and acquire an interface address of the target applet; analyzing the small program code to obtain a service identifier of a 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 based on the applet interface; acquiring a compression strategy corresponding to a service scene to which the uploading interface belongs according to the service identifier;
the compression module is configured to compress the first multimedia file according to the compression strategy to obtain a second multimedia file;
and 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.
9. An apparatus for uploading a multimedia file, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is configured to receive a multimedia file uploading request sent by a first terminal, and the multimedia file uploading request is used for requesting to upload a multimedia file to a service handling website accessed by the first terminal through a target applet;
the second determining module is configured to determine a service scene to which an uploading interface of a multimedia file corresponding to the multimedia file uploading request belongs according to the multimedia file uploading request;
the generating module is configured to generate an applet code of the target applet according to the service identifier of the service scene and the interface address of the target applet, wherein the applet code is used for indicating that a multimedia file is uploaded to the service handling website through the target applet;
the second sending module is configured to send the applet codes to the first terminal, the first terminal is used for displaying the applet codes on an uploading interface of the multimedia files of the business handling website, and the applet codes are used for being scanned into the target applet by the second terminal;
and the uploading module is configured to receive a second multimedia file sent by the second terminal through the target applet and upload the second multimedia file to the service handling website.
10. A computer device, characterized in that the computer device comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the multimedia file uploading method according to any of claims 1-5 or claims 6-7.
CN202010057574.8A 2020-01-19 2020-01-19 Multimedia file uploading method and device and computer equipment Pending CN111291287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010057574.8A CN111291287A (en) 2020-01-19 2020-01-19 Multimedia file uploading method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010057574.8A CN111291287A (en) 2020-01-19 2020-01-19 Multimedia file uploading method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN111291287A true CN111291287A (en) 2020-06-16

Family

ID=71030683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010057574.8A Pending CN111291287A (en) 2020-01-19 2020-01-19 Multimedia file uploading method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN111291287A (en)

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN110533585B (en) Image face changing method, device, system, equipment and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN113490010B (en) Interaction method, device and equipment based on live video and storage medium
CN111836069A (en) Virtual gift presenting method, device, terminal, server and storage medium
CN112764608A (en) Message processing method, device, equipment and storage medium
CN111625315A (en) Page display method and device, electronic equipment and storage medium
CN111125601A (en) File transmission method, device, terminal, server and storage medium
CN112770177B (en) Multimedia file generation method, multimedia file release method and device
CN109714628B (en) Method, device, equipment, storage medium and system for playing audio and video
CN110366044B (en) Method, device and system for acquiring target object
CN110825465A (en) Log data processing method and device, electronic equipment and storage medium
CN114816600B (en) Session message display method, device, terminal and storage medium
CN112492331B (en) Live broadcast method, device, system and storage medium
CN110971692B (en) Method and device for opening service and computer storage medium
CN114900559A (en) Management system, terminal, management method, and storage medium
CN113591090B (en) Program bug reporting method, device, equipment and storage medium
CN109819308B (en) Virtual resource acquisition method, device, terminal, server and storage medium
CN113099378A (en) Positioning method, device, equipment and storage medium
CN111291287A (en) Multimedia file uploading method and device and computer equipment
CN111367492A (en) Webpage display method and device and storage medium
CN111741040A (en) Connection establishing method, address obtaining method, device, equipment and storage medium
CN113225268B (en) Data transmission method, device, electronic equipment and storage medium
CN111490979B (en) Information interaction method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40023538

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination