CN107911437B - Screen sharing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN107911437B
CN107911437B CN201711105657.4A CN201711105657A CN107911437B CN 107911437 B CN107911437 B CN 107911437B CN 201711105657 A CN201711105657 A CN 201711105657A CN 107911437 B CN107911437 B CN 107911437B
Authority
CN
China
Prior art keywords
client device
sharing
sharing request
screen
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711105657.4A
Other languages
Chinese (zh)
Other versions
CN107911437A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201711105657.4A priority Critical patent/CN107911437B/en
Priority to PCT/CN2017/116746 priority patent/WO2019090902A1/en
Publication of CN107911437A publication Critical patent/CN107911437A/en
Application granted granted Critical
Publication of CN107911437B publication Critical patent/CN107911437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment

Abstract

The invention discloses a screen sharing method and device, electronic equipment and a storage medium. The method comprises the following steps: establishing communication connection with at least two client devices, and sending a connection list of the client devices in current communication connection to each client device; if a sharing request sent by any client device is received, sending the sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device, wherein the sharing request is generated by any client device based on the connection list; and forwarding the screen sharing data to the client device sending the sharing request so as to play and/or display the screen sharing data at the client device. The method provided by the invention can realize that any client device can share the screen with other client devices based on the communication connection established between each client device and the server device, thereby improving the user experience.

Description

Screen sharing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of screen sharing technologies, and in particular, to a method and an apparatus for screen sharing, an electronic device, and a storage medium.
Background
With the continuous development of information technology, the function shared by multiple equipment screens is widely applied to scenes such as teaching, training, games, meetings and the like.
In the prior art, the technical scheme for realizing screen sharing between a mobile terminal such as a smart phone or a smart tablet and a computer or an interactive smart tablet and screen sharing between a computer and a computer is mature, but no better technical scheme for realizing screen sharing between a smart phone and between a smart phone and a mobile terminal such as a smart tablet exists, so that in scenes such as teaching or meetings, each mobile terminal can only realize screen sharing with a specific computer or an interactive smart tablet, screen sharing with other mobile terminals according to actual needs cannot be realized, and user experience is low.
Disclosure of Invention
The invention provides a screen sharing method, a screen sharing device, electronic equipment and a storage medium, so that a user of client equipment can share a screen of the client equipment used by the user and other client equipment according to actual needs, and user experience is improved.
In a first aspect, an embodiment of the present invention provides a method for screen sharing, where the method includes:
establishing communication connection with at least two client devices, and sending a connection list of the client devices in current communication connection to each client device;
if a sharing request sent by any client device is received, sending the sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device, wherein the sharing request is generated by any client device based on the connection list;
and forwarding the screen sharing data to the client device sending the sharing request so as to play and/or display the screen sharing data at the client device.
In a second aspect, an embodiment of the present invention further provides a device for screen sharing, where the device includes:
the system comprises a connection list sending module, a connection list sending module and a connection list sending module, wherein the connection list sending module is used for establishing communication connection with at least two pieces of client equipment and sending a connection list of the client equipment in current communication connection to each piece of client equipment;
a first sharing request sending module, configured to send a sharing request to a target client device corresponding to the sharing request to obtain screen sharing data of the target client device if the sharing request sent by any client device is received, where the sharing request is generated for any client device based on the connection list;
and the screen sharing data forwarding module is used for forwarding the screen sharing data to the client equipment which sends the sharing request so as to play and/or display the screen sharing data on the client equipment.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of screen sharing as provided by any of the embodiments of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for screen sharing provided in any embodiment of the present invention.
The embodiment of the invention establishes communication connection with at least two pieces of client equipment and sends a connection list of the client equipment with current communication connection to each piece of client equipment; if a sharing request sent by any client device is received, sending the sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device, wherein the sharing request is generated by any client device based on a connection list; the method and the device have the advantages that the screen sharing data are forwarded to the client device sending the sharing request to be played and/or displayed on the client device, the problem that a mobile terminal such as a smart phone or a smart tablet can only realize a screen with a specific computer or an interactive smart tablet and cannot realize screen sharing with other mobile terminals according to actual needs is solved, communication connection established between each client device and the server device is realized, any client device can share the screen with other client devices, users of each client device can conveniently select target client devices needing screen sharing according to actual needs, and user experience is improved.
Drawings
FIG. 1 is a flowchart of a method for screen sharing according to a first embodiment of the present invention;
fig. 2 is a schematic connection diagram of a server device and a client device in a first embodiment of the present invention;
FIG. 3 is a flowchart of a method for screen sharing according to a second embodiment of the present invention;
FIG. 4 is a block diagram of a screen sharing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a screen sharing method according to an embodiment of the present invention, where the method is applicable to a situation requiring screen sharing, and the method can be executed by a screen sharing device, and the device can be composed of software and/or hardware, and can be generally integrated in a terminal. Referring to fig. 1, the method provided in this embodiment specifically includes the following steps:
step 110, establishing communication connection with at least two client devices, and sending a connection list of the client devices in current communication connection to each client device.
In this embodiment, the manner in which the server device establishes the communication connection with the client device is not limited. For example, the server device may establish a communication connection with each client device through a network connection or a bluetooth connection.
The client device can be a smart phone, a smart tablet, a smart television or a computer, and the server device can also be a smart phone, a smart tablet, a smart television or a computer.
Fig. 2 is a schematic connection diagram of a server device and a client device provided in this embodiment. In fig. 2, the server device and the client device are exemplified by network connection. As shown in fig. 2, client device C1, client device C2, client device C3, and client device C4 each establish a communication connection with server device S.
When any client device establishes communication connection with the server device, the server device can acquire the characteristic information of the client device and store the characteristic information of the client device in a connection list so as to store the client device in current communication connection through the connection list.
For example, the characteristic information of the client device may be information such as an InteRnational MoBile Equipment Identity (IMEI), a Central Processing Unit (CPU) serial number, a Media Access Control (MAC) address or an Internet Protocol (IP) address, and may also be a combination of a plurality of pieces of information or a specific form of information generated according to a specific algorithm according to the plurality of pieces of information, so that the characteristic information may uniquely identify the client device as the client device Identity.
Preferably, the server device may send a connection list to each client device in current communication connection according to a preset time interval, and each client device may further obtain, through the connection list, other client devices in current communication connection with the server device.
Step 120, if a sharing request sent by any client device through the connection list is received, sending a sharing request to a target client device corresponding to the sharing request to obtain screen sharing data of the target client device.
Wherein the sharing request is generated for any client device based on the connection list.
For example, after receiving a connection list sent by a server device, a user of the client device may call the connection list through a preset touch operation or a preset option, and then the user may select feature information of a target client device of a screen to be shared in the called connection list, and after the user selects the feature information of the target client device, the client device generates a sharing request including the feature information of the target client device and sends the sharing request to the server device. Thus, the server device can receive the sharing request sent by the client device.
Preferably, the connection list called out by any client device does not include the characteristic information of the client device itself.
If the server device receives a sharing request sent by any client device, the server device sends the sharing request to a target client device corresponding to the sharing request, namely sends the sharing request to the target client device corresponding to the characteristic information in the sharing request so as to obtain the screen sharing data of the target client device.
Preferably, after receiving the sharing request, the target client device obtains its own screen sharing data, and sends the obtained screen sharing data to the server device.
The screen sharing data may include only video data, only audio data, or both video and audio data.
Specifically, the target client device may encode the acquired video data and audio data by using a general technique and protocol, and send the encoded video data and audio data to the server device. For example, the video data may be encoded by the H264 scheme, and the Audio data may be encoded by the AAC (Advanced Audio Coding) scheme.
Step 130, forwarding the screen sharing data to the client device sending the sharing request for playing and/or displaying at the client device.
After the server-side device acquires the screen sharing data sent by the target client-side device, the acquired screen sharing data are forwarded to the client-side device sending the sharing request to be played and/or displayed on the client-side device.
Preferably, after receiving the screen sharing data sent by the target client, the server device may further process the screen sharing data by performing code rate adjustment and the like, and then forward the processed screen sharing data to the client device sending the sharing request.
For example, after the server device receives a sharing request sent by any client device, the server device may store a corresponding relationship between the client device sending the sharing request and a target client device corresponding to the sharing request in a request list, and after the server device receives screen sharing data sent by a certain target client device, the server device forwards the screen sharing data to all client devices sending the sharing request corresponding to the target client device in the request list.
After receiving the screen sharing data, the client device correspondingly decodes and plays the audio data in the screen sharing data and/or correspondingly decodes and displays the video data in the screen sharing data, and further achieves the purpose of sharing the screen sharing data of the target client device to the client device sending the sharing request.
The embodiment establishes communication connection with at least two client devices, and sends a connection list of the client devices in current communication connection to each client device; if a sharing request sent by any client device is received, sending the sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device, wherein the sharing request is generated by any client device based on the connection list; the method and the device have the advantages that the screen sharing data are forwarded to the client device sending the sharing request to be played and/or displayed on the client device, the problems that a mobile terminal such as a smart phone or a smart tablet can only achieve screen sharing with a specific computer or an interactive smart tablet and cannot achieve screen sharing with other mobile terminals according to actual needs are solved, communication connection established between each client device and the server device is achieved, any client device can perform screen sharing with other client devices, users of the client devices can conveniently select target client devices needing screen sharing according to actual needs, and user experience is improved.
Example two
Fig. 3 is a flowchart of a screen sharing method according to a second embodiment of the present invention. The embodiment is further optimized on the basis of the embodiment. In this embodiment, sending the sharing request to the target client device corresponding to the sharing request to obtain the screen sharing data of the target client device is optimized as follows: popping up a dialog box to receive a confirmation instruction whether the sharing request is approved or not; if an agreed confirmation instruction is received through the dialog box, sending a sharing request to target client equipment corresponding to the sharing request to acquire screen sharing data of the target client equipment; optimizing a connection list of client devices that send a current communication connection to each client device as: the method comprises the steps of sending a connection list of client equipment of current communication connection to each client equipment at regular time according to a preset time interval; after receiving a sharing request sent by any client device through the connection list, the optimization further includes: if the shared display function is confirmed to be started, playing and/or displaying screen shared data; optimizing the method to further comprise: and if the communication connection with any client device is confirmed to be disconnected, deleting the relevant information of the client device from the connection list.
Referring to fig. 3, the method provided in this embodiment specifically includes the following steps:
step 210, establishing communication connection with at least two client devices, and periodically sending a connection list of the client devices in current communication connection to each client device according to a preset time interval.
Specifically, the server device may establish a communication connection with the client device through the socket.
In a specific embodiment, after a socket communication connection is established between any client device and a server device, the server device may obtain an IP address and a device name of the client device, and simultaneously, the client device may send a pre-stored device identifier to the server device, and the server device correspondingly stores the obtained device identifier, IP address, and device name in a connection list, so as to store the client device in current communication connection through the connection list.
Wherein the device identification is a unique identifier generated by a preset algorithm to uniquely identify the client device.
Preferably, the server device sends the connection list to each client device in the connection list at regular time according to a preset time interval, so that each client device obtains each client device in the connection list in real time, wherein the client device is in current communication connection with the server device.
Illustratively, the preset time interval may be 3 seconds, 5 seconds, or 10 seconds.
Step 220, if a sharing request sent by any client device is received, popping up a dialog box to receive a confirmation instruction of whether the sharing request is approved or not; if yes, go to step 230; if not, the process is ended.
Wherein the sharing request is generated for any client device based on the connection list.
For example, after obtaining a connection list sent by a server device, a client device may display a list of device names of other client devices listed in the connection list, except for the client device itself, on the client device, and if a user selects a target device name corresponding to a target client device that needs to perform screen sharing in the list, the client device obtains a target device identifier corresponding to the target device name in the connection list, generates a sharing request including the target device identifier, and sends the sharing request to the server device, and the server device may receive the sharing request sent by the client device.
And if the server side equipment receives the sharing request sent by any client side equipment, popping up a dialog box to receive a confirmation instruction of whether the sharing request is approved or not.
In this embodiment, one sharing request may correspond to one dialog box, or a plurality of sharing requests may correspond to one dialog box.
For example, in the case that one sharing request corresponds to one dialog box, after receiving a sharing request sent by any client device, the server device may pop up a dialog box corresponding to the sharing request to receive a confirmation instruction of whether to grant the sharing request through the dialog box, and further implement individual grant authorization or individual denial authorization for each sharing request through the dialog box corresponding to each sharing request; for the situation that a plurality of sharing requests correspond to one dialog box, after the server-side equipment receives the sharing request sent by any client-side equipment, whether the dialog box is displayed currently or not can be confirmed, if the dialog box is not displayed currently, a new dialog box is not displayed, and a confirmation instruction of whether all the sharing requests are approved or not is received through the displayed dialog box; and if the server-side equipment confirms that the dialog box is not displayed currently, displaying a new dialog box, and further realizing the combined approval authorization or the combined denial authorization of each sharing request correspondingly through one dialog box and a plurality of sharing requests.
Step 230, sending a sharing request to a target client device corresponding to the sharing request to obtain screen sharing data of the target client device.
And if the server-side equipment receives a confirmation instruction for agreeing with a certain sharing request, sending the sharing request to target client-side equipment corresponding to the sharing request to acquire screen sharing data of the target client-side equipment.
Illustratively, after receiving the sharing request, the server device confirms a target IP address corresponding to the target device identifier in the sharing request in the connection list, and sends the sharing request to the target client device corresponding to the target IP address.
In a specific embodiment, the sharing request sent by the client device may further include a sharing instruction, where the sharing instruction may include a start sharing instruction and an end sharing instruction. If a user selects a target device identifier corresponding to a target client device in a list with device names under the condition that a certain client device does not perform screen sharing with the target client device, the client device sends a sharing request comprising the target device identifier and a sharing starting instruction to a server device; under the condition that the client device and the target client device perform screen sharing, if the user selects the target device identifier corresponding to the target client device in the list listed with the device name again, the client device sends a sharing request comprising the target device identifier and a sharing ending instruction to the server device; or if the user selects the target device identifier corresponding to another target client device in the list listed with the device name again, the client device sends a sharing request comprising the target device identifier corresponding to another target client device and the start sharing instruction to the server device, and sends a sharing request comprising the target device identifier corresponding to the target client device currently performing screen sharing with the client device and the end sharing instruction to the server device.
If the server-side equipment receives a confirmation instruction for agreeing with a sharing request, the server-side equipment sends the sharing instruction in the sharing request to target client-side equipment corresponding to the sharing request; and if the server-side equipment receives a confirmation instruction which does not agree with a sharing request, the server-side equipment does not send the sharing instruction in the sharing request to the target client-side equipment corresponding to the sharing request.
If the target client equipment receives the sharing starting instruction, acquiring screen sharing data of the target client equipment, and sending the screen sharing data to the server equipment; and if the target client equipment receives the sharing ending control instruction, stopping acquiring and sending the screen sharing data of the target client equipment.
Step 240, forwarding the screen sharing data to the client device sending the sharing request for playing and/or displaying at the client device.
And if the server-side equipment receives the screen sharing data sent by the target client-side equipment, forwarding the received screen sharing data to the client-side equipment sending the sharing request.
For example, if the server device receives a sharing request sent by any client device, the server device correspondingly stores a request IP address of the client device that sends the sharing request and a target IP address of a target client device corresponding to the sharing request into a request list, and when the server device receives screen sharing data sent by any target client device, the server device sends the screen sharing data to all client devices corresponding to the request IP addresses corresponding to the target IP addresses of the target client device in the request list.
Preferably, if the server device receives a confirmation instruction that does not agree with a sharing request, the server device deletes the correspondence between the request IP address of the client device that sent the sharing request and the target IP address of the target client device corresponding to the sharing request from the request list.
And after the client equipment receives the screen sharing data forwarded by the server equipment, playing the audio data in the screen sharing data and/or displaying the video data in the screen sharing data.
In a particular embodiment, the client device may generate a plurality of sharing requests corresponding to different target client devices based on the connection list, and send the plurality of sharing requests to the server device. As shown in the connection diagram of fig. 2, if the client device C1 selects the device identifiers corresponding to the client device C2 and the client device C3 from the list listed with the device names, respectively, a sharing request including the device identifier corresponding to the client device C2 and the start sharing instruction may be generated and sent to the server device S, and a sharing request including the device identifier corresponding to the client device C3 and the start sharing instruction may be generated and sent to the server device S.
Preferably, if the client device receives the multiple screen sharing data forwarded by the server device, for example, if the client device C1 receives the screen sharing data of the client device C2 and the client device C3 forwarded by the server device S, the client device may play \ or display the multiple screen sharing data at the same time, or after playing and \ or displaying the multiple screen sharing data at the same time, the user may select screen sharing data to be played and \ or displayed from the played and \ or displayed screen sharing data, and then play and \ or display the screen sharing data selected by the user.
Step 250, confirming whether the sharing display function is started; if yes, go to step 260; and if not, not playing and/or displaying the screen sharing data.
And step 260, playing and/or displaying the screen sharing data.
Preferably, if the server-side device acquires the screen sharing data of the target client-side device, the server-side device determines whether a sharing display function is started; if the sharing display function is confirmed to be started, the server-side equipment plays and/or displays the received screen sharing data; if the sharing function is not started, the server-side equipment does not play and/or display the received screen sharing data.
Illustratively, the turning on and off of the sharing function may be implemented by a preset touch operation or by a preset key.
Preferably, if the server device receives the screen sharing data of the multiple target client devices, the server device may play \ or display the received screen sharing data of all the target client devices at the same time, or after playing \ or displaying the received screen sharing data of all the target client devices at the same time, the user may select the screen sharing data to be played and \ or displayed from the played and \ or displayed screen sharing data, and then play and \ or display the screen sharing data selected by the user.
If the disconnection of the communication connection with any client device is confirmed, the information related to the client device is deleted from the connection list, step 270.
Preferably, if the server device confirms that the communication connection with any client device is disconnected, the information related to the client device is deleted from the connection list, so as to ensure that only the client device with the current communication connection is included in the connection list.
In the embodiment, the connection list of the client device in the current communication connection is sent to each client device at regular time according to the preset time interval, so that each client device can obtain the client device in the current communication connection of the server device in real time through the connection list; receiving a confirmation instruction of whether to agree with the sharing request or not by popping up a dialog box, and realizing that whether to send the sharing request to target client equipment corresponding to the sharing request or not is controlled by server equipment; if a sharing request sent by any client device through a connection list is received and if the sharing display function is confirmed to be started, the screen sharing data is played and/or displayed, so that the received screen sharing data can be played and/or displayed in real time; if the communication connection with any client device is confirmed to be disconnected, the relevant information of the client device is deleted from the connection list, and the fact that only the client device with the current communication connection is included in the connection list is guaranteed.
EXAMPLE III
Fig. 4 is a block diagram of a screen sharing apparatus according to a third embodiment of the present invention. The device can be composed of software and/or hardware and can be generally integrated in the terminal. Referring to fig. 4, the apparatus provided in this embodiment specifically includes: a connection list transmission module 310, a first sharing request transmission module 320, and a screen sharing data forwarding module 330, wherein,
a connection list sending module 310, configured to establish communication connection with at least two client devices, and send a connection list of client devices in current communication connection to each client device;
a first sharing request sending module 320, configured to send, if a sharing request sent by any client device is received, the sharing request to a target client device corresponding to the sharing request to obtain screen sharing data of the target client device, where the sharing request is generated for the any client device based on the connection list;
a screen sharing data forwarding module 330, configured to forward the screen sharing data to the client device that sent the sharing request, so as to play and/or display the screen sharing data on the client device.
The present embodiment is configured to establish a communication connection with at least two client devices through a connection list sending module, and send a connection list of the client devices in current communication connection to each client device; the first sharing request sending module is used for sending a sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device if the sharing request sent by any client device is received, wherein the sharing request is generated by any client device based on a connection list; the screen sharing data forwarding module is used for forwarding screen sharing data to the client device sending the sharing request so as to play and/or display the screen sharing data on the client device, the problem that a mobile terminal such as a smart phone or a smart tablet can only realize a screen with a specific computer or an interactive smart tablet and cannot realize screen sharing with other mobile terminals according to actual needs is solved, communication connection established between each client device and the server device is realized, any client device can share the screen with other client devices, and therefore users of each client device can conveniently select target client devices needing screen sharing according to actual needs, and user experience is improved.
In the foregoing solution, optionally, the first sharing request sending module includes:
a dialog box popping unit, configured to pop a dialog box to receive a confirmation instruction of whether to grant the sharing request if a sharing request sent by any client device is received, where the sharing request is generated by the client device based on the connection list;
and the sharing request sending unit is used for sending the sharing request to the target client equipment corresponding to the sharing request to acquire the screen sharing data of the target client equipment if an agreed confirmation instruction is received through the dialog box.
In the foregoing scheme, optionally, the connection list sending module is specifically configured to: establishing communication connection with at least two client devices, and sending a connection list of the client devices in current communication connection to each client device at regular time according to a preset time interval.
In the foregoing scheme, optionally, the method further includes: and the shared display function confirmation module is used for playing and/or displaying the screen shared data after a shared request sent by any client device through the connection list is received and the shared display function is confirmed to be started.
In the foregoing scheme, optionally, the method further includes: and the information deleting module is used for deleting the relevant information of the client equipment from the connection list if the disconnection of the communication connection with any client equipment is confirmed.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 5, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the electronic device may be one or more, and one processor 410 is taken as an example in fig. 5; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5.
The memory 420 serves as a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for screen sharing integrated in a server device according to any embodiment of the present invention (for example, the connection list sending module 310, the first sharing request sending module 320, and the screen sharing data forwarding module 330 in the device for screen sharing). The processor 410 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 420, that is, implements the operations for the electronic device described above.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 440 may include a display device such as a display screen.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method for sharing a screen provided in any embodiment of the present invention is implemented.
That is, the program realizes the screen sharing method integrated in the server device when being executed by the processor: establishing communication connection with at least two client devices, and sending a connection list of the client devices in current communication connection to each client device; if a sharing request sent by any client device is received, sending the sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device, wherein the sharing request is generated by any client device based on the connection list; and forwarding the screen sharing data to the client device sending the sharing request so as to play and/or display the screen sharing data at the client device.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the method according to any embodiment of the present invention.
It should be noted that, in the embodiment of the screen sharing apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The device can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A method of screen sharing, comprising:
establishing communication connection with at least two client devices, and sending a connection list of the client devices in current communication connection to each client device;
if a sharing request sent by any client device is received, sending the sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device, wherein after the any client device receives the connection list, calling the connection list through preset touch operation or preset options, selecting characteristic information of the target client device needing to share the screen, generating a sharing request comprising the characteristic information of the target client device, and sending the sharing request to a server device;
the screen sharing data are forwarded to the client device sending the sharing request so as to be played and/or displayed on the client device, and after the client device plays and/or displays a plurality of screen sharing data at the same time, a user selects the screen sharing data needing to be played and/or displayed from the played and/or displayed screen sharing data so as to play and/or display the screen sharing data;
if the communication connection with any client device is confirmed to be disconnected, deleting the relevant information of the client device from the connection list;
the sending the sharing request to the target client device corresponding to the sharing request to obtain the screen sharing data of the target client device specifically includes:
popping up a dialog box to receive a confirmation instruction whether the sharing request is approved or not; wherein the plurality of sharing requests correspond to a dialog box;
and if an agreed confirmation instruction is received through the dialog box, sending the sharing request to the target client device corresponding to the sharing request to acquire the screen sharing data of the target client device.
2. The method according to claim 1, wherein the sending of the connection list of the currently communicatively connected client device to each of the client devices is specifically:
and sending a connection list of the client equipment of the current communication connection to each client equipment at regular time according to a preset time interval.
3. The method of claim 1, further comprising, after receiving a sharing request sent by any client device through the connection list:
and if the shared display function is confirmed to be started, playing and/or displaying the screen shared data.
4. An apparatus for screen sharing, comprising:
the system comprises a connection list sending module, a connection list sending module and a connection list sending module, wherein the connection list sending module is used for establishing communication connection with at least two pieces of client equipment and sending a connection list of the client equipment in current communication connection to each piece of client equipment;
the first sharing request sending module is used for sending a sharing request to a target client device corresponding to the sharing request to acquire screen sharing data of the target client device if the sharing request sent by any client device is received, wherein after the any client device receives the connection list, the connection list is called out through preset touch operation or preset options, the characteristic information of the target client device needing to share the screen is selected, a sharing request comprising the characteristic information of the target client device is generated, and the sharing request is sent to the server device;
the screen sharing data forwarding module is used for forwarding the screen sharing data to the client equipment which sends the sharing request so as to play and/or display the screen sharing data on the client equipment;
after the client device plays and \ or displays the multiple screen sharing data at the same time, the user selects the screen sharing data to be played and \ or displayed from the played and \ or displayed screen sharing data, and then plays and \ or displays the screen sharing data;
the information deleting module is used for deleting the relevant information of the client equipment from the connection list if the communication connection with any client equipment is determined to be disconnected;
the first sharing request sending module includes:
a dialog box popping unit, configured to pop a dialog box to receive a confirmation instruction of whether to grant the sharing request if a sharing request sent by any client device is received, where the sharing request is generated by the client device based on the connection list; wherein the plurality of sharing requests correspond to a dialog box;
and the sharing request sending unit is used for sending the sharing request to the target client equipment corresponding to the sharing request to acquire the screen sharing data of the target client equipment if an agreed confirmation instruction is received through the dialog box.
5. The apparatus of claim 4, wherein the connection list sending module is specifically configured to:
establishing communication connection with at least two client devices, and sending a connection list of the client devices in current communication connection to each client device at regular time according to a preset time interval.
6. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of screen sharing as claimed in any one of claims 1 to 3.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of screen sharing according to any one of claims 1 to 3.
CN201711105657.4A 2017-11-10 2017-11-10 Screen sharing method and device, electronic equipment and storage medium Active CN107911437B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711105657.4A CN107911437B (en) 2017-11-10 2017-11-10 Screen sharing method and device, electronic equipment and storage medium
PCT/CN2017/116746 WO2019090902A1 (en) 2017-11-10 2017-12-17 Screen sharing method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711105657.4A CN107911437B (en) 2017-11-10 2017-11-10 Screen sharing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107911437A CN107911437A (en) 2018-04-13
CN107911437B true CN107911437B (en) 2021-05-14

