Method and device for realizing file sharing among multiple clients based on split screen display
1. A method for realizing file sharing among multiple clients based on split screen display is characterized by comprising the following steps:
the screen projection clients are connected with the screen projection server and select screen projection functions, and screen projection contents of the screen projection clients are displayed on the screen projection server in a split screen mode;
mapping the position information of a plurality of screen projection clients displayed by the screen projection server in a split screen manner to different mapping areas of screen projection application of each screen projection client;
the method comprises the steps that a screen projection client operates on a screen projection application of the screen projection client or operates on a split screen through a screen projection server to achieve file sharing among a plurality of screen projection clients.
2. The method for realizing file sharing among multiple clients based on split-screen display according to claim 1, wherein the multiple screen-casting clients are connected with the screen-casting server and select a screen-casting function, and the split-screen display of the screen-casting contents of the multiple screen-casting clients on the screen-casting server specifically comprises:
the screen projection clients respectively project the equipment content of the clients to the screen projection server by using the screen projection function and send the equipment information to the screen projection server through the information interaction function;
the screen projection server stores the equipment information of the screen projection clients and displays the screen projection contents of the screen projection clients by layout according to the screen splitting control function.
3. The method for realizing file sharing among multiple clients based on split-screen display according to claim 2, wherein a split-screen control function of the screen-casting server provides a default split-screen layout mode as an initial display interface according to the access number of the screen-casting clients.
4. The method for realizing file sharing among multiple clients based on split-screen display according to claim 3, wherein the size and position of the content projected by each screen projection client are dynamically adjusted by adjusting the split-screen layout mode of the screen projection server.
5. The method for realizing file sharing among multiple clients based on split-screen display according to claim 4, wherein the mapping the position information of the multiple screen-casting clients displayed on the split screen by the screen-casting server to different mapping areas of each screen-casting client screen-casting application specifically comprises:
the screen projection server side calculates the relative position information among the screen projection client sides according to the size and the position information of the screen projection client sides in the split screen layout;
the screen projection server combines the relative position information between the screen projection clients and the equipment information of the screen projection clients and sends the combined information to the screen projection clients;
and the screen projection client firstly acquires the equipment information according to the received information, then acquires the equipment information of other clients, and then maps different areas corresponding to the other clients one to one in the mapping area of the screen projection application of the client according to the relative position information of the other clients relative to the client.
6. The method for realizing file sharing among multiple clients based on split-screen display according to claim 5, wherein the device information includes device type, device name; the relative position information comprises eight pieces of relative position information, namely upper right, lower left, upper left and upper left, which are divided clockwise.
7. The method for realizing file sharing among multiple clients based on split-screen display according to claim 5, wherein the file sharing among multiple screen-casting clients through operation of the screen-casting clients on their screen-casting applications or operation of the screen-casting server on split screens specifically comprises:
dragging or sharing the file to a mapping area corresponding to the rest of the clients on any screen-casting client, so that the file is shared to corresponding client equipment;
and selecting the file of any screen projection client on the split screen of the screen projection server, dragging or sharing the file to the display areas of other clients, and sharing the file to the corresponding client equipment.
8. The method for realizing file sharing among multiple clients based on split-screen display according to claim 7, wherein the dragging or sharing the file to the mapping area corresponding to the rest of the clients on any screen-casting client, so as to share the file to the corresponding client device specifically comprises:
operating on any screen projection client, selecting a file on the screen projection client and dragging the file to a screen projection application interface;
displaying the mapping areas of other clients on the screen projection application interface;
dragging or sharing the file into the mapping areas of other clients, namely entering a file transmission process;
and selecting whether the corresponding client side of the file to be received receives the file, if so, acquiring a download path of the file and downloading the file, and if not, interrupting the file transmission process.
9. The method for realizing file sharing among multiple clients based on split-screen display according to claim 7, wherein the selecting a file of any one of the screen-casting clients on the split screen of the screen-casting server and dragging or sharing the file to the display areas of the other clients, so as to share the file to the corresponding client device specifically comprises:
selecting a file in any split screen of the screen projection server, and determining a screen projection client to which the file belongs by the screen projection server according to the selected position;
the screen-casting client side where the file is located responds to the selection, and the selected state of the file, the path of the selected file and the file information are sent to the screen-casting server side;
dragging or sharing the file to display areas of other clients on the screen projection server, and determining the corresponding client of the file to be received;
and selecting whether to determine to transmit the file to the corresponding client side on the screen projection server side, if so, acquiring a downloading path of the file and downloading the file by the corresponding client side through the screen projection server side, and if not, interrupting a file transmission flow.
10. The utility model provides a device based on split screen shows that file sharing between realization multi-client, its characterized in that:
the method comprises at least one processor and a memory, wherein the at least one processor and the memory are connected through a data bus, and the memory stores instructions capable of being executed by the at least one processor, and the instructions are used for completing the method for realizing the file sharing among the multiple clients based on the split screen display according to any one of claims 1-9 after being executed by the processor.
[ background of the invention ]
The multi-screen interaction refers to that a flash internet protocol, a Miracast protocol and the like are used, and the transmission, analysis, display control, mirror image content display and the like of multimedia contents can be carried out on different multimedia terminals (such as different terminal devices based on different operation systems of IOS/MAC, Android, Windows and the like, such as mobile phones, PAD, TVs, PCs and the like) through WIFI network connection, the screen-casting mode increases the sharing property of interactive display, enriches the multimedia life of users, enables the content on one or more devices to be played and displayed on other devices, however, in the current screen-casting process, more files can be shared among screen-casting interconnected devices, namely, the files are shared between a client and a server, when A, B equipment is cast on C equipment, A, B equipment is the client, C equipment is the server, A can share files to C, B and can also share files to C, but A, B cannot share files between devices.
In view of this, how to overcome the defects in the prior art, and solve the problem that the file sharing cannot be performed between the clients in the current screen projection process is a problem to be solved in the technical field.
[ summary of the invention ]
In view of the above defects or improvement requirements of the prior art, the present invention provides a method and an apparatus for implementing file sharing among multiple clients based on split-screen display, which can implement convenient file sharing among multiple client devices during split-screen display.
The embodiment of the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for implementing file sharing among multiple clients based on split screen display, including:
the screen projection clients are connected with the screen projection server and select screen projection functions, and screen projection contents of the screen projection clients are displayed on the screen projection server in a split screen mode;
mapping the position information of a plurality of screen projection clients displayed by the screen projection server in a split screen manner to different mapping areas of screen projection application of each screen projection client;
the method comprises the steps that a screen projection client operates on a screen projection application of the screen projection client or operates on a split screen through a screen projection server to achieve file sharing among a plurality of screen projection clients.
Furthermore, the screen projection clients are connected with the screen projection server and select the screen projection function, and the screen projection contents of the screen projection clients are displayed on the screen projection server in a split screen mode, wherein the split screen display specifically comprises the following steps:
the screen projection clients respectively project the equipment content of the clients to the screen projection server by using the screen projection function and send the equipment information to the screen projection server through the information interaction function;
the screen projection server stores the equipment information of the screen projection clients and displays the screen projection contents of the screen projection clients by layout according to the screen splitting control function.
Furthermore, a screen splitting control function of the screen projecting server provides a default screen splitting layout mode as an initial display interface according to the access number of the screen projecting clients.
Furthermore, the size and the position of the screen content projected by each screen projection client are dynamically adjusted by adjusting the screen splitting layout mode of the screen projection server.
Further, mapping the position information of the multiple screen-casting clients displayed by the screen-casting server in a split-screen manner to different mapping areas of each screen-casting client screen-casting application specifically includes:
the screen projection server side calculates the relative position information among the screen projection client sides according to the size and the position information of the screen projection client sides in the split screen layout;
the screen projection server combines the relative position information between the screen projection clients and the equipment information of the screen projection clients and sends the combined information to the screen projection clients;
and the screen projection client firstly acquires the equipment information according to the received information, then acquires the equipment information of other clients, and then maps different areas corresponding to the other clients one to one in the mapping area of the screen projection application of the client according to the relative position information of the other clients relative to the client.
Further, the device information includes a device type and a device name; the relative position information comprises eight pieces of relative position information, namely upper right, lower left, upper left and upper left, which are divided clockwise.
Further, the implementing of file sharing among multiple screen-casting clients by operating the screen-casting client on its screen-casting application or by operating the screen-casting server on a split screen specifically includes:
dragging or sharing the file to a mapping area corresponding to the rest of the clients on any screen-casting client, so that the file is shared to corresponding client equipment;
and selecting the file of any screen projection client on the split screen of the screen projection server, dragging or sharing the file to the display areas of other clients, and sharing the file to the corresponding client equipment.
Further, the dragging or sharing the file to the mapping area corresponding to the other clients on any screen-casting client, so that the sharing of the file to the corresponding client device specifically includes:
operating on any screen projection client, selecting a file on the screen projection client and dragging the file to a screen projection application interface;
displaying the mapping areas of other clients on the screen projection application interface;
dragging or sharing the file into the mapping areas of other clients, namely entering a file transmission process;
and selecting whether the corresponding client side of the file to be received receives the file, if so, acquiring a download path of the file and downloading the file, and if not, interrupting the file transmission process.
Further, the selecting a file of any screen-casting client on the split screen of the screen-casting server and dragging or sharing the file to display areas of other clients, so that the sharing of the file to the corresponding client device specifically includes:
selecting a file in any split screen of the screen projection server, and determining a screen projection client to which the file belongs by the screen projection server according to the selected position;
the screen-casting client side where the file is located responds to the selection, and the selected state of the file, the path of the selected file and the file information are sent to the screen-casting server side;
dragging or sharing the file to display areas of other clients on the screen projection server, and determining the corresponding client of the file to be received;
and selecting whether to determine to transmit the file to the corresponding client side on the screen projection server side, if so, acquiring a downloading path of the file and downloading the file by the corresponding client side through the screen projection server side, and if not, interrupting a file transmission flow.
On the other hand, the invention provides a device for realizing file sharing among multiple clients based on split screen display, which specifically comprises the following steps: the method comprises at least one processor and a memory, wherein the at least one processor and the memory are connected through a data bus, the memory stores instructions capable of being executed by the at least one processor, and the instructions are used for completing the method for realizing file sharing among multiple clients based on split screen display in the first aspect after being executed by the processor.
Compared with the prior art, the invention has the beneficial effects that: the file sharing scheme among the multiple client devices during split-screen display is provided, the problem that the files among the client devices cannot be shared during screen projection of the multiple clients is solved, and the capability of cross-system and cross-device file intercommunication is improved; in addition, the position information displayed by the client equipment is mapped to the corresponding area of each screen projection application program of the client equipment based on split screen display, so that the file sharing among the multiple client equipment can be quickly realized, the complex equipment selection process is avoided, and the operation smoothness is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a flowchart of a method for implementing file sharing among multiple clients based on split-screen display according to embodiment 1 of the present invention;
FIG. 2 is a flowchart illustrating a step 100 provided in embodiment 1 of the present invention;
FIG. 3 is a flowchart of step 200 provided in embodiment 1 of the present invention;
fig. 4 is a schematic diagram of split-screen display and mapping of client positions according to embodiment 1 of the present invention;
FIG. 5 is a flowchart illustrating a step 300 according to embodiment 1 of the present invention;
fig. 6 is an operation diagram of implementing file transfer at a screen-casting client according to embodiment 1 of the present invention;
fig. 7 is a schematic view of a file transfer downloading process provided in embodiment 1 of the present invention;
fig. 8 is an operation diagram of implementing file transmission at a screen projection server according to embodiment 1 of the present invention;
fig. 9 is a block diagram of a screen projection application structure provided in embodiment 2 of the present invention;
fig. 10 is a schematic structural diagram of an apparatus for implementing file sharing between multiple clients based on split-screen display according to embodiment 3 of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The present invention is a system structure of a specific function system, so the functional logic relationship of each structural module is mainly explained in the specific embodiment, and the specific software and hardware implementation is not limited.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other. The invention will be described in detail below with reference to the figures and examples.
Example 1:
as shown in fig. 1, an embodiment of the present invention provides a method for implementing file sharing among multiple clients based on split-screen display, which includes the following specific steps:
step 100: the screen projection clients are connected with the screen projection server and select screen projection functions, and screen projection contents of the screen projection clients are displayed on the screen projection server in a split screen mode.
Step 200: and mapping the position information of the screen-casting clients displayed by the screen-casting server in a split screen mode to different mapping areas of the screen-casting application of each screen-casting client.
Step 300: the method comprises the steps that a screen projection client operates on a screen projection application of the screen projection client or operates on a split screen through a screen projection server to achieve file sharing among a plurality of screen projection clients.
Specifically, as shown in fig. 2, the step 100 of the present embodiment can be subdivided into the following steps:
step 101: the screen projection clients respectively project the equipment content of the clients to the screen projection server by using the screen projection function and send the equipment information to the screen projection server through the information interaction function.
Step 102: the screen projection server stores the equipment information of the screen projection clients and displays the screen projection contents of the screen projection clients by layout according to the screen splitting control function.
In the step, the screen splitting control function of the screen projecting server provides a default screen splitting layout mode as an initial display interface according to the access number of the screen projecting clients. Preferably, the user can dynamically adjust the size and the position of the screen content projected by each screen projection client by adjusting the screen splitting layout mode of the screen projection server. For example: the user can manually zoom in or zoom out a certain split screen to adjust the size of the split screen; the user can also drag the positions of all the split screens to adjust the position layout among the split screens.
Specifically, as shown in fig. 3, the step 200 of the present embodiment can be subdivided into the following steps:
step 201: and the screen projection server calculates the relative position information among the screen projection clients according to the size and the position information of the screen projection clients in the split screen layout.
In this step, the relative position information may be eight relative position information, i.e., upper right, lower left, upper left, divided clockwise. For example, a client is located on the upper side of another client, the relative position information of the client with respect to the other client is "upper". (the division of the position information is determined by the need, and is not limited to the eight position information.)
Step 202: and the screen projection server combines the relative position information between the screen projection clients and the equipment information of the screen projection clients and sends the combined information to the screen projection clients.
In this step, the device information of the screen-casting client includes, but is not limited to, device type, device name, etc. for the purpose of distinguishing different client devices. For example, the client device is named: device a, device B, device C, device D, etc., and makes a distinction between the types of each device, such as a mobile phone, PAD, TV, PC, etc.
Step 203: and the screen projection client firstly acquires the equipment information according to the received information, then acquires the equipment information of other clients, and then maps different areas corresponding to the other clients one to one in the edge area of the screen projection application of the client according to the relative position information of the other clients relative to the client. In this embodiment, the mapping areas of different screen-projecting clients are all set at the edge of the screen-projecting application of the client, so that the edge area of the screen-projecting application of each screen-projecting client is the mapping area of other clients; in other different embodiments, the mapping region may be set at any position not limited to the edge region, and only the relative position distribution is satisfied.
In the step, after receiving information sent by a screen projection server, a screen projection client firstly analyzes the information of each screen projection client (the analyzed information at least comprises relative position information among devices and device names), then acquires device related information of the screen projection client to determine which device the screen projection client is, then acquires relative position information of other clients relative to the client and determines the names of other client devices according to the device, and finally maps areas corresponding to the relative position information in a mapping area of a screen projection application program of the client, wherein each area corresponds to other clients one by one.
Detailed description of the drawings referring to fig. 4, fig. 4 provides examples of split screen display on three screen projection servers, and schematic mapping diagrams of client positions corresponding to three split screen display modes.
As shown in 4.1 in fig. 4, the left side is a split screen display schematic on the screen projection server, in this example, only two screen projection clients of the device a and the device B perform screen projection on the screen projection server, and the device a and the device B respectively parallel left and right to divide the screen into two halves, that is, the relative position information of the device a with respect to the device B is "left", and the relative position information of the device B with respect to the device a is "right", so that the corresponding client position map is shown on the right side: in the device A, the mapping area of the device B is arranged on the right side of the edge of the screen projection application interface of the device A; in device B, the mapping area of device A is to the left of the edge of the screen-casting application interface of device B.
As shown in 4.2 in fig. 4, the left side is a split screen display schematic on the screen projection server, in this example, four screen projection clients, namely, a device a, a device B, a device C, and a device D, perform screen projection on the screen projection server, and the device a, the device B, the device C, and the device D are respectively located at the upper left, the upper right, the lower left, and the lower right and divide the screen into four parts; that is, relative to the device a, the relative position information of the device B is "right", the relative position information of the device C is "down", and the relative position information of the device D is "right down"; for device B, the relative position information of device a is "left", the relative position information of device C is "lower left", and the relative position information of device D is "lower"; for device C, the relative position information of device a is "up", the relative position information of device B is "right up", and the relative position information of device D is "right"; for device D, the relative position information of device a is "upper left", the relative position information of device B is "upper", and the relative position information of device C is "left"; thus, the corresponding client location map is shown on the right: in the device a, the mapping area of the device B is on the right side of the edge of the screen projection application interface of the device a, the mapping area of the device C is on the lower side of the edge of the screen projection application interface of the device a, and the mapping area of the device D is on the lower right corner of the edge of the screen projection application interface of the device a; in the device B, the mapping area of the device a is on the left side of the screen projection application interface edge of the device B, the mapping area of the device C is on the lower left corner of the screen projection application interface edge of the device B, and the mapping area of the device D is on the lower side of the screen projection application interface edge of the device B; in the device C, the mapping area of the device a is on the upper side of the edge of the screen projection application interface of the device C, the mapping area of the device B is on the upper right corner of the edge of the screen projection application interface of the device C, and the mapping area of the device D is on the right side of the edge of the screen projection application interface of the device C; in the device D, the mapping area of the device a is at the upper left corner of the screen projection application interface edge of the device D, the mapping area of the device B is at the upper side of the screen projection application interface edge of the device D, and the mapping area of the device C is at the left side of the screen projection application interface edge of the device D.
As shown in 4.3 in fig. 4, the left side is a split screen display schematic on the screen projection server, in this example, four screen projection clients, namely, a device a, a device B, a device C, and a device D, project screens on the screen projection server, the device a occupies most of the space on the left side of the screen, the device B is located above the right side of the screen, the device C is located in the middle of the right side of the screen, and the device B is located below the right side of the screen; in this layout, the relative position information between the devices is not limited to the eight types of "up, right down, left up" described above, but may be subdivided, for example, for device a, the relative position information of device B is "right 1", the relative position information of device C is "right 2", and the relative position information of device D is "right 3"; for device B, the relative position information of device a is "left", the relative position information of device C is "down 1", and the relative position information of device D is "down 2"; for device C, the relative position information of device a is "left", the relative position information of device B is "up", and the relative position information of device D is "down"; for device D, the relative position information of device a is "left", the relative position information of device B is "up 1", and the relative position information of device C is "up 2"; thus, the corresponding client location map is shown on the right: in the device A, the mapping area of the device B is arranged at the upper part of the right side of the screen projection application interface edge of the device A, the mapping area of the device C is arranged at the middle part of the right side of the screen projection application interface edge of the device A, and the mapping area of the device D is arranged at the lower part of the right side of the screen projection application interface edge of the device A; in the device B, the mapping area of the device A is on the left side of the edge of the screen projection application interface of the device B, the mapping area of the device C is in a first row on the lower side of the edge of the screen projection application interface of the device B, and the mapping area of the device D is in a second row on the lower side of the edge of the screen projection application interface of the device B; in the device C, the mapping area of the device a is on the left side of the edge of the screen projection application interface of the device C, the mapping area of the device B is on the upper side of the edge of the screen projection application interface of the device C, and the mapping area of the device D is on the lower side of the edge of the screen projection application interface of the device C; in device D, the mapping area of device a is on the left side of the screen-casting application interface edge of device D, the mapping area of device B is in the first row on the upper side of the screen-casting application interface edge of device D, and the mapping area of device C is in the second row on the upper side of the screen-casting application interface edge of device D.
It should be noted that the number of the client connection devices and the client display layout shown in fig. 4 are exemplary illustrations, but not limitations of the present invention, and both the number of the client connection devices and the client display layout may be modified accordingly according to usage requirements.
Specifically, as shown in fig. 5, the step 300 of the present embodiment can be subdivided into two steps:
step 310: and dragging or sharing the file to a mapping area corresponding to the rest of the clients on any screen-casting client, so that the file is shared to the corresponding client equipment.
The method comprises the step of realizing file sharing between client devices by operating on a screen projection client.
Step 320: and selecting the file of any screen projection client on the split screen of the screen projection server, dragging or sharing the file to the display areas of other clients, and sharing the file to the corresponding client equipment.
The step is to realize the file sharing among the client devices by operating at the screen projection server.
The two steps are not in sequence, but in two different operation modes.
More specifically, step 310 may be subdivided into the following steps:
step 311: and operating on any screen projection client, selecting the file on the screen projection client and dragging the file to a screen projection application interface. It should be noted that the file selection mode may be touch or mouse selection, the file sharing mode may be performed by selecting and sharing in addition to dragging the file, and in this embodiment, the touch mode and the dragging mode are taken as examples for description (the mouse selection and the sharing selection mode are only different from the touch and dragging mode in expression form, and are not described in detail in this embodiment).
Step 312: and displaying the mapping areas of other clients on the screen projection application interface. It should be noted that the mapping area displayed in this step is dynamically displayed when the file is dragged to the interface; in other embodiments, the mapping areas of other clients may also be statically displayed, that is, after connecting to the screen-casting service terminal, the mapping areas of other clients are always displayed on the client terminal.
Step 313: and dragging the file to the mapping areas of the other clients and releasing the dragging, namely entering a file transmission process.
Step 314: and selecting whether the corresponding client side of the file to be received receives the file, if so, acquiring a download path of the file and downloading the file, and if not, interrupting the file transmission process. It should be noted that whether to receive the file is selected by the corresponding client, and in other embodiments, whether to receive the file may also be selected by the corresponding split screen of the server.
As shown in fig. 6, taking the operation of the device a in the split-screen layout of fig. 4.2 as an example, a file in the device a is selected and dragged to the screen-casting application interface, at this time, the screen-casting application interface displays a virtual mapping area, as shown in B, C, D, the virtual mapping area represents a device B, a device C, and a device D, and if the file is dragged to the area B and then released, a file transmission and download flow between the device a and the device B is entered.
As shown in fig. 7, the file transfer downloading process is as follows:
step 701: the transmission file (i.e., the file in device a) is acquired.
Step 702: a file receiving device (i.e., device B) is acquired.
Step 703: a selection is made whether to transmit the file to the receiving device. Preferably, the device a presents an interface prompt to enable the device a to determine whether to transmit the file to the receiving device B, if not, the process is directly ended, and if so, the process goes to step 704.
Step 704: the device A sends the absolute path of the file, file information, a file downloading address, device information corresponding to the area, local device information and a file transmission instruction to the screen projection server.
Step 705: and after receiving the information and the instruction, the screen projection server forwards the content to a receiving device application (namely, a screen projection application on the device B).
Step 706: the receiving device (device B) application receives the information.
Step 707: the receiving device (device B) prompts the user whether to download the file, if not, the process is directly ended, and if so, the process goes to step 708.
Step 708: a download request is initiated. Specifically, a request for downloading a file is initiated to the screen-casting server through the screen-casting client on the device B.
Step 709: and after receiving the downloading request, the screen projection server forwards the downloading request to the equipment (namely equipment A) where the file is located.
Step 710: the screen-casting client of device a maps the local file path to a downloadable network download address.
Step 711: the screen-casting server transmits the relevant download address back to the receiving end program (i.e. the screen-casting client of the device B).
Step 712: the receiving end program accesses the download address and selects a storage position to set up a download storage file. Wherein, the saving path received by the file can be a default path or a path selected by a user.
The process ends. It should be noted that the above is a detailed description of the file transmission from the device a to the device B, and is only an example, and the transmission process between other devices is the same as the above process, and is not described again.
Step 320 may be subdivided into the following steps:
step 321: the method comprises the steps that a file in any split screen of a screen projection server is touched, and the screen projection server determines a screen projection client to which the file belongs according to a touch position;
step 322: the screen-casting client side where the file is located responds to the touch and sends the selected state of the file, the path of the selected file and the file information to the screen-casting server side;
step 323: dragging the file to display areas of other clients on the screen-casting server side, and determining the corresponding client of the file to be received after the dragging is released;
step 324: and selecting whether to determine to transmit the file to the corresponding client side on the screen projection server side, if so, acquiring a downloading path of the file and downloading the file by the corresponding client side through the screen projection server side, and if not, interrupting a file transmission flow. It should be noted that, whether to transmit the file is selected on the screen projection server, and in other embodiments, whether to transmit the file may be determined by selecting on the client where the file is located.
As shown in fig. 8, taking the operation of the screen projection server in the split-screen layout of fig. 4.2 as an example, the file in the device a is selected and dragged into another split screen, so that the file in the device a can be transmitted to another device. The specific process of the process is as follows: after a plurality of screen projection clients (equipment A, B, C, D) are accessed to the screen projection server, the screen projection server displays the content of the screen projection clients in four split screens. The method comprises the steps that a file in a display area of a device A on a screen is touched by a finger, after a server side detects a touch event, area information displayed by the layout of each device is obtained according to a touch position and a split screen control function so as to confirm that a user is the file in an operation device A, then the server side sends the finger touch position information and the touch event to the device A, a screen throwing client side on the device A receives reverse control information, converts the touch event of the server side into a mouse click event or a touch event (adjusted according to a device support type) on the client side, selects the file on the device A, and sends a file selection state, a file selection path and file information of the selected file to the screen throwing server side so that the screen throwing server side receives a file selection message. When a user slides a finger to the right continuously to leave the display area of the equipment A and then to reach the display area of the equipment B, the sliding is stopped, after a sliding stop event and screen position information when the sliding is stopped are detected by the server, the position where the sliding is stopped at the moment is determined to be the display area of the equipment B according to the position information and the equipment area information displayed in a split screen mode, the file on the equipment A is determined to be required to be shared to the equipment B according to the action, preferably, the screen projection server pops up whether the file of the equipment A is transmitted to the equipment B or not when the user operates so as to prompt the user, and misoperation of the user is prevented. After the selection is confirmed, the server side acquires a network download address of the file from the device A, the screen projection client side of the device A acquires the network download address of the file after receiving the address acquisition request, then the network address is transmitted back to the screen projection server side through the screen projection client side, the screen projection server side issues a download instruction and a download address to the screen projection client side of the device B after receiving the network download address, the screen projection client side of the device B accesses the download address through the screen projection client side after receiving the download instruction and the download address, and then the file is downloaded to a default path of file downloading. The above is a detailed description of the file transmission from the device a to the device B, which is only an example, and the transmission process between other devices is the same as the above process, and thus is not described again.
Through the embodiment, the invention provides a file sharing scheme among the multiple client devices during split-screen display, solves the problem that the files among the client devices cannot be shared during multi-client screen projection, and improves the capability of cross-system and cross-device file intercommunication; in addition, the position information displayed by the client equipment is mapped to the corresponding area of each screen projection application program of the client equipment based on split screen display, so that the file sharing among the multiple client equipment can be quickly realized, the complex equipment selection process is avoided, and the operation smoothness is improved.
Example 2:
based on the method for implementing file sharing among multiple clients based on split-screen display provided in embodiment 1, embodiment 2 provides a system for implementing file sharing among multiple clients based on split-screen display, which corresponds to embodiment 1, and as shown in fig. 9, the system includes a screen-casting server application and at least one screen-casting client application. The screen projection server application comprises a screen projection control display module, a split screen control module, a multi-terminal management module, a user operation module and an information interaction module; each screen projection client application comprises a screen projection module, an information interaction module, an equipment area module, a user operation module, a file transfer module and a reverse control processing module.
Specifically, for the application of the screen projection server, the screen projection control display module is used for controlling the display of the screen projection content of the client; the split screen control module is used for controlling the layout of the multi-client screen projection content windows, so that the size and the position of each screen projection content window can be adjusted and controlled; the multi-terminal management module is used for managing multi-terminal equipment, and managing equipment access, equipment offline, equipment information and the like; the user operation module is used for providing interface options for a user to use screen projection functions, and comprises counter control equipment and the like; the information interaction module is used for enabling the screen projection server side and the client side to carry out information interaction.
For the screen projection client application, a screen projection module of the screen projection client application is used for providing an equipment mirror image function and projecting the content of the screen projection client application to a server; the information interaction module is used for maintaining the information of the equipment, the information of the screen projection server and the information of other screen projection clients and carrying out information interaction with screen projection programs of other equipment; the equipment area module is used for simulating a corresponding area at the screen projection client according to the split screen display information of the screen projection server; the user operation module is used for providing a user operation interface and enabling a user to use the functions provided by the client; the file transfer module is used for sending and receiving files and mapping a local file path into a network downloadable path; and the reverse control processing module is used for processing an instruction of the screen projection server for reversely controlling the equipment where the client is located.
Based on the above module functions, the implementation means adopted by this embodiment for file sharing among multiple clients is as follows:
the screen projection client uses the screen projection module to project the content of client equipment to the screen projection server and sends the equipment information to the screen projection server through the information interaction module, and the multi-terminal management module of the screen projection server stores the equipment information; and the multi-terminal management module of the screen projection server forwards the screen projection content to the screen projection control display module according to the layout information of the screen splitting control module so as to display the screen projection content. The screen-split control module of the screen-casting server provides default screen-split layout information as an initial display interface according to the number of the accessed terminals, and preferably, a user can select and adjust the layout through the user operation module to dynamically adjust the size and the position of each terminal display window.
The screen projection server side obtains the position and size information of each screen projection client side window through the screen division control module, obtains equipment information (including but not limited to equipment types, equipment names and other information) of each equipment through the multi-terminal management module, calculates relative position information (including but not limited to eight relative position information of upper, upper right, lower left and upper left) among each screen projection client side equipment according to the position and size information obtained by the screen division control module, combines the relative position information and the equipment information, and sends the combined information to each screen projection client side through the information interaction module. After receiving the information, the screen-casting client information interaction module analyzes the information (including but not limited to relative position information between devices and device names) of each screen-casting client, firstly acquires the relevant information of the device, then acquires the relevant information of other client devices, and finally maps corresponding areas in the mapping area of the application program of the client according to the relative position information of the other clients relative to the client, wherein each area corresponds to the other clients one by one.
When file transmission is performed between clients, operation can be performed on an interface where a screen projection client (taking device a as an example) is located. And selecting a file on the equipment A and selecting and dragging the file to a screen-casting application interface, wherein the equipment area module detects that the file is dragged into a program interface, and then the mapping area of each equipment is displayed. And if the file is dragged to the area B of the equipment and then the dragging is released, entering a file transmission downloading process. The file transmission downloading process specifically comprises the following steps: after confirming the transmitted file, the interface prompts whether to share the file to the device B, after the sharing is confirmed, a device area module of a screen projection client of the device A acquires an absolute path of the device where the file is located, file information, a file downloading address, device information corresponding to the area, local device information and a file transmission instruction, then the absolute path, the file information, the file downloading address, the device information corresponding to the area, the local device information and the file transmission instruction are sent to an information interaction module of a screen projection server through the information interaction module of the device A, the information interaction module of the screen projection server forwards the information to the screen projection client on the device B according to the device which selects the received instruction, after the information interaction module of the screen projection client on the device B receives the transmission information, the user is prompted whether to receive the file transmitted by the device A, if the file is received, a file downloading request is initiated through a file transmission module of the screen projection client on the device B, and the screen projection server forwards the request to the screen projection client of the device A after receiving the request, the file transmission module of the screen projection client of the device A maps a local file path into a network downloadable path, relevant download path information is transmitted back to the screen projection client of the device B through the screen projection server, the download path is accessed through the file transmission module on the device B to download the file, and the preferred path saved after the file is received can be a default path or a path selected by a user; if the device B chooses not to receive the file, the file transfer process is interrupted.
In addition, besides the file is dragged to the corresponding area of the interface to realize file transmission, for equipment which does not support dragging, touch or click is provided to a mapping area of a client side to call out the mapping area, a file selector can be opened by clicking the respective mapping area, a file transmission downloading flow can be entered after the file is selected, and an interaction flow between systems is consistent with the interaction flow of the file dragging.
Preferably, when the file is transmitted between the clients, the operation can be performed through an interface where the screen projection server is located. Specifically, after the multi-screen-projection client is connected to the screen-projection server, the screen-projection server displays the content of the client in four split screens. Taking the file of the client device A as an example to be transmitted to the device B, during operation, a finger is used for touching the file in the display area of the device A on the screen of the server, after the touch event is detected by the user operation module of the server, the layout display area information of each client device is obtained according to the touch position and the split screen control module, the fact that the user is operating the device A is confirmed, the finger touch position information and the touch event are transmitted to the device A through the information interaction module, after the information interaction module of the screen projection client on the device A receives the reverse control information, the data are transmitted to the reverse control processing module, the reverse control processing module converts the touch event into a mouse click event or a touch event (adjusted according to the device support type) on the client, so as to select the file on the device A, the reverse control processing module transmits the selected state of the file, the path of the selected file and the file information to the screen projection server through the information interaction module, and the screen projection server information interaction module receives the file selection message. When the finger continuously slides rightwards to leave the display area of the equipment A and stops sliding after arriving at the display area of the equipment B, and at the moment, after the server user operation module detects a sliding stop event and screen position information when sliding is terminated, the sliding stop position is determined to be the display area of the equipment B according to the position information and the equipment area information of the split screen display module, and the file on the equipment A is determined to be required to be shared to the equipment B according to the behaviors. After the selection is confirmed, the server user operation module acquires a network download address of a file from the device A through the server information interaction module, after the information interaction module of the screen projection client of the device A receives the address acquisition request, the network download address of the file is acquired through the file transmission module, the network address is transmitted back to the screen projection server through the information interaction module of the screen projection client of the device A, after the screen projection server information interaction module receives the network download address, a download instruction and a download address are issued to the screen projection client of the device B, after the screen projection client information interaction module of the device B receives the download instruction and the download address, the download address is accessed through the screen projection client file transmission module, and then the file is downloaded to a default path for downloading the file on the device B.
Example 3:
on the basis of the method and system for implementing file sharing between multiple clients based on split-screen display provided in embodiments 1 to 2, the present invention further provides a device for implementing file sharing between multiple clients based on split-screen display, which is used for implementing the method and system, as shown in fig. 10, and is a schematic diagram of a device architecture in an embodiment of the present invention. The device for realizing file sharing among multiple clients based on split screen display of the embodiment comprises one or more processors 21 and a memory 22. In fig. 10, one processor 21 is taken as an example.
The processor 21 and the memory 22 may be connected by a bus or other means, and fig. 10 illustrates the connection by a bus as an example.
The memory 22 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the method and system for implementing file sharing between multiple clients based on split-screen display in embodiments 1 to 2. The processor 21 executes various functional applications and data processing of the device for implementing file sharing between multiple clients based on split-screen display by running nonvolatile software programs, instructions and modules stored in the memory 22, that is, implements the method and system for implementing file sharing between multiple clients based on split-screen display according to embodiments 1 to 2.
The memory 22 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 22 may optionally include memory located remotely from the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Program instructions/modules are stored in the memory 22, and when executed by the one or more processors 21, perform the method and system for implementing file sharing between multiple clients based on split screen display in embodiments 1 to 2, for example, perform the steps or module classification shown in fig. 1 and 9 described above.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the embodiments may be implemented by associated hardware as instructed by a program, which may be stored on a computer-readable storage medium, which may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:应用于墨水屏的显示控制方法及相关装置