CN112291133B - Method, device, equipment and medium for sending files in cross-terminal mode - Google Patents
Method, device, equipment and medium for sending files in cross-terminal mode Download PDFInfo
- Publication number
- CN112291133B CN112291133B CN201910662333.3A CN201910662333A CN112291133B CN 112291133 B CN112291133 B CN 112291133B CN 201910662333 A CN201910662333 A CN 201910662333A CN 112291133 B CN112291133 B CN 112291133B
- Authority
- CN
- China
- Prior art keywords
- terminal
- file
- user
- sending
- authorization
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/10—Multimedia information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2149—Restricted operating environment
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method, a device, equipment and a storage medium for sending files across terminals, wherein the method comprises the following steps: the method comprises the steps that a first terminal displays a chat session interface of a social client, wherein the chat session interface is an interface for chatting between a home terminal account and an opposite terminal account; when the chat session interface receives trigger operation of a cross-terminal sending function, the first terminal acquires preview information of a file on the second terminal according to the trigger operation; the first terminal displays a file list, and the file list is used for displaying preview information of files on the second terminal; and when receiving the selection operation on the file list, the first terminal sends the selected file to the opposite terminal account according to the selection operation. The file preview information on the second terminal is displayed on the first terminal by triggering the cross-terminal sending function, and a user can send the file on the second terminal through the first terminal only by selecting the file to be sent.
Description
Technical Field
The present application relates to the field of network communications, and in particular, to a method, an apparatus, a device, and a storage medium for sending a file across terminals.
Background
The instant messenger allows the user to use the same instant messenger on at least one terminal, for example, user a may use the same instant messenger on a smart phone and a personal computer at the same time, user a sends a message to user B using the instant messenger installed on the personal computer, and the message types include: text, pictures, video, audio, expressions, voice, files, etc.
When a user a sends a message to a user B through an instant messaging program installed on a personal computer, for example, the user a wants to send a mobile phone picture to the user B, the mobile phone picture is stored in a mobile phone of the user a, the user a needs to open the instant messaging program in the mobile phone, find a message session for sending the message to the user B on the mobile phone, call an album in the mobile phone through the instant messaging program, select a picture to be sent from the album, and send the picture to the user B.
Based on the above situation, when the user a sends the file stored on another terminal to the user B, the user a needs to switch between different terminals, the steps are complicated, and the process of the user a performing message transmission with the user B on the original terminal is interrupted.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for sending a file across terminals, which can solve the problem that in the related technology, when a user sends a file stored on another terminal, switching between different terminals is needed. The technical scheme is as follows:
according to an aspect of the present application, there is provided a method for sending a file across terminals, the method including:
the method comprises the steps that a first terminal displays a chat session interface of a social client, wherein the chat session interface is an interface for chatting between a home terminal account and an opposite terminal account;
when the chat session interface receives trigger operation of a cross-terminal sending function, the first terminal acquires preview information of a file on the second terminal according to the trigger operation;
the first terminal displays a file list, and the file list is used for displaying preview information of files on the second terminal;
and when receiving the selection operation on the file list, the first terminal sends the selected file to the opposite terminal account according to the selection operation.
According to another aspect of the present application, there is provided an apparatus for transmitting a file across terminals, the apparatus including:
the display module is used for displaying a chat session interface of the social client by the first terminal, wherein the chat session interface is an interface for chatting between a home terminal account and an opposite terminal account;
The receiving module is used for acquiring preview information of a file on a second terminal according to the triggering operation when the first terminal receives the triggering operation of the cross-terminal sending function on the chat session interface;
the display module is further configured to display a file list on the first terminal, where the file list is used to display preview information of a file on the second terminal;
the receiving module is further configured to, when receiving the selection operation on the file list, the first terminal sends the selected file to the opposite-end account according to the selection operation.
According to another aspect of the present application, there is provided a computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the method of sending files across terminals as described above.
According to another aspect of the present application, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions that is loaded and executed by the processor to implement the method of sending files across terminals as described above.
The beneficial effects that technical scheme that this application embodiment brought include at least:
by providing the cross-terminal sending function in the chat session interface of the instant messaging program, when a file required to be sent by a user is on the second terminal, the file preview information on the second terminal is displayed on the first terminal by triggering the cross-terminal sending function, the user can send the file on the second terminal through the first terminal only by selecting the file required to be sent, and the user is not required to switch between different terminals.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a chat session interface for sending pictures across terminals according to an exemplary embodiment of the present application;
FIG. 2 is a block diagram of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method for sending a file across endpoints provided by an exemplary embodiment of the present application;
FIG. 4 is a diagram illustrating a chat session interface on a first terminal provided by an exemplary embodiment of the application;
FIG. 5 is an interface diagram of a first terminal displaying a list of preview documents according to an exemplary embodiment of the present application;
FIG. 6 is an interface diagram of a first terminal displaying a list of preview documents according to another exemplary embodiment of the present application;
fig. 7 is a schematic structural diagram of a connection between a first terminal and a second terminal according to an exemplary embodiment of the present application;
fig. 8 is a schematic interface diagram of a first terminal displaying an updated file list according to an exemplary embodiment of the present application;
FIG. 9 is a schematic illustration of an authorization interface of a first terminal provided by an exemplary embodiment of the present application;
FIG. 10 is a schematic illustration of an authorization interface of a second terminal provided by an exemplary embodiment of the present application;
fig. 11 is a flowchart of a method for a second terminal to authorize a first terminal according to an example embodiment of the present application;
FIG. 12 is a block diagram illustrating an apparatus for sending a file across terminals according to an exemplary embodiment of the present application;
fig. 13 is a schematic device structure diagram of a computer apparatus according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application will be described:
the instant messaging program: refers to an application program for message transmission in an Instant Messaging (IM) manner, and the instant messaging program allows a user to use different terminals at the same time. Instant messaging refers to a terminal service that allows at least two people to use a network to transmit messages in real time, and a user can communicate with other users by inputting text, sending messages in voice form, or starting a video function. Alternatively, the user can send at least one type of information such as files (e.g., documents, data tables, slides), pictures, audio, video, emoticons, animations, etc. to other users through the instant messaging program. Alternatively, the above type of information may be stored in a terminal installed with instant messaging, which realizes sending the above type of information by calling a corresponding application program.
Fig. 1 is a diagram illustrating a chat session interface for sending pictures across terminals in the related art according to an exemplary embodiment of the present application.
Schematically, the description will be given taking an example in which a picture is transmitted and the terminal is a personal computer, as shown in fig. 1 (a). A picture sending control 101 is displayed on the chat session interface 10, and optionally, the picture sending control 101 is used for sending a picture on a terminal where the instant messaging program is located; or sending the picture by calling an application program on the terminal; alternatively, in the case where the terminal is connected to a network, the send picture control 101 is used to send a network picture.
The user a sends a message to the user B through the instant messaging program, and optionally, the message type includes: at least one of text, pictures, emoticons (including GIF emoticons, facial characters, etc.), files, virtual item packs, audio, video, voice messages. Illustratively, the user name of the user B is small a, and in some embodiments, "small K" may also be a nickname of the user B, or a remark name set by the user a in the contact list, which is not limited in this application. When the user a sends a message of a picture type to the user B, the user a searches for a picture to be sent by calling an application program through the instant messaging program, and optionally, the called application program may be an album application program in a personal computer system, or the called application program may be an application program installed in the personal computer system (for example, an application program capable of editing or beautifying a picture). In some embodiments, the album application is also named gallery or camera roll, which is not limited by this application. If the picture sent by the user a to the user B is stored in another terminal of the user a, the user a needs to send the picture to the user B through another terminal, and illustratively, the another terminal may be a smart phone or a tablet computer. The other terminal is a smart phone for example. Illustratively, the user a needs to open the same instant messaging program in the smart phone, find a session corresponding to the user B when sending the message in the message list, and select the target picture to send.
As shown in fig. 1 (b), a chat session interface 11 of a smartphone displays: a send picture control 102, a target picture 103, a send control 104, and a sent picture 105.
The send picture control 102 is configured to send a picture stored in the smart phone, and by invoking a local application (for example, an album) in the smart phone, optionally, the user a may select at least one picture in a picture list to send, and illustratively, the user a selects a target picture 103 in the picture list. Optionally, the number of pictures that need to be sent is displayed on the send picture control 102, the target picture 103, and the send control 104. Illustratively, the user a selects one target picture 103, and the numbers 1 are displayed on the sending picture control 102, the target picture 103, and the sending control 104, optionally, the number of the target pictures is displayed in the form of a corner mark on the sending picture control 102, and the number of the pictures is displayed in the form of characters on the sending control 104, which is not limited in this application. The user A sends the target picture 103 by clicking the sending control 104, and after the picture is sent successfully, the sent picture 105 is displayed in a chat interface between the user A and the user B.
Based on the above situation, when the file that the user a needs to send is stored in another terminal, the user a needs to continue sending the target file (i.e. the selected file) to the user B through another terminal, the steps are cumbersome, and the process of the user a performing message transmission with the user B on the original terminal is interrupted.
The method provided by the embodiment of the application can be applied to the situation that when a user sends files stored on different terminals, the message transmission process of the user on the original terminal is not required to be interrupted.
Fig. 2 shows a block diagram of a computer system provided in an exemplary embodiment of the present application. The computer system 100 includes: a first terminal 120, a server 140, and a second terminal 160.
The first terminal 120 is installed and operated with an instant messenger program or a program supporting an instant messenger function. The first terminal 120 is a terminal used by a user, and optionally, the user enters an instant messaging program by logging in a user account. The first terminal 120 stores a file that the user needs to send, and optionally, the user sends the selected file (i.e., the target file) after performing an authorization operation through the instant messaging program on the first terminal 120, or the user directly sends the target file through the instant messaging program on the first terminal 120.
The first terminal 120 is connected to the server 140 through a wireless network or a wired network.
The server 140 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. Illustratively, the server 140 includes a processor 144 and a memory 142, the memory 142 in turn including a display module 1421, a receiving and sending module 1422, and an acquisition module 1423. The server 140 is configured to provide a background service for supporting the instant messaging program, illustratively, a file storage service, a communication channel establishment service, and a file update service. Alternatively, the server 140 undertakes the primary computing job and the first terminal 120 and the second terminal 160 undertakes the secondary computing job; alternatively, the server 140 undertakes the secondary computing work and the first terminal 120 and the second terminal 160 undertakes the primary computing work; alternatively, the server 140, the first terminal 120, and the second terminal 160 perform cooperative computing by using a distributed computing architecture.
The second terminal 160 is installed and operated with an instant messenger program or a program supporting an instant messenger function, and the second terminal 160 is also a terminal used by a user, and optionally, the user can use the same instant messenger program on both the first terminal 120 and the second terminal 160. Optionally, the user may send the target file stored in the first terminal 120 by downloading the target file in the first terminal 120 to the second terminal 160, or the second terminal 160 controls the first terminal 120 to send the target file.
Alternatively, the instant messenger programs installed on the first terminal 120 and the second terminal 160 may be the same or different, or the instant messenger programs installed on the two terminals may be the same type of instant messenger program in different control systems. The first terminal 120 may generally refer to one of a plurality of terminals, and the second terminal 160 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 120 and the second terminal 160. Optionally, the device types of the first terminal 120 and the second terminal 160 are the same or different, and the embodiments in this application are described in the context of the device types of the first terminal 120 and the second terminal 160 being different. The device types include: at least one of a smartphone, a tablet, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer. The following embodiments are exemplified in the case where the terminal includes a smartphone and a personal computer.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.
Fig. 3 illustrates a method for sending a file across terminals according to an exemplary embodiment of the present application, where the method is applied to the first terminal 120 or the second terminal 160 in the computer system shown in fig. 2 or other terminals in the computer system. The method comprises the following steps:
Optionally, the first terminal 120 is a mobile phone, a tablet computer, a notebook computer or a desktop computer. Illustratively, a chat session interface with social clients is displayed on a desktop computer. The home terminal refers to a terminal currently used by the user, and is schematically a terminal used by the user a. The opposite terminal refers to a terminal used by a chat object for chatting with a user, illustratively, the opposite terminal is a terminal used by a user B, and optionally, the type of the terminal used by the user B may be the same as or different from the type of the terminal used by the user a. In one example, user a chats with user B (user B via a mobile phone) via a desktop computer, and the chat session interface is an interface for chatting between an account of user a in an instant messenger (running on the desktop computer) and an account of user B (running on the mobile phone) in the instant messenger.
In the embodiment of the present application, the first terminal 120 is a personal computer of the user a, and the second terminal 160 is a mobile phone of the user a.
Fig. 4 shows a schematic diagram of a chat session interface on a personal computer, provided in an exemplary embodiment of the present application, where a picture control 201, a picture sending mode 202, and chat records of a user a and a user B are displayed on the chat session interface 200, and schematically, a nickname of the user B is a small K.
A user a may send a message, such as a picture or a file, to a user B through an instant messaging program, where illustratively, when the user a sends the picture to the user B through the instant messaging program, the user a needs to perform a selection operation on the picture control 201, and optionally, the selection operation is a single-click operation, a double-click operation, a long-press operation, a drag operation, or a slide operation, which is not limited in this application. In the embodiment of the present application, the selection operation is a single-click operation as an example.
Optionally, the trigger operation is a single-click operation, a double-click operation, a drag operation, a slide operation, or a long-press operation, which is not limited in this application. Optionally, there is a control of the cross-end sending function on the chat session interface in the instant messaging program on the first terminal 120, or the cross-end sending function is triggered by performing a specific trigger operation on the chat session interface (for example, the user triggers the cross-end sending function by shaking the mobile phone).
In one example, the user a performs a trigger operation on a control of the cross-end sending function on a personal computer, and acquires file preview information on the second terminal 160 (for example, a mobile phone) according to the trigger operation. Optionally, a social client corresponding to the instant messenger program on the first terminal 120 is simultaneously run on the second terminal 160, or a same type of social client or a non-same type of social client corresponding to the instant messenger program on the first terminal 120 is run on the second terminal 160, or a plug-in or an applet (applet refers to a program running depending on a host program) supporting a cross-terminal function is run on the second terminal 160, and this embodiment of the present application is described by taking as an example that a social client corresponding to the instant messenger program on the first terminal 120 is simultaneously run on the second terminal 160.
Alternatively, user a may enter the instant messenger by logging into an account on the instant messenger. Optionally, the account is obtained by the user a through a registration operation, or the account is an account corresponding to the user a through another application program (for example, an account corresponding to a mailbox application program). Optionally, the account is registered by user personal information, for example, a social client account corresponding to the instant messaging program is registered by a communication authentication number, a mailbox address, an identity card number, and the like of the user a.
For example, an instant messenger program T is run on a personal computer, a user a enters the instant messenger program T by logging in a social client account corresponding to the instant messenger program T, the instant messenger program T (i.e., a mobile phone version of the instant messenger program T) is also run on a mobile phone, and the user a can also log in the social client account of the user a to enter the instant messenger program T on the mobile phone.
As shown in fig. 4, when the user a clicks the picture control 201, a picture transmission mode 202 is displayed on the chat session interface 200. Optionally, the picture sending mode 202 is displayed in a message prompt box, or different controls are provided for different picture sending modes 202, or different picture sending modes 202 are displayed by performing different operations on a terminal installed with an instant messaging program, for example, a picture stored in the terminal is sent to the user B by a sliding operation. Illustratively, the send picture mode 202 is displayed in the form of a message prompt box.
Optionally, the sending picture mode 202 includes at least one of the following modes: sending local pictures 2021, sending other terminal pictures 2022, selecting pictures 2023 from other programs, searching from the internet (not shown in the figure). Sending the local picture 2021 refers to sending a picture stored on a terminal where the instant messaging is located, and the instant messaging program selects a target picture by calling a corresponding picture application program and sends the picture; sending other terminal pictures 2022 means that the target picture is stored in other terminals, and the other terminals are different from the terminals currently used by the user a; selecting 2023 from another program means selecting a target picture to be sent from another program on the terminal currently used by the user a, and optionally, the another program is a program different from the instant messaging program used by the user a, or a program which is the same type as the instant messaging program used by the user a but different from the instant messaging program used by the user a; searching from the internet means that the user A calls a browser in the terminal to search a target picture from the internet through an instant messaging program and sends the target picture.
Illustratively, the user a obtains file preview information on the second terminal 160 by selecting to send the other terminal picture 2022.
Illustratively, the list of files is displayed on user A's personal computer. Optionally, the file list is used to display preview information of the file on the second terminal 160, or to display details of the file on the second terminal 160 (for example, if the type of the file is a document, the contents of the text included in the document are displayed).
Taking the example that the user a sends a picture on the second terminal 160 as an example, fig. 5 shows an interface schematic diagram of the first terminal displaying the file preview information on the second terminal according to an exemplary embodiment of the present application. The file preview information interface 300 displays: a sending control 301, a cancel control 302, preview information 303, sending terminal information 304, and a set 305 corresponding to files. The sending control 301 is used for sending the target picture; the cancel control 302 is used for canceling sending the target picture or quitting the interface for loading the preview information; the preview information 303 is used for displaying thumbnails of pictures in the mobile phone album, and optionally, the preview information 303 can also be used for displaying names of the pictures in the mobile phone album, for example, the names of the pictures are fig. 30; the sending terminal information 304 is used to indicate a terminal where a file to be sent is located, for example, a picture of a sending mobile phone (a mobile phone with a small C), and in some embodiments, the sending terminal information 304 may not be displayed in a file list, which is not limited in this application; the file correspondence set 305 is used to indicate the name of the storage location on the second terminal 160 where the file needs to be sent, for example, the name of the storage location on the second terminal 160 where the picture to be sent by the user a is a camera film.
Optionally, thumbnails of the recently added pictures in the mobile phone album are displayed on the personal computer. Alternatively, the thumbnails are displayed in an array or in a collection. Illustratively, the thumbnails are displayed in a 6 × 6 array. Alternatively, the array may be an asymmetric array, for example, in the form of a 7 x 4 array. This is not limited in this application. The thumbnails are illustratively displayed in sets, for example, images of people and scenery types in the recently added images form two sets respectively, and the user a searches for the set to which the target image belongs. In one example, 50 recently added pictures on the mobile phone of the user a are displayed on the personal computer in an array form, in some embodiments, the number of the recently added pictures on the mobile phone of the user a displayed on the personal computer is 100, and the number of the recently added pictures displayed on the personal computer is not limited in the application. In some embodiments, the user a may continue to load the thumbnail of the picture on the mobile phone album by sliding the preview information interface 300 or dragging the sliding bar on the preview information interface 300, which is not limited in the present application.
Alternatively, the user a may also choose to send a file stored on the second terminal 160, where the file refers to a file with a format different from a picture format, such as video, audio, document, data table, animation, etc.
Fig. 6 illustrates a first terminal displaying file preview information on a second terminal provided by another exemplary embodiment of the present application.
As shown in fig. 6 (a), the file preview information interface 310 displays: a send control 301, a cancel control 302, sending terminal information 304, a set 305 corresponding to a file, and preview information 306. Illustratively, the collection 305 of file correspondences is a folder. Optionally, the preview information 306 includes a file name, illustratively file 1, and a schematic representation representing the folder. Optionally, the preview information 306 may also display different schematic diagrams according to different files, for example, when a file is a video, a schematic diagram representing the correspondence of the video is displayed.
Alternatively, the file preview information in the file list may be displayed in a list form, as shown in fig. 6 (b). Displayed on the document preview information interface 320 are: a sending control 301, a canceling control 302, sending terminal information 304, a set 305 corresponding to a file, and preview information 307. Optionally, the preview information 307 includes: at least one of the name of the file, the creation time, the last modification time, the format of the file and the size of the file (namely the space of the file occupying the memory of the terminal). Optionally, the display form of the file preview information on the file list is set in the instant messaging program (default setting), or the terminal displays the file in different forms according to the type of the file, or the user sets the display form of the preview information according to personal habits or preferences.
Optionally, the user a performs a selection operation on a file displayed in the file list, and the first terminal 120 downloads the selected file in the file list from the second terminal 160 to the first terminal 120 according to the selection operation.
Fig. 7 illustrates a schematic structural diagram of a connection between a first terminal and a second terminal according to an exemplary embodiment of the present application.
A transmission channel is established between the first terminal 120 and the second terminal 160 through which the information instructions are transmitted. Illustratively, the second terminal 160 sends a file to the first terminal 120. The first terminal 120 receives a selection operation on the preview information of the selected file, and sends a download request to the second terminal 160 according to the selection operation, which may be, optionally, a single-click operation, a double-click operation, a sliding operation, a dragging operation, or a long-press operation, which is not limited in this application. The second terminal 160 sends a download Address to the first terminal 120 according to the download request, and optionally, the download Address is an Internet Protocol Address (IP Address). The first terminal 120 receives the download address of the second terminal 160, and optionally, the download address includes a storage location of the target file (i.e. the selected file) on the second terminal 160, for example, in a picture folder of the second terminal 160. According to the download address, the first terminal 120 downloads the target file in the file list.
Illustratively, after the user a selects the target file, the target file will be downloaded to the personal computer, for example, the user a selects the file with the file name corresponding to the file 1. Optionally, the target file is stored in a folder of a personal computer of the user a, where the folder is a default folder of the personal computer, or a target folder which is created by the user a and can be used for downloading the target file, or a folder for storing the instant messaging program, or a folder corresponding to the instant messaging program and storing the downloaded file.
After the object file is downloaded to the first terminal 120, the first terminal 120 sends the object file to the third terminal 180, where the third terminal 180 is a terminal used by the user B, that is, the user a sends the downloaded object file to the terminal used by the user B, that is, sends the downloaded object file to an opposite-end account (a social client account corresponding to the user B in the instant messaging program). Illustratively, when user a clicks on send control 301, the sent object file is an object file downloaded from a cell phone to a personal computer.
In summary, according to the method provided in this embodiment, by providing the cross-terminal sending function in the chat session interface of the instant messaging program, when a file that a user needs to send is on the second terminal, by triggering the cross-terminal sending function to display the file preview information on the second terminal on the first terminal, the user can send the file on the second terminal through the first terminal only by selecting the file that needs to be sent, and the user does not need to switch between different terminals.
Optionally, the first terminal 120 may further send, after receiving the selection operation on the preview information of the selected file, a transmission instruction to the second terminal 160, where the transmission instruction is used to instruct the second terminal 160 to send the selected file to the social account. Illustratively, after the user a selects the target file (i.e., the selected file) through the instant messenger program on the personal computer, the user a sends a transmission instruction to the second terminal 160 (e.g., a mobile phone used by the user a), and the second terminal 160 sends the target file according to the transmission instruction, i.e., the target file is sent from the mobile phone of the user a to the third terminal 180.
Optionally, in the process, the sending progress of the target file may be displayed on the first terminal 120 (for example, the sending progress of the target file is represented by a progress bar or a percentage), or the sending progress of the virtual target file may be displayed (for example, the content: sending, please ask later is displayed on the first terminal 120), or the sending progress of the target file may not be displayed. This is not a limitation of the present application.
The method can be applied to the following scenes: first, when the second terminal 160 is connected to the internet network or the mobile communication network, the first terminal 120 is connected with the second terminal 160; second, the first terminal 120 is connected with the second terminal 160 through the short-range wireless communication technology.
Alternatively, the second terminal 160 may be connected to the internet network through a world wide web, a metropolitan area network, an intranet, a Wireless local area network or a WiFi (Wireless Fidelity) network, or a network cable. Optionally, the second terminal 160 implements the above network model by using an online Peer-to-Peer technology (Peer, P2P), which refers to a distributed application architecture that distributes tasks and work load among peers (peers), and is a networking or network model formed by Peer-to-Peer computer models in the application layer. In the network mode of a Client (Client) and a Server (Server), a special Server is adopted for data distribution, a plurality of clients acquire data from the Server, and in the P2P network architecture, each Client is a Server without a central Server, and can obtain services (acquire data) from other clients and provide services (send data) to other clients.
Optionally, the second terminal 160 may also be connected with the first terminal 120 through a mobile communication network. Illustratively, the mobile communication network is a respective generation mobile communication network (2G, or 3G, or 4G, or 5G, or a combination thereof).
Alternatively, when the first terminal 120 and the second terminal 160 are connected, the two terminals may be located under the same network or under different networks. Illustratively, the first terminal 120 is a laptop, the second terminal 160 is a mobile phone, the first terminal 120 is connected to the internet network through a WiFi network, the second terminal 160 is connected to a mobile communication network, and the first terminal 120 and the second terminal 160 can be connected. Illustratively, the first terminal 120 is a desktop computer, the second terminal 160 is a tablet computer, the first terminal 120 is connected to the internet network through a network cable, the second terminal 160 is connected to the internet network through a WiFi network, and the first terminal 120 and the second terminal 160 can be connected.
Optionally, the short-range wireless communication technology is a bluetooth technology, a Zigbee technology, an Airdrop technology, and the like, and illustratively, the first terminal 120 is a tablet computer, the second terminal 160 is a mobile phone, and the first terminal 120 and the second terminal 160 are connected by starting a bluetooth function in the terminals.
When the first terminal 120 connects with the second terminal 160 in the above method, the connection may be periodic, continuous, or triggered. Illustratively, the connection between the first terminal 120 and the second terminal 160 is periodic, e.g., the first terminal 120 and the second terminal are disconnected every 10 minutes and need to be reconnected; the connection between the first terminal 120 and the second terminal 160 is triggered, for example, there is a connection triggering control on the chat session interface, and after the user needs to perform triggering operation on the control, the first terminal 120 and the second terminal 160 are connected; the connection between the first terminal 120 and the second terminal 160 is continuous, for example, the first terminal 120 and the second terminal 160 are always connected, and if any one of the first terminal 120 or the second terminal 160 is disconnected from the internet network or the mobile communication network, or the short-distance communication mode is disconnected, the first terminal 120 and the second terminal 160 are disconnected.
Alternatively, if a new file is added to the second terminal 160 after the first terminal 120 and the second terminal 160 are connected, the first terminal 120 will synchronously display the newly added file. Upon receiving the update signal of the second terminal 160, the newly added file is displayed on the file list. Wherein the newly added file is a file newly generated in the process of acquiring preview information of the file on the second terminal 160.
Illustratively, the first terminal 120 is a personal computer of user A and the second terminal 160 is a handset of user A. The description will be given by taking the example that the newly added file is a picture. After the personal computer and the mobile phone of the user a are connected, if a picture is newly added to the mobile phone album of the user a, the update interface 330 is displayed on the personal computer. FIG. 8 illustrates a schematic diagram of an update interface on a personal computer provided by an exemplary embodiment of the present application. Displayed on the update interface 330 are: a sending control 301, a canceling control 302, sending terminal information 304, a set 308 corresponding to an update file, and update information 309. The corresponding set 308 of update files is used to indicate the state of the corresponding file or folder when the second terminal 160 generates the update signal, and optionally, a loading identifier (e.g., a circular loading identifier) is also displayed in the corresponding set 308 of update files. The update information 309 is used to indicate that a picture newly added to the mobile phone is displayed on the personal computer of the user a. Optionally, the newly added picture is a picture that the user a adds to the mobile phone album by intercepting the screen, or the newly added picture is a picture that the user a receives the picture and stores the picture in the mobile phone album, which is not limited in the present application.
Optionally, all the newly added pictures in the second terminal 160 are displayed simultaneously in the file list displayed by the first terminal 120, or the newly added pictures in the second terminal 160 are displayed in batches in the file list displayed by the first terminal 120. Optionally, the user may set the number of the newly added pictures displayed in the file list by himself, or the first terminal 120 intelligently controls the number of the newly added pictures displayed in the file list according to the number of the newly added pictures, or the file list already set by the first terminal 120 may display the number of the newly added pictures (default setting).
Alternatively, the second terminal 160 grants an access right with a limited condition to the first terminal 120 before the first terminal 120 makes a connection with the second terminal 160. Illustratively, the first terminal 120 is a personal computer, the second terminal 160 is a mobile phone, when the file sent by the user a to the user B is on the mobile phone of the user a, the user a is required to perform an authorization operation on the mobile phone, and the personal computer obtains a valid right to access the storage location of the file on the mobile phone of the user a.
Fig. 11 shows a flowchart of a method for authorizing, by a second terminal, a first terminal according to an exemplary embodiment of the present application. The method is applied to the first terminal 120 or the second terminal 160 in the computer system or other terminals in the computer system as shown in fig. 2. The method comprises the following steps:
Step 1101, receiving an authorization operation on a chat session interface.
Optionally, the second terminal 160 grants access rights with limited conditions to the first terminal 120, the access rights being for accessing a storage location of the file on the second terminal 160. Optionally, the limited conditions include: at least one of a limited time and a limited number of times. The limited number of times means that after the second terminal 160 performs an authorization operation to the first terminal 120, the first terminal 120 can access a storage location of the file on the second terminal 160 within the limited number of times; the limited time refers to a time period after the second terminal 160 authorizes the first terminal 120, and the first terminal 120 can access the storage location of the file on the second terminal 160 within a certain time period.
Alternatively, the second terminal 160 grants the access right with the limited condition to the first terminal 120 in three forms.
First, when receiving the first authorization indication of the second terminal 160, the first terminal 120 obtains a valid right with one-time access to the storage location of the file on the second terminal 160 according to the first authorization indication.
In one example, user a performs an authorization operation on a cell phone, by which the personal computer can obtain valid rights to access a storage location of a file on the cell phone only once.
Secondly, when receiving a second authorization instruction of the second terminal 160, the first terminal 120 obtains a valid permission having n times of access to a storage location of the file on the second terminal 160 according to the second authorization instruction, where n > 1, and n is an integer.
Illustratively, n has a value of 3, and the number of times that the first terminal 120 can access the storage location of the file on the second terminal 160 after the second terminal 160 authorizes the first terminal 120 is three times. If the limited number of times is exceeded, the first terminal 120 cannot access the storage location of the file on the second terminal 160, and the second terminal 160 is required to perform the authorization operation again.
Thirdly, when receiving a third authorization instruction of the second terminal 160, the first terminal 120 obtains a valid right having a storage location of the access file on the second terminal 160 within a duration t according to the third authorization instruction, where t > 0.
Illustratively, t has a value of 10, and after the second terminal 160 authorizes the first terminal 120, the first terminal 120 can access the storage location of the file on the second terminal 160 within 10 minutes. If the time period exceeds 10 minutes, the first terminal 120 cannot access the storage location of the file on the second terminal 160, and the second terminal 160 is required to perform the authorization operation again.
Taking the example that the first terminal 120 is a personal computer, the second terminal 160 is a mobile phone, and the file to be sent is a picture, in one example, the user a performs an authorization operation on the mobile phone, where the authorization operation is used to grant the personal computer valid permission to access the storage location (e.g., a mobile phone album) of the picture on the mobile phone, and the limited condition of the valid permission is that the personal computer can access the storage location of the picture on the mobile phone within 30 minutes.
Illustratively, the first terminal 120 is a personal computer. An authorization interface is displayed in the authorization operation of the user a, as shown in fig. 9.
Fig. 9 is a diagram illustrating an authorization interface of a first terminal according to an exemplary embodiment of the present application.
A prompt message 401 is displayed on the authorization interface 400 of the first terminal 120, where the prompt message 401 is used to prompt the user a to perform an authorization operation on the mobile phone, for example, please open a program mobile phone version to confirm authorization. Optionally, sending terminal information 304 is further displayed on the authorization interface 400 of the first terminal 120, and is used to indicate a terminal where the file that needs to be sent is located, and a name of another terminal, and optionally, the sending terminal information 304 is: and sending the mobile phone picture (the mobile phone of the small C). In some embodiments, the prompt 401 may be a request to open a tablet version of the program to confirm authorization; the transmission terminal information 304 is: and sending the picture of the tablet computer, and connecting the picture of the tablet computer with the tablet computer of the small C. The content of the prompt message and the position of the prompt message are not limited in the present application. Optionally, the authorization interface 400 of the first terminal 120 displays different prompt messages 401 according to authorization operations between different terminals, or the user may set the prompt messages 401 according to his/her preference, or the server displays the prompt messages 401 that are the same as or similar to the latest authorization operation according to the latest authorization operation of the user, which is not limited in this application.
Optionally, the first terminal 120 receives an indication of authorization of the second terminal 160. Illustratively, the first terminal 120 is a personal computer and the second terminal 160 is a cell phone.
And step 1104, granting the access right with the limited condition to the first terminal according to the authorization indication.
Alternatively, the second terminal 160 grants the access right with the limited condition to the first terminal 120 according to the authorization indication, as shown in fig. 10.
Fig. 10 is a diagram illustrating an authorization interface of a second terminal according to an exemplary embodiment of the present application. When the user a sends an authorization request to the second terminal 160 through the first terminal 120, the user a opens the instant messenger program on the second terminal 160, as shown in fig. 10 (a). Illustratively, the second terminal 160 is a handset. Optionally, the same or different instant messaging program as that of the first terminal 120 is installed on the mobile phone, and the example of installing the same instant messaging program as that of the first terminal 120 on the mobile phone is described. A chat list interface 500 is displayed on the mobile phone, and an authorization prompt message 501 is displayed on the chat list interface 500, where the authorization prompt message 501 is used to prompt the user a to grant an access right with a limited condition to the first terminal 120. Optionally, the content of the prompt message 501 is: is the computer allowed to export the mobile phone album? And a "yes" or "no" option, in some embodiments, the content of the hint information 501 may also be: please allow the computer to access the phone album or the computer is connected to the phone. The content of the prompt information 501 is not limited in the present application.
Illustratively, user A clicks on the "YES" option, and the page jumps to the connection interface 510, as shown in FIG. 10 (b). A connection prompt 502 and a disconnection control 503 are displayed on the connection interface 510. The connection prompt message 502 is used to indicate that two terminals used by the user a are being connected, optionally, the content of the connection prompt message 502 includes at least one of a picture and a text, and the picture content may be schematic diagrams of the two terminals that are connected, such as a computer and a mobile phone; the text content is: please later in the connection. Optionally, the connection prompting information 502 may actually have different contents according to different connection terminals, and the contents of the connection prompting information 502 are not limited in the present application.
The disconnect control 503 is used to cancel the connection of the first terminal 120 and the second terminal 160.
When the first terminal 120 and the second terminal 160 are successfully connected, a jump is made to the successful connection interface 420, as shown in (c) of fig. 10. On the successful connect interface 520 are displayed: disconnect control 503 and connect prompt message 504. The disconnection control 503 is used to disconnect the first terminal 120 and the second terminal 160 at any time, and after the disconnection, the first terminal 120 cannot access the program on the second terminal 160; the connection prompt message 504 is used to prompt the user that the first terminal 120 and the second terminal 160 are successfully connected. Optionally, the content of the connection prompt information 504 includes at least one of a picture and a text. Optionally, the text content of the connection prompt message 504 is: if the computer is connected, please not exit the program or lock the screen. In some embodiments, the text content of the connection prompt 504 may also be: has been successfully connected to the computer. This is not limited in this application.
The following are embodiments of the apparatus of the present application, and for details not described in detail in the embodiments of the apparatus, reference may be made to corresponding descriptions in the above method embodiments, and details are not described herein again.
Fig. 12 is a schematic structural diagram illustrating an apparatus for sending a file across terminals according to an exemplary embodiment of the present application. The apparatus, which may be implemented as all or part of a terminal by software, hardware or a combination of both, includes: a display module 1210, a receiving module 1220, an obtaining module 1230, a connecting module 1240, a downloading module 1250, and a sending module 1260, wherein the receiving module 1220 is an optional module.
A display module 1210, configured to display, by a first terminal, a chat session interface of a social client, where the chat session interface is an interface for performing a chat between a home terminal account and an opposite terminal account;
the receiving module 1220 is configured to, when the first terminal receives a trigger operation of the cross-end sending function in the chat session interface, obtain preview information of a file on the second terminal according to the trigger operation;
the display module 1210 is further configured to display, by the first terminal, a file list, where the file list is used to display preview information of a file on the second terminal;
The receiving module 1220 is further configured to, when receiving the selection operation on the file list, the first terminal sends the selected file to the opposite-end account according to the selection operation.
In an alternative embodiment, the downloading module 1250 is further configured to download the selected file in the file list from the second terminal to the first terminal according to the selection operation; the sending module 1260 is further configured to send the downloaded selected file to the social account.
In an optional embodiment, the receiving module 1220 is further configured to receive a selection operation on preview information of a selected file; the sending module 1260 is further configured to send a download request to the second terminal according to the selection operation; the receiving module 1220 is further configured to receive a download address of the second terminal; the downloading module 1250 is further configured to download the selected file in the file list according to the downloading address.
In an optional embodiment, the receiving module 1220 is further configured to receive a selection operation on preview information of a selected file; the sending module 1260 is further configured to send a transmission instruction to the second terminal, where the transmission instruction is used to instruct the second terminal to send the selected file to the social account.
In an optional embodiment, the connection module 1240 is further configured to connect the first terminal and the second terminal when the second terminal is connected to the internet network or the mobile communication network; or the first terminal is connected with the second terminal through a short-distance wireless communication technology.
In an optional embodiment, the receiving module 1220 is further configured to display a newly added file on the file list when an update signal of the second terminal is received; wherein the newly added file is a file newly generated in the process of acquiring the preview information of the file on the second terminal.
In an optional embodiment, the receiving module 1220 is further configured to receive an authorization operation on the chat session interface; the sending module 1260 is further configured to send an authorization request to the second terminal according to the authorization operation; the receiving module 1220 is further configured to receive an authorization indication of the second terminal; and granting the first terminal access rights with limited conditions according to the authorization indication, wherein the access rights are used for accessing the storage position of the file on the second terminal.
In an alternative embodiment, the limited conditions include: at least one of a limited time and a limited number of times: the receiving module 1220 is further configured to, when receiving the first authorization instruction of the second terminal, obtain, according to the first authorization instruction, a valid right having one-time access to a storage location of the file on the second terminal; or when receiving a second authorization instruction of the second terminal, obtaining the effective authority of the storage position of the file on the second terminal with n times of access according to the second authorization instruction; or when a third authorization instruction of the second terminal is received, obtaining the effective authority of accessing the storage position of the file on the second terminal within the time length t according to the third authorization instruction; wherein n is greater than 1, n is an integer, and t is greater than 0.
The following is a description of a computer device to which the present application applies, and reference is made to fig. 13, which is a block diagram illustrating a structure of a computer device 1300 according to an exemplary embodiment of the present application. The computer device 1300 may be a portable mobile terminal, such as: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4). Computer device 1300 may also be referred to by other names such as user equipment, portable terminal, etc.
Generally, computer device 1300 includes: a processor 1301 and a memory 1302.
The memory 1302 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1302 is used to store at least one instruction for execution by processor 1301 to implement the method of sending a file across endpoints provided herein.
In some embodiments, computer device 1300 may also optionally include: a peripheral interface 1303 and at least one peripheral. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, touch display 1305, camera 1306, audio circuitry 1307, positioning component 1308, and power supply 1309.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. Radio frequency circuit 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. Radio frequency circuit 1304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area network, intranet, generations of mobile communication networks (2G, or 3G, or 4G, or 5G, or combinations thereof), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1304 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The touch display 1305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. The touch display 1305 also has the capability to collect touch signals on or over the surface of the touch display 1305. The touch signal may be input to the processor 1301 as a control signal for processing. The touch display 1305 is used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the touch display 1305 may be one, providing the front panel of the computer device 1300; in other embodiments, the touch display 1305 may be at least two, respectively disposed on different surfaces of the computer device 1300 or in a folded design; in some embodiments, the touch display 1305 may be a flexible display disposed on a curved surface or on a folded surface of the computer device 1300. Even more, the touch screen 1305 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The touch Display 1305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1306 is used to capture images or video. Optionally, camera head assembly 1306 includes a front camera and a rear camera. Generally, a front camera is used for realizing video call or self-shooting, and a rear camera is used for realizing shooting of pictures or videos. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera and a wide-angle camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting function and a VR (Virtual Reality) shooting function. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1307 is used to provide an audio interface between the user and the computer device 1300. The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for realizing voice communication. The microphones may be multiple and placed at different locations on the computer device 1300 for stereo sound acquisition or noise reduction purposes. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 1307 may also include a headphone jack.
The positioning component 1308 is used to locate the current geographic Location of the computer device 1300 for navigation or LBS (Location Based Service).
The power supply 1309 is used to supply power to the various components in the computer device 1300. The power source 1309 may be alternating current, direct current, disposable or rechargeable. When the power source 1309 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, computer device 1300 also includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: acceleration sensor 1311, gyro sensor 1312, pressure sensor 1313, fingerprint sensor 1314, optical sensor 1315, and proximity sensor 1316.
The acceleration sensor 1311 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the computer apparatus 1300. For example, the acceleration sensor 1311 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1301 may control the touch display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1312 may detect a body direction and a rotation angle of the computer device 1300, and the gyro sensor 1312 may cooperate with the acceleration sensor 1311 to collect a 3D motion of the user with respect to the computer device 1300. From the data collected by gyroscope sensor 1312, processor 1301 may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization while shooting, game control, and inertial navigation.
The pressure sensors 1313 may be disposed on the side bezel of the computer device 1300 and/or underneath the touch screen display 1305. When the pressure sensor 1313 is provided on the side frame of the computer device 1300, a user's grip signal for the computer device 1300 can be detected, and left-right hand recognition or shortcut operation can be performed based on the grip signal. When the pressure sensor 1313 is disposed on the lower layer of the touch display 1305, it is possible to control an operability control on the UI interface according to a pressure operation of the user on the touch display 1305. The operability control comprises at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 1314 is used for collecting the fingerprint of the user to identify the identity of the user according to the collected fingerprint.
The optical sensor 1315 is used to collect ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the touch display screen 1305 according to the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the touch display panel 1305 is turned down. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera head assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
A proximity sensor 1316, also known as a distance sensor, is typically disposed on the front face of the computer device 1300. The proximity sensor 1316 is used to capture the distance between the user and the front face of the computer device 1300. In one embodiment, the touch display 1305 is controlled by the processor 1301 to switch from the bright screen state to the dark screen state when the proximity sensor 1316 detects that the distance between the user and the front face of the computer device 1300 gradually decreases; the touch display 1305 is controlled by the processor 1301 to switch from the breath-screen state to the light-screen state when the proximity sensor 1316 detects that the distance between the user and the front face of the computer device 1300 is gradually increasing.
Those skilled in the art will appreciate that the architecture illustrated in FIG. 13 does not constitute a limitation of computer device 1300, and may include more or fewer components than those illustrated, or may combine certain components, or may employ a different arrangement of components.
The present application also provides a computer device, comprising: the system comprises a processor and a memory, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to realize the method for sending the file across the terminals, which is provided by the method embodiments.
The present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the method for sending a file across terminals provided by the foregoing method embodiments.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is intended only to illustrate the alternative embodiments of the present application, and should not be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (11)
1. A method for sending a file across terminals, the method comprising:
the method comprises the steps that a first terminal displays a chat session interface of a social client, wherein the chat session interface is an interface for chatting between a home terminal account and an opposite terminal account;
when the chat session interface receives a trigger operation of a cross-terminal sending function, the first terminal acquires preview information of a file on the second terminal according to the trigger operation;
the first terminal displays a file list, and the file list is used for displaying preview information of files on the second terminal;
And when receiving the selection operation on the file list, the first terminal sends the selected file to the opposite terminal account according to the selection operation.
2. The method according to claim 1, wherein the sending, by the first terminal, the selected file to the peer account according to the selection operation when receiving the selection operation on the file list, comprises:
downloading the selected file in the file list from the second terminal to the first terminal according to the selection operation;
sending the downloaded selected file to the social account.
3. The method according to claim 2, wherein the downloading the selected file in the file list from the second terminal to the first terminal according to the selection operation comprises:
receiving the selection operation on the preview information of the selected file;
sending a downloading request to the second terminal according to the selection operation;
receiving a download address of the second terminal;
and downloading the selected file in the file list according to the download address.
4. The method of claim 1, further comprising:
Receiving the selection operation on the preview information of the selected file;
and sending a transmission instruction to the second terminal, wherein the transmission instruction is used for instructing the second terminal to send the selected file to the social account.
5. The method of any of claims 1 to 4, further comprising:
when the second terminal is connected to the internet network or the mobile communication network, the first terminal is connected with the second terminal;
or the like, or, alternatively,
the first terminal is connected with the second terminal through a short-distance wireless communication technology.
6. The method of any of claims 1 to 4, further comprising:
when an update signal of the second terminal is received, displaying a newly added file on the file list;
and the newly added file is a file newly generated in the process of acquiring the preview information of the file on the second terminal.
7. The method of claim 5, wherein before connecting with the second terminal, the method comprises:
receiving an authorization operation on the chat session interface;
sending an authorization request to the second terminal according to the authorization operation;
Receiving an authorization indication of the second terminal;
and obtaining access authority with limited conditions according to the authorization indication, wherein the access authority is used for accessing the storage position of the file on the second terminal.
8. The method of claim 7, wherein the limited conditions comprise: at least one of a limited time and a limited number of times;
the granting of the access right with a limited condition to the first terminal according to the authorization indication comprises:
when a first authorization instruction of the second terminal is received, obtaining effective permission with one-time access to a storage position of the file on the second terminal according to the first authorization instruction; or when receiving a second authorization instruction of the second terminal, obtaining the effective authority with n times of access to the storage position of the file on the second terminal according to the second authorization instruction; or, when receiving a third authorization instruction of the second terminal, acquiring an effective right having a storage location of the file on the second terminal for accessing within a time length t according to the third authorization instruction;
wherein n is greater than 1, n is an integer, and t is greater than 0.
9. An apparatus for sending a file across terminals, the apparatus comprising:
The display module is used for displaying a chat session interface of the social client by the first terminal, wherein the chat session interface is an interface for chatting between a home terminal account and an opposite terminal account;
the receiving module is used for acquiring preview information of a file on a second terminal according to a trigger operation when the first terminal receives the trigger operation of a cross-terminal sending function on the chat session interface;
the display module is further configured to display a file list on the first terminal, where the file list is used to display preview information of a file on the second terminal;
the receiving module is further configured to, when the first terminal receives the selection operation on the file list, send the selected file to the opposite-end account according to the selection operation.
10. A computer device comprising a processor and a memory, wherein at least one program is stored in the memory, and wherein the at least one program is loaded and executed by the processor to implement the method of sending files across terminals as claimed in any one of claims 1 to 8.
11. A computer-readable storage medium, wherein at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the method for sending files across terminals according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910662333.3A CN112291133B (en) | 2019-07-22 | 2019-07-22 | Method, device, equipment and medium for sending files in cross-terminal mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910662333.3A CN112291133B (en) | 2019-07-22 | 2019-07-22 | Method, device, equipment and medium for sending files in cross-terminal mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112291133A CN112291133A (en) | 2021-01-29 |
CN112291133B true CN112291133B (en) | 2022-06-28 |
Family
ID=74418660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910662333.3A Active CN112291133B (en) | 2019-07-22 | 2019-07-22 | Method, device, equipment and medium for sending files in cross-terminal mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112291133B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113873447A (en) * | 2021-09-26 | 2021-12-31 | 展讯通信(天津)有限公司 | Fast transmission method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009076843A1 (en) * | 2007-11-30 | 2009-06-25 | Tencent Technology (Shenzhen) Limited | Object sharing among multiple im users |
CN101834905A (en) * | 2010-05-13 | 2010-09-15 | 中兴通讯股份有限公司 | Remote document sharing method and remote document sharing server |
CN104462367A (en) * | 2014-12-08 | 2015-03-25 | 北京安奇智联科技有限公司 | Browser of computing device and thumbnail display method of browser |
CN104462366A (en) * | 2014-12-08 | 2015-03-25 | 北京安奇智联科技有限公司 | Browser of computing device and thumbnail display method of browser |
CN105653909A (en) * | 2016-01-26 | 2016-06-08 | 腾讯科技(深圳)有限公司 | Information processing method, first terminal, second terminal, server and system |
CN106385603A (en) * | 2016-09-12 | 2017-02-08 | 腾讯科技(深圳)有限公司 | Message transmission method and device for media file |
CN106850815A (en) * | 2017-02-15 | 2017-06-13 | 华为技术有限公司 | A kind of Office document sending methods, terminal and system |
CN108804615A (en) * | 2018-05-30 | 2018-11-13 | 维沃移动通信(深圳)有限公司 | A kind of sharing method and server |
CN109474512A (en) * | 2018-09-30 | 2019-03-15 | 深圳市彬讯科技有限公司 | Background update method, terminal device and the storage medium of instant messaging |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868665B (en) * | 2011-07-05 | 2016-07-27 | 华为软件技术有限公司 | The method of data transmission and device |
JP6097679B2 (en) * | 2013-02-28 | 2017-03-15 | エルジー アプラス コーポレーション | Inter-terminal function sharing method and terminal |
KR101626474B1 (en) * | 2015-02-09 | 2016-06-01 | 라인 가부시키가이샤 | Apparatus for providing document sharing service based messenger and method using the same |
US9882862B2 (en) * | 2015-05-01 | 2018-01-30 | Facebook, Inc. | Techniques for coordinating a messaging experience across platforms |
CN105553834B (en) * | 2016-01-21 | 2020-12-01 | 腾讯科技(深圳)有限公司 | Message sending method and device |
CN108809799B (en) * | 2017-04-28 | 2020-09-15 | 腾讯科技(深圳)有限公司 | Information sending method, information display method, device and system |
-
2019
- 2019-07-22 CN CN201910662333.3A patent/CN112291133B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009076843A1 (en) * | 2007-11-30 | 2009-06-25 | Tencent Technology (Shenzhen) Limited | Object sharing among multiple im users |
CN101834905A (en) * | 2010-05-13 | 2010-09-15 | 中兴通讯股份有限公司 | Remote document sharing method and remote document sharing server |
CN104462367A (en) * | 2014-12-08 | 2015-03-25 | 北京安奇智联科技有限公司 | Browser of computing device and thumbnail display method of browser |
CN104462366A (en) * | 2014-12-08 | 2015-03-25 | 北京安奇智联科技有限公司 | Browser of computing device and thumbnail display method of browser |
CN105653909A (en) * | 2016-01-26 | 2016-06-08 | 腾讯科技(深圳)有限公司 | Information processing method, first terminal, second terminal, server and system |
CN106385603A (en) * | 2016-09-12 | 2017-02-08 | 腾讯科技(深圳)有限公司 | Message transmission method and device for media file |
CN106850815A (en) * | 2017-02-15 | 2017-06-13 | 华为技术有限公司 | A kind of Office document sending methods, terminal and system |
CN108804615A (en) * | 2018-05-30 | 2018-11-13 | 维沃移动通信(深圳)有限公司 | A kind of sharing method and server |
CN109474512A (en) * | 2018-09-30 | 2019-03-15 | 深圳市彬讯科技有限公司 | Background update method, terminal device and the storage medium of instant messaging |
Non-Patent Citations (1)
Title |
---|
跨平台多协议即时通讯系统的研究与实现;傅城洲;《万方学位论文》;20141231;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112291133A (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110210007B (en) | Document processing method, terminal and computer equipment | |
CN110932963A (en) | Multimedia resource sharing method, system, device, terminal, server and medium | |
CN113206781B (en) | Client control method, device, equipment and storage medium | |
CN112788359A (en) | Live broadcast processing method and device, electronic equipment and storage medium | |
CN113965539B (en) | Message sending method, message receiving method, device, equipment and medium | |
CN113709020B (en) | Message sending method, message receiving method, device, equipment and medium | |
CN112291133B (en) | Method, device, equipment and medium for sending files in cross-terminal mode | |
CN111130985B (en) | Incidence relation establishing method, device, terminal, server and storage medium | |
CN108837509B (en) | method for configuring setting parameters of virtual scene, computer device and storage medium | |
CN114143280B (en) | Session display method and device, electronic equipment and storage medium | |
CN114327197B (en) | Message sending method, device, equipment and medium | |
CN114100121A (en) | Operation control method, device, equipment, storage medium and computer program product | |
CN109618018B (en) | User head portrait display method, device, terminal, server and storage medium | |
CN114546188A (en) | Interaction method, device and equipment based on interaction interface and readable storage medium | |
CN111158780A (en) | Method, device, electronic equipment and medium for storing application data | |
CN113986086B (en) | Group session recommendation method, device, terminal and computer readable storage medium | |
CN114826800B (en) | Information acquisition method, device, terminal and storage medium | |
CN114157630B (en) | Social relation chain migration method, device, equipment and storage medium | |
CN115412518B (en) | Expression sending method and device, storage medium and electronic equipment | |
CN112612397B (en) | Multimedia list management method, device, equipment and storage medium | |
CN113220203B (en) | Activity entry display method, device, terminal and storage medium | |
CN113420172B (en) | Picture sharing method and device, computer equipment and medium | |
CN114513479B (en) | Message transmitting and receiving method, device, terminal, server and storage medium | |
CN111246147B (en) | Video caching method, device, terminal and storage medium | |
CN115866124A (en) | Call display method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40037807 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |