CN110737638A - data sharing method, device, electronic equipment and storage medium - Google Patents

data sharing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110737638A
CN110737638A CN201810797975.XA CN201810797975A CN110737638A CN 110737638 A CN110737638 A CN 110737638A CN 201810797975 A CN201810797975 A CN 201810797975A CN 110737638 A CN110737638 A CN 110737638A
Authority
CN
China
Prior art keywords
shared
terminal
sharing
data
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810797975.XA
Other languages
Chinese (zh)
Inventor
胡永旭
曹润泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810797975.XA priority Critical patent/CN110737638A/en
Priority to PCT/CN2019/096869 priority patent/WO2020015750A1/en
Publication of CN110737638A publication Critical patent/CN110737638A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides data sharing methods, devices, electronic equipment and storage media, wherein the method comprises the steps of receiving a sharing area setting instruction, setting a sharing area according to the sharing area setting instruction, determining sharing data corresponding to the sharing area, and sending the sharing data to a terminal to be shared so as to enable the terminal to be shared to display the sharing data.

Description

data sharing method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of display technologies, and in particular, to an data sharing method and apparatus, an electronic device, and a storage medium.
Background
Currently, data sharing is widely applied by , and in the related art, a sharing area is preset by a sharing terminal device, and after receiving shared data sent by a terminal device to be shared, the shared data is displayed in the sharing area.
For example, the sharing terminal device is body equipment, the terminal device to be shared is a mobile phone, the mobile phone presets the whole screen as a sharing area, the experience of watching videos through the mobile phone is poor due to the fact that the screen of the mobile phone is small, the user can send the videos to body equipment, and body equipment displays the received video data so that the user can watch the videos through the screen of body equipment.
Since the shared area in the related art is preset and cannot be changed, the user experience is poor.
Disclosure of Invention
The embodiment of the invention aims to provide data sharing methods, devices, electronic equipment and storage media to improve user experience, and the specific technical scheme is as follows:
A data sharing method, applied to a sharing terminal, the method comprises:
receiving a shared area setting instruction;
setting a sharing area according to the sharing area setting instruction;
and determining shared data corresponding to the shared area, and sending the shared data to a terminal to be shared so that the terminal to be shared displays the shared data.
Optionally, after the step of sending the shared data to the terminal to be shared, the method further includes:
receiving a shared area adjustment instruction;
determining an adjusted shared area according to the shared area adjusting instruction;
determining shared data corresponding to the adjusted shared area;
and sending the shared data corresponding to the adjusted shared area to the terminal to be shared so that the terminal to be shared displays the received shared data.
Optionally, before the step of receiving a shared area setting instruction, the method further includes:
receiving a network connection establishment request sent by an alternative terminal;
establishing network long connection with the alternative terminal;
receiving a selection instruction of a terminal to be shared;
and determining the terminal to be shared from the alternative terminals according to the terminal to be shared selection instruction.
Optionally, after the step of sending the shared data to the terminal to be shared, the method further includes:
receiving th control instruction;
and sending control messages to the terminal to be shared according to the control instruction so that the terminal to be shared executes corresponding operations according to the control messages, wherein the control messages comprise operation types and operation positions.
Optionally, after the step of sending the shared data to the terminal to be shared, the method further includes:
receiving a second control message sent by the terminal to be shared, wherein the second control message comprises a second operation type and a second operation position;
determining a position corresponding to the second operation position in the shared area;
and executing the operation corresponding to the second operation type at the determined position.
Optionally, the second operation type includes an annotation operation and a mouse operation.
Optionally, when the second operation type is a mouse operation, the step of executing an operation corresponding to the second operation type at the determined position includes:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
A data sharing apparatus, applied to a sharing terminal, the apparatus comprising:
a shared area setting instruction receiving module for receiving a shared area setting instruction;
the shared area setting module is used for setting a shared area according to the shared area setting instruction;
an sending module, configured to determine shared data corresponding to the shared area, and send the shared data to a terminal to be shared, so that the terminal to be shared displays the shared data.
Optionally, the apparatus further comprises:
, an adjustment instruction receiving module, configured to receive a shared area adjustment instruction after sending the shared data to the terminal to be shared;
a shared area determining module, configured to determine an adjusted shared area according to the shared area adjustment instruction;
the shared data determining module is used for determining shared data corresponding to the adjusted shared area;
and the second sending module is used for sending the shared data corresponding to the adjusted shared area to the terminal to be shared so as to enable the terminal to be shared to display the received shared data.
Optionally, the apparatus further comprises:
a network connection establishment request receiving module, configured to receive a network connection establishment request sent by an alternative terminal before receiving the shared area setting instruction;
the network long connection establishing module is used for establishing network long connection with the alternative terminal;
the selection instruction receiving module is used for receiving a selection instruction of the terminal to be shared;
and the terminal to be shared determining module is used for determining the terminal to be shared from the alternative terminals according to the terminal to be shared selecting instruction.
Optionally, the apparatus further comprises:
the control instruction receiving module is used for receiving control instructions after the shared data are sent to the terminal to be shared;
an th control message sending module, configured to send a th control message to the terminal to be shared according to the th control instruction, so that the terminal to be shared executes a corresponding operation according to the th control message, where the th control message includes a th operation type and an th operation location.
Optionally, the apparatus further comprises:
a second control message receiving module, configured to receive a second control message sent by the terminal to be shared after the shared data is sent to the terminal to be shared, where the second control message includes a second operation type and a second operation location;
an th position determining module, configured to determine a position corresponding to the second operating position in the shared area;
, an execution module for executing the operation corresponding to the second operation type at the determined position.
Optionally, the second operation type includes an annotation operation and a mouse operation.
Optionally, the th execution module is specifically configured to:
and when the second operation type is mouse operation, calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
electronic device, comprising a processor and a memory,
a memory for storing a computer program;
and a processor configured to implement the data sharing method steps applied to the shared terminal described in any above when executing the program stored in the memory.
computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the data sharing method steps applied to the sharing terminal as described in any of above.
A data sharing method, applied to a terminal to be shared, the method comprises:
receiving a display area setting instruction;
setting a display area according to the display area setting instruction;
receiving shared data sent by the shared terminal;
and displaying the shared data in the display area.
Optionally, after the step of displaying the shared data in the display area, the method further includes:
receiving th control message sent by the sharing terminal, wherein the th control message comprises th operation type and th operation position;
determining a position corresponding to the th operation position in the display area;
and executing the operation corresponding to the th operation type at the determined position.
Optionally, the th operation type includes an annotation operation and a mouse operation.
Optionally, when the th operation type is a mouse operation, the step of executing the operation corresponding to the th operation type at the determined position includes:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
Optionally, after the step of displaying the shared data in the display area, the method further includes:
receiving a second control instruction;
and sending second control information to the shared terminal according to the second control instruction so that the shared terminal executes corresponding operation according to the second control information, wherein the second control information comprises a second operation type and a second operation position.
A data sharing device, applied to a terminal to be shared, the device comprises:
the display area setting instruction receiving module is used for receiving a display area setting instruction;
the display area setting module is used for setting a display area according to the display area setting instruction;
a shared data receiving module, configured to receive shared data sent by the shared terminal;
and the display module is used for displaying the shared data in the display area.
Optionally, the apparatus further comprises:
an control message receiving module, configured to receive control message sent by the sharing terminal after the shared data is displayed in the display area, wherein the control message includes a operation type and a operation position;
a second position determination module for determining a position corresponding to the th operation position in the display area;
and the second execution module is used for executing the operation corresponding to the th operation type at the determined position.
Optionally, the th operation type includes an annotation operation and a mouse operation.
Optionally, the second execution module is specifically configured to:
and when the th operation type is a mouse operation, calling an operating system interface to execute an operation corresponding to the mouse operation type at the determined position.
Optionally, the apparatus further comprises:
the second control instruction receiving module is used for receiving a second control instruction after the shared data is displayed in the display area;
and a second control information sending module, configured to send second control information to the shared terminal according to the second control instruction, so that the shared terminal executes a corresponding operation according to the second control information, where the second control information includes a second operation type and a second operation location.
electronic device including a processor and a memory,
a memory for storing a computer program;
and a processor, configured to implement the data sharing method steps applied to the terminal to be shared described in any when executing the program stored in the memory.
computer readable storage medium, having stored therein a computer program which, when being executed by a processor, realizes the steps of the data sharing method applied to the terminals to be shared described in any above.
In the embodiment of the invention, a sharing area setting instruction is received, a sharing area is set according to the sharing area setting instruction, sharing data corresponding to the sharing area is determined, and the sharing data is sent to a terminal to be shared so that the terminal to be shared displays the sharing data. In the invention, the sharing area is set by receiving the sharing area setting instruction, then the sharing data corresponding to the sharing area is determined, and the data sharing is realized by sending the sharing data to the terminal to be shared for displaying.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is schematic diagrams of application scenarios of an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a data sharing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a process in which a sharing terminal sends shared data to a terminal to be shared through RTSP, so that the terminal to be shared displays the shared data;
FIG. 4 is a second flowchart illustrating a data sharing method according to an embodiment of the present invention;
FIG. 5 is a third flowchart illustrating a data sharing method according to an embodiment of the present invention;
FIG. 6 is a fourth flowchart illustrating a data sharing method according to an embodiment of the present invention;
fig. 7 is a fifth flowchart illustrating a data sharing method according to an embodiment of the invention;
FIG. 8 is a diagram illustrating an th structure of a data sharing device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an th electronic device according to an embodiment of the invention;
fig. 10 is a sixth flowchart illustrating a data sharing method according to an embodiment of the invention;
fig. 11 is a seventh flowchart illustrating a data sharing method according to an embodiment of the present invention;
fig. 12 is a schematic diagram illustrating an eighth flowchart of a data sharing method according to an embodiment of the present invention;
FIG. 13 is a diagram illustrating a second structure of a data sharing device according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a second electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only partial embodiments of of the present invention, rather than all embodiments.
In order to improve user experience, the embodiment of the invention provides data sharing methods and apparatuses, an electronic device and a storage medium.
Referring to fig. 1, an application scenario of data sharing is described below, where the application scenario includes a sharing terminal and a terminal to be shared, and the sharing terminal and the terminal to be shared may perform network connection through an exchange and a wired router, or may perform network connection through an exchange and a wireless router.
First, a data sharing method on the sharing terminal side will be described below.
The data sharing method provided by the embodiment of the invention can be applied to a sharing terminal, and the sharing terminal can be electronic equipment such as a desktop computer, a mobile phone, an body machine and the like, and is not specifically limited herein, wherein the body machine is equipment with combined host and display, and can be controlled by screen touch, and can also be controlled by an external mouse and a keyboard.
As shown in fig. 2, data sharing methods provided in the embodiments of the present invention are applied to a sharing terminal, and the methods may include:
s101: a shared region setting instruction is received.
In the embodiment of the invention, a user can set the sharing area on the screen of the sharing terminal, and after the user sets the sharing area, the sharing terminal receives the sharing area setting instruction.
There are various ways of receiving the shared area setting instruction, including but not limited to the following:
th mode:
the sharing terminal outputs sharing area setting information which comprises a sharing area position and corresponding check boxes, wherein the sharing area position comprises a left half side, a right half side, an upper half side and a lower half side of a screen of the sharing terminal, a user can check the check boxes according to the requirement of the user, after a check box is checked, the sharing area position corresponding to the check box is selected, namely the position of the sharing area is set by the user, and at the moment, the sharing terminal receives a sharing area setting instruction.
For example: assuming that the user sets the left half of the screen of the sharing terminal as the sharing area, the sharing area setting instruction received by the sharing terminal is as follows: the left half of the shared terminal screen is a shared area.
The second mode is as follows:
the user can select area as the sharing area from the sharing terminal screen according to the requirement, that is, the user sets the position of the sharing area, at this time, the sharing terminal receives the sharing area setting instruction.
S102: and setting the shared area according to the shared area setting instruction.
After receiving the shared area setting instruction, the shared area can be set according to the shared area setting instruction.
For example: in the example of step S101, the shared area setting instruction is: and setting the left half of the screen of the sharing terminal as a sharing area according to a sharing area setting instruction.
S103: and determining shared data corresponding to the shared area, and sending the shared data to the terminal to be shared so that the terminal to be shared displays the shared data.
Since data sharing is data sharing between the sharing terminal and the terminal to be shared, the sharing terminal needs to send a data sharing request to the terminal to be shared, so that the terminal to be shared can know the situation.
After receiving the data sharing request, the terminal to be shared sends data sharing response information to the sharing terminal, informs the sharing terminal that the data sharing can be carried out, determines a display area which can be used for displaying the shared data, and sends a flow fetching request to the sharing terminal.
After receiving the data sharing response information and the stream fetching request sent by the terminal to be shared, the sharing terminal acquires that the terminal to be shared can share data and can start to fetch the stream, and at the moment, the sharing terminal captures the shared data in the sharing area on the screen and sends the shared data to the terminal to be shared. After the sharing terminal receives the sharing data sent by the sharing terminal, the received sharing data can be displayed in the display area, and therefore data sharing is achieved.
For example, when the sharing terminal is an player and the terminal to be shared is a mobile phone, the streaming request may be an RTSP streaming request, and the sharing terminal may send the shared data to the terminal to be shared, where the sharing terminal sends the shared data to the terminal to be shared through the RTSP (Real time streaming Protocol).
Referring to fig. 3, the RTSP client in fig. 3 is disposed at the terminal to be shared, and the RTSP server and the screen capture module are disposed at the sharing terminal. The RTSP client is used for fetching the stream, the RTSP server is used for sending the stream, the screen capture module is used for capturing the code stream on the screen, and the sharing terminal sends the shared data to the terminal to be shared through the RTSP, so that the process of displaying the shared data by the terminal to be shared can be as follows:
the RTSP client side and the RTSP server establish RTSP connection, the RTSP client side requests a code stream to the RTSP server, the RTSP server sends a capture preparation request to the screen capture module, the screen capture module starts to prepare for capturing the code stream on the screen after receiving the preparation request, after the preparation is successful, the screen capture module sends capture preparation success information to the RTSP server, and the RTSP server sends stream capture preparation success information to the RTSP client side;
the RTSP client side and the RTSP server establish RTP (Real-time Transport Protocol) connection, the screen capture module captures a code stream, namely shared data, of a shared area on a screen of the shared terminal and sends the code stream to the RTSP server, the RTSP server sends the code stream to the RTSP client side, and the RTSP client side sends the code stream to a screen of a terminal to be shared for display;
the RTSP client sends a request for stopping fetching the stream to the RTSP server, the RTSP server sends a release request to the screen capture module, the screen capture module stops capturing the code stream on the screen after receiving the release request, the screen capture module sends information of successful release to the RTSP server after the release is successfully stopped, and the RTSP server sends information of successful stop fetching the stream to the RTSP client;
the RTSP client side is disconnected with the RTSP server through the RTSP connection, and the RTSP client side is disconnected with the RTSP server through the RTSP connection.
When the sharing terminal is a mobile phone and the terminal to be shared is an player, the streaming request may be an RTSP streaming request, and the sharing terminal may send the shared data to the terminal to be shared, where the sharing terminal sends the shared data to the terminal to be shared through an RTSP (Real Time streaming protocol).
Illustratively, the number of terminals to be shared may be plural. When the number of the terminals to be shared is multiple, the sending of the shared data to the terminals to be shared so that the terminals to be shared display the shared data may be: and sending the shared data to each terminal to be shared so that each terminal to be shared displays the shared data.
For example, when the data sharing method applied to the sharing terminal side provided by the embodiment of the present invention is applied to a conference scene, the sharing terminal is an -body machine used by a conference leader, and the terminal to be shared is a notebook computer used by a participant, the leader can share -body conference content in the notebook computer used by each participant, so that each participant can view the conference content.
Alternatively, the first and second electrodes may be,
the data sharing method applied to the sharing terminal side provided by the embodiment of the invention is applied to a classroom teaching scene, the sharing terminal is an body machine used by a teacher, and the terminal to be shared is a notebook computer used by students, so that the teacher can share the teaching content in the body machine to the notebook computer used by each student for each student to check.
Therefore, the sharing terminal can share data with the plurality of terminals to be shared, and the purpose of sharing the shared data in the shared area of the sharing terminal to the plurality of terminals to be shared for displaying is achieved.
In the embodiment of the invention, a sharing area setting instruction is received, a sharing area is set according to the sharing area setting instruction, sharing data corresponding to the sharing area is determined, and the sharing data is sent to a terminal to be shared so that the terminal to be shared displays the sharing data. In the invention, the sharing area is set by receiving the sharing area setting instruction, then the sharing data corresponding to the sharing area is determined, and the data sharing is realized by sending the sharing data to the terminal to be shared for displaying.
On the basis of the method shown in fig. 2, after step S103, as shown in fig. 4, the data sharing methods provided in the embodiment of the present invention may further include:
s104: and receiving a shared area adjusting instruction.
Since sometimes the user needs to make adjustments to the shared area, for example: the sharing area shields important content in the screen, at the moment, a user adjusts the sharing area to enable the sharing area to be changed, and at the moment, the sharing terminal receives a sharing area adjusting instruction.
S105: and determining the adjusted shared area according to the shared area adjusting instruction.
After receiving the shared area adjustment instruction, the adjusted shared area may be determined.
S106: and determining shared data corresponding to the adjusted shared area.
And at the moment, the sharing terminal captures the code stream of the adjusted sharing area on the screen, namely the sharing data corresponding to the adjusted sharing area is obtained.
S107: and sending the shared data corresponding to the adjusted shared area to the terminal to be shared so that the terminal to be shared displays the received shared data.
Since the shared area is changed, step is further performed to cause the shared data corresponding to the shared area to be changed, and in order to synchronize data sharing, after determining the shared data corresponding to the adjusted shared area, the shared data corresponding to the adjusted shared area needs to be sent to the terminal to be shared, so that the terminal to be shared displays the received shared data.
Therefore, in the embodiment of the present invention, after the sharing area is set, the sharing area is not unchanged, the sharing area may be adjusted, that is, the sharing area may be dynamically adjusted, and may also be adjusted in the sharing process, and when the sharing area changes and the shared data changes, the shared data displayed by the terminal to be shared is also changed synchronously by sending the shared data corresponding to the adjusted sharing area to the terminal to be shared.
On the basis of the method shown in fig. 2, before step S101, as shown in fig. 5, the data sharing methods provided in the embodiment of the present invention may further include:
S101A: and receiving a network connection establishment request sent by the alternative terminal.
When the alternative terminal needs to share data with the shared terminal, a network connection establishment request needs to be sent to the shared terminal, and the shared terminal receives the network connection establishment request sent by the alternative terminal.
Illustratively, the alternative terminals may be or more.
S101B: and establishing a long network connection with the alternative terminal.
The network short connection is disconnected after the data transmission is finished, when the data needs to be transmitted again, the network short connection needs to be established again, so that the network overhead is large, the communication efficiency is low, and the network long connection can be kept connected within a certain time of after the data transmission is finished, so that the network long connection with the alternative terminal is established after the network connection establishment request sent by the alternative terminal is received in order to reduce the network connection overhead and improve the communication efficiency.
Due to the fact that long network connection is used, network delay is reduced when data sharing is conducted, and data sharing synchronism is better.
The WebSocket Protocol is new network protocols based on TCP (Transmission Control Protocol). The full duplex communication between the browser and the server is realized, namely the server is allowed to actively send information to the client, and the client can also actively send information to the server.
After establishing the network long connection with the alternative terminal, the shared terminal records identification information of the alternative terminal establishing the network long connection with the shared terminal, and the identification information may be, for example, IP address and port number information.
When the number of the alternative terminal devices is multiple, what the shared terminal records may be a record table containing identification information of the alternative terminal.
S101C: and receiving a selection instruction of the terminal to be shared.
Since there may be a plurality of candidate terminals that establish a long network connection with the sharing terminal, in order to perform data sharing, a terminal to be shared needs to be determined from the candidate terminals.
The sharing terminal may output a record table containing the identification information of the candidate terminals for the user to select, and the user selects 1 or more candidate terminals from the record table, at this time, the sharing terminal receives a selection instruction of the terminal to be shared, and the selection instruction of the terminal to be shared includes the identification information of the candidate terminals.
S101D: and determining the terminal to be shared from the alternative terminals according to the terminal to be shared selection instruction.
After receiving the selection instruction of the terminal to be shared, the terminal to be shared can be determined from the alternative terminals according to the selection instruction of the terminal to be shared, that is, the alternative terminal corresponding to the identification information of the alternative terminal is taken as the terminal to be shared. And then performing the subsequent data sharing step.
Therefore, the interaction efficiency is improved and the data sharing synchronism is improved in a mode of establishing long network connection with the alternative terminal.
Meanwhile, when a plurality of alternative terminals selected by the user are available, the purpose of data sharing with a plurality of terminals to be shared is achieved.
On the basis of the method shown in fig. 2, after step S103, as shown in fig. 6, the data sharing methods provided in the embodiment of the present invention may further include:
and S108, receiving th control instructions.
After data sharing, sometimes the user needs to operate the shared data in the shared area in the shared terminal, and at this time, the shared terminal receives th control instruction.
For example, the sharing terminal is an body machine, the terminal to be shared is a notebook computer, the teacher shares the teaching content with the student's notebook computer through the body machine, when the teacher explains the teaching content displayed in the body machine, the teacher notes the content in class, and at this time, the body machine receives the th control instruction.
And S109, according to the control instruction, sending control message to the terminal to be shared so that the terminal to be shared executes corresponding operation according to the control message, wherein the control message comprises operation type and operation position.
After receiving the th control command, it indicates that the user has performed an operation on the shared data, and at this time, in order to make the shared data displayed by the terminal to be shared change accordingly, it is necessary to send a th control message to the terminal to be shared according to the th control command, so that the terminal to be shared performs a corresponding operation according to the th control message.
Since there are many types of operations of the user on the shared data, such as a mouse operation type or an annotation operation type, in order to make the terminal to be shared know what kind of operations can be performed after receiving the th control message, the th control message may include the th operation type, in order to make the terminal to be shared know where to perform an operation corresponding to the th operation type, the th control message may further include the th operation location.
For example, the th control message sent by the sharing terminal can be in the form of a message header + a message body, wherein the message header comprises a operation type and the message body comprises a th operation position.
When the shared terminal detects that a single mouse event occurs, for example, a mouse button pressing event, a mouse moving event or a mouse button bounce event, it determines that the user's operation on the shared data is a mouse operation type, and when the shared terminal detects that the mouse pressing event and the mouse moving event occur simultaneously, it determines that the user's operation on the shared data is an annotation operation type.
For example, the th operation position can be calculated by determining an operation position corresponding to the mouse in the shared region, determining the width and height of the shared region, determining the horizontal distance and the vertical distance of the operation position from the upper left corner of the shared region, calculating the th ratio of the horizontal distance to the width of the shared region, calculating the second ratio of the vertical distance to the height of the shared region, and determining the th ratio and the second ratio as the th operation position.
In the case that the -th control message comprises a -th operation type and a -th operation position, the terminal to be shared may perform a corresponding operation according to an -th control message upon receiving a -th control message, and the terminal to be shared may perform a corresponding operation according to a -th control message, such that a position corresponding to a -th operation position is determined in a display area, and an operation corresponding to an -th operation type is performed at the determined position.
Therefore, by receiving the control instruction and sending the control message to the terminal to be shared, the purpose of operating the shared data of the terminal to be shared through the operation of the shared data of the shared terminal is achieved in the data sharing process, so that in the data sharing process, not only the shared data is displayed, but also the shared data can be operated, and the user experience is improved.
On the basis of the method shown in fig. 2, after step S103, as shown in fig. 7, the data sharing methods provided in the embodiment of the present invention may further include:
s110: and receiving a second control message sent by the terminal to be shared, wherein the second control message comprises a second operation type and a second operation position.
After data sharing is performed, sometimes a user needs to operate shared data displayed in a terminal to be shared, and at this time, the terminal to be shared receives a second control instruction.
For example, the sharing terminal is an body machine, the terminal to be shared is a notebook computer, the teacher shares the teaching content with the student's notebook computer through the body machine, when the student cannot understand the teaching content displayed in the notebook computer, the student notes the teaching content, and at this time, the notebook computer receives the second control instruction.
After receiving the second control instruction, the terminal to be shared indicates that the user operates the shared data in the terminal to be shared, at this time, in order to make the shared data displayed by the shared terminal change correspondingly, the terminal to be shared needs to send a second control message to the shared terminal according to the second control instruction, and at this time, the shared terminal receives the second control message sent by the terminal to be shared.
Since there are various types of operations of the user on the shared data, the second operation type may include, for example, an annotation operation and a mouse operation. Therefore, in order to make the sharing terminal know what kind of operation can be performed after receiving the second control message, the second control message may include the second operation type. In order to make the sharing terminal know where to perform the operation corresponding to the second operation type, the second control message may further include a second operation location.
For example, the message format of the second control message to be sent by the sharing terminal received by the sharing terminal may be: header + body. The message header includes a second operation type and the message body includes a second operation location.
S111: in the shared region, a position corresponding to the second operation position is determined.
And after receiving the second control message sent by the terminal to be shared, the sharing terminal analyzes the second control message to obtain a second operation type and a second operation position.
The second operation position may include a third ratio and a fourth ratio, and the process of determining the third ratio and the fourth ratio by the terminal to be shared is the same as the process of determining the th ratio and the second ratio by the sharing terminal, which may be specifically referred to as the process of determining the th ratio and the second ratio in step S109 in fig. 6.
After the second operation position is obtained, in order to know where in the shared area to perform the corresponding operation, it is necessary to determine a position corresponding to the second operation position in the shared area.
In the shared area, determining the position corresponding to the second operation position may be:
determining the width and the height of the shared area, determining the horizontal distance from the upper left corner of the shared area according to the width of the shared area and a third ratio, determining the vertical distance from the upper left corner of the shared area according to the height of the shared area and a fourth ratio, determining the target position according to the horizontal distance and the vertical distance, and taking the determined target position as the position corresponding to the second operation position.
S112: and executing the operation corresponding to the second operation type at the determined position.
After the position corresponding to the second operation position is determined, the operation corresponding to the second operation type can be executed at the determined position.
Therefore, by receiving the second control message sent by the terminal to be shared, determining the position corresponding to the second operation position in the sharing area, and executing the operation corresponding to the second operation type at the determined position, the purpose of operating the shared data of the sharing terminal is achieved by operating the shared data of the terminal to be shared in the data sharing process, so that in the data sharing process, not only the shared data is displayed, but also the shared data can be operated, and the user experience is improved.
Since the mouse operation is a system operation of the electronic device, the cut operation related to the mouse needs to be executed through the operating system interface, and thus, when the second operation type is a mouse operation, the executing the operation corresponding to the second operation type at the determined position may include:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
Corresponding to the foregoing method embodiment, the embodiment of the present invention further provides data sharing apparatuses, as shown in fig. 8, which are applied to a sharing terminal, where the apparatuses may include:
a shared area setting instruction receiving module 801, configured to receive a shared area setting instruction;
a shared area setting module 802, configured to set a shared area according to the shared area setting instruction;
a -sending module 803, configured to determine shared data corresponding to the shared area, and send the shared data to a terminal to be shared, so that the terminal to be shared displays the shared data.
In the embodiment of the invention, a sharing area setting instruction is received, a sharing area is set according to the sharing area setting instruction, sharing data corresponding to the sharing area is determined, and the sharing data is sent to a terminal to be shared so that the terminal to be shared displays the sharing data. In the invention, the sharing area is set by receiving the sharing area setting instruction, then the sharing data corresponding to the sharing area is determined, and the data sharing is realized by sending the sharing data to the terminal to be shared for displaying.
In implementations of the invention, the apparatus may further include:
, an adjustment instruction receiving module, configured to receive a shared area adjustment instruction after sending the shared data to the terminal to be shared;
a shared area determining module, configured to determine an adjusted shared area according to the shared area adjustment instruction;
the shared data determining module is used for determining shared data corresponding to the adjusted shared area;
and the second sending module is used for sending the shared data corresponding to the adjusted shared area to the terminal to be shared so as to enable the terminal to be shared to display the received shared data.
In implementations of the invention, the apparatus may further include:
a network connection establishment request receiving module, configured to receive a network connection establishment request sent by an alternative terminal before receiving the shared area setting instruction;
the network long connection establishing module is used for establishing network long connection with the alternative terminal;
the selection instruction receiving module is used for receiving a selection instruction of the terminal to be shared;
and the terminal to be shared determining module is used for determining the terminal to be shared from the alternative terminals according to the terminal to be shared selecting instruction.
In implementations of the invention, the apparatus may further include:
an th control instruction receiving module, configured to receive th control instruction after the sending of the shared data to the terminal to be shared;
an th control message sending module, configured to send a th control message to the terminal to be shared according to the th control instruction, so that the terminal to be shared executes a corresponding operation according to the th control message, where the th control message includes a th operation type and an th operation location.
In implementations of the invention, the apparatus may further include:
a second control message receiving module, configured to receive a second control message sent by the terminal to be shared after the shared data is sent to the terminal to be shared, where the second control message includes a second operation type and a second operation location;
an th position determining module, configured to determine a position corresponding to the second operating position in the shared area;
, an execution module for executing the operation corresponding to the second operation type at the determined position.
In implementations of the invention, the second operation type may include an annotation operation and a mouse operation.
In implementations of the invention, the executing module may be specifically configured to:
and when the second operation type is mouse operation, calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
An embodiment of the present invention further provides electronic devices, as shown in fig. 9, including a processor 901 and a memory 902,
a memory 902 for storing a computer program;
a processor 901, configured to implement a data sharing method applied to a sharing terminal when executing a program stored in a memory 902, the method including the steps of:
receiving a shared area setting instruction;
setting a sharing area according to the sharing area setting instruction;
and determining shared data corresponding to the shared area, and sending the shared data to a terminal to be shared so that the terminal to be shared displays the shared data.
In the embodiment of the invention, the electronic equipment receives the sharing area setting instruction, sets the sharing area according to the sharing area setting instruction, determines the sharing data corresponding to the sharing area, and sends the sharing data to the terminal to be shared so as to enable the terminal to be shared to display the sharing data. In the invention, the sharing area is set by receiving the sharing area setting instruction, then the sharing data corresponding to the sharing area is determined, and the data sharing is realized by sending the sharing data to the terminal to be shared for displaying.
In implementation manners of the present invention, after the step of sending the shared data to the terminal to be shared, the method may further include:
receiving a shared area adjustment instruction;
determining an adjusted shared area according to the shared area adjusting instruction;
determining shared data corresponding to the adjusted shared area;
and sending the shared data corresponding to the adjusted shared area to the terminal to be shared so that the terminal to be shared displays the received shared data.
In implementations of the invention, before the step of receiving a shared region setting instruction, the method may further include:
receiving a network connection establishment request sent by an alternative terminal;
establishing network long connection with the alternative terminal;
receiving a selection instruction of a terminal to be shared;
and determining the terminal to be shared from the alternative terminals according to the terminal to be shared selection instruction.
In implementation manners of the present invention, after the step of sending the shared data to the terminal to be shared, the method may further include:
receiving th control instruction;
and sending control messages to the terminal to be shared according to the control instruction so that the terminal to be shared executes corresponding operations according to the control messages, wherein the control messages comprise operation types and operation positions.
In implementation manners of the present invention, after the step of sending the shared data to the terminal to be shared, the method may further include:
receiving a second control message sent by the terminal to be shared, wherein the second control message comprises a second operation type and a second operation position;
determining a position corresponding to the second operation position in the shared area;
and executing the operation corresponding to the second operation type at the determined position.
In implementations of the invention, the second operation type may include an annotation operation and a mouse operation.
In implementation manners of the present invention, when the second operation type is a mouse operation, the step of executing an operation corresponding to the second operation type at the determined position may include:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
The Memory mentioned in the above electronic device may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least disk memories, and optionally, the Memory may be at least storage devices located remotely from the processor.
The Processor may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Array (FPGA), or other Programmable logic device, discrete , or a transistor logic device, discrete hardware component.
The embodiment of the present invention further provides computer-readable storage media, where the computer-readable storage media store therein computer programs, and when the computer programs are executed by a processor, the computer programs implement a data sharing method applied to a sharing terminal, and the method includes the following steps:
receiving a shared area setting instruction;
setting a sharing area according to the sharing area setting instruction;
and determining shared data corresponding to the shared area, and sending the shared data to a terminal to be shared so that the terminal to be shared displays the shared data.
In the embodiment of the invention, when being executed by a processor, a computer program receives a sharing area setting instruction, sets a sharing area according to the sharing area setting instruction, determines sharing data corresponding to the sharing area, and sends the sharing data to a terminal to be shared so as to enable the terminal to be shared to display the sharing data. In the invention, the sharing area is set by receiving the sharing area setting instruction, then the sharing data corresponding to the sharing area is determined, and the data sharing is realized by sending the sharing data to the terminal to be shared for displaying.
In implementation manners of the present invention, after the step of sending the shared data to the terminal to be shared, the method may further include:
receiving a shared area adjustment instruction;
determining an adjusted shared area according to the shared area adjusting instruction;
determining shared data corresponding to the adjusted shared area;
and sending the shared data corresponding to the adjusted shared area to the terminal to be shared so that the terminal to be shared displays the received shared data.
In implementations of the invention, before the step of receiving a shared region setting instruction, the method may further include:
receiving a network connection establishment request sent by an alternative terminal;
establishing network long connection with the alternative terminal;
receiving a selection instruction of a terminal to be shared;
and determining the terminal to be shared from the alternative terminals according to the terminal to be shared selection instruction.
In implementation manners of the present invention, after the step of sending the shared data to the terminal to be shared, the method may further include:
receiving th control instruction;
and sending control messages to the terminal to be shared according to the control instruction so that the terminal to be shared executes corresponding operations according to the control messages, wherein the control messages comprise operation types and operation positions.
In implementation manners of the present invention, after the step of sending the shared data to the terminal to be shared, the method may further include:
receiving a second control message sent by the terminal to be shared, wherein the second control message comprises a second operation type and a second operation position;
determining a position corresponding to the second operation position in the shared area;
and executing the operation corresponding to the second operation type at the determined position.
In implementations of the invention, the second operation type may include an annotation operation and a mouse operation.
In implementation manners of the present invention, when the second operation type is a mouse operation, the step of executing an operation corresponding to the second operation type at the determined position may include:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
The following describes a data sharing method on the side of the terminal to be shared.
The data sharing method provided by the embodiment of the invention can be applied to a terminal to be shared, the terminal to be shared can be electronic equipment such as a desktop computer, a mobile phone, and an body machine, and is not specifically limited herein, wherein the body machine is equipment with combined host and display, and can be controlled by screen touch, and can also be controlled by an external mouse and a keyboard.
As shown in fig. 10, data sharing methods provided in the embodiments of the present invention are applied to a terminal to be shared, and the method may include:
s1001: and receiving a display area setting instruction.
In the embodiment of the invention, a user can set the display area on the screen of the terminal to be shared, and after the user sets the display area, the terminal to be shared receives the display area setting instruction.
The display area setting instruction receiving method includes various methods, including but not limited to the following:
th mode:
the method comprises the steps that a terminal to be shared outputs display area setting information, the display area setting information comprises a display area position and corresponding check boxes, wherein the display area position can comprise the left half side, the right half side, the upper half side and the lower half side of a screen of the terminal to be shared, a user can check the check boxes according to the requirements of the user, after a certain check box is checked, the display area position corresponding to the check box is selected, namely the position of the display area is set by the user, and at the moment, the sharing terminal receives a display area setting instruction.
For example: assuming that the user sets the left half of the screen of the terminal to be shared as a display area, the second display area setting instruction received by the terminal to be shared is as follows: and the left half side of the screen of the terminal to be shared is a display area.
The second mode is as follows:
the user can select area as the display area from the screen of the terminal to be shared according to the requirement of the user, that is, the user sets the position of the display area, and at this time, the terminal to be shared receives the display area setting instruction.
S1002: and setting the display area according to the display area setting instruction.
After receiving the display area setting instruction, the display area can be set according to the display area setting instruction.
For example: in the example of step S1001, the display area setting instruction is: and setting the left half side of the screen of the terminal to be shared as a display area according to a display area setting instruction.
S1003: and receiving the shared data sent by the shared terminal.
Since data sharing is data sharing between the sharing terminal and the terminal to be shared, the sharing terminal sends a data sharing request to the terminal to be shared, and at this time, the terminal to be shared receives the data sharing request sent by the sharing terminal.
After receiving the data sharing request, the terminal to be shared sends data sharing response information to the sharing terminal, informs the sharing terminal that the data sharing can be carried out, and sends a flow fetching request to the sharing terminal.
After receiving the data sharing response information and the stream fetching request sent by the terminal to be shared, the sharing terminal acquires that the terminal to be shared can share data and can start to fetch the stream, and at the moment, the sharing terminal captures the shared data in the sharing area on the screen and sends the shared data to the terminal to be shared.
At this time, the terminal to be shared receives the shared data sent by the sharing terminal.
S1004: and displaying the shared data in the display area.
For data sharing, after receiving the shared data sent by the sharing terminal, the terminal to be shared may display the received shared data in the display area.
In the embodiment of the invention, a display area setting instruction is received, a display area is set according to the display area setting instruction, shared data sent by a shared terminal is received, and the shared data is displayed in the display area. In the invention, the display area is set by receiving the display area setting instruction, then the shared data sent by the shared terminal is received, and the shared data is displayed in the display area, thus realizing data sharing.
On the basis of the method shown in fig. 10, after step S1004, as shown in fig. 11, the data sharing methods provided in the embodiment of the present invention may further include:
s1005, receiving th control message sent by the sharing terminal, wherein the th control message comprises th operation type and th operation position.
After data sharing, the user may need to operate on the shared data displayed on the shared terminal, and at this time, the shared terminal receives th control command.
For example, the sharing terminal is an body machine, the terminal to be shared is a notebook computer, the teacher shares the teaching content with the student's notebook computer through the body machine, when the teacher explains the teaching content displayed in the body machine, the teacher notes the content in class, and at this time, the body machine receives the th control instruction.
After receiving the th control command, the sharing terminal indicates that the user has performed an operation on the shared data in the sharing terminal, at this time, in order to make the shared data displayed by the terminal to be shared change accordingly, the sharing terminal needs to send a th control message to the terminal to be shared according to the th control command, at this time, the terminal to be shared receives the th control message sent by the sharing terminal.
Since there are various types of operations of the user on the shared data, for example, the th operation type may include an annotation operation and a mouse operation, therefore, in order to make the terminal to be shared know what kind of operation can be performed after receiving the th control message, the th control message may include the th operation type, in order to make the terminal to be shared know where to perform an operation corresponding to the th operation type described above, the th control message may further include the th operation location.
For example, the th control message sent by the sharing terminal to be received by the sharing terminal may be in the form of a message header + a message body, wherein the message header comprises a operation type, and the message body comprises a operation position.
At S1006, a position corresponding to the th operation position is determined in the display area.
And after receiving the th control message sent by the sharing terminal, the sharing terminal analyzes the th control message to obtain the th operation type and the th operation position.
The th operation position may include th ratio and second ratio, and the process of the shared terminal determining th ratio and second ratio may be specifically referred to the process of determining th ratio and th ratio in step S109 in fig. 6.
After the th operation position is obtained, in order to know where in the display area the corresponding operation is performed, it is necessary to determine a position corresponding to the th operation position in the display area.
In the display area, determining the position corresponding to the th operation position may be:
determining the width and the height of the display area, determining the horizontal distance from the position at the upper left corner of the display area according to the ratio of the width of the display area to the th ratio, determining the vertical distance from the position at the upper left corner of the display area according to the height of the display area and the second ratio, determining the target position according to the horizontal distance and the vertical distance, and taking the determined target position as the position corresponding to the th operation position.
And S1007, executing operation corresponding to the th operation type at the determined position.
After the position corresponding to the th operation position is determined, the operation corresponding to the th operation type can be performed at the determined position.
Therefore, by receiving the th control message sent by the sharing terminal, determining the position corresponding to the th operation position in the display area, and executing the operation corresponding to the th operation type at the determined position, the purpose of operating the shared data of the sharing terminal to be shared is achieved through the operation of the shared data of the sharing terminal in the data sharing process, so that not only the shared data is displayed, but also the shared data can be operated in the data sharing process, and the user experience is improved.
Since the mouse operation is a system operation of the electronic device, the cut operation related to the mouse needs to be executed through the os interface, and thus, when the operation type is a mouse operation, the executing the operation corresponding to the operation type at the determined position may include:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
On the basis of the method shown in fig. 10, after step S1004, as shown in fig. 12, the data sharing methods provided in the embodiment of the present invention may further include:
s1008: and receiving a second control instruction.
After data sharing is performed, sometimes a user needs to operate shared data in a display area in a terminal to be shared, and at this time, the terminal to be shared receives a second control instruction.
For example, the sharing terminal is an body machine, the terminal to be shared is a notebook computer, the teacher shares the teaching content with the student's notebook computer through the body machine, when the student cannot understand the teaching content displayed in the notebook computer, the student notes the teaching content, and at this time, the notebook computer receives the second control instruction.
S1009: and sending second control information to the shared terminal according to the second control instruction so that the shared terminal executes corresponding operation according to the second control information, wherein the second control information comprises a second operation type and a second operation position.
After receiving the second control instruction, it is described that the user has performed an operation on the shared data, and at this time, in order to make the shared data displayed by the shared terminal change correspondingly, it is necessary to send a second control message to the shared terminal according to the second control instruction, so that the shared terminal performs a corresponding operation according to the second control message.
Since there are various types of operations performed by users on shared data, for example: the mouse operation type or the annotation operation type, and therefore, in order to make the sharing terminal know what kind of operation can be performed after receiving the second control message, the second control message may include the second operation type. In order to make the sharing terminal know where to perform the operation corresponding to the second operation type, the second control message may further include a second operation location.
For example, the message format of the second control message sent by the terminal to be shared may be: header + body. The message header includes a second operation type and the message body includes a second operation location.
When the terminal to be shared detects the occurrence of a single or two mouse event, for example: determining that the operation of the user on the shared data is a mouse operation type if a mouse button pressing event, a mouse moving event or a mouse button bouncing event and the like are carried out; and when the terminal to be shared detects that the mouse pressing event and the mouse moving event occur simultaneously, determining that the operation of the user on the shared data is the annotation operation type.
For example, the second operation position may be calculated by: determining an operation position corresponding to the mouse in the display area, determining the width and the height of the display area, determining a horizontal distance and a vertical distance between the operation position and the upper left corner of the display area, calculating a third ratio of the horizontal distance to the width of the display area, calculating a fourth ratio of the vertical distance to the height of the display area, and determining the third ratio and the fourth ratio as a second operation position.
And under the condition that the second control message comprises the second operation type and the second operation position, the shared terminal can execute corresponding operation according to the second control message after receiving the second control message. The shared terminal executing the corresponding operation according to the second control message may be: in the shared area, a position corresponding to the second operation position is determined, and an operation corresponding to the second operation type is performed at the determined position. The specific implementation can be seen in the description of fig. 7 on the shared terminal side.
Therefore, by receiving the second control instruction and sending the second control information to the sharing terminal, the purpose of operating the shared data of the sharing terminal is achieved by operating the shared data of the sharing terminal in the data sharing process, so that in the data sharing process, not only the shared data is displayed, but also the shared data can be operated, and the user experience is improved.
Corresponding to the foregoing method embodiment, the embodiment of the present invention further provides data sharing apparatuses, as shown in fig. 13, applied to a terminal to be shared, where the apparatuses may include:
a display area setting instruction receiving module 1301, configured to receive a display area setting instruction;
a display area setting module 1302, configured to set a display area according to the display area setting instruction;
a shared data receiving module 1303, configured to receive shared data sent by the shared terminal;
a display module 1304, configured to display the shared data in the display area.
In the embodiment of the invention, a display area setting instruction is received, a display area is set according to the display area setting instruction, shared data sent by a shared terminal is received, and the shared data is displayed in the display area. In the invention, the display area is set by receiving the display area setting instruction, then the shared data sent by the shared terminal is received, and the shared data is displayed in the display area, thus realizing data sharing.
In implementations of the invention, the apparatus may further include:
an control message receiving module, configured to receive control message sent by the sharing terminal after the shared data is displayed in the display area, wherein the control message includes a operation type and a operation position;
a second position determination module for determining a position corresponding to the th operation position in the display area;
and the second execution module is used for executing the operation corresponding to the th operation type at the determined position.
In implementations of the invention, the operation types may include annotation operations and mouse operations.
In implementation manners of the present invention, the second execution module may be specifically configured to:
and when the th operation type is a mouse operation, calling an operating system interface to execute an operation corresponding to the mouse operation type at the determined position.
In implementations of the invention, the apparatus may further include:
the second control instruction receiving module is used for receiving a second control instruction after the shared data is displayed in the display area;
and a second control information sending module, configured to send second control information to the shared terminal according to the second control instruction, so that the shared terminal executes a corresponding operation according to the second control information, where the second control information includes a second operation type and a second operation location.
Embodiments of the present invention also provide electronic devices, as shown in fig. 14, comprising a processor 1401 and a memory 1402,
a memory 1402 for storing a computer program;
a processor 1401, configured to implement a data sharing method applied to a terminal to be shared when executing a program stored in the memory 1402, the method including the steps of:
receiving a display area setting instruction;
setting a display area according to the display area setting instruction;
receiving shared data sent by the shared terminal;
and displaying the shared data in the display area.
In the embodiment of the invention, the electronic equipment receives the display area setting instruction, sets the display area according to the display area setting instruction, receives the shared data sent by the shared terminal, and displays the shared data in the display area. In the invention, the display area is set by receiving the display area setting instruction, then the shared data sent by the shared terminal is received, and the shared data is displayed in the display area, thus realizing data sharing.
In implementations of the invention, after the step of displaying the shared data in the display area, the method may further include:
receiving th control message sent by the sharing terminal, wherein the th control message comprises th operation type and th operation position;
determining a position corresponding to the th operation position in the display area;
and executing the operation corresponding to the th operation type at the determined position.
In implementations of the invention, the operation types may include annotation operations and mouse operations.
In implementations of the invention, when the operation type is a mouse operation, the step of performing the operation corresponding to the operation type at the determined position may include:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
In implementations of the invention, after the step of displaying the shared data in the display area, the method may further include:
receiving a second control instruction;
and sending second control information to the shared terminal according to the second control instruction so that the shared terminal executes corresponding operation according to the second control information, wherein the second control information comprises a second operation type and a second operation position.
The embodiment of the present invention further provides computer-readable storage media, where the computer-readable storage media store therein a computer program, and the computer program, when executed by a processor, implements a data sharing method applied to a terminal to be shared, where the method includes the following steps:
receiving a display area setting instruction;
setting a display area according to the display area setting instruction;
receiving shared data sent by the shared terminal;
and displaying the shared data in the display area.
In the embodiment of the invention, the computer program is executed by the processor to receive the display area setting instruction, set the display area according to the display area setting instruction, receive the shared data sent by the shared terminal and display the shared data in the display area. In the invention, the display area is set by receiving the display area setting instruction, then the shared data sent by the shared terminal is received, and the shared data is displayed in the display area, thus realizing data sharing.
In implementations of the invention, after the step of displaying the shared data in the display area, the method may further include:
receiving th control message sent by the sharing terminal, wherein the th control message comprises th operation type and th operation position;
determining a position corresponding to the th operation position in the display area;
and executing the operation corresponding to the th operation type at the determined position.
In implementations of the invention, the operation types may include annotation operations and mouse operations.
In implementations of the invention, when the operation type is a mouse operation, the step of performing the operation corresponding to the operation type at the determined position may include:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
In implementations of the invention, after the step of displaying the shared data in the display area, the method may further include:
receiving a second control instruction;
and sending second control information to the shared terminal according to the second control instruction so that the shared terminal executes corresponding operation according to the second control information, wherein the second control information comprises a second operation type and a second operation position.
It should be noted that, in this document, relational terms such as , second and the like are only used to distinguish entities or operations from another entities or operations, and no necessarily requires or implies that any such actual relationship or order exists between the entities or operations.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the apparatus embodiment shown in fig. 8, the electronic device embodiment shown in fig. 9, and the computer-readable storage medium embodiment are substantially similar to the method embodiment shown in fig. 2, so that the description is simple, and relevant points can be referred to partial description of the method embodiment shown in fig. 2; as for the apparatus embodiment shown in fig. 13, the electronic device embodiment shown in fig. 14 and the computer-readable storage medium embodiment, since they are substantially similar to the method embodiment shown in fig. 10, the description is relatively simple, and relevant points can be found by referring to part of the description of the method embodiment shown in fig. 10.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (28)

