CN114025215A - File processing method, mobile terminal and storage medium - Google Patents

File processing method, mobile terminal and storage medium Download PDF

Info

Publication number
CN114025215A
CN114025215A CN202111302429.2A CN202111302429A CN114025215A CN 114025215 A CN114025215 A CN 114025215A CN 202111302429 A CN202111302429 A CN 202111302429A CN 114025215 A CN114025215 A CN 114025215A
Authority
CN
China
Prior art keywords
terminal
target
edited
editing
unit
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
CN202111302429.2A
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.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings 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 Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN202111302429.2A priority Critical patent/CN114025215A/en
Publication of CN114025215A publication Critical patent/CN114025215A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43076Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of the same content streams on multiple devices, e.g. when family members are watching the same movie on different devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a file processing method, a mobile terminal and a storage medium, wherein the file processing method comprises the following steps: receiving update information aiming at a target image or a target video sent by a first terminal; and sending the updating information to a second terminal so that the second terminal updates and/or displays the target image or the target video based on the updating information. The file processing method solves the problem that different mobile terminals process the same picture or video at the same time, and improves the convenience of picture or video processing.

Description

File processing method, mobile terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a file processing method, a mobile terminal, and a storage medium.
Background
The rapid development of networks eliminates the communication distance between people. For example, photos or videos taken can be uploaded on social software such as WeChat, QQ, Instagram, and the like, and the user can share the drip of his own life. Before sharing the photo file or the video file, the file to be shared can be modified through an editing tool.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: if a plurality of users are required to modify the photo or video file, the users can modify the file only in turn, and the time from the modification starting to the modification finishing is long, so that the use requirements of the users cannot be met.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a file processing method, a mobile terminal and a storage medium, so that users of different terminal devices can cooperatively process the same photo or video file, thereby improving convenience of processing the photo or video file.
In order to solve the above technical problem, the present application provides a file processing method, applied to a server, including:
receiving or generating update information of a first terminal aiming at a target image or a target video;
and sending the updating information to a second terminal so that the second terminal updates and/or displays the target image or the target video based on the updating information.
Optionally, the receiving or generating update information of the first terminal for the target image or the target video includes:
receiving an editing request of the first terminal, and determining a target unit to be edited in the target image or the target video according to the editing request;
and receiving or generating the updating information of the first terminal aiming at the target unit to be edited.
Optionally, the receiving or generating update information for the target unit to be edited, which is sent by the first terminal, includes:
determining the editing state of the target unit to be edited;
when the editing state is the unlocking state, receiving editing information of the first terminal aiming at the target unit to be edited, and determining or generating updating information of the target unit to be edited according to the editing information; alternatively, the first and second electrodes may be,
and when the editing state is the unlocking state, receiving the updating information of the first terminal aiming at the target unit to be edited.
Optionally, the determining the editing state of the target unit to be edited includes:
determining the editing state according to the editing operation of the target unit to be edited; and/or the presence of a gas in the gas,
and determining the editing state according to the editing authority of the first terminal.
Optionally, the determining the editing state according to the editing operation of the target unit to be edited includes at least one of:
when the target unit to be edited has the editing operation of the second terminal, determining that the editing state is a locking state;
and when the target unit to be edited does not have the editing operation of the second terminal, determining that the editing state is the unlocking state.
Optionally, the determining the editing state according to the editing right of the first terminal includes at least one of:
when the editing authority of the first terminal does not meet the preset authority for editing the target unit to be edited, determining that the editing state is a locking state;
and when the editing authority of the first terminal meets the preset authority for editing the target unit to be edited, determining that the editing state is the unlocking state.
Optionally, the method further comprises:
and when the editing state is a locking state, sending first prompt information that the target unit to be edited is locked to the first terminal.
Optionally, after the sending the first prompt information that the target unit to be edited is locked to the first terminal, the method includes:
and when the fact that the second terminal finishes editing operation aiming at the target unit to be edited is monitored, sending second prompt information that the target unit to be edited is unlocked to the first terminal.
Optionally, before the receiving the update information for the target image or the target video sent by the first terminal, the method includes:
acquiring the target image or the target video;
dividing the target image or the target video into at least one unit to be edited so that the first terminal and/or the second terminal can update the target image or the target video based on each unit to be edited.
Optionally, dividing the target image or the target video into at least one unit to be edited includes:
dividing the target image or the target video into at least one unit to be edited according to a preset rule; and/or the presence of a gas in the gas,
and receiving division information uploaded by the first terminal and/or the second terminal, and dividing the target image or the target video into the at least one unit to be edited according to the division information.
The application also provides a file processing method, which is applied to a second terminal and comprises the following steps:
receiving first updating information of a first terminal aiming at a target image or a target video;
and updating and/or displaying the target image or the target video according to the first updating information.
Optionally, the first update information is determined or generated by the first terminal according to an editing operation of the target unit to be edited in the target image or the target video.
Optionally, the updating and/or displaying the target video or the target image according to the update information includes:
determining other units to be edited according to the target unit to be edited in the first updating information;
and updating and/or displaying the target image or the target video according to the first updating information and the other units to be edited.
Optionally, the method further comprises:
and when the editing state of the target unit to be edited is the unlocking state, responding to the editing operation aiming at the target unit to be edited, and receiving or generating second updating information according to the editing operation.
Optionally, the method further comprises:
updating and/or displaying the target image or the target video based on the second update information; and/or the presence of a gas in the gas,
and sending the second updating information to the first terminal so that the first terminal updates and/or displays the target image or the target video based on the second updating information.
Optionally, before receiving the first update information of the first terminal for the target image or the target video, the method further includes:
and responding to the collaborative editing request, and sending the target image or the target video to the first terminal.
Optionally, the first terminal comprises at least one.
In addition, in order to implement the above embodiment, the present application further provides a mobile terminal, including: the file processing method comprises a memory and a processor, wherein the memory stores a file processing program, and the file processing program realizes the steps of the file processing method when being executed by the processor.
Furthermore, in order to implement the above embodiments, the present application also proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the file processing method as set forth in any one of the above.
According to the file processing method, when the update information aiming at the target image or the target video sent by the first terminal is received, the update information is sent to the second terminal, so that the second terminal updates and/or displays the target image or the target video according to the update information. According to the file processing method, the target image or the target video can be updated and displayed in the second terminal according to the received updating information, and a plurality of different terminals can simultaneously operate the target image or the target video.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a document processing method according to a first embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating the generation of update information according to the present application;
FIG. 5 is a schematic flow chart diagram illustrating a document processing method according to a second embodiment of the present application;
FIG. 6 is a schematic flow chart diagram illustrating a document processing method according to a third embodiment of the present application;
fig. 7 is a flowchart illustrating a document processing method according to a fourth embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and optionally, identically named components, features, and elements in different embodiments of the present application may have different meanings, as may be determined by their interpretation in the embodiment or by their further context within the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S310 and S320 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S320 first and then S310 in the specific implementation, but these should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The mobile terminal may be implemented in various forms. For example, the mobile terminal described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution, Time Division Long Term Evolution), 5G, and so on.
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (e.g. 5G), and the like.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
First embodiment
The embodiment discloses a file processing method, an execution main body of the method may be a server, the server may be a single server or a server cluster, and the method does not specifically limit the types and the number of the servers. Fig. 3 shows a flowchart of a first embodiment of the file processing method of the present embodiment, and referring to fig. 3, the file processing method includes:
step S310, receiving or generating update information aiming at a target image or a target video sent by a first terminal;
step S320, sending the update information to a second terminal, so that the second terminal updates and/or displays the target image or the target video based on the update information.
With the improvement of the aesthetic quality of the public, people no longer satisfy the shooting effect of the original photo or video file, and need to beautify the original file. If only a small number of areas (such as a single photo) needing modification operation exist in the original file, the method can be quickly completed by an individual; if there are a lot of areas (such as many people lighting together) that need to be modified, then a lot of manpower is needed to modify, in this case, the modification and editing are still performed by individuals, which undoubtedly has the problem that the workload is too large and the satisfaction of each person cannot be guaranteed. If the editing is performed in turn by taking an individual as a unit, the other person can continue to edit the edited picture after waiting for the last person to finish editing, which undoubtedly needs a lot of time to finish editing and is troublesome to operate. Therefore, the file processing method is provided in the application, and different terminal devices can edit pictures or videos at the same time.
The target image is an image edited by at least one user at the same time. The target video is a video edited by at least one user at the same time. The update information is information for changing the display effect of the target image or the target video according to the editing operation of the user based on the target image or the target video.
In this embodiment, the first terminal and the second terminal are terminals that can display the target image or the target video and edit the target image or the target video. The terminal may be the mobile terminal in the above embodiment, and optionally, may be a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, or a fixed terminal such as a desktop notebook computer. Optionally, the types of the first terminal and the second terminal may be the same or different. Optionally, the first terminal and the second terminal may both be a mobile phone or both be a notebook computer. Optionally, the first terminal may also be a tablet computer, and the second terminal may be a computer, and the type of the first terminal and the type of the second terminal are not specifically limited in this embodiment. Optionally, the first terminal and the second terminal may include at least one, and the number of the first terminal and the second terminal is not particularly limited in the present disclosure.
Optionally, in this embodiment, the server receives update information about the target image or the target video sent by the first terminal. Optionally, the first terminal generates corresponding update information according to the editing operation based on the detected editing operation of the user, and sends the update information to the server.
Optionally, the first terminal receives an input device such as a mouse and/or a keyboard, or an editing operation of the user in a touch screen interface of the terminal device, and determines or generates the update information. Optionally, when the first terminal detects an editing operation of adding subtitles to the target image or the target video by the user, the first terminal generates update information of the target image or the target video after adding the subtitles according to the editing operation, and sends the update information to the server. And after receiving the update information, the server forwards the update information to the second terminal, so that the second terminal updates or displays the target image or the target video according to the update information after receiving the update information. Optionally, in this embodiment, when at least two terminals update the target video or the target image, the server may use the terminal that sends the update information as the first terminal and use the other terminals as the second terminal.
Optionally, the server determines or generates the update information according to the edit information sent by the first terminal, and sends the update information to the second terminal. Optionally, the editing information is information generated by the first terminal according to the detected editing operation of the user based on the target image or the target video. Optionally, after the first terminal detects the editing operation of the user on the target image or the target video, corresponding editing information is generated according to the editing operation and the position information of the editing operation in the target image or the target video, and the editing information is sent to the server. And the server determines or generates update information of the target image or the target video according to the received editing information and the editing information, and sends the update information to the second terminal. Since the update information of the target image or the target video is generated at the server, the first terminal does not have the update information of the target image or the target video. Therefore, after the server generates the update information, the update information is sent to the second terminal, and meanwhile the update information is sent to the first terminal, so that the first terminal and the second terminal can update and/or display the target image or the target video based on the received update information. In the embodiment, the update information of the target image or the target video is generated in the server, so that the update speed of the target image or the target video is increased.
Optionally, when the second terminal receives the update information, if the target image or the target video is being displayed in the current display interface and the second terminal has the right to download the target image or the target video, updating the target image or the target video based on the update information, and displaying the updated target image or the updated target video; and when the second terminal does not have the authority of downloading the target image or the target video, displaying the target image or the target video in a display interface of the second terminal, not updating the target image or the target video, and downloading the target image or the target video before updating when the second terminal clicks a downloading operation. The second terminal without the downloading authority is prevented from downloading or spreading the updated target image or target video, and the safety of the target image or target video is improved. If the second terminal does not open the target image or the target video currently, the target image or the target video is updated, the target image or the target video updated according to the received update information is not displayed, optionally, the updated target image or the updated target video can be displayed after the user opens the target image or the target video, the second terminal is prevented from displaying the updated target image or the updated target video when the user does not need to display, and energy loss is reduced.
In the embodiment, the server receives or generates the update information of the first terminal for the target image or the target video, and sends the update information to the second terminal. And the second terminal updates the target image or the target video in real time according to the updating information. Therefore, the target image or the target video can be updated on the second terminal according to the update information of the first terminal to the target image or the target video, a plurality of different terminals can simultaneously operate the target image or the target video, and the editing speed of the target image or the target video is improved.
Referring to fig. 4, in this embodiment, the step of receiving or generating the update information for the target image or the target video sent by the first terminal includes:
step S410, receiving an editing request of the first terminal, and determining a target unit to be edited in the target image or the target video according to the editing request;
step S420, receiving or generating update information for the target unit to be edited, which is sent by the first terminal.
In this embodiment, the editing request is a request for updating the target image or the target video, and optionally, the editing request carries a unit identifier of the target unit to be edited.
And the server receives an editing request of the first terminal, and determines a target unit to be edited in the target image or the target video according to the unit identifier of the target unit to be edited carried in the editing request.
Optionally, the target image or the target video is divided into at least one unit to be edited, and a corresponding unit identifier is matched for each unit to be edited. A user selects a unit to be edited from all units to be edited of a target image or a target video displayed by a first terminal, the first terminal determines a corresponding unit identifier, and sends an editing request carrying the unit identifier to a server.
The server receives the editing request, acquires a unit identifier carried by the editing request, determines a target unit to be edited according to the unit identifier, and receives or generates updating information of the first terminal to the target unit to be edited.
In this embodiment, the server determines a target unit to be edited, which needs to be edited by the first terminal, according to the unit identifier carried in the editing request of the first terminal, and receives or generates update information of the first terminal to the target unit to be edited, so that the update information of the target unit to be edited can be accurately determined.
In this embodiment, the step of receiving or generating the update information of the first terminal for the target unit to be edited includes:
determining the editing state of the target unit to be edited;
when the editing state is the unlocking state, receiving editing information of the first terminal aiming at the target unit to be edited, and determining or generating updating information of the target unit to be edited according to the editing information; optionally, when the editing state is an unlocked state, receiving update information of the first terminal for the target unit to be edited.
After the server receives the editing request, determining a target unit to be edited according to the unit identifier carried in the editing request, determining the editing state of the target unit to be edited, and determining whether to receive editing information or updating information of the first terminal to the target unit to be edited according to the editing state of the target unit to be edited. Optionally, the edit status includes an unlocked status and a locked status.
Optionally, when the editing state of the target unit to be edited is the unlocked state, the server receives the update information of the first terminal.
Optionally, when the editing state of the target unit to be edited is the unlocked state, the server receives the editing information of the first terminal to the target unit to be edited, and determines or generates the update information according to the editing information. Optionally, the editing information is determined according to the editing operation of the user detected by the first terminal and the position information of the editing operation.
Optionally, when the editing state of the target unit to be edited is the locked state, the server does not receive the update information generated or determined by the first terminal through the editing operation of the target unit to be edited.
In this embodiment, the server determines whether to receive update information of an editing operation of the first terminal on the target unit to be edited according to the editing state of the target unit to be edited, so as to determine or generate update information of the target image or the target video on the first terminal in case that the target unit to be edited is not editable currently.
In this embodiment, the step of determining the editing state of the target unit to be edited includes:
determining the editing state according to the editing operation of the target unit to be edited; and/or determining the editing state according to the editing authority of the first terminal.
Optionally, in this embodiment, the manner of determining the editing state of the target unit to be edited may be: the editing state of the target unit to be edited and the editing authority of the first terminal are determined together; or, determining according to the editing state of the target unit to be edited; or according to the editing right of the first terminal.
And the server determines the editing state according to the editing operation of the target unit to be edited, and/or determines the editing state according to the editing authority of the first terminal, and accurately determines the editing state of the target unit to be edited.
In this embodiment, the step of determining the editing state according to the editing operation of the target unit to be edited includes at least one of the following steps:
when the target unit to be edited has the editing operation of the second terminal, determining that the editing state is a locking state;
and when the target unit to be edited does not have the editing operation of the second terminal, determining that the editing state is the unlocking state.
In this embodiment, the step of determining the editing status according to the editing right of the first terminal includes at least one of:
when the editing authority of the first terminal does not meet the preset authority of the target unit to be edited, determining that the editing state is a locking state;
and when the editing authority of the first terminal meets the preset authority of the target unit to be edited, determining that the editing state is the unlocking state.
In this embodiment, when the server receives an editing request from the first terminal, the target unit to be edited is determined from the units to be edited according to the unit identifier carried in the editing request, and the editing state of the target unit to be edited is further obtained.
Optionally, the server determines whether the current target unit to be edited has the editing operation of the second terminal to determine the editing state of the target unit to be edited. When the current second terminal is determined to be editing the target unit to be edited, determining that the target unit to be edited is in a locked state; and/or when the target unit to be edited does not have the editing operation of the second terminal, determining that the target unit to be edited is in an unlocked state. When other terminals edit the target unit to be edited, the updating information of the first terminal aiming at the target unit to be edited is not received or generated, so that the situation that at least one terminal edits the same unit to be edited at the same time can be prevented, and the editing is disordered.
Optionally, the server determines the editing state of the target unit to be edited according to the editing authority of the first terminal. For example, the preset authority of each terminal to the unit to be edited of the target image or the target video may be matched, so that when it is determined that the editing authority of the first terminal or the second terminal meets the preset authority of the unit to be edited of the target, the server determines to receive or generate the update information of the first terminal to the unit to be edited of the target, and the security of updating the unit to be edited of the target is ensured.
Optionally, in this embodiment, a preset authority of each unit to be edited may be stored in the server in advance, where the preset authority is an authority of the terminal to edit the unit to be edited. Alternatively, the target image or the target video is divided into 5 units to be edited, the unit identifications of the units to be edited are 01, 02, 03, 04 and 05 respectively, and two terminals (a first terminal a and a second terminal B, wherein A, B represents different terminal identifications) exist to open the target image or the target video. The server stores the preset authority of the first terminal A, wherein the preset authority comprises a second unit to be edited and a third unit to be edited; the preset authority of the second terminal B comprises a first unit to be edited, a second unit to be edited and a fourth unit to be edited. When an editing request sent by a first terminal A is received, a third unit to be edited is determined to be a target unit to be edited according to a unit identifier 03 carried in the editing request, the first terminal A is further determined to meet the preset authority for editing the third unit to be edited according to the terminal identifier of the first terminal A, and the server receives or generates updating information of the first terminal A aiming at the target unit to be edited (the third unit to be edited). Optionally, when the unit identifier carried in the received editing request sent by the first terminal a is 01, it is determined that the first terminal a does not satisfy the preset authority of the editing target unit to be edited (the first unit to be edited) according to the terminal identifier of the first terminal a. It can be understood that whether the editing authority of the first terminal meets the preset authority of the unit to be edited of the editing target can also be determined according to other information of the first terminal, such as a third-party software login name (WeChat ID) and the like, and detailed description is not given in this embodiment.
Optionally, in this embodiment, when sending the editing request to the server, the unit identifiers carried by different terminals are different. Optionally, the user 1 selects the unit to be edited of the target image or the target video as the first unit to be edited in the first terminal a, and the user 2 selects the unit to be edited of the target image or the target video as the first unit to be edited in the second terminal B. The method comprises the steps that a first terminal A and a second terminal B send carrying unit identifications A01 and B01 respectively, and when a server receives the unit identifications, whether the editing authority of the terminals meets the editing authority of an editing target unit to be edited or not is determined directly through the received unit identifications.
In this embodiment, the file processing method further includes: and when the editing state is a locking state, sending first prompt information that the target unit to be edited is locked to the first terminal.
Optionally, the server determines that the target unit to be edited is in a locked state when it is determined that the target unit to be edited has an editing operation of the second terminal. Optionally, when it is determined that the editing right of the first terminal does not satisfy the preset right for editing the target unit to be edited, it is determined that the target unit to be edited is in a locked state. The server sends first prompt information that the target unit to be edited is locked to the first terminal. And after receiving the first prompt message, the first terminal displays the first prompt message to a terminal display interface so that a user stops editing the target unit to be edited according to the first prompt message.
In this embodiment, when the editing state of the target unit to be edited is the locked state, the server sends the first prompt message to the first terminal, so that the user of the first terminal knows that the target unit to be edited is in the locked state according to the first prompt message, and stops the editing operation on the target unit to be edited.
In this embodiment, after the step of sending the first prompt message that the target unit to be edited is locked to the first terminal, the method includes: and when the fact that the second terminal finishes editing operation aiming at the target unit to be edited is monitored, sending second prompt information that the target unit to be edited is unlocked to the first terminal.
In this embodiment, after sending the first prompt message to the first terminal, the server monitors whether the second terminal has an editing operation on the target unit to be edited, and determines whether the second terminal completes editing the target unit to be edited. Optionally, when it is detected that the user clicks an edit completion button of the second terminal, the server determines that the second terminal completes the edit completion operation on the target unit to be edited, and then sends the second prompt message to the first terminal.
Optionally, in this embodiment, if there is an editing request for the at least one first terminal to perform an editing operation on the locked target unit to be edited, the editing requests of the first terminals are sequentially sorted according to the time for the first terminals to send the editing request, and the second prompt information is sequentially sent to the first terminals according to the sorting.
In this embodiment, after the second terminal completes the editing operation on the target unit to be edited, the server sends second prompt information to the first terminal to prompt the user of the first terminal to edit the target unit to be edited, so that the user of the first terminal can edit the target unit to be edited in time.
In this embodiment, before the step of receiving the update information for the target image or the target video sent by the first terminal, the method includes:
acquiring the target image or the target video;
dividing the target image or the target video into at least one unit to be edited so that the first terminal and/or the second terminal can update the target image or the target video based on each unit to be edited.
In this embodiment, the server acquires the target image or the target video uploaded by the first terminal or the second terminal, and divides the target video into at least one unit to be edited, so that the first terminal and/or the second terminal can receive the editing operation of the user based on the divided unit to be edited, the target image or the target video can be updated by the at least one terminal based on the divided unit to be edited, and the speed of updating the target image or the target video is improved.
In this embodiment, the step of dividing the target image or the target video into at least one unit to be edited includes:
dividing the target image or the target video into at least one unit to be edited according to a preset rule; and/or the presence of a gas in the gas,
and receiving division information uploaded by the first terminal and/or the second terminal, and dividing the target image or the target video into the at least one unit to be edited according to the division information.
In this embodiment, the server may acquire the target image or the target video through the first terminal, or acquire the target image or the target video through the second terminal. The method comprises the steps that after a server acquires a target image or a target video, a picture to be edited is divided into at least one unit to be edited, and the target image or the target video with the at least one unit to be edited is sent to a first terminal device and/or a second terminal device which are connected with the server. The first terminal device can share the target image or the target video of at least one unit to be edited through connection.
The first terminal can share the target image or the target video, into which the at least one unit to be edited is divided, to the second terminal in a sharing link mode after acquiring the link, into which the target image or the target video of the at least one unit to be edited is divided. Optionally, the link sharing mode includes an instant messaging program such as QQ, wechat, and the like. After the user of the second terminal receives the sharing link, the user clicks the sharing link, and then a target image or a target video which can be edited based on at least one terminal can be displayed on the second terminal.
Optionally, in this embodiment, when receiving a target image or a target video that needs to be edited online, the server may divide the received target image or target video according to a preset rule. Optionally, the target image may be divided into different units to be edited according to face recognition. For the target video, the target video can be divided into different units to be edited according to the time frame of the target video.
Optionally, in this embodiment, the server may further divide the target image or the target video into at least one unit to be edited according to the division information uploaded by the first terminal or the second terminal.
In this embodiment, when receiving a target image or a target video uploaded by a first terminal or a second terminal, a server divides the target image or the target video according to a preset rule, and/or divides the target image or the target video into at least one unit to be edited according to division information uploaded by the first terminal and/or the second terminal, so that the accuracy of simultaneously editing the target image or the target video by each terminal is improved.
Second embodiment
Referring to fig. 5, fig. 5 is a schematic flow chart of a second embodiment of the document processing method of the present application. Applied to a second terminal, the method comprises the following steps:
step S510, receiving first updating information of a first terminal aiming at a target image or a target video;
and step S520, updating and/or displaying the target image or the target video according to the first updating information.
In this embodiment, when receiving first update information of an update target image or a target video sent by a server, a second terminal updates the target image or the target video according to the first update information. Optionally, when the target image or the target video is being displayed in the display interface of the second terminal, the target image or the target video is displayed according to the received first update information.
In this embodiment, the first update information is determined or generated by the first terminal for the editing operation of the target unit to be edited in the target image or the target video by the user.
Optionally, the first terminal determines or generates the first update information according to the editing operation of the target unit to be edited in response to the editing operation of the user on the target unit to be edited in the target image or the target video.
Optionally, when the target image is processed, the editing operation may be adjusting the color tone of the target unit to be edited, or adding an animation special effect, removing speckles, and the like; when the target video is processed, the editing operation may be adding subtitles to the target unit to be edited, or dubbing, switching effects, and the like.
In this embodiment, when receiving first update information of a first terminal for a target image or a target video, a second terminal updates the target image or the target video according to the first update information, and thus the target image or the target video is updated by receiving update information of other terminals, and thus different terminals update the target image or the target video at the same time.
In this embodiment, the updating and/or displaying the target video or the target image according to the update information includes:
determining other units to be edited according to the target unit to be edited in the first updating information;
and updating and/or displaying the target image or the target video according to the first updating information and the other units to be edited.
Optionally, when the second terminal receives the update information of the first terminal, the target unit to be edited which needs to be updated currently is determined according to the update information, and other units to be edited except the target unit to be edited are determined, the target unit to be edited is updated with the update information in the target image or the target video, and the other units to be edited are unchanged. In the embodiment, the target image or the target video is partially updated, and other parts of the target image or the target video are kept unchanged, so that the target image or the target video is purposefully updated, and the updating efficiency of the target image or the target video is improved.
In this embodiment, when the editing state of the target unit to be edited is the unlocked state, the second update information is received or generated according to the editing operation in response to the editing operation for the target unit to be edited.
Optionally, before the second terminal updates the target image or the target video, the editing state of the currently selected target unit to be edited is determined, and when the editing state of the target unit to be edited is determined to be the unlocked state, the second terminal receives or generates second update information according to the detected editing operation of the user.
Optionally, the second terminal may determine, when receiving a click operation of the user on the target video or the target image in the display interface, a unit to be edited that the user currently needs to edit, and then send an editing request carrying a unit identifier of the unit to be edited to the server. The server analyzes the unit identifier in the editing request after receiving the editing request of the second terminal, determines the unit to be edited corresponding to the server as a target unit to be edited according to the analyzed unit identifier, determines the editing state of the target unit to be edited, receives editing information which is sent by the second terminal and generated according to the detected editing operation when determining that the unit to be edited is in the unlocking state, and determines or generates second updating information according to the editing information. The server determines or generates the second updating information, so that the speed of updating the target image or the target video by each terminal according to the second updating information is improved. Optionally, when the server determines that the editing state of the target unit to be edited is the unlocking state, sending feedback information corresponding to the unlocking state to the second terminal. And when receiving the feedback information that the target unit to be edited is in the unlocking state, the second terminal receives the detected editing operation and generates updating information according to the editing operation. The speed of the second terminal updating the target image or the target video according to the second updating information is improved.
In this embodiment, the target image or the target video is updated and/or displayed based on the second update information; and/or the presence of a gas in the gas,
and sending the second updating information to the first terminal so that the first terminal updates and/or displays the target image or the target video based on the second updating information.
And the second terminal updates and/or displays the target image or the target video according to the second updating information. Optionally, when the second terminal currently displays the target image and the second terminal has the authority to update the target image or the target video, displaying the updated target image or the updated target video; when the second terminal displays the target image but does not have the updating right, only displaying the target image or the target video updated according to the second updating information on the second terminal; and when the second terminal does not display the target image or the target video, the second terminal updates the target image or the target video after receiving the second updating information.
And when the second terminal updates and/or displays the target image or the target video according to the second updating information, if the second updating information is generated at the second terminal, the second updating information is forwarded to the first terminal through the server, so that the first terminal can update the target image or the target video based on the received updating information.
And when receiving the second updating information, the server sends the second updating information to the first terminal, so that the first terminal updates and/or displays the target image or the target video according to the updating information. Optionally, when the first terminal currently displays the target image and the first terminal has the authority to update the target image, displaying the updated target image or target video; when the first terminal displays the target image but does not have the updating right, only displaying the target image or the target video updated according to the second updating information on the first terminal; and when the first terminal does not display the target image or the target video, the first terminal updates the target image or the target video after receiving the second updating information.
In this embodiment, the second terminal updates and/or displays the target image or the target video according to the second update information, and/or sends the second update information to the first terminal, so that the first terminal updates and/or displays the target image or the target video based on the second update information, and the update information of the target image or the target video is updated according to the second update information at the first terminal, so that the first terminal and the second terminal can update the target image or the target video at the same time.
In this embodiment, before receiving the first update information of the first terminal for the target image or the target video, the method further includes:
and responding to the collaborative editing request, and sending the target image or the target video to the first terminal.
Optionally, the first terminal comprises at least one.
Optionally, the collaborative editing request is a request for collaborative editing of the target image or the target video. In this embodiment, the second terminal uploads the target image or the target video to the server, and the server returns a link of the target image or the target video to the second terminal. And obtaining the target image or the target video which can be edited by multiple terminals at the server simultaneously based on the target image or the target video returned by the server. And when the second terminal receives the collaborative editing request of the first terminal, responding to the collaborative editing request, and sending the target image or the target video to one or at least one first terminal so that the first terminal edits the target image or the target video according to the received target image or the target video.
Optionally, the collaborative editing request may also be issued based on the second terminal. Optionally, after the second terminal uploads the target image or the target video, the server receives the target image or the target video, divides the target image or the target video, and sends a link of an editing address of the target image or the target video in the server to the second terminal. And receiving the link of the editing address of the target image or the target video returned by the server at the second terminal, determining that a user starts a collaborative editing request based on the second terminal, and sending the link of the editing address of the target image or the target video to at least one first terminal through an instant messaging tool installed at the second terminal.
In this embodiment, when receiving a collaborative editing request from a first terminal, a second terminal sends a target video or a target image that can be simultaneously edited to the first terminal, so that the first terminal can accurately acquire the target image or the target video.
Third embodiment
The present embodiment discloses a method for editing an image file by at least one terminal at the same time, referring to fig. 6, fig. 6 is a flowchart illustrating a third embodiment of image file processing of the present embodiment, and details are as follows:
in step S601, the first terminal responds to the image selection operation of the first user, and uploads a target image corresponding to the image selection operation to the server;
optionally, the first user may further select a corresponding second terminal on the first terminal, and the first terminal uploads the terminal identifier of the second terminal to the server while uploading the target image.
In step S602, the server receives the target image and sends the target image to the first terminal and the second terminal;
optionally, after receiving the target image, the server divides the image into different units to be edited according to a preset rule or division information uploaded by a user. Alternatively, the preset rule may be that face information contained in the target image is divided into corresponding editing units through face recognition. Based on this, if it is detected that the user uploads the target image based on the first terminal, the terminal identifiers of the first terminal and the second terminal are uploaded to the server, and the terminal identifiers (for example, the WeChat head portrait) of the first terminal and the second terminal correspond to the face information in the uploaded target image one by one, the target image is divided into different units to be edited according to the terminal identifiers.
In step S603, the server receives the editing request sent by the first terminal, and determines the editing state of the target unit to be edited according to the unit identifier carried in the editing request.
Alternatively, the editing state of the target unit to be edited may be determined in three ways: the first is to determine whether the target unit to be edited has other terminals currently performing editing operation, or the second is to determine whether the first terminal satisfies the preset editing right for editing the target unit to be edited (for example, the first terminal satisfies the editing right of the target unit to be edited with the editing unit identifier a, and the second terminal satisfies the editing right of the target unit to be edited with the editing unit identifier b), or the second is to determine whether to receive the editing information of the target unit to be edited from the first terminal in a manner of combining the editing operation and the editing right of other terminals.
Optionally, in this embodiment, when the first terminal uploads the target image, the authority of the unit to be edited is determined according to the allocation information of the user. Optionally, when the first user uploads the target image through the first terminal, the target image is divided into at least one unit to be edited, meanwhile, the authority of each terminal for acquiring each unit to be edited is set, and the authority of the unit to be edited corresponding to other terminal identifiers is divided. Optionally, the target image is divided into a unit to be edited and a unit to be edited, the first terminal has a preset authority for editing the unit a to be edited, and the first terminal has a preset authority for editing the unit a to be edited and the unit b to be edited.
In step S604, the server receives or generates first update information when determining that the editing state of the target unit to be edited is the unlocked state.
Optionally, when the server determines that the target unit a to be edited does not have the editing operation of other terminals of the first terminal, it is determined that the target unit a to be edited is in the unlocked state, the editing operation of the first terminal on the target unit a to be edited is received, and the update information is generated according to the editing operation.
The editing operation includes operations such as adding or deleting a text operation, a clipping operation, a matting operation, a toning operation, and the like at a target unit to be edited (for example, the unit to be edited a). And the first terminal generates corresponding editing information according to the editing operation of the user on the target picture. Optionally, when the first user selects to add a special effect (for example, a beard special effect) to the target unit to be edited at the first terminal, the editing information is generated according to the editing operation of the added beard special effect and the position of the added beard special effect, and is sent to the server. After receiving the edit information of the special effect and the position of the special effect of the beard which needs to be added by the user, the server determines or generates first update information of a target unit to be edited according to the edit information, and sends the first update information to the second terminal and the first terminal. It is understood that the first update information generated by the server may be updated image information of the target unit-to-be-edited, and updated image information of the target unit-to-be-edited a.
Optionally, the first terminal generates first update information according to the received editing operation, and sends the first update information to the server, so that the server forwards the first update information to the second terminal after receiving the first update information.
In step S605, the server receives the editing request sent by the second terminal, and determines the editing state of the target unit to be edited according to the unit identifier carried in the editing request.
In this embodiment, the first terminal and the second terminal may edit the target image at the same time, and step S605 and step S603 may be executed at the same time.
When the server receives an editing request sent to the server by a second user based on a second terminal, the server determines the editing state of a target unit to be edited (for example, a target unit b to be edited) selected by the second user according to the unit identifier carried by the editing request.
In step S606, the server receives or generates second update information when determining that the editing state of the target unit to be edited is the unlocked state.
When the server determines that the target unit b to be edited of the second terminal does not have the editing operation of the first terminal, the target unit b to be edited is determined to be in the unlocked state, the editing operation of the second terminal on the target unit b to be edited is received, second updating information is determined or generated according to the editing operation, and the second updating information is sent to the first terminal and the second terminal.
Alternatively, the server may receive second update information of the second terminal and transmit the second update information to the first terminal.
In this embodiment, the first terminal and the second terminal can edit the target image at the same time, so that the efficiency of editing the target image is improved.
Fourth embodiment
The present embodiment discloses a method for simultaneously editing a video file by at least one terminal, and referring to fig. 7, fig. 7 is a flowchart illustrating a fourth embodiment of a video file processing method according to the present embodiment, and details are as follows:
in step S701, the first terminal responds to a video selection operation of the first user, and uploads a target video corresponding to the video selection operation to the server;
optionally, the first user may further select a corresponding second terminal on the first terminal, and the first terminal uploads the terminal identifier of the second terminal to the server while uploading the target video.
In step S702, the server receives the target video and sends the target video to the first terminal and the second terminal;
optionally, after receiving the target video, the server divides the video into different units to be edited according to a preset rule or division information uploaded by a user. Alternatively, the preset rule may be determined according to the target video playing time length. For example, when the time length of the target playing video is 20 minutes, the target video is divided into different units to be edited according to the number of terminals for editing.
Alternatively, the target video may also be divided into units to be edited for video, units to be edited for subtitle, units to be edited for dubbing, and the like.
In step S703, the server receives the editing request sent by the first terminal, and determines the editing state of the target unit to be edited according to the unit identifier carried in the editing request.
Alternatively, the editing state of the target unit to be edited may be determined in three ways: one is to determine whether the target unit to be edited has other terminals currently performing editing operation, or the other is to determine whether the first terminal satisfies the preset editing right of editing the target unit to be edited (for example, the first terminal satisfies the editing right of dubbing the unit to be edited, and the second terminal satisfies the editing right of subtitle the unit to be edited), or the other is to determine whether to receive the editing information of the target unit to be edited from the first terminal by combining the editing operation and the editing right of other terminals.
Optionally, when the first terminal uploads the target video, the authority of the unit to be edited is determined according to the distribution information of the user. Optionally, when the first user uploads the target video through the first terminal, the target video is divided into at least one unit to be edited, meanwhile, the authority of each terminal for acquiring each unit to be edited is set, and the authority of the unit to be edited corresponding to other terminal identifiers is divided. Optionally, the target video is divided into a unit a to be edited and a unit b to be edited, wherein the unit a to be edited is a unit of the image to be edited, the unit b to be edited is a unit of the subtitle to be edited, optionally, the first terminal has a preset authority for editing the unit of the image to be edited, and the second terminal has a preset authority for editing the unit of the subtitle to be edited.
In step S704, the server receives or generates first update information when determining that the editing state of the target unit to be edited is the unlocked state.
Optionally, when the server determines that the target unit a to be edited does not have the editing operation of other terminals of the first terminal, it is determined that the target unit a to be edited is in the unlocked state, the editing operation of the first terminal on the target unit a to be edited is received, and the update information is generated according to the editing operation.
Optionally, the first terminal determines or generates the update information according to the received editing operation, and sends the update information to the server, so that the server forwards the update information to the second terminal after receiving the update information.
In step S705, the server receives the editing request sent by the second terminal, and determines the editing state of the target unit to be edited according to the unit identifier carried in the editing request.
In this embodiment, the first terminal and the second terminal may edit the target video at the same time, and thus step S705 and step S703 may be executed at the same time.
When the server receives an editing request sent to the server by a second user based on a second terminal, the server determines the editing state of a target unit to be edited (for example, a target unit b to be edited) selected by the second user according to the unit identifier carried by the editing request.
In step S706, when the server determines that the editing state of the target unit to be edited is the unlocked state, the server receives or generates second update information.
When the server determines that the target unit b to be edited of the second terminal does not have the editing operation of the first terminal, the target unit b to be edited is determined to be in the unlocked state, the editing operation of the second terminal on the target unit b to be edited is received, second updating information is determined or generated according to the editing operation, and the second updating information is sent to the first terminal and the second terminal.
Alternatively, the server may receive second update information of the second terminal and transmit the second update information to the first terminal.
In this embodiment, the first terminal and the second terminal can edit the target video at the same time, so that the efficiency of editing the target video is improved.
The embodiment of the present application further provides a mobile terminal, where the mobile terminal includes a memory and a processor, and the memory stores a file processing program, and the file processing program, when executed by the processor, implements the steps of the file processing method in any of the above embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where a file processing program is stored on the computer-readable storage medium, and when the file processing program is executed by a processor, the steps of the file processing method in any of the above embodiments are implemented.
In the embodiments of the intelligent terminal and the computer-readable storage medium provided in the embodiments of the present application, all technical features of any one of the embodiments of the file processing method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (18)

1. A file processing method is applied to a server, and comprises the following steps:
s310: receiving or generating update information of a first terminal aiming at a target image or a target video;
s320: and sending the updating information to a second terminal so that the second terminal updates and/or displays the target image or the target video based on the updating information.
2. The method of claim 1, wherein the step S310 comprises:
receiving an editing request of the first terminal, and determining a target unit to be edited in the target image or the target video according to the editing request;
and receiving or generating the updating information of the first terminal aiming at the target unit to be edited.
3. The method of claim 2, wherein the receiving or generating the update information for the target unit to be edited, which is sent by the first terminal, comprises:
determining the editing state of the target unit to be edited;
when the editing state is the unlocking state, receiving editing information of the first terminal aiming at the target unit to be edited, and determining or generating updating information of the target unit to be edited according to the editing information; alternatively, the first and second electrodes may be,
and when the editing state is the unlocking state, receiving the updating information of the first terminal aiming at the target unit to be edited.
4. The method of claim 3, wherein the determining the editing state of the target unit to be edited comprises:
determining the editing state according to the editing operation of the target unit to be edited; and/or the presence of a gas in the gas,
and determining the editing state according to the editing authority of the first terminal.
5. The method according to claim 4, wherein the determining the editing state according to the editing operation of the target unit to be edited comprises at least one of:
when the target unit to be edited has the editing operation of the second terminal, determining that the editing state is a locking state;
and when the target unit to be edited does not have the editing operation of the second terminal, determining that the editing state is the unlocking state.
6. The method of claim 4, wherein the determining the edit status according to the edit right of the first terminal comprises at least one of:
when the editing authority of the first terminal does not meet the preset authority for editing the target unit to be edited, determining that the editing state is a locking state;
and when the editing authority of the first terminal meets the preset authority for editing the target unit to be edited, determining that the editing state is the unlocking state.
7. The method of claim 3, wherein the method further comprises:
and when the editing state is a locking state, sending first prompt information that the target unit to be edited is locked to the first terminal.
8. The method as claimed in claim 7, wherein after said sending the first prompt message that the target unit to be edited is locked to the first terminal, the method comprises:
and when the fact that the second terminal finishes editing operation aiming at the target unit to be edited is monitored, sending second prompt information that the target unit to be edited is unlocked to the first terminal.
9. The method according to any one of claims 1 to 8, wherein before said receiving the updated information for the target image or the target video sent by the first terminal, comprising:
acquiring the target image or the target video;
dividing the target image or the target video into at least one unit to be edited so that the first terminal and/or the second terminal can update the target image or the target video based on each unit to be edited.
10. The method of claim 9, wherein dividing the target image or target video into at least one unit to be edited comprises:
dividing the target image or the target video into at least one unit to be edited according to a preset rule; and/or the presence of a gas in the gas,
and receiving division information uploaded by the first terminal and/or the second terminal, and dividing the target image or the target video into the at least one unit to be edited according to the division information.
11. A file processing method is applied to a second terminal, and comprises the following steps:
receiving first updating information of a first terminal aiming at a target image or a target video;
and updating and/or displaying the target image or the target video according to the first updating information.
12. The method according to claim 11, wherein the first update information is determined or generated by an editing operation of the first terminal with respect to a target unit-to-be-edited in the target image or target video.
13. The method of claim 12, wherein said updating and/or displaying said target video or target image according to said update information comprises:
determining other units to be edited according to the target unit to be edited in the first updating information;
and updating and/or displaying the target image or the target video according to the first updating information and the other units to be edited.
14. The method of claim 12, wherein the method further comprises:
and when the editing state of the target unit to be edited is the unlocking state, responding to the editing operation aiming at the target unit to be edited, and receiving or generating second updating information according to the editing operation.
15. The method of claim 14, wherein the method further comprises:
updating and/or displaying the target image or the target video based on the second update information; and/or
And sending the second updating information to the first terminal so that the first terminal updates and/or displays the target image or the target video based on the second updating information.
16. The method according to any one of claims 11 to 15, wherein before receiving the first update information of the first terminal for the target image or the target video, the method further comprises:
and responding to the collaborative editing request, and sending the target image or the target video to the first terminal.
17. A mobile terminal, characterized in that the mobile terminal comprises: memory, processor, wherein the memory has stored thereon a file processing program which, when executed by the processor, implements the steps of the file processing method according to any one of claims 1 to 16.
18. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the file processing method according to any one of claims 1 to 16.
CN202111302429.2A 2021-11-04 2021-11-04 File processing method, mobile terminal and storage medium Pending CN114025215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111302429.2A CN114025215A (en) 2021-11-04 2021-11-04 File processing method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111302429.2A CN114025215A (en) 2021-11-04 2021-11-04 File processing method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114025215A true CN114025215A (en) 2022-02-08