Family

ID=61844764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711105657.4A Active CN107911437B (en) 2017-11-10 2017-11-10 Screen sharing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN107911437B (en)
WO (1) WO2019090902A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254913B (en) * 2018-08-13 2022-11-04 北京奇虎科技有限公司 Device sharing method and device, electronic device and computer storage medium
CN111049790B (en) * 2018-10-15 2021-08-17 北京仁光科技有限公司 Data interaction method
CN109542378A (en) * 2018-11-19 2019-03-29 上海闻泰信息技术有限公司 Screen sharing method, device, electronic equipment and readable storage medium storing program for executing
CN109618306B (en) * 2018-11-22 2022-10-25 京东方科技集团股份有限公司 Communication method, server, communication equipment and computer readable storage medium
CN111148081B (en) * 2019-12-06 2023-10-20 维沃移动通信有限公司 Information interaction method and electronic equipment
CN111158631B (en) * 2019-12-31 2023-07-28 中国银行股份有限公司 Information interaction method, device, terminal and storage medium
CN113223693B (en) * 2020-01-20 2023-11-10 深圳市理邦精密仪器股份有限公司 Electrocardiogram machine online interaction method, electrocardiograph machine and storage medium
CN111338590A (en) * 2020-02-19 2020-06-26 北京翼鸥教育科技有限公司 Screen sharing initiating and responding method and interaction system
CN111343488A (en) * 2020-02-19 2020-06-26 北京翼鸥教育科技有限公司 Screen multiparty sharing initiating, forwarding, responding and receiving method and interaction system
CN111813363B (en) * 2020-07-15 2023-08-18 锐捷网络股份有限公司 Information sharing method, device, medium and equipment
CN112333527A (en) * 2020-08-21 2021-02-05 深圳Tcl新技术有限公司 Intelligent equipment display method, device, equipment and computer storage medium
CN112311784A (en) * 2020-10-26 2021-02-02 杭州横竖科技有限公司 Screen projection system and screen projection method
CN114845084B (en) * 2022-07-05 2022-11-11 广州朗国电子科技股份有限公司 Multi-user screen management method, device, equipment and storage medium
CN115499693A (en) * 2022-08-09 2022-12-20 深圳市酷开网络科技股份有限公司 Multi-screen different display control method, device and system, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883135A (en) * 2012-11-01 2013-01-16 成都飞视美视频技术有限公司 Screen sharing and control method thereof
CN103491454A (en) * 2013-09-30 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method, system and device for sharing audio and video resources
CN104471556A (en) * 2012-05-23 2015-03-25 谷歌有限公司 Multimedia conference endpoint transfer system
KR101651353B1 (en) * 2015-03-24 2016-08-25 충북대학교 산학협력단 Video conference system based on N-screen
CN106341382A (en) * 2016-04-11 2017-01-18 上海建朗信息科技有限公司 Multi-device screen sharing system between conference devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7734793B2 (en) * 2001-11-27 2010-06-08 Accenture Global Services Gmbh Service control framework for seamless transfer of a multimedia conference over different media
CN102437997A (en) * 2010-09-29 2012-05-02 Tcl集团股份有限公司 Screen sharing method based on IGRS (intelligent grouping and resource sharing)
CN102883134B (en) * 2012-11-01 2015-04-22 成都飞视美视频技术有限公司 Screen sharing and controlling method for video conference system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104471556A (en) * 2012-05-23 2015-03-25 谷歌有限公司 Multimedia conference endpoint transfer system
CN102883135A (en) * 2012-11-01 2013-01-16 成都飞视美视频技术有限公司 Screen sharing and control method thereof
CN103491454A (en) * 2013-09-30 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method, system and device for sharing audio and video resources
KR101651353B1 (en) * 2015-03-24 2016-08-25 충북대학교 산학협력단 Video conference system based on N-screen
CN106341382A (en) * 2016-04-11 2017-01-18 上海建朗信息科技有限公司 Multi-device screen sharing system between conference devices

Also Published As

Publication number Publication date
WO2019090902A1 (en) 2019-05-16
CN107911437A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN107911437B (en) Screen sharing method and device, electronic equipment and storage medium
CN112153140B (en) Remote control method, device, equipment, storage medium and system
US20170086233A1 (en) Connection method for multimedia playing device, main device, and control terminal
WO2015032277A1 (en) Transmission method and device for media stream in video conference
WO2017107542A1 (en) Video program obtaining method, device and system
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
US10645039B2 (en) Information processing method and terminal, and computer storage medium
US10812865B2 (en) Network-based control of a media device
CN111132111B (en) BLE-based audio sharing method, system and computer readable storage medium
US20190089693A1 (en) Systems and methods for authenticating internet-of-things devices
WO2016165584A1 (en) Communication method and device between terminal
CN111405042B (en) Electronic device discovery method and device, storage medium and electronic device
US20170171496A1 (en) Method and Electronic Device for Screen Projection
JP2017539103A (en) Method, apparatus, server, and system for synchronizing member gain among multiple apparatuses
US10893333B2 (en) Video playing method, device and storage
CN105959732A (en) Method and device for pushing television program
WO2019079971A1 (en) Method for group communication, and apparatus, computer storage medium, and computer device
CN113741762A (en) Multimedia playing method, device, electronic equipment and storage medium
CN104635543A (en) Method and device for carrying out management operation
CN105791736A (en) Inter-terminal communication method and device and video talkback platform
US20160050244A1 (en) Systems and Methods for Shared Media Streaming
CN105812185A (en) Communication connection method for playing device
CN114143586A (en) Split screen display sharing method, system, storage medium and intelligent screen
CN106231393B (en) Video information processing method, device and system
US20230353805A1 (en) Methods, systems, and media for presenting media content items using multiple devices

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
GR01 Patent grant
GR01 Patent grant