1, data sharing method, applied to sharing terminals, the method comprising:
receiving a shared area setting instruction;
setting a sharing area according to the sharing area setting instruction;
and determining shared data corresponding to the shared area, and sending the shared data to a terminal to be shared so that the terminal to be shared displays the shared data.
2. The method according to claim 1, wherein after the step of sending the shared data to the terminal to be shared, the method further comprises:
receiving a shared area adjustment instruction;
determining an adjusted shared area according to the shared area adjusting instruction;
determining shared data corresponding to the adjusted shared area;
and sending the shared data corresponding to the adjusted shared area to the terminal to be shared so that the terminal to be shared displays the received shared data.
3. The method of claim 1, wherein prior to the step of receiving a shared region setting instruction, the method further comprises:
receiving a network connection establishment request sent by an alternative terminal;
establishing network long connection with the alternative terminal;
receiving a selection instruction of a terminal to be shared;
and determining the terminal to be shared from the alternative terminals according to the terminal to be shared selection instruction.
4. The method according to claim 1, wherein after the step of sending the shared data to the terminal to be shared, the method further comprises:
receiving th control instruction;
and sending control messages to the terminal to be shared according to the control instruction so that the terminal to be shared executes corresponding operations according to the control messages, wherein the control messages comprise operation types and operation positions.
5. The method according to claim 1, wherein after the step of sending the shared data to the terminal to be shared, the method further comprises:
receiving a second control message sent by the terminal to be shared, wherein the second control message comprises a second operation type and a second operation position;
determining a position corresponding to the second operation position in the shared area;
and executing the operation corresponding to the second operation type at the determined position.
6. The method of claim 5, wherein the second operation type comprises an annotation operation and a mouse operation.
7. The method according to claim 6, wherein when the second operation type is a mouse operation, the step of executing the operation corresponding to the second operation type at the determined position includes:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
data sharing device, applied to sharing terminals, the device comprising:
a shared area setting instruction receiving module for receiving a shared area setting instruction;
the shared area setting module is used for setting a shared area according to the shared area setting instruction;
an sending module, configured to determine shared data corresponding to the shared area, and send the shared data to a terminal to be shared, so that the terminal to be shared displays the shared data.
9. The apparatus of claim 8, further comprising:
, an adjustment instruction receiving module, configured to receive a shared area adjustment instruction after sending the shared data to the terminal to be shared;
a shared area determining module, configured to determine an adjusted shared area according to the shared area adjustment instruction;
the shared data determining module is used for determining shared data corresponding to the adjusted shared area;
and the second sending module is used for sending the shared data corresponding to the adjusted shared area to the terminal to be shared so as to enable the terminal to be shared to display the received shared data.
10. The apparatus of claim 8, further comprising:
a network connection establishment request receiving module, configured to receive a network connection establishment request sent by an alternative terminal before receiving the shared area setting instruction;
the network long connection establishing module is used for establishing network long connection with the alternative terminal;
the selection instruction receiving module is used for receiving a selection instruction of the terminal to be shared;
and the terminal to be shared determining module is used for determining the terminal to be shared from the alternative terminals according to the terminal to be shared selecting instruction.
11. The apparatus of claim 8, further comprising:
the control instruction receiving module is used for receiving control instructions after the shared data are sent to the terminal to be shared;
an th control message sending module, configured to send a th control message to the terminal to be shared according to the th control instruction, so that the terminal to be shared executes a corresponding operation according to the th control message, where the th control message includes a th operation type and an th operation location.
12. The apparatus of claim 8, further comprising:
a second control message receiving module, configured to receive a second control message sent by the terminal to be shared after the shared data is sent to the terminal to be shared, where the second control message includes a second operation type and a second operation location;
an th position determining module, configured to determine a position corresponding to the second operating position in the shared area;
, an execution module for executing the operation corresponding to the second operation type at the determined position.
13. The apparatus of claim 12, wherein the second type of operation comprises an annotation operation and a mouse operation.
14. The apparatus according to claim 13, wherein the th execution module is specifically configured to:
and when the second operation type is mouse operation, calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
15, electronic device, comprising a processor and a memory,
a memory for storing a computer program;
a processor configured to perform the method steps recited in any of claims 1-7 at when the processor executes the program stored in the memory.
16, computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when being executed by a processor, carries out the method steps of any of claims 1-7 to .
17, data sharing method, applied to a terminal to be shared, the method comprising:
receiving a display area setting instruction;
setting a display area according to the display area setting instruction;
receiving shared data sent by the shared terminal;
and displaying the shared data in the display area.
18. The method of claim 17, wherein after the step of displaying the shared data in the display area, the method further comprises:
receiving th control message sent by the sharing terminal, wherein the th control message comprises th operation type and th operation position;
determining a position corresponding to the th operation position in the display area;
and executing the operation corresponding to the th operation type at the determined position.
19. The method of claim 18, wherein the th operation type comprises an annotation operation and a mouse operation.
20. The method of claim 19, wherein when the th operation type is a mouse operation, the step of executing the operation corresponding to the th operation type at the determined position comprises:
and calling an operating system interface to execute the operation corresponding to the mouse operation type at the determined position.
21. The method of claim 17, wherein after the step of displaying the shared data in the display area, the method further comprises:
receiving a second control instruction;
and sending second control information to the shared terminal according to the second control instruction so that the shared terminal executes corresponding operation according to the second control information, wherein the second control information comprises a second operation type and a second operation position.
22, kinds of data sharing devices, characterized in that, applied to the terminal to be shared, the device includes:
the display area setting instruction receiving module is used for receiving a display area setting instruction;
the display area setting module is used for setting a display area according to the display area setting instruction;
a shared data receiving module, configured to receive shared data sent by the shared terminal;
and the display module is used for displaying the shared data in the display area.
23. The apparatus of claim 22, further comprising:
an control message receiving module, configured to receive control message sent by the sharing terminal after the shared data is displayed in the display area, wherein the control message includes a operation type and a operation position;
a second position determination module for determining a position corresponding to the th operation position in the display area;
and the second execution module is used for executing the operation corresponding to the th operation type at the determined position.
24. The apparatus of claim 23, wherein the th operation type comprises an annotation operation and a mouse operation.
25. The apparatus of claim 24, wherein the second execution module is specifically configured to:
and when the th operation type is a mouse operation, calling an operating system interface to execute an operation corresponding to the mouse operation type at the determined position.
26. The apparatus of claim 22, further comprising:
the second control instruction receiving module is used for receiving a second control instruction after the shared data is displayed in the display area;
and a second control information sending module, configured to send second control information to the shared terminal according to the second control instruction, so that the shared terminal executes a corresponding operation according to the second control information, where the second control information includes a second operation type and a second operation location.
An electronic device of the type 27, , comprising a processor and a memory,
a memory for storing a computer program;
a processor adapted to perform the method steps of any of claims 17-21 when executing a program stored in a memory.
28, computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when being executed by a processor, carries out the method steps of any of claims 17-21 to .
CN201810797975.XA 2018-07-19 2018-07-19 data sharing method, device, electronic equipment and storage medium Pending CN110737638A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810797975.XA CN110737638A (en) 2018-07-19 2018-07-19 data sharing method, device, electronic equipment and storage medium
PCT/CN2019/096869 WO2020015750A1 (en) 2018-07-19 2019-07-19 Data sharing method and apparatus, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810797975.XA CN110737638A (en) 2018-07-19 2018-07-19 data sharing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110737638A true CN110737638A (en) 2020-01-31

Family

ID=69164270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810797975.XA Pending CN110737638A (en) 2018-07-19 2018-07-19 data sharing method, device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110737638A (en)
WO (1) WO2020015750A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596642A (en) * 2020-12-16 2021-04-02 维沃移动通信有限公司 Data sharing method, device, equipment and readable storage medium
CN114286148A (en) * 2021-12-27 2022-04-05 江苏中威科技软件***有限公司 Screen sharing method for dynamically controlling content range
WO2022068654A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Interaction method and apparatus for terminal device
WO2024007799A1 (en) * 2022-07-05 2024-01-11 中兴通讯股份有限公司 Method and device for processing remote sharing of display screen, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566957A (en) * 2011-12-13 2012-07-11 安科智慧城市技术(中国)有限公司 Screen division method and device of multimedia information issuing system
CN104540012A (en) * 2015-01-20 2015-04-22 三星电子(中国)研发中心 Method, device and terminal for content sharing
CN105589890A (en) * 2014-11-05 2016-05-18 ***股份有限公司 Memory sharing frame system
US20160364086A1 (en) * 2015-06-10 2016-12-15 Prysm, Inc. Content sharing broadcast zone
CN106843797A (en) * 2017-03-13 2017-06-13 广州视源电子科技股份有限公司 Editing method and device for image file
CN107924546A (en) * 2015-10-14 2018-04-17 三星电子株式会社 For providing the method for content information and electronic equipment for this method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883135B (en) * 2012-11-01 2015-08-26 成都飞视美视频技术有限公司 Screen sharing and control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566957A (en) * 2011-12-13 2012-07-11 安科智慧城市技术(中国)有限公司 Screen division method and device of multimedia information issuing system
CN105589890A (en) * 2014-11-05 2016-05-18 ***股份有限公司 Memory sharing frame system
CN104540012A (en) * 2015-01-20 2015-04-22 三星电子(中国)研发中心 Method, device and terminal for content sharing
US20160364086A1 (en) * 2015-06-10 2016-12-15 Prysm, Inc. Content sharing broadcast zone
CN107924546A (en) * 2015-10-14 2018-04-17 三星电子株式会社 For providing the method for content information and electronic equipment for this method
CN106843797A (en) * 2017-03-13 2017-06-13 广州视源电子科技股份有限公司 Editing method and device for image file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何润平 等: "《MTK智能穿戴开发实战》", 31 January 2018, 西安科技大学出版社 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022068654A1 (en) * 2020-09-30 2022-04-07 华为技术有限公司 Interaction method and apparatus for terminal device
CN112596642A (en) * 2020-12-16 2021-04-02 维沃移动通信有限公司 Data sharing method, device, equipment and readable storage medium
CN114286148A (en) * 2021-12-27 2022-04-05 江苏中威科技软件***有限公司 Screen sharing method for dynamically controlling content range
WO2024007799A1 (en) * 2022-07-05 2024-01-11 中兴通讯股份有限公司 Method and device for processing remote sharing of display screen, and storage medium

Also Published As

Publication number Publication date
WO2020015750A1 (en) 2020-01-23

Similar Documents

Publication Publication Date Title
US10728501B2 (en) Multifunctional conferencing systems and methods
US10255025B2 (en) Screen sharing system, screen sharing method, and storage medium
CN110737638A (en) data sharing method, device, electronic equipment and storage medium
CN111031368B (en) Multimedia playing method, device, equipment and storage medium
US9485465B2 (en) Picture control method, terminal, and video conferencing apparatus
US20140365620A1 (en) Adjusting a media stream in a video communication system
US20140112120A1 (en) Server, client device, and control methods thereof
US20170171496A1 (en) Method and Electronic Device for Screen Projection
WO2020125604A1 (en) Data transmission method, apparatus, device, and storage medium
US11924255B2 (en) Data transmission method and apparatus, server, storage medium, and program product
CN110752999B (en) Screen broadcasting method, device, system, electronic equipment and storage medium
CN112770078B (en) Video conference terminal fusion method and device and readable storage medium
WO2024083008A1 (en) Data transmission method, apparatus and system, electronic device, and medium
EP2913753A1 (en) Transmission terminal, transmission system, transmission method, and carrier means
CN113010135A (en) Data processing method and device, display terminal and storage medium
US20230195403A1 (en) Information processing method and electronic device
US10863233B2 (en) Wireliss docking system for audio-video
CN111143607B (en) Information acquisition method and device
CN110753326B (en) Equipment interconnection method, device, system, terminal and storage medium
WO2024065449A1 (en) Data sharing display method and intelligent display system
CN115499693A (en) Multi-screen different display control method, device and system, storage medium and electronic equipment
CN116456137A (en) Screen projection method and electronic equipment
CN112423408A (en) Control method and device of video networking terminal, terminal equipment and storage medium
CN118413580A (en) Communication method, device and system
CN112135178A (en) Method, system and storage medium for realizing two-way communication based on television

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200131