CN115396429A - File transmission method and device, storage medium and electronic equipment - Google Patents
File transmission method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN115396429A CN115396429A CN202211042472.4A CN202211042472A CN115396429A CN 115396429 A CN115396429 A CN 115396429A CN 202211042472 A CN202211042472 A CN 202211042472A CN 115396429 A CN115396429 A CN 115396429A
- Authority
- CN
- China
- Prior art keywords
- file
- electronic device
- electronic equipment
- transmission
- transmitted
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/003—Arrangements for allocating sub-channels of the transmission path
- H04L5/0053—Allocation of signaling, i.e. of overhead other than pilot signals
-
- 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/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a file transmission method, a file transmission device, a storage medium and electronic equipment. The file transmission method is applied to first electronic equipment and comprises the following steps: displaying screen projection contents transmitted by the second electronic equipment through a screen projection channel, wherein the screen projection contents comprise file information of at least one file on the second electronic equipment; responding to a first file transmission operation aiming at the screen projection content, and sending first transmission indication information to the second electronic equipment, wherein the first transmission indication information is used for indicating the second electronic equipment to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic equipment; and receiving the file to be transmitted by the second electronic equipment through the file transmission channel. The file transmission method and device can achieve file transmission between two electronic devices.
Description
Technical Field
The present application belongs to the field of electronic technologies, and in particular, to a file transmission method, an apparatus, a storage medium, and an electronic device.
Background
With the development of electronic technology, electronic devices are used more and more widely and have more and more functions, and thus, the electronic devices become one of the necessary things in daily life of people. At present, users generally need to transfer files between two electronic devices, such as transferring picture files on one electronic device to another electronic device, and therefore, a scheme for transferring files between two electronic devices needs to be provided.
Disclosure of Invention
The embodiment of the application provides a file transmission method, a file transmission device, a storage medium and electronic equipment, and the file transmission method, the storage medium and the electronic equipment can be used for realizing file transmission between two pieces of electronic equipment.
In a first aspect, an embodiment of the present application provides a file transmission method, which is applied to a first electronic device, and includes:
displaying screen-casting content transmitted by a second electronic device through a screen-casting channel, wherein the screen-casting content comprises file information of at least one file on the second electronic device;
responding to a first file transmission operation aiming at the screen-casting content, and sending first transmission indication information to the second electronic equipment, wherein the first transmission indication information is used for indicating the second electronic equipment to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic equipment;
and receiving the file to be transmitted by the second electronic equipment through a file transmission channel.
In a second aspect, an embodiment of the present application provides a file transmission method, which is applied to a second electronic device, and includes:
transmitting screen-casting content to first electronic equipment through a screen-casting channel, so that the first electronic equipment displays the screen-casting content, wherein the screen-casting content comprises file information of at least one file on the second electronic equipment;
receiving first transmission indication information sent by the first electronic device in response to a first file transmission operation aiming at the screen-casting content, wherein the first transmission indication information is used for indicating the second electronic device to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic device;
and transmitting the file to be transmitted to the first electronic equipment through a file transmission channel.
In a third aspect, an embodiment of the present application provides a file transmission apparatus, which is applied to a first electronic device, and includes:
the content display module is used for displaying screen projection content transmitted by second electronic equipment through a screen projection channel, and the screen projection content comprises file information of at least one file on the second electronic equipment;
the information sending module is used for responding to a first file transmission operation aiming at the screen projection content and sending first transmission indicating information to the second electronic equipment, wherein the first transmission indicating information is used for indicating the second electronic equipment to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic equipment;
and the file receiving module is used for receiving the file to be transmitted by the second electronic equipment through a file transmission channel.
In a fourth aspect, an embodiment of the present application provides a file transmission apparatus, which is applied to a second electronic device, and includes:
the content transmission module is used for transmitting the screen-projected content to first electronic equipment through a screen-projected channel so that the first electronic equipment displays the screen-projected content, and the screen-projected content comprises file information of at least one file on the second electronic equipment;
the information receiving module is used for receiving first transmission indicating information sent by the first electronic device in response to a first file transmission operation aiming at the screen projection content, wherein the first transmission indicating information is used for indicating the second electronic device to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic device;
and the file transmission module is used for transmitting the file to be transmitted to the first electronic equipment through a file transmission channel.
In a fifth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the file transmission method provided by the embodiment of the present application.
In a sixth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the file transfer method provided in the embodiment of the present application by calling a computer program stored in the memory.
In the embodiment of the application, the screen projection content including the file information of at least one file on the second electronic equipment, which is transmitted by the second electronic equipment through the screen projection channel, is displayed; responding to a first file transmission operation aiming at the screen projection content, and sending first transmission indication information to the second electronic equipment so as to indicate the second electronic equipment to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic equipment; the file transmission method includes the steps that a file to be transmitted by first electronic equipment is received through a file transmission channel, file information of a file on second electronic equipment is displayed on the first electronic equipment in a screen projection mode, a user selects the file which needs to be transmitted to the first electronic equipment by the second electronic equipment on the first electronic equipment based on the file information, the file selected by the user is transmitted to the first electronic equipment by the second electronic equipment through the file transmission channel, and the file can be transmitted between the two pieces of electronic equipment.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic architecture diagram of a first electronic device method according to an embodiment of the present disclosure.
Fig. 2 is a schematic structural diagram of a second electronic device method according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of a file transmission method according to an embodiment of the present application.
Fig. 4 is a schematic view of a first scenario of a file transmission method according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a second scenario of a file transmission method according to an embodiment of the present application.
Fig. 6 is a schematic diagram of types of a first electronic device and a second electronic device according to an embodiment of the present disclosure.
Fig. 7 is a flowchart illustrating another file transmission method according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a document transportation device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of another document transmission device according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a first electronic device according to an embodiment of the present disclosure.
The first electronic device comprises a cross-screen control module and a communication connection module.
The cross-screen control module is internally provided with an intelligent interconnection framework (ICDF) SDK, and can perform distributed and coordinated calling, such as file synchronization (receiving files transmitted by the second electronic device, and the like), sharing clipboards, auxiliary input, and the like. The cross-screen control module can also receive screen projection content sent by the second electronic device and control the screen projection content, such as display of the screen projection content and touch control reverse control for the screen projection content.
The communication connection module is used for establishing data connection, such as P2P connection, between the first electronic device and the second electronic device, so that a screen projection channel and a file transmission channel between the first electronic device and the second electronic device are established based on the data connection, screen projection contents transmitted by the second electronic device can be received through the screen projection channel, and files transmitted by the second electronic device are received through the file transmission channel.
Referring to fig. 2, fig. 2 is a schematic diagram of an architecture of a second electronic device according to an embodiment of the present disclosure.
The second electronic device comprises a cross-screen control module and a communication connection module.
The cross-screen control module is internally provided with an intelligent interconnection framework (ICDF) SDK, and can complete file transmission from the second electronic device to the first electronic device. The cross-screen control module can also send the screen projection content to the first electronic device.
The communication connection module is used for establishing data connection, such as P2P connection, between the first electronic device and the second electronic device, so that a screen projection channel and a file transmission channel between the first electronic device and the second electronic device are established based on the data connection, screen projection content can be sent to the second electronic device through the screen projection channel, and a file is sent to the second electronic device through the file transmission channel.
Referring to fig. 3, fig. 3 is a schematic flowchart of a file transmission method provided in an embodiment of the present application, where the file transmission method is applied to a first electronic device, and the process may include:
in 101, screen-casting content transmitted by the second electronic device through the screen-casting channel is displayed, wherein the screen-casting content comprises file information of at least one file on the second electronic device.
For example, the first electronic device establishes a data connection, such as a P2P connection, between the first electronic device and the second electronic device in advance through the communication connection module. For example, the first electronic device may establish a data connection between the first electronic device and the second electronic device through the communication connection module in a bluetooth or WIFI manner.
After the data connection between the first electronic device and the second electronic device is successfully established, the first electronic device establishes a screen projection channel and a file transmission channel between the first electronic device and the second electronic device based on the data connection. Wherein, the screen projection channel is used for transmitting screen projection content. The file transmission channel is used for transmitting files. The file transmission channel can be established through an intelligent interconnection framework.
It can be understood that the screen projection channel and the file transmission channel can be established once and used for multiple times. For example, after a screen projection channel and a file transmission channel between the first electronic device and the second electronic device are established, the second electronic device may transmit screen projection content to the first electronic device through the screen projection channel for multiple times, and the second electronic device may also transmit files to the first electronic device through the file transmission channel for multiple times.
After the screen-casting connection between the first electronic device and the second electronic device is successfully established, the first electronic device can transmit screen-casting content to the second electronic device. After receiving the screen projection content transmitted by the first electronic device, the second electronic device can display the screen projection content on the screen. In this embodiment, the screen-shot content includes file information of at least one file on the first electronic device. The file information includes information for identifying a file corresponding to the file, such as a file name or a file path. That is, the file information of one file is used to uniquely refer to the file.
For example, the screen-shot content may be a file presentation interface of a file application of the first electronic device, and then file information of at least one file may be presented in the file presentation interface. The file application can be any application installed by the first electronic device and having a file display interface.
For example, the file application may be an album application, so that the file display interface of the album application is a picture file display interface, and the file information of the at least one file displayed by the picture file display interface may be a thumbnail of the at least one picture file. The file application may also be an audio application, so that the file presentation interface of the audio application is an audio file presentation interface, and the file information of the at least one file presented by the audio file presentation interface may be a file name of the at least one audio file. The file corresponding to the file information of the at least one file displayed on the file display interface may be stored in the first electronic device, or may be stored in the cloud, which is not limited specifically here.
In 102, in response to a first file transmission operation for the screen-shot content, sending first transmission indication information to the second electronic device, where the first transmission indication information is used to indicate the second electronic device to transmit a file to be transmitted corresponding to file information selected by the first file transmission operation to the first electronic device.
In 103, a file to be transmitted by the second electronic device is received through the file transmission channel.
In this embodiment, when the first electronic device displays the file presentation interface sent by the second electronic device, the user may determine the file that needs to be transmitted from the second electronic device to the first electronic device based on the file information of the at least one file presented by the file presentation interface. After determining that the file which needs to be transmitted to the first electronic device by the second electronic device, the user may perform a first file transmission operation for the screen projection content to select file information corresponding to the file, so that the first electronic device sends, to the second electronic device, a file to be transmitted, which is used for instructing the second electronic device to transmit the file to be transmitted, corresponding to the file information selected by the first file transmission operation, to the first electronic device. After receiving the first transmission indication information, the second electronic device may transmit the file to be transmitted, which is indicated by the first transmission indication information, to the first electronic device.
For example, as shown in fig. 4, the first electronic device displays a desktop of the first electronic device and a file display interface transmitted by the second electronic device, and it is assumed that the file display interface transmitted by the second electronic device and displayed by the first electronic device includes a file name of a file D1, a file name of a file D2, a file name of a file D3, a file name of a file D4, and a file name of a file D5. Assuming that the user determines that the file D2 needs to be transmitted from the second electronic device to the first electronic device, the user may perform a first file transmission operation, for example, perform the first file transmission operation of dragging the file name of the file D2 from the file display interface to the desktop of the first electronic device (and simultaneously displaying a dragging animation effect), so that the electronic device receives the first file transmission operation. In response to the first file transfer operation, the electronic device may generate first transfer instruction information and send the first transfer instruction information to the second electronic device, so that the second electronic device transfers the file D2 to the first electronic device. After the second electronic device receives the first transmission instruction information, the file D2 can be transmitted to the first electronic device through the file transmission channel, and therefore the first electronic device receives the file to be transmitted, transmitted by the first electronic device, through the file transmission channel.
In this embodiment, the screen projection content including file information of at least one file on the second electronic device, which is transmitted by the second electronic device through the screen projection channel, is displayed; responding to a first file transmission operation aiming at the screen-casting content, and sending first transmission indication information to second electronic equipment to indicate the second electronic equipment to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic equipment; the file transmission method includes the steps that a file to be transmitted and transmitted by first electronic equipment is received through a file transmission channel, file information of a file on second electronic equipment is displayed on the first electronic equipment in a screen projection mode, a user selects the file which needs to be transmitted to the first electronic equipment by the second electronic equipment on the first electronic equipment based on the file information, the file selected by the user is transmitted to the first electronic equipment by the second electronic equipment through the file transmission channel, and the file can be transmitted between the two pieces of electronic equipment.
In an optional embodiment, the first transmission instruction information further carries coordinate information of the file information selected by the first file transmission operation, for example, coordinate information in a file display interface, so that after the second electronic device receives the first transmission instruction information, the file corresponding to the file information can be sent to the second electronic device through a file transmission channel according to the coordinate information.
In an optional embodiment, after receiving, through the file transmission channel, the file to be transmitted, which is transmitted by the second electronic device, the method further includes:
and if the first electronic equipment is in an application interface of the preset application, sending the file to be transmitted to the preset application.
The preset application may be any application on the first electronic device, or some preset applications, such as an application for editing a file, such as a word document, or an application for transmitting a file, such as an x-letter, an x-signal QQ, and the like.
For example, suppose that when a user uses a certain instant messaging application of a first electronic device, a certain picture file of a second electronic device needs to be transmitted to another user through the instant messaging application. Then, the first electronic device may expose a chat interface with the user through the instant messaging application. The first electronic device may transmit screen-cast content including the thumbnail of the picture file to the second electronic device through a screen-cast channel. The user can perform a first file transmission operation for the screen-projected content, for example, drag the thumbnail to the chat interface, so that the first electronic device sends first transmission instruction information to the second electronic device, and the second electronic device transmits the picture file to the first electronic device through the screen-projected channel. After the first electronic device receives the picture file through the screen-casting channel, the picture file is transmitted to the instant messaging application of another user through the instant messaging application through the preset file sharing interface, so that the another user can view the picture file through the instant messaging application.
It can be understood that, if the file corresponding to the file information selected by the first file transfer operation is transferred to applications for file editing, such as a word document, and the like, the applications may save the file to a current dialog editing page (such as a WPS/memo), or may directly open and display the file, so that the user may edit the file.
In an optional embodiment, after receiving the file to be transmitted by the second electronic device through the file transmission channel, the first electronic device may store the file to be transmitted to a preset directory, such as a default directory, through the file system.
In an optional embodiment, before sending the first transmission indication information to the second electronic device, the method further includes:
determining the size of the remaining storage space of the first electronic device;
sending first transmission indication information to the second electronic equipment, wherein the first transmission indication information comprises the first transmission indication information;
and if the size of the residual storage space is larger than or equal to the size of the preset storage space, sending first transmission indication information to the second electronic equipment.
It can be understood that the first electronic device receives the file to be transmitted, and stores the file to be transmitted. If the remaining storage space of the first electronic device is small, the file to be transmitted may not be stored, so that the file to be transmitted cannot be successfully received, or after the file to be transmitted is stored, the remaining storage space is smaller, so that the first electronic device cannot normally operate. Based on this, in this embodiment, a preset storage space may be set, and before the first electronic device sends the first transmission indication information to the second electronic device, the first electronic device may first detect whether the size of the remaining storage space is greater than or equal to the size of the preset storage space. If the remaining storage space of the first electronic device is greater than or equal to the size of the preset storage space, it indicates that the remaining storage space of the first electronic device is sufficient, and therefore, the first transmission indication information can be sent to the second electronic device, so that the second electronic device transmits the file to be transmitted to the first electronic device. If the size of the remaining storage space of the first electronic device is smaller than the size of the preset storage space, it indicates that the remaining storage space of the first electronic device is insufficient, and therefore the first transmission indication information may not be sent to the second electronic device.
In an optional embodiment, when the size of the remaining storage space of the first electronic device is smaller than the size of the preset storage space, the first electronic device may further generate and output corresponding prompt information to prompt that the remaining storage space of the first electronic device is insufficient, so that the user may perform corresponding processing based on the prompt information and the user's own requirement, such as deleting some unusual or useless files, and the like. If the size of the remaining storage space of the first electronic device is larger than or equal to the size of the preset storage space due to deletion of some files by the user, the first electronic device may continue to send the first transmission indication information to the second electronic device, so that the second electronic device transmits the file to be transmitted to the first electronic device. In an optional embodiment, the first electronic device may also generate and output corresponding query information to query whether the user still needs the second electronic device to transmit the file to be transmitted. And when the user determines that the file to be transmitted still needs to be transmitted by the second electronic equipment, sending the first transmission indication information to enable the second electronic equipment to transmit the file to be transmitted to the first electronic equipment.
In an optional embodiment, the file transfer method further includes:
the method comprises the steps that in the process of receiving a file to be transmitted, transmitted by first electronic equipment, through a file transmission channel, the transmission progress of the file to be transmitted is obtained;
and displaying the transmission progress.
It will be appreciated that in order for the user to see the progress of the transmission of the file to be transmitted in real time. In the process of receiving the file to be transmitted sent by the first electronic device through the file transmission channel, the electronic device can obtain the transmission progress of the file to be transmitted in real time and display the transmission progress.
For example, as shown in fig. 5, the first electronic device may display the transmission progress in the form of a progress bar. It can be understood that, as the area occupied by the black part of the progress bar is more and more, the transmission progress of the file to be transmitted is more and more indicated.
In an optional embodiment, in the process of transmitting the file to be transmitted, the first electronic device may display corresponding prompt information to prompt that the file to be transmitted is being transmitted. When the transmission of the file to be transmitted is completed, the first electronic device can also display corresponding prompt information to prompt that the transmission of the file to be transmitted is completed.
In an optional embodiment, the file transfer method further includes:
and responding to a second file transmission operation aiming at least one file of the first electronic equipment, and transmitting the file selected by the second file transmission operation to the second electronic equipment through the file transmission channel.
In this embodiment, a user may perform a second file transfer operation on at least one file of the first electronic device, so that the first electronic device transfers a file selected by the second file transfer operation to the second electronic device through the file transfer channel. After receiving the file, the second electronic device may store the file in a preset directory, such as a default directory. The specific operation of the second file transmission operation may be set by a user, or may be determined by the electronic device based on a certain rule.
For example, the user may long-press a certain file of the at least one file of the first electronic device, so that the first electronic device generates and outputs corresponding query information to query the user whether the file needs to be transferred to the second electronic device. If the user selects to transmit the file to the second electronic device, the first electronic device receives a second file transmission operation, so that the first electronic device can transmit the file to the second electronic device through the file transmission channel.
For another example, when the first electronic device displays the screen-shot content transmitted by the second electronic device, the user may perform a drag operation of dragging a certain file of the at least one file of the first electronic device to an area where the screen-shot content is located, so that the electronic device receives the second file transmission operation. In response to the second file transfer operation, the first electronic device may transfer the file to the second electronic device through a file transfer channel.
In an optional embodiment, if the screen-shot content is an application interface of a preset application on the second electronic device, the first electronic device may transmit the file to the preset application through a file transmission channel.
The preset application may be any application on the second electronic device, or some preset applications, such as an application for editing a file, such as a word document, or an application for transmitting a file, such as an x-mail or an x-mail QQ.
It can be appreciated that if the file is transferred to the instant messaging application on the second electronic device, the file can be sent to the corresponding chat object, so that the chat object can view the file. If the file is transmitted to applications for file editing, such as a word document on the second electronic device, the applications may store the file to a current dialog editing page (such as a WPS/memo), or may directly open and display the file, so that the user may edit the file.
In an optional embodiment, before transmitting the file selected by the second file transmission operation to the second electronic device, the first electronic device may further send a file sharing instruction to the second electronic device through the websocket, so as to notify the second electronic device that the first electronic device will transmit the file selected by the second file transmission operation to the second electronic device. And then, the first electronic equipment transmits the file selected by the second file transmission operation to the second electronic equipment through the file transmission channel.
In an optional embodiment, in the process of transmitting the file selected by the second file transmission operation to the second electronic device, the first electronic device may also obtain the transmission progress of the file, and display the transmission progress, so that the user may know the transmission progress of the file at any time.
In an optional embodiment, before the file selected by the second file transfer operation is transferred to the second electronic device through the file transfer channel, the method further includes:
judging whether a file transmission channel is established between the first electronic equipment and the second electronic equipment;
transmitting the file selected by the second file transmission operation to the second electronic device through the file transmission channel, comprising:
and if a file transmission channel is established between the first electronic equipment and the second electronic equipment, transmitting the file selected by the second file transmission operation to the second electronic equipment through the file transmission channel.
It can be understood that, when the first electronic device and the second electronic device transmit files through the file transmission channel, if the file transmission channel is not established between the first electronic device and the second electronic device, the file cannot be successfully transmitted between the first electronic device and the second electronic device. Based on this, in this embodiment, after receiving the second file transmission operation, the electronic device may first determine whether a file transmission channel is established between the first electronic device and the second electronic device; if a file transmission channel is established between the first electronic device and the second electronic device, the first electronic device can transmit the file selected by the second file transmission operation to the second electronic device through the file transmission channel.
In an optional embodiment, after determining whether a file transmission channel is established between the first electronic device and the second electronic device, the method further includes:
and if the file transmission channel is not established between the first electronic device and the second electronic device, generating and outputting channel establishment prompt information, wherein the channel establishment prompt information is used for prompting establishment of the file transmission channel between the first electronic device and the second electronic device.
It can be understood that, when the first electronic device and the second electronic device transmit files through the file transmission channel, if the file transmission channel is not established between the first electronic device and the second electronic device, the file cannot be successfully transmitted between the first electronic device and the second electronic device. Based on this, in this embodiment, in an optional embodiment, after receiving the second file transfer operation, the electronic device may first determine whether a file transfer channel is established between the first electronic device and the second electronic device. If no file transmission channel is established between the first electronic device and the second electronic device, the first electronic device may generate and output channel establishment prompt information to prompt establishment of the file transmission channel between the first electronic device and the second electronic device, so that a user may establish the file transmission channel between the first electronic device and the second electronic device based on the prompt. After the file transmission channel between the first electronic device and the second electronic device is successfully established, the first electronic device may transmit the file selected by the second file transmission operation to the second electronic device.
In an optional embodiment, after displaying the screen-casting content transmitted by the second electronic device through the screen-casting channel, the method further includes:
responding to a file opening operation aiming at the screen projection content, and sending second transmission indicating information to the second electronic equipment, wherein the second transmission indicating information is used for indicating the second electronic equipment to transmit a file to be edited corresponding to the file information selected by the file opening operation to the first electronic equipment;
receiving a file to be edited transmitted by second electronic equipment through a file transmission channel;
opening and displaying a file to be edited;
responding to the file editing operation, editing the file to be edited to obtain an edited file;
and transmitting the edited file to the second electronic equipment through the file transmission channel, so that the second electronic equipment replaces the file to be edited by the edited file.
In this embodiment, a user may perform a file opening operation for the screen-shot content, so that an editing operation for a file corresponding to certain file information in file information of at least one file on the second electronic device included in the screen-shot content may be performed. For example, a user may press a certain file information in the file information for a preset time duration, so that the first electronic device receives a file opening operation on a file to be edited corresponding to the file information. Because the file to be edited is a file on the second electronic device, in response to the file opening operation, the first electronic device may send second transmission instruction information to the second electronic device to instruct the second electronic device to transmit the file to be edited to the first electronic device through the file transmission channel, so that the first electronic device receives the file to be edited through the file transmission channel. The first electronic device can open and display the file to be edited, so that a user can edit the file to be edited on the first electronic device, and the first electronic device can respond to the editing operation performed by the user to edit the file to be edited to obtain the edited file. Subsequently, the first electronic device can transmit the edited file to the second electronic device through the file transmission channel, so that the second electronic device replaces the file to be edited with the edited file. After the second electronic device receives the file to be edited, the second electronic device can replace the file to be edited with the edited file, so that the file on the second electronic device is edited on the first electronic device.
In an optional embodiment, the first electronic device may transmit the edited file to the second electronic device when the editing operation of the user is not detected within a preset time. The first electronic device can also transmit the edited file edited by the user to the second electronic device at preset time intervals.
In an alternative embodiment, as shown in fig. 6, the file transmission method provided in this embodiment of the present application may be applied to a smart phone (first electronic device), and the second electronic device in this embodiment of the present application may be a television, a tablet device, a desktop computer, a notebook computer, a terminal device, and a PDA (second first electronic device).
In an optional embodiment, the file transmission method provided in this embodiment of the present application may be applied to at least one first electronic device (first electronic device) in a smart phone, a television, a tablet device, a desktop computer, a notebook computer, a terminal device, and a PDA, and the second electronic device in this embodiment of the present application may be at least one first electronic device (second first electronic device) in a smart phone, a television, a tablet device, a desktop computer, a notebook computer, a terminal device, and a PDA, so as to implement one-to-many cross-port interconnection, many-to-one cross-port interconnection, and many-to-many cross-port interconnection.
Referring to fig. 7, fig. 7 is a schematic flowchart of another file transmission method provided in the embodiment of the present application, where the file transmission method is applied to a second electronic device, and the process may include:
in 201, screen projection content is transmitted to a first electronic device through a screen projection channel, so that the first electronic device displays the screen projection content, and the screen projection content includes file information of at least one file on a second electronic device.
In 202, first transmission indication information sent by the first electronic device in response to a first file transmission operation for the screen-shot content is received, where the first transmission indication information is used to indicate the second electronic device to transmit a file to be transmitted corresponding to file information selected by the first file transmission operation to the first electronic device.
At 203, the file to be transmitted is transmitted to the first electronic device through the file transmission channel.
It can be understood that steps 201 to 203 correspond to steps of the transmitting end, and steps 101 to 103 correspond to steps of the receiving end, and the processing flows of the two steps are corresponding, so that specific implementations of steps 201 to 203 may refer to specific implementations of the foregoing embodiment, and are not described herein again.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a file transfer device according to an embodiment of the present application. The file transmission apparatus 300 is applied to a first electronic device, and the file transmission apparatus 300 includes: a content display module 301, an information sending module 302 and a file receiving module 303.
The content display module 301 is configured to display screen-casting content transmitted by a second electronic device through a screen-casting channel, where the screen-casting content includes file information of at least one file on the second electronic device.
The information sending module 302 is configured to send, in response to a first file transmission operation for the screen-casting content, first transmission indication information to the second electronic device, where the first transmission indication information is used to indicate the second electronic device to transmit a file to be transmitted, which corresponds to the file information selected by the first file transmission operation, to the first electronic device.
The file receiving module 303 is configured to receive, through a file transmission channel, the file to be transmitted, where the file is transmitted by the second electronic device.
In an alternative embodiment, the file receiving module 303 may be configured to: and if the first electronic equipment is in an application interface of a preset application, sending the file to be transmitted to the preset application.
In an optional embodiment, the information sending module 302 may be configured to: determining the size of the remaining storage space of the first electronic device; and if the size of the residual storage space is larger than or equal to the size of a preset storage space, sending first transmission indication information to the second electronic equipment.
In an alternative embodiment, the file receiving module 303 may be configured to: acquiring the transmission progress of the file to be transmitted in the process of receiving the file to be transmitted by the first electronic equipment through the file transmission channel; and displaying the transmission progress.
In an optional embodiment, the file transfer apparatus 300 may further include a file transfer module, and the file transfer module may be configured to: responding to a second file transmission operation aiming at least one file of the first electronic equipment, and transmitting the file selected by the second file transmission operation to the second electronic equipment through the file transmission channel.
In an optional embodiment, the file transfer module may be configured to: judging whether a file transmission channel is established between the first electronic equipment and the second electronic equipment or not; and if a file transmission channel is established between the first electronic equipment and the second electronic equipment, transmitting the file selected by the second file transmission operation to the second electronic equipment through the file transmission channel.
In an optional embodiment, the file transfer module may be configured to: and if a file transmission channel is not established between the first electronic equipment and the second electronic equipment, generating and outputting channel establishment prompt information, wherein the channel establishment prompt information is used for prompting establishment of the file transmission channel between the first electronic equipment and the second electronic equipment.
In an optional embodiment, the file transmission apparatus 300 may further include a file editing module, and the file editing module may be configured to: responding to a file opening operation aiming at the screen projection content, and sending second transmission indication information to the second electronic equipment, wherein the second transmission indication information is used for indicating the second electronic equipment to transmit a file to be edited corresponding to the file information selected by the file opening operation to the first electronic equipment; receiving the file to be edited transmitted by the second electronic equipment through the file transmission channel; opening and displaying the file to be edited; responding to file editing operation, editing the file to be edited to obtain an edited file; and transmitting the edited file to the second electronic equipment through the file transmission channel, so that the second electronic equipment replaces the file to be edited with the edited file.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another file transmission device according to an embodiment of the present application. The file transmission apparatus 400 is applied to a second electronic device, and the file transmission apparatus 400 includes: a content transmission module 401, an information receiving module 402 and a file transmission module 403.
The content transmission module 401 is configured to transmit the screen-projected content to the first electronic device through the screen-projecting channel, so that the first electronic device displays the screen-projected content, where the screen-projected content includes file information of at least one file on the second electronic device.
An information receiving module 402, configured to receive first transmission indication information sent by the first electronic device in response to a first file transmission operation for the screen-shot content, where the first transmission indication information is used to indicate the second electronic device to transmit a file to be transmitted, which corresponds to the file information selected by the first file transmission operation, to the first electronic device.
A file transmission module 403, configured to transmit the file to be transmitted to the first electronic device through a file transmission channel.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the file transmission method provided in the embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the file transmission method provided in the embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 500 may include a processor 501, a memory 502, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components, e.g., the electronic device 500 may also include a screen.
The processor 501 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 502 and calling the data stored in the memory 502, thereby performing overall monitoring of the electronic device.
The memory 502 may be used to store applications and data. The memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 501 executes various functional applications and data processing by running an application program stored in the memory 502.
In this embodiment, the processor 501 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the application programs stored in the memory 502, thereby implementing the file transfer method according to any embodiment of the present application.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the file transmission method, and are not described herein again.
The file transmission device provided in the embodiment of the present application and the file transmission method in the above embodiment belong to the same concept, and any method provided in the file transmission method embodiment may be run on the file transmission device, and the specific implementation process thereof is described in the file transmission method embodiment, and is not described herein again.
It should be noted that, for the file transmission method in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the file transmission method in the embodiment of the present application may be implemented by controlling related hardware through a computer program, the computer program may be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and the process of executing the computer program may include the process of the embodiment of the file transmission method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RUM), or the like.
It is understood that in the specific implementation of the present application, user information, such as application usage behavior data, logs and other related data, needs to be approved or approved by the user when the above embodiments of the present application are applied to specific products or technologies, and the collection, usage and processing of the related data need to comply with relevant laws and regulations and standards of relevant countries and regions.
In the file transfer device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a file transfer method, a file transfer apparatus, a storage medium, and an electronic device provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principles and implementations of the present application, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (13)
1. A file transmission method is applied to first electronic equipment and is characterized by comprising the following steps:
displaying screen projection content transmitted by second electronic equipment through a screen projection channel, wherein the screen projection content comprises file information of at least one file on the second electronic equipment;
responding to a first file transmission operation aiming at the screen projection content, and sending first transmission indication information to the second electronic equipment, wherein the first transmission indication information is used for indicating the second electronic equipment to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic equipment;
and receiving the file to be transmitted by the second electronic equipment through a file transmission channel.
2. The file transmission method according to claim 1, wherein after receiving the file to be transmitted by the second electronic device through a file transmission channel, the method further comprises:
and if the first electronic equipment is in an application interface of a preset application, sending the file to be transmitted to the preset application.
3. The file transmission method according to claim 1, wherein before sending the first transmission instruction information to the second electronic device, the method further comprises:
determining the size of the residual storage space of the first electronic equipment;
the sending of the first transmission indication information to the second electronic device comprises;
and if the size of the residual storage space is larger than or equal to the size of a preset storage space, sending first transmission indication information to the second electronic equipment.
4. The file transfer method according to claim 1, wherein the method further comprises:
acquiring the transmission progress of the file to be transmitted in the process of receiving the file to be transmitted by the first electronic equipment through the file transmission channel;
and displaying the transmission progress.
5. The file transfer method according to claim 1, wherein the method further comprises:
responding to a second file transmission operation aiming at least one file of the first electronic equipment, and transmitting the file selected by the second file transmission operation to the second electronic equipment through the file transmission channel.
6. The file transfer method according to claim 5, wherein before the file selected by the second file transfer operation is transferred to the second electronic device through the file transfer channel, the method further comprises:
judging whether a file transmission channel is established between the first electronic equipment and the second electronic equipment;
the transmitting the file selected by the second file transmission operation to the second electronic device through the file transmission channel includes:
and if a file transmission channel is established between the first electronic equipment and the second electronic equipment, transmitting the file selected by the second file transmission operation to the second electronic equipment through the file transmission channel.
7. The file transfer method according to claim 6, wherein after determining whether a file transfer channel is established between the first electronic device and the second electronic device, the method further comprises:
and if a file transmission channel is not established between the first electronic device and the second electronic device, generating and outputting channel establishment prompt information, wherein the channel establishment prompt information is used for prompting establishment of the file transmission channel between the first electronic device and the second electronic device.
8. The file transmission method according to claim 1, wherein after displaying the screen-shot content transmitted by the second electronic device through the screen-shot channel, the method further comprises:
responding to a file opening operation aiming at the screen projection content, and sending second transmission indication information to the second electronic equipment, wherein the second transmission indication information is used for indicating the second electronic equipment to transmit a file to be edited corresponding to the file information selected by the file opening operation to the first electronic equipment;
receiving the file to be edited transmitted by the second electronic equipment through the file transmission channel;
opening and displaying the file to be edited;
responding to the file editing operation, editing the file to be edited to obtain an edited file;
and transmitting the edited file to the second electronic equipment through the file transmission channel, so that the second electronic equipment replaces the file to be edited with the edited file.
9. A file transmission method is applied to second electronic equipment and is characterized by comprising the following steps:
transmitting screen projection content to first electronic equipment through a screen projection channel, so that the first electronic equipment displays the screen projection content, wherein the screen projection content comprises file information of at least one file on the second electronic equipment;
receiving first transmission indicating information sent by the first electronic device in response to a first file transmission operation aiming at the screen projection content, wherein the first transmission indicating information is used for indicating the second electronic device to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic device;
and transmitting the file to be transmitted to the first electronic equipment through a file transmission channel.
10. A file transmission device is applied to a first electronic device and is characterized by comprising:
the content display module is used for displaying screen projection content transmitted by second electronic equipment through a screen projection channel, and the screen projection content comprises file information of at least one file on the second electronic equipment;
the information sending module is used for responding to a first file transmission operation aiming at the screen projection content and sending first transmission indication information to the second electronic equipment, wherein the first transmission indication information is used for indicating the second electronic equipment to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic equipment;
and the file receiving module is used for receiving the file to be transmitted by the second electronic equipment through a file transmission channel.
11. A file transmission device is applied to a second electronic device and is characterized by comprising:
the content transmission module is used for transmitting screen projection content to first electronic equipment through a screen projection channel so that the first electronic equipment displays the screen projection content, and the screen projection content comprises file information of at least one file on the second electronic equipment;
the information receiving module is used for receiving first transmission indicating information sent by the first electronic device in response to a first file transmission operation aiming at the screen projection content, wherein the first transmission indicating information is used for indicating the second electronic device to transmit a file to be transmitted corresponding to the file information selected by the first file transmission operation to the first electronic device;
and the file transmission module is used for transmitting the file to be transmitted to the first electronic equipment through a file transmission channel.
12. A storage medium, characterized in that a computer program is stored in the storage medium, which when run on a computer causes the computer to execute the file transfer method according to any one of claims 1 to 8 or 9.
13. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the file transfer method according to any one of claims 1 to 8 or 9 by calling the computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211042472.4A CN115396429A (en) | 2022-08-29 | 2022-08-29 | File transmission method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211042472.4A CN115396429A (en) | 2022-08-29 | 2022-08-29 | File transmission method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115396429A true CN115396429A (en) | 2022-11-25 |
Family
ID=84122730
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211042472.4A Pending CN115396429A (en) | 2022-08-29 | 2022-08-29 | File transmission method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115396429A (en) |
-
2022
- 2022-08-29 CN CN202211042472.4A patent/CN115396429A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109918345B (en) | Document processing method, device, terminal and storage medium | |
EP4068064A1 (en) | File processing method, electronic apparatus, system, and storage medium | |
US11106420B2 (en) | Method, device, system and storage medium for information transmission and data processing | |
CN110519461B (en) | File transmission method, device, computer equipment and storage medium | |
US20190245900A1 (en) | User interface content state synchronization across devices | |
US12056415B2 (en) | Desktop sharing method and mobile terminal | |
US10778617B2 (en) | Electronic device and method of transferring data in an application to another application | |
CN113741765B (en) | Page jump method, device, equipment, storage medium and program product | |
WO2022156606A1 (en) | Information processing method and apparatus, and electronic device | |
CN114500432A (en) | Session message transceiving method and device, electronic equipment and readable storage medium | |
CN106027631B (en) | Data transmission method and device | |
CN113467660A (en) | Information sharing method and electronic equipment | |
US20220417343A1 (en) | Image processing method, apparatus, device, and computer-readable storage medium | |
CN112306325A (en) | Interaction control method and device | |
WO2024045905A1 (en) | Information processing method and apparatus, storage medium, and electronic device | |
CN111831181A (en) | Application switching display method and device and electronic equipment | |
WO2023040845A1 (en) | Message transmission method and apparatus, and electronic device | |
US20240086360A1 (en) | File saving method and electronic device | |
WO2023207543A1 (en) | Media content publishing method and apparatus, and device, storage medium and program product | |
CN113722124A (en) | Content processing method, device, equipment and storage medium of cloud mobile phone | |
CN109947528B (en) | Information processing method and device | |
CN109101306B (en) | Sharing method, sharing device, terminal and computer readable storage medium | |
US20150143261A1 (en) | Information processing terminal, information processing method, and information processing system | |
CN114153362A (en) | Information processing method and device | |
CN106850815A (en) | A kind of Office document sending methods, terminal and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |