Media file processing method, device and storage medium
By providing a file sending interface in the session window of the instant messaging client, users are allowed to drag media files to the session window for sending, which solves the problem of long file sharing operation paths and improves file sending efficiency and user experience during chatting.
Patent Information
- Application Number
- CN202010430129.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-05-20
AI Technical Summary
In instant messaging clients, when users engage in voice or video chat, the operation path for sharing files is long, resulting in low operating efficiency and poor user experience.
Provides a media file processing method that presents a file sending interface in the session window, allowing users to trigger file sending instructions by selecting media files and dragging them to the session window, and directly sends media files to the session object, reducing the step of selecting a friend list .
It simplifies the file sending process, improves the efficiency and user experience of file sending, and allows users to complete file sending without exiting the full-screen chat interface.
Smart Images

Figure CN111628977B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method, device, electronic device and storage medium for processing media files. Background Art
[0002] With the continuous development of Internet technology, more and more Internet products are loved by users, such as various instant messaging clients. When users chat online through instant messaging clients, they usually need to share and send some pictures or documents. In the related technology, if a user needs to share a picture or a document with a conversation friend, he needs to return from the full-screen chat scene, find the picture or document to be sent, and then choose to share, and then find the conversation friend in the client chat list to send the file, which results in a long operation path for users to send files, low operation efficiency, and poor user experience. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, electronic device and storage medium for processing media files, which can improve the efficiency of sending files during a session and thus enhance the user experience.
[0004] The technical solution of the embodiment of the present invention is achieved as follows:
[0005] An embodiment of the present invention provides a method for processing a media file, including:
[0006] Presenting a viewing interface including media files, and presenting, in the viewing interface, a conversation window in a voice conversation state or a video conversation state with the conversation object;
[0007] In response to a selection operation on the media file, presenting a file sending interface corresponding to the media file and including the session window;
[0008] Based on the file sending interface, receiving a file sending instruction triggered for the session window;
[0009] In response to the file sending instruction, the media file is sent to the session object.
[0010] The embodiment of the present invention further provides a media file processing device, including:
[0011] A first presentation module, used to present a view interface including media files, and present, in the view interface, a session window in a voice session state or a video session state with a session object;
[0012] A second presentation module, configured to present a file sending interface including the session window corresponding to the media file in response to a selection operation on the media file;
[0013] A receiving module, configured to receive a file sending instruction triggered for the session window based on the file sending interface;
[0014] The sending module is used to send the media file to the session object in response to the file sending instruction.
[0015] In the above scheme, the first presentation module is also used to present a conversation window in a voice conversation state or a video conversation state with the conversation object through a floating window, so that the conversation window floats above the view interface.
[0016] In the above solution, the second presentation module is further used to present a file sending interface corresponding to the media file with target transparency, and present the session window in the file sending interface;
[0017] The file sending interface may partially or completely cover the view interface.
[0018] In the above scheme, the device also includes:
[0019] A detection module, used for detecting a position of the long press operation when the selection operation is a long press operation;
[0020] When it is detected that the long press operation is released and the position of the long press operation is in the area corresponding to the conversation window, the file sending instruction is triggered.
[0021] In the above scheme, the device also includes:
[0022] The third presentation module is used to present a floating icon corresponding to the media file in the file sending interface, and the floating icon is suspended above the file sending interface.
[0023] In the above scheme, the device also includes:
[0024] An acquisition module, used to acquire an information display card corresponding to the media file;
[0025] The thumbnail of the information display card is used as a floating icon corresponding to the media file.
[0026] In the above solution, the receiving module is further used to receive a drag operation on the floating icon;
[0027] When the floating icon is dragged to the area corresponding to the session window and the dragging operation is released, the file sending instruction triggered by the release of the dragging operation on the floating icon is received.
[0028] In the above solution, the receiving module is further used to present prompt information corresponding to the floating icon when the floating icon is dragged to the area corresponding to the conversation window;
[0029] The prompt information is used to prompt that the floating icon is already in the area corresponding to the conversation window.
[0030] In the above scheme, the device also includes:
[0031] The fourth presentation module is used to present sending progress prompt information corresponding to the media file during the process of sending the media file to the session object.
[0032] In the above scheme, the device also includes:
[0033] A fifth presentation module, configured to receive a target media file sent by a target conversation object during a conversation with the target conversation object;
[0034] In the voice conversation interface or the video conversation interface corresponding to the conversation, indication information corresponding to the target media file is presented, where the indication information is used to indicate that the target media file has been received.
[0035] In the above solution, the fifth presentation module is further used to receive a trigger operation for the indication information;
[0036] In response to the trigger operation, a content interface corresponding to the target media file is presented, and the content of the target media file is presented in the content interface.
[0037] In the above solution, the fifth presentation module is further used to present a prompt function item corresponding to the target media file in the voice conversation interface or the video conversation interface corresponding to the conversation;
[0038] In response to a triggering operation on the prompt function item, the presented indication information is canceled.
[0039] In the above scheme, the device also includes:
[0040] a sixth presentation module, configured to present, in the file sending interface, a first sliding indication icon corresponding to the conversation window, and a second sliding indication icon corresponding to a file sending cancel function item;
[0041] When a sliding operation corresponding to the conversation window is received based on the first sliding indication icon, triggering the file sending instruction;
[0042] When a sliding operation corresponding to the file sending cancel function item triggered by the second sliding indication icon is received, the presented file sending interface is canceled and the view interface is presented.
[0043] An embodiment of the present invention further provides an electronic device, including:
[0044] A memory for storing executable instructions;
[0045] The processor is used to implement the media file processing method provided by the embodiment of the present invention when executing the executable instructions stored in the memory.
[0046] An embodiment of the present invention further provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implements the media file processing method provided by the embodiment of the present invention.
[0047] The embodiments of the present invention have the following beneficial effects:
[0048] Through a view interface including a session window in a session state with a session object, a user's selection operation for a media file is received, and a file sending interface including a session window corresponding to the media file is presented. Then, based on the file sending interface, a file sending instruction triggered based on the session window is received, and then, in response to the file sending instruction, the media file is sent to the session object. Here, file sending can be achieved by triggering the file sending instruction through the session window in the file sending interface triggered by the media file selection operation. The entire media file sending process no longer requires the user to select the friends to be sent in the friend list and then share the file. This reduces the operation path of file sending, improves the efficiency of file sending during the session, and thus improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1A -B is a flowchart of a method for processing a media file provided in the related art;
[0050] Figure 2 is a schematic diagram of an implementation scenario of a method for processing a media file provided by an embodiment of the present invention;
[0051] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0052] Figure 4 is a flow chart of a method for processing a media file provided by an embodiment of the present invention;
[0053] Figure 5 is a schematic diagram of a viewing interface including media files provided by an embodiment of the present invention;
[0054] Fig. 6A Schematic diagram 1 of a file sending interface provided by an embodiment of the present invention;
[0055] Figure 6B Schematic diagram of a file sending interface provided by an embodiment of the present invention Figure 2 ;
[0056] Figure 7 is a schematic diagram of a floating icon corresponding to a media file provided by an embodiment of the present invention;
[0057] Figure 8 is a schematic diagram of prompt information corresponding to a floating icon provided by an embodiment of the present invention;
[0058] Fig. 9 is a schematic diagram of a process for sending a media file provided by an embodiment of the present invention;
[0059] Fig.10 is a schematic diagram of a process of viewing a media file provided by an embodiment of the present invention;
[0060] Fig.11 is a schematic diagram of a process of canceling viewing of a media file provided by an embodiment of the present invention;
[0061] Fig.12 This is a schematic diagram of a file sending interface provided by an embodiment of the present invention. Figure 3 ;
[0062] Fig.13 is a flow chart of a method for processing a media file provided by an embodiment of the present invention;
[0063] Fig.14 It is a structural schematic diagram of a media file processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.
[0065] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0066] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein.
[0067] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0068] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.
[0069] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0070] In the related art, when a user is having a video or voice chat with a friend, if he wants to share a picture or a file with the friend, he needs to return from the full-screen voice or video chat scene, find the picture or file to be sent, then select share, find the friend in the chat list and send it, see Figure 1A ; After receiving the picture or file, the friend also needs to exit the full-screen voice or video chat scene and view it in the chat window. Figure 1B Therefore, no matter for the sharer or the recipient, the operation path of sending and receiving files is relatively long, the operation efficiency is low, and the user experience is poor.
[0071] Based on the above explanations of the nouns and terms involved in the embodiments of the present invention, the following describes the implementation scenario of the method for processing a media file provided by the embodiments of the present invention. Figure 2 , Figure 2 It is a schematic diagram of an implementation scenario of the method for processing media files provided in an embodiment of the present invention. To support an exemplary application, an application client, such as an instant messaging client, is provided on the terminal (including terminal 200-1 and terminal 200-2); wherein terminal 200-1 is a sender of media files, and terminal 200-2 is a receiver of media files; the terminal is connected to server 100 via network 30, and network 30 may be a wide area network or a local area network, or a combination of the two, and data transmission is achieved using wireless or wired links.
[0072] The terminal 200-1 is used to present a view interface including a media file, and present a session window in a voice session state or a video session state with a session object in the view interface; in response to a selection operation for the media file, present a file sending interface including the session window corresponding to the media file; based on the file sending interface, receive a file sending instruction triggered for the session window; in response to the file sending instruction, upload the media file to the server 100;
[0073] The server 100 is used to receive the media file uploaded by the terminal 200-1 and send the received media file to the terminal 200-2;
[0074] Terminal 200-2 is used to receive media files sent by server 100, and present indication information of the corresponding media files in the voice conversation interface or video conversation interface corresponding to the conversation; in response to a trigger operation for the indication information, present a content interface of the corresponding media file, and present the content of the media file in the content interface.
[0075] In actual applications, the server 100 can be a single server configured to support various services, or can be configured as a server cluster; the terminal (such as terminal 200-1) can be various types of user terminals such as smart phones, tablet computers, laptop computers, etc., and can also be wearable computing devices, personal digital assistants (PDAs), desktop computers, cellular phones, media players, navigation devices, game consoles, televisions, or a combination of any two or more of these data processing devices or other data processing devices.
[0076] The hardware structure of the electronic device of the media file processing method provided by the embodiment of the present invention is described in detail below. The electronic device includes but is not limited to a server or a terminal. Figure 3 , Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 3 The electronic device 300 shown includes: at least one processor 310, a memory 350, at least one network interface 320 and a user interface 330. The various components in the electronic device 300 are coupled together via a bus system 340. It is understood that the bus system 340 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 340 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 340 is not described in detail. Figure 3 Various buses are labeled as bus system 340 .
[0077] The processor 310 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0078] The user interface 330 includes one or more output devices 331 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 330 also includes one or more input devices 332, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0079] The memory 350 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 350 may optionally include one or more storage devices that are physically remote from the processor 310.
[0080] The memory 350 includes a volatile memory or a nonvolatile memory, and may also include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 350 described in the embodiment of the present invention is intended to include any suitable type of memory.
[0081] In some embodiments, memory 350 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0082] Operating system 351, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0083] A network communication module 352, for reaching other computing devices via one or more (wired or wireless) network interfaces 320, exemplary network interfaces 320 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB);
[0084] a presentation module 353 for enabling presentation of information via one or more output devices 331 (e.g., display screen, speaker, etc.) associated with the user interface 330 (e.g., a user interface for operating peripherals and displaying content and information);
[0085] The input processing module 354 is used to detect one or more user inputs or interactions from one of the one or more input devices 332 and translate the detected inputs or interactions.
[0086] In some embodiments, the media file processing device provided by the embodiments of the present invention can be implemented in software. Figure 3 A processing device 355 for media files stored in a memory 350 is shown, which may be software in the form of a program or plug-in, and includes the following software modules: a first presentation module 3551, a second presentation module 3552, a receiving module 3553, and a sending module 3554. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0087] In other embodiments, the media file processing device provided by the embodiment of the present invention can be implemented in a combination of software and hardware. As an example, the media file processing device provided by the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the media file processing method provided by the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0088] Based on the above description of the implementation scenario and electronic device of the method for processing media files in the embodiment of the present invention, the method for processing media files provided by the embodiment of the present invention is described below. Figure 4 , Figure 4 is a flowchart of a method for processing a media file provided by an embodiment of the present invention; in some embodiments, the method for processing a media file may be implemented by a server or a terminal alone, or by a server and a terminal in collaboration. Taking the terminal implementation as an example, the method for processing a media file provided by an embodiment of the present invention includes:
[0089] Step 401: The terminal presents a view interface including a media file, and in the view interface, presents a session window in a voice session state or a video session state with a session object.
[0090] Here, an instant messaging client may be provided on the terminal. By running the instant messaging client, a conversation window for users to have conversations is presented. Users can communicate through the conversation window, such as voice calls, video calls, etc.
[0091] In actual applications, when a user is in a voice or video conversation state, if a media file needs to be sent to a conversation object in a conversation state, the user can exit the full-screen conversation interface by clicking the floating window run button, thereby conveniently selecting the media file to be sent. At this time, the terminal responds to the floating window run instruction triggered by the user through the floating window run button, presents the conversation window through the floating window, and makes the conversation window float above the view interface. In actual implementation, the terminal can also present the conversation window in a split-screen manner, that is, by running the split-screen instruction, the instant messaging client in the conversation state is presented in the view interface in a split-screen manner, so as to realize the split-screen presentation of the conversation window, thereby facilitating the user to select the media file to be sent.
[0092] Based on this, the user can select the media file to be sent in the view interface. Here, the view interface can be an interface containing media files in the instant messaging client, or it can be an interface where the terminal presents the stored local media files. For example, see Figure 5 , Figure 5 is a schematic diagram of a view interface including media files provided by an embodiment of the present invention, including: Figure 5 (1) shows an application client interface containing a "picture" media file, and Figure 5 (2) shows the view interface containing the local media file "Word document".
[0093] Step 402: In response to a selection operation on a media file, presenting a file sending interface including a conversation window corresponding to the media file.
[0094] When sending a media file, the user can select the media file. The terminal receives the selection operation triggered by the user for the media file and presents a file sending interface of the corresponding media file including the session window. The user can send the media file to the session object based on the file sending interface.
[0095] In some embodiments, the terminal may present the file sending interface in the following manner: presenting the file sending interface of the corresponding media file with target transparency, and presenting the session window in the file sending interface; wherein the file sending interface may partially or completely cover the view interface.
[0096] In actual applications, the transparency value of the file sending interface can be set to present a file sending interface with a target transparency, such as a semi-transparent file sending interface, so that the file sending interface can partially or completely cover the view interface, and a session window for the user to continue the session can also be presented in the file sending interface. Fig. 6A , Fig. 6A This is a schematic diagram 1 of a file sending interface provided by an embodiment of the present invention. Here, the terminal presents a file sending interface with preset transparency. The file sending interface completely covers the view interface, and a session window in a session state with the session object is also presented in the file sending interface.
[0097] Step 403: Based on the file sending interface, a file sending instruction triggered for the session window is received.
[0098] In some embodiments, the terminal can trigger a file sending instruction in the following manner: when the selection operation is a long press operation, the position of the long press operation is detected; when it is detected that the long press operation is released and the position of the long press operation is in the area corresponding to the session window, the file sending instruction is triggered.
[0099] In actual applications, users can trigger a file sending instruction for a media file by performing a long press operation on a media file. Specifically, the terminal detects the user's long press operation and the position of the long press operation in real time, which can be to detect the changes in the x-axis and y-axis of the user's gesture contact; when it is detected that the long press operation is released, and the position of the long press operation is in the area corresponding to the session window, the operation of dragging the media file to the session window is realized, and at this time the terminal receives the file receiving instruction triggered by releasing the long press operation.
[0100] In some embodiments, when a media file is sent based on the file sending interface, the terminal may present a floating icon corresponding to the media file in the file sending interface, and the floating icon floats above the file sending interface.
[0101] In actual applications, in response to the user's selection operation on the media file, the terminal may also present a floating icon of the corresponding media file on the file sending interface. Here, the selection operation may be a long press operation, a double click, or a single click. For example, when the selection operation is a long press operation, when the terminal detects that the user performs a long press operation on the media file, in response to the long press operation, presents a file sending interface with a preset transparency, such as a semi-transparent file sending interface. And through the floating presentation method, the floating icon of the corresponding media file is presented on the file sending interface.
[0102] For example, see Figure 6B , Figure 6BSchematic diagram of a file sending interface provided by an embodiment of the present invention Figure 2 Here, the terminal receives a long press operation triggered by the user on the media file "Picture", presents a file sending interface with a preset transparency, and presents a floating icon corresponding to the media file "Picture" above the file sending interface, that is, a picture thumbnail corresponding to the media file "Picture".
[0103] In some embodiments, the terminal may obtain the floating icon of the corresponding media file in the following manner: obtaining an information display card of the corresponding media file; and using a thumbnail of the information display card as the floating icon of the corresponding media file.
[0104] In actual applications, the floating icon can be a thumbnail of the information display card corresponding to the media file. For example, if the media file is a picture, the floating icon can be a thumbnail of the picture; if the media file is a Word document, the floating icon can be a thumbnail of the information display card corresponding to the Word document. Figure 7 , Figure 7 is a schematic diagram of a floating icon corresponding to a media file provided by an embodiment of the present invention. Figure 7 (1) shows a floating icon of the media file "Picture", i.e., a thumbnail of the picture corresponding to the media file "Picture"; and Figure 7 (2) shows a floating icon of the media file "Word document", that is, a thumbnail of the information display card corresponding to the media file "Word document".
[0105] In some embodiments, based on the file sending interface, the terminal can receive a file sending instruction triggered for the session window in the following manner: receiving a drag operation on a floating icon; when the floating icon is dragged to the area corresponding to the session window and the drag operation is released, receiving a file sending instruction triggered by releasing the drag operation on the floating icon.
[0106] In actual applications, after the user performs a long press and drag operation on the floating icon, the terminal detects the position of the long press and drag operation of the user's gesture, and presents the floating icon moving with the drag operation according to the changes in the x-axis and y-axis of the user's gesture contact. When the floating icon is dragged to the area corresponding to the session window, if it is detected that the drag operation is released, a file sending instruction triggered by the release of the drag operation on the floating icon is received.
[0107] In some embodiments, when the floating icon is dragged to the area corresponding to the conversation window, the terminal may present prompt information corresponding to the floating icon; wherein the prompt information is used to prompt that the floating icon is already in the area corresponding to the conversation window.
[0108] In actual applications, when the terminal detects that the user's gesture touch point moves to the area corresponding to the video session window during the dragging process, it presents corresponding prompt information to indicate to the user that the media file has been successfully captured, such as by adjusting the border of the session window to a preset color, or presenting a text prompt of "file has been captured", or presenting a flashing session window border, etc. For example, see Figure 8 , Figure 8 This is a schematic diagram of the prompt information corresponding to the floating icon provided by an embodiment of the present invention. Here, when the terminal detects that the floating icon is dragged to the area corresponding to the session window, it adjusts the color of the border of the session window to prompt the user that the floating icon is already in the area corresponding to the session window, and the user can continue to operate to trigger the file sending instruction.
[0109] Step 404: In response to the file sending instruction, send the media file to the session object.
[0110] After receiving the file sending instruction for the media file triggered by the user based on the file sending interface, the terminal sends the media file to the session object. In some embodiments, the terminal may present the sending progress prompt information corresponding to the media file during the process of sending the media file to the session object. For example, the terminal may present the sending progress prompt information in the video session window in the form of a percentage or a graphical progress bar.
[0111] Specifically, see Fig. 9 , Fig. 9 This is a schematic diagram of the sending process of media files provided by an embodiment of the present invention. Here, taking the terminal running an instant messaging client to implement a video conversation as an example, when the user needs to send a media file, he exits the full-screen video conversation interface, selects the "picture" media file to be sent in the "friend circle" interface in the application client, and triggers the presentation of the file sending interface by long pressing the "picture" media file. At this time, while the terminal presents the file sending interface, a floating icon corresponding to the "picture" media file is suspended on the file sending interface, that is, a picture thumbnail corresponding to the media file "picture". The user's drag operation on the floating icon is received. When it is detected that the floating icon corresponding to the media file is dragged to the suspended video conversation window, the file sending instruction triggered by releasing the drag operation on the floating icon is received, so that in response to the sending instruction, the media file is sent to the conversation object; at the same time, the sending progress prompt information is presented in the conversation window, that is, a graphic progress bar with a percentage of "75%".
[0112] By applying the above embodiment, the terminal realizes one-key sending of media files by dragging the media files to the conversation window, thereby improving the file sending efficiency and enhancing the user experience.
[0113] In some embodiments, during a conversation with a target conversation object, the terminal may receive a target media file sent by the target conversation object in the following manner: receiving the target media file sent by the target conversation object; and presenting indication information corresponding to the target media file in a voice conversation interface or a video conversation interface corresponding to the conversation, where the indication information is used to indicate that the target media file has been received.
[0114] In actual applications, if a terminal can send media files, it must be able to receive media files. During a conversation with a target conversation object, a target media file sent by the target conversation object is received; at this time, in the voice conversation interface or video conversation interface corresponding to the conversation, indication information corresponding to the target media file is presented to prompt the user that the media file has been received. The indication information may also be a thumbnail of an information display card corresponding to the media file. For example, when the media file is a picture, the indication information may be a thumbnail of the picture. Here, the voice conversation interface or video conversation interface of the terminal is not limited to presenting indication information corresponding to only one media file. When multiple media files are received, indication information corresponding to multiple media files may also be presented simultaneously.
[0115] In some embodiments, the terminal can view the detailed content of the received target media file in the following manner: receiving a trigger operation for the indication information; in response to the trigger operation, presenting a content interface corresponding to the target media file, and presenting the content of the target media file in the content interface.
[0116] In actual applications, when the user wants to view the details of the received media file, he can trigger it by clicking on the displayed indication information. For example, when the media file is a picture, the terminal receives the user's click operation on the indication information, and directly displays the picture in the form of a large picture on the voice conversation interface or the video conversation interface; or when the media file is a document, the terminal receives the user's click operation on the indication information, directly opens the document, and displays the detailed content contained in the document; or when the media file is a link file carrying a URL, the terminal receives the user's click operation on the indication information, directly opens the URL page and displays it.
[0117] For example, see Fig.10 , Fig.10 This is a flow chart of viewing a media file provided by an embodiment of the present invention. Here, the terminal receives a "picture" media file sent by the target session object, and presents the indication information corresponding to the "picture" media file on the video session interface, that is, the picture thumbnail corresponding to the "picture" media file, to prompt the user that the media file has been received. When a user clicks on the indication information of the "picture" media file, the "picture" media file is directly displayed in the form of a large picture on the video session interface.
[0118] In some embodiments, the terminal may also present a prompt function item corresponding to the target media file in the voice conversation interface or the video conversation interface corresponding to the conversation; and cancel the presented indication information in response to a trigger operation on the prompt function item.
[0119] In actual applications, the receiving terminal may present the prompt function item of the corresponding media file while presenting the indication information in the video session interface. When a click operation is received for the prompt function item, the presented indication information is cancelled. For example, a prompt function item of "check later" may be presented, and the user may cancel the presentation of the indication information of the media file by clicking the prompt function item of "check later". Specifically, the prompt function item may be displayed jointly with the indication information corresponding to the media file, for example, the prompt function item of "check later" may be presented on the indication information "picture thumbnail" of the media file picture.
[0120] For example, see Fig.11 , Fig.11 This is a flow chart of canceling the viewing of a media file provided by an embodiment of the present invention. Here, the terminal receives a "picture" media file sent by the target session object, and presents the indication information corresponding to the "picture" media file on the video session interface, that is, the picture thumbnail corresponding to the "picture" media file, to prompt the user to receive the media file. When the user does not want to view the "picture" media file immediately and believes that the indication information affects the session effect, the user can click on the "view later" prompt function item, and the terminal cancels the presentation of the indication information of the media file in response to the click operation on the prompt function item.
[0121] By applying the above embodiment, during a conversation, when a media file sent by a conversation object is received, the received media file can be directly viewed without exiting the conversation interface.
[0122] In some embodiments, the terminal may also present a first sliding indication icon corresponding to the session window in the file sending interface, and present a second sliding indication icon corresponding to the file sending cancel function item; when a sliding operation of the corresponding session window triggered by the first sliding indication icon is received, the file sending instruction is triggered; when a sliding operation of the corresponding file sending cancel function item triggered by the second sliding indication icon is received, the presented file sending interface is canceled, and the view interface is presented.
[0123] For example, see Fig.12 , Fig.12 This is a schematic diagram of a file sending interface provided by an embodiment of the present invention. Figure 3Here, in the file sending interface, the terminal presents a first sliding indication icon corresponding to the session window, and presents a second sliding indication icon corresponding to the file sending cancellation function item; when a sliding operation of the corresponding session window triggered by the first sliding indication icon is received, the file sending instruction is triggered; when a sliding operation of the corresponding file sending cancellation function item triggered by the second sliding indication icon is received, the presented file sending interface is canceled, and the view interface is presented. At this time, the problem of the user accidentally touching the file sending interface and causing it to be presented can be avoided.
[0124] By applying the above-mentioned embodiment of the present invention, a user's selection operation for a media file is received through a view interface including a session window that is in a session state with a session object, and a file sending interface including a session window corresponding to the media file is presented. Then, based on the file sending interface, a file sending instruction triggered based on the session window is received, and then, in response to the file sending instruction, the media file is sent to the session object. Here, file sending can be achieved by triggering the file sending instruction through the session window in the file sending interface triggered by the media file selection operation. The entire media file sending process no longer requires the user to select the friends to be sent in the friend list and then share the file. This reduces the operation path of file sending, improves the efficiency of file sending during the session, and thus improves the user experience.
[0125] The following takes the terminal running the instant messaging client to conduct a video conversation as an example to further explain the method for processing media files provided by the embodiment of the present invention. Fig.13 , Fig.13 The flowchart of the method for processing media files provided by the embodiment of the present invention is as follows:
[0126] Step 1301: The terminal runs an instant messaging client to implement a video conversation.
[0127] Here, the terminal includes the terminals of all the session members in the current video session state.
[0128] Step 1302: The sending terminal responds to the floating window running instruction for the video session interface and presents the video session window through the floating window.
[0129] Here, when the user needs to send a media file to a conversation object in a video conversation state, the user can exit the full-screen video conversation interface by clicking the run button of the floating window, thereby conveniently selecting the media file to be sent.
[0130] At this time, the terminal responds to the floating window running instruction triggered by the user through the floating window running button, and presents the video session window through the floating window, and the video session window floats on the view interface of the terminal.
[0131] Step 1303: Present a view interface including media files.
[0132] Here, a video conversation window in the form of a floating window is also presented in the view interface.
[0133] The view interface may be an interface containing media files in an instant messaging client, or an interface for presenting stored local media files on a terminal. Figure 5 , Figure 5 is a schematic diagram of a view interface including media files provided by an embodiment of the present invention, including: Figure 5 (1) shows an application client interface containing a "picture" media file, and Figure 5 (2) shows the view interface containing the local media file "Word document".
[0134] Step 1304: In response to the long press operation on the media file, present a file sending interface with a target transparency, and present a floating icon of the corresponding media file on the file sending interface.
[0135] Here, the terminal needs to detect the user's long press operation and the position of the long press operation in real time, and specifically, it can detect the changes in the x-axis and y-axis of the user's gesture contact point.
[0136] When it is detected that the user performs a long press operation on a media file, in response to the long press operation, a file sending interface with a preset transparency, such as a semi-transparent file sending interface, is presented, and a floating icon corresponding to the media file is presented on the file sending interface in a floating presentation manner.
[0137] In actual applications, the floating icon can be a thumbnail of the information display card corresponding to the media file. For example, if the media file is a picture, the floating icon can be a thumbnail of the picture; if the media file is a Word document, the floating icon can be a thumbnail of the information display card corresponding to the Word document. Figure 7 , Figure 7 is a schematic diagram of a floating icon corresponding to a media file provided by an embodiment of the present invention. Figure 7 (1) shows a floating icon of the media file "Picture", i.e., a thumbnail of the picture corresponding to the media file "Picture"; and Figure 7 (2) shows a floating icon of the media file "Word document", that is, a thumbnail of the information display card corresponding to the media file "Word document".
[0138] Step 1305: A drag operation on the floating icon is received.
[0139] Here, the terminal detects the positions of the long press operation and the drag operation of the user's gesture, and presents a floating icon that moves with the drag operation according to the changes in the x-axis and y-axis of the user's gesture contact point.
[0140] Step 1306: When it is detected that the floating icon is dragged to the area corresponding to the video session window, prompt information corresponding to the floating icon is presented.
[0141] Here, during the dragging process, when the terminal detects that the user's gesture touch point moves to the area corresponding to the video session window, it presents corresponding prompt information to indicate to the user that the media file has been successfully captured, such as by adjusting the border of the video session window to a preset color, or presenting a text prompt of "file captured", or presenting a flashing session window border, etc. For example, see Figure 8 , Figure 8 This is a schematic diagram of the prompt information corresponding to the floating icon provided by an embodiment of the present invention. Here, when the terminal detects that the floating icon is dragged to the area corresponding to the session window, it adjusts the color of the border of the session window to prompt the user that the floating icon is already in the area corresponding to the session window, and the user can continue to operate to trigger the file sending instruction.
[0142] Step 1307: When it is detected that the dragging operation on the floating icon is released, a file sending instruction triggered by the user is received, and the media file is uploaded to the server.
[0143] Here, when the user drags the floating icon corresponding to the media file to the area of the video session window, the file sending instruction can be triggered by releasing the dragging operation. At this time, after detecting that the user's dragging operation is cancelled, the terminal receives the file sending instruction for the media file and uploads the media file to the background server.
[0144] Step 1308: The server receives the media file uploaded by the sending terminal, and returns the upload progress information corresponding to the media file.
[0145] Step 1309: The sending terminal receives the upload progress information of the media file and presents corresponding progress prompt information.
[0146] Here, the terminal may present the progress prompt information in the video session window in the form of percentage or graphic progress bar.
[0147] Specifically, see Fig. 9 , Fig. 9This is a schematic diagram of the sending process of media files provided by an embodiment of the present invention. Here, taking the terminal running an instant messaging client to implement a video conversation as an example, when the user needs to send a media file, he exits the full-screen video conversation interface, selects the "picture" media file to be sent in the "friend circle" interface in the application client, and triggers the presentation of the file sending interface by long pressing the "picture" media file. At this time, while the terminal presents the file sending interface, a floating icon corresponding to the "picture" media file is suspended on the file sending interface, that is, a picture thumbnail corresponding to the media file "picture". The user's drag operation on the floating icon is received. When it is detected that the floating icon corresponding to the media file is dragged to the suspended video conversation window, the file sending instruction triggered by releasing the drag operation on the floating icon is received, so that in response to the sending instruction, the media file is sent to the conversation object; at the same time, the sending progress prompt information is presented in the conversation window, that is, a graphic progress bar with a percentage of "75%".
[0148] Step 1310: The server sends the received media file to the session object in the video session.
[0149] Step 1311: The receiving-side terminal of the conversation object receives the media file and presents indication information of the corresponding media file in the video conversation interface.
[0150] Here, when the receiving terminal receives a media file during the video session, it will present the indication information of the corresponding media file on the video session interface to prompt the user that the media file has been received. The indication information may also be a thumbnail of the information display card corresponding to the media file. For example, when the media file is a picture, the indication information may be a thumbnail of the picture. In actual applications, the video session interface of the receiving terminal is not limited to presenting the indication information corresponding to only one media file. When multiple media files are received, the indication information corresponding to multiple media files may also be presented simultaneously.
[0151] In actual applications, the receiving terminal may present the prompt function item of the corresponding media file while presenting the indication information in the video session interface. When a click operation is received for the prompt function item, the presented indication information is cancelled. For example, a prompt function item of "check later" may be presented, and the user may cancel the presentation of the indication information of the media file by clicking the prompt function item of "check later". Specifically, the prompt function item may be displayed jointly with the indication information corresponding to the media file, for example, the prompt function item of "check later" may be presented on the indication information "picture thumbnail" of the media file picture.
[0152] For example, see Fig.11 , Fig.11This is a flow chart of canceling the viewing of a media file provided by an embodiment of the present invention. Here, the terminal receives a "picture" media file sent by the target session object, and presents the indication information corresponding to the "picture" media file on the video session interface, that is, the picture thumbnail corresponding to the "picture" media file, to prompt the user to receive the media file. When the user does not want to view the "picture" media file immediately and believes that the indication information affects the session effect, the user can click on the "view later" prompt function item, and the terminal cancels the presentation of the indication information of the media file in response to the click operation on the prompt function item.
[0153] Step 1312: receiving a trigger operation for the indication information of the media file, presenting a content interface corresponding to the media file, and presenting the content of the media file in the content interface.
[0154] Here, when the user wants to view the details of the received media file, he can trigger it by clicking on the presented indication information. For example, when the media file is a picture, the terminal receives the user's click operation on the indication information, and directly displays the picture in the form of a large picture on the video session interface; or when the media file is a document, the terminal receives the user's click operation on the indication information, directly opens the document, and presents the detailed content contained in the document; or when the media file is a link file carrying a URL, the terminal receives the user's click operation on the indication information, directly opens the URL page and presents it.
[0155] For example, see Fig.10 , Fig.10 This is a flow chart of viewing a media file provided by an embodiment of the present invention. Here, the terminal receives a "picture" media file sent by the target session object, and presents the indication information corresponding to the "picture" media file on the video session interface, that is, the picture thumbnail corresponding to the "picture" media file, to prompt the user that the media file has been received. When a user clicks on the indication information of the "picture" media file, the "picture" media file is directly displayed in the form of a large picture on the video session interface.
[0156] By applying the above-mentioned embodiments of the present invention, when a user chats with a friend through a video conversation, the user only needs to drag the media file to the conversation window through a one-click drag operation to send the media file to the conversation object, thereby improving the efficiency of file sending; accordingly, the file receiving side can directly view the received media file in the full-screen video conversation interface without exiting the video conversation interface; in this way, the user experience of each role in the video conversation scenario is improved.
[0157] The following is a description of the media file processing device 355 provided in the embodiment of the present invention. In some embodiments, the media file processing device can be implemented in the form of a software module. Fig.14, Fig.14 3 is a schematic diagram of the structure of a media file processing device 355 provided in an embodiment of the present invention. The media file processing device 355 provided in an embodiment of the present invention includes:
[0158] The first presentation module 3551 is used to present a view interface containing media files, and in the view interface, present a conversation window in a voice conversation state or a video conversation state with the conversation object.
[0159] A second presentation module 3552, configured to present a file sending interface including the session window corresponding to the media file in response to a selection operation on the media file;
[0160] A receiving module 3553 is used to receive a file sending instruction triggered for the session window based on the file sending interface;
[0161] The sending module 3554 is used to send the media file to the session object in response to the file sending instruction.
[0162] In some embodiments, the first presentation module 3551 is further used to present a session window in a voice session state or a video session state with the session object through a floating window, so that the session window floats above the view interface.
[0163] In some embodiments, the second presentation module 3552 is further used to present a file sending interface corresponding to the media file with target transparency, and present the session window in the file sending interface;
[0164] The file sending interface may partially or completely cover the view interface.
[0165] In some embodiments, the apparatus further comprises:
[0166] A detection module, used for detecting a position of the long press operation when the selection operation is a long press operation;
[0167] When it is detected that the long press operation is released and the position of the long press operation is in the area corresponding to the conversation window, the file sending instruction is triggered.
[0168] In some embodiments, the apparatus further comprises:
[0169] The third presentation module is used to present a floating icon corresponding to the media file in the file sending interface, and the floating icon is suspended above the file sending interface.
[0170] In some embodiments, the apparatus further comprises:
[0171] An acquisition module, used to acquire an information display card corresponding to the media file;
[0172] The thumbnail of the information display card is used as a floating icon corresponding to the media file.
[0173] In some embodiments, the receiving module 3553 is further configured to receive a drag operation on the floating icon;
[0174] When the floating icon is dragged to the area corresponding to the session window and the dragging operation is released, the file sending instruction triggered by the release of the dragging operation on the floating icon is received.
[0175] In some embodiments, the receiving module 3553 is further configured to present prompt information corresponding to the floating icon when the floating icon is dragged to the area corresponding to the conversation window;
[0176] The prompt information is used to prompt that the floating icon is already in the area corresponding to the conversation window.
[0177] In some embodiments, the apparatus further comprises:
[0178] The fourth presentation module is used to present sending progress prompt information corresponding to the media file during the process of sending the media file to the session object.
[0179] In some embodiments, the apparatus further comprises:
[0180] A fifth presentation module, configured to receive a target media file sent by a target conversation object during a conversation with the target conversation object;
[0181] In the voice conversation interface or the video conversation interface corresponding to the conversation, indication information corresponding to the target media file is presented, where the indication information is used to indicate that the target media file has been received.
[0182] In some embodiments, the fifth presentation module is further configured to receive a trigger operation for the indication information;
[0183] In response to the trigger operation, a content interface corresponding to the target media file is presented, and the content of the target media file is presented in the content interface.
[0184] In some embodiments, the fifth presentation module is further configured to present a prompt function item corresponding to the target media file in a voice conversation interface or a video conversation interface corresponding to the conversation;
[0185] In response to a triggering operation on the prompt function item, the presented indication information is canceled.
[0186] In some embodiments, the apparatus further comprises:
[0187] a sixth presentation module, configured to present, in the file sending interface, a first sliding indication icon corresponding to the conversation window, and a second sliding indication icon corresponding to a file sending cancel function item;
[0188] When a sliding operation corresponding to the conversation window is received based on the first sliding indication icon, triggering the file sending instruction;
[0189] When a sliding operation corresponding to the file sending cancel function item triggered by the second sliding indication icon is received, the presented file sending interface is canceled and the view interface is presented.
[0190] An embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0191] A memory for storing executable instructions;
[0192] The processor is used to implement the media file processing method provided by the embodiment of the present invention when executing the executable instructions stored in the memory.
[0193] An embodiment of the present invention further provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implements the media file processing method provided by the embodiment of the present invention.
[0194] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0195] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0196] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0197] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0198] The above description is only an embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.
Claims
1. A method for processing a media file, It is characterized in that The method comprises: Presenting a view interface including media files, and presenting, in the view interface, a conversation window in a voice conversation state or a video conversation state with the conversation object through a floating window; In response to a selection operation on the media file, presenting a file sending interface corresponding to the media file and including the session window; Obtaining an information display card corresponding to the media file; using a thumbnail of the information display card as a floating icon corresponding to the media file; presenting a floating icon corresponding to the media file in the file sending interface, wherein the floating icon floats above the file sending interface; Based on the file sending interface, when the media file is dragged to the session window, a file sending instruction is triggered; In response to the file sending instruction, the media file is sent to the session object.
2. The method according to claim 1, It is characterized in that In the view interface, presenting a conversation window in a voice conversation state or a video conversation state with the conversation object through a floating window includes: A conversation window in a voice conversation state or a video conversation state with the conversation object is presented through a floating window, so that the conversation window is suspended above the view interface.
3. The method according to claim 1, It is characterized in that The presenting of the file sending interface corresponding to the media file and including the session window includes: Presenting a file sending interface corresponding to the media file with a target transparency, and presenting the session window in the file sending interface; The file sending interface may partially or completely cover the view interface.
4. The method according to claim 1, It is characterized in that After presenting the file sending interface corresponding to the media file and including the session window, the method further includes: When the selection operation is a long press operation, detecting the position of the long press operation; When it is detected that the long press operation is released and the position of the long press operation is in the area corresponding to the conversation window, the file sending instruction is triggered.
5. The method according to claim 1, It is characterized in that The triggering of a file sending instruction based on the file sending interface when the media file is dragged to the session window includes: Receiving a drag operation on the floating icon; When the floating icon is dragged to the area corresponding to the session window and the dragging operation is released, the file sending instruction triggered by the release of the dragging operation on the floating icon is received.
6. The method according to claim 5, It is characterized in that The method further comprises: When the floating icon is dragged to the area corresponding to the conversation window, prompt information corresponding to the floating icon is presented; The prompt information is used to prompt that the floating icon is already in the area corresponding to the conversation window.
7. The method according to claim 1, It is characterized in that The method further comprises: In the process of sending the media file to the session object, sending progress prompt information corresponding to the media file is presented.
8. The method according to claim 1, It is characterized in that The method further comprises: During a conversation with a target conversation object, receiving a target media file sent by the target conversation object; In a voice conversation interface or a video conversation interface corresponding to the conversation, indication information corresponding to the target media file is presented, where the indication information is used to indicate that the target media file has been received.
9. The method according to claim 8, It is characterized in that The method further comprises: receiving a trigger operation for the indication information; In response to the trigger operation, a content interface corresponding to the target media file is presented, and the content of the target media file is presented in the content interface.
10. The method according to claim 8, It is characterized in that The method further comprises: In the voice conversation interface or the video conversation interface corresponding to the conversation, presenting a prompt function item corresponding to the target media file; In response to a triggering operation on the prompt function item, the presented indication information is canceled.
11. The method according to claim 1, It is characterized in that The method further comprises: In the file sending interface, a first sliding indication icon corresponding to the conversation window is presented, and a second sliding indication icon corresponding to a file sending cancel function item is presented; When a sliding operation corresponding to the conversation window is received based on the first sliding indication icon, triggering the file sending instruction; When a sliding operation corresponding to the file sending cancel function item triggered by the second sliding indication icon is received, the presented file sending interface is canceled and the view interface is presented.
12. A media file processing device, It is characterized in that The device comprises: A first presentation module, configured to present a view interface including media files, and present, in the view interface, a conversation window in a voice conversation state or a video conversation state with a conversation object through a floating window; A second presentation module, configured to present a file sending interface including the session window corresponding to the media file in response to a selection operation on the media file; An acquisition module, used to acquire an information display card corresponding to the media file; and use a thumbnail of the information display card as a floating icon corresponding to the media file; A third presentation module, configured to present a floating icon corresponding to the media file in the file sending interface, wherein the floating icon is suspended above the file sending interface; A receiving module, configured to trigger a file sending instruction based on the file sending interface when the media file is dragged to the session window; The sending module is used to send the media file to the session object in response to the file sending instruction.
13. A computer-readable storage medium, It is characterized in that Executable instructions are stored, and when the executable instructions are executed, they are used to implement the media file processing method according to any one of claims 1 to 11.