Family

ID=80061420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111302429.2A Pending CN114025215A (en) 2021-11-04 2021-11-04 File processing method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114025215A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756524A (en) * 2022-03-11 2022-07-15 北京安盛祥元科技发展有限公司 Multi-person online target area sketching method and device, computer equipment and storage medium
CN115080163A (en) * 2022-06-08 2022-09-20 深圳传音控股股份有限公司 Display processing method, intelligent terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109712082A (en) * 2018-12-05 2019-05-03 厦门美图之家科技有限公司 The method and device of figure is repaired in cooperation
WO2019196929A1 (en) * 2018-04-13 2019-10-17 维沃移动通信有限公司 Video data processing method and mobile terminal
CN111277905A (en) * 2020-03-09 2020-06-12 新华智云科技有限公司 Online collaborative video editing method and device
CN113099130A (en) * 2021-04-15 2021-07-09 北京字节跳动网络技术有限公司 Collaborative video processing method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196929A1 (en) * 2018-04-13 2019-10-17 维沃移动通信有限公司 Video data processing method and mobile terminal
CN109712082A (en) * 2018-12-05 2019-05-03 厦门美图之家科技有限公司 The method and device of figure is repaired in cooperation
CN111277905A (en) * 2020-03-09 2020-06-12 新华智云科技有限公司 Online collaborative video editing method and device
CN113099130A (en) * 2021-04-15 2021-07-09 北京字节跳动网络技术有限公司 Collaborative video processing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756524A (en) * 2022-03-11 2022-07-15 北京安盛祥元科技发展有限公司 Multi-person online target area sketching method and device, computer equipment and storage medium
CN115080163A (en) * 2022-06-08 2022-09-20 深圳传音控股股份有限公司 Display processing method, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107390972B (en) Terminal screen recording method and device and computer readable storage medium
CN108572764B (en) Character input control method and device and computer readable storage medium
CN107038245B (en) Page switching method, mobile terminal and storage medium
CN107517153B (en) Message push control method and terminal
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN114371803B (en) Operation method, intelligent terminal and storage medium
CN114025215A (en) File processing method, mobile terminal and storage medium
CN112162870A (en) File processing operation method, mobile terminal and storage medium
CN108063863B (en) Information browsing method, terminal, server and computer readable storage medium
CN108282608B (en) Multi-region focusing method, mobile terminal and computer readable storage medium
CN112464208A (en) File access method, mobile terminal and computer readable storage medium
CN108543306B (en) Game brightness control method and device and computer readable storage medium
CN107133319B (en) Method and device for efficiently adjusting sequence and computer readable storage medium
CN115617293A (en) Data processing method, source end screen projection equipment and storage medium
CN115277922A (en) Processing method, intelligent terminal and storage medium
CN114363318A (en) Data processing method, intelligent terminal and storage medium
CN113835586A (en) Icon processing method, intelligent terminal and storage medium
CN113805837A (en) Audio processing method, mobile terminal and storage medium
CN110287381B (en) Page control node searching method, terminal and computer readable storage medium
CN113590069A (en) Switching method, mobile terminal and storage medium
CN109495683B (en) Interval shooting method and device and computer readable storage medium
CN108549648B (en) Character picture processing method, terminal and computer readable storage medium
CN113852717B (en) Wallpaper module position migration method, equipment and computer readable storage medium
CN108830917B (en) Information generation method, terminal and computer readable storage medium

Legal Events

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