WO2019090902A1 - 屏幕共享的方法、装置、电子设备及存储介质 - Google Patents

屏幕共享的方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2019090902A1
WO2019090902A1 PCT/CN2017/116746 CN2017116746W WO2019090902A1 WO 2019090902 A1 WO2019090902 A1 WO 2019090902A1 CN 2017116746 W CN2017116746 W CN 2017116746W WO 2019090902 A1 WO2019090902 A1 WO 2019090902A1
Authority
WO
WIPO (PCT)
Prior art keywords
client device
sharing
sharing request
screen
request
Prior art date
Application number
PCT/CN2017/116746
Other languages
English (en)
French (fr)
Inventor
郭庆伟
Original Assignee
广州视睿电子科技有限公司
广州视源电子科技股份有限公司
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 广州视睿电子科技有限公司, 广州视源电子科技股份有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2019090902A1 publication Critical patent/WO2019090902A1/zh

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

Definitions

  • the present invention relates to the field of screen sharing technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for screen sharing.
  • the invention provides a method, a device, an electronic device and a storage medium for screen sharing, so that the client device user can share the user device used by the client device with other client devices according to actual needs, thereby improving the user experience.
  • an embodiment of the present invention provides a method for sharing a screen, where the method includes:
  • the sharing request sent by any client device is received, the sharing request is sent to the target client device corresponding to the sharing request to obtain screen sharing data of the target client device, where the sharing request is Said any client device is generated based on the connection list;
  • the screen sharing data is forwarded to a client device that sent the sharing request for playback and/or display at the client device.
  • an embodiment of the present invention further provides a device for sharing a screen, the device comprising:
  • connection list sending module configured to establish a communication connection with at least two client devices, and send a connection list of the client devices of the current communication connection to each of the client devices;
  • a first sharing request sending module configured to send the 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, The sharing request is generated by the any client device based on the connection list;
  • the screen sharing data forwarding module is configured to forward the screen sharing data to the client device that sends the sharing request for playing and/or displaying on the client device.
  • an embodiment of the present invention further provides an electronic device, where the device includes:
  • One or more processors are One or more processors;
  • a memory for storing one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement a method of screen sharing provided by any embodiment of the present invention.
  • the embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, and when the program is executed by the processor, the method for sharing a screen provided by any embodiment of the present invention is implemented.
  • the embodiment of the present invention establishes a communication connection with at least two client devices, and sends a connection list of the client device of the current communication connection to each client device; if receiving a sharing request sent by any client device, The target client device corresponding to the sharing request sends a sharing request to obtain screen sharing data of the target client device, wherein the sharing request is generated by any client device based on the connection list; and the screen sharing data is forwarded to the client device that sends the sharing request.
  • the playback and/or display on the client device solves the problem that the mobile terminal such as the smart phone or the smart tablet can only implement the screen with a specific computer or an interactive smart tablet, and cannot realize the screen sharing with other mobile terminals according to actual needs.
  • any client device can share the screen with other client devices, thereby facilitating the client device users to select the target client device for screen sharing according to actual needs. To improve the user experience.
  • Embodiment 1 is a flowchart of a method for screen sharing in Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of connection between a server device and a client device according to Embodiment 1 of the present invention
  • Embodiment 3 is a flowchart of a method for screen sharing in Embodiment 2 of the present invention.
  • FIG. 4 is a structural block diagram of an apparatus for sharing a screen according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present invention.
  • FIG. 1 is a flowchart of a method for screen sharing according to Embodiment 1 of the present invention.
  • the present embodiment is applicable to a situation where screen sharing is required, and the method may be performed by a device shared by a screen, and the device may be implemented by software and/or The hardware components can generally be integrated into the terminal.
  • the method provided in this embodiment specifically includes the following steps:
  • Step 110 Establish a communication connection with at least two client devices, and send a connection list of the client devices of the current communication connection to each client device.
  • the manner in which the server device establishes a communication connection with the client device is not limited.
  • the server device can establish a communication connection with each client device through a connection manner such as a network connection or a Bluetooth connection.
  • the client device can be a smart phone, a smart tablet, a smart TV or a computer
  • the server device can also be a smart phone, a smart tablet, a smart TV or a computer.
  • FIG. 2 is a schematic diagram of a connection between a server device and a client device according to the embodiment.
  • a network connection is taken as an example between a server device and a client device.
  • the client device C1, the client device C2, the client device C3, and the client device C4 each establish a communication connection with the server device S.
  • the server device can acquire the feature information of the client device, and store the feature information of the client device to the connection list to store the current communication connection through the connection list.
  • Client device can acquire the feature information of the client device, and store the feature information of the client device to the connection list to store the current communication connection through the connection list.
  • the feature information of the client device may be an InteRnational Mobile Equipment Identity (IMEI), a Central Processing Unit (CPU) serial number, a MAC (Media Access Control) address, or Information such as an IP (Internet Protocol) address may also be a combination of multiple information or specific form information generated according to a specific algorithm according to a plurality of information, so that the feature information may uniquely identify the client device as the client device identifier.
  • IMEI InteRnational Mobile Equipment Identity
  • CPU Central Processing Unit
  • MAC Media Access Control
  • IP Internet Protocol
  • the server device can send a connection list to each client device of the current communication connection according to a preset time interval, and each client device can obtain other client devices that are currently in communication connection with the server device through the connection list.
  • Step 120 If receiving a sharing request sent by any client device through the connection list, sending a sharing request to the target client device corresponding to the sharing request to obtain screen sharing data of the target client device.
  • the sharing request is generated for any client device based on the connection list.
  • the client device user can call up the connection list by using a preset touch operation or a preset option, so that the user can select the selected connection list.
  • the client device After the feature information of the target client device of the screen needs to be shared, when 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 a sharing request to the server device. .
  • the server device can receive the sharing request sent by the client device.
  • the feature information of the client device itself is not included in the connection list invoked in any client device.
  • server device receives the sharing request sent by the client device, sending the sharing request to the target client device corresponding to the sharing request, that is, sending the sharing to the target client device corresponding to the feature information in the sharing request. Request to get screen sharing data for the target client device.
  • the target client device After receiving the sharing request, acquires its own screen sharing data, and sends the acquired screen sharing data to the server device.
  • the screen sharing data may include only video data, or only audio data, or both video data and audio data.
  • the target client device may encode the acquired video data and audio data by using common technologies and protocols, and send the encoded video data and audio data to the server device.
  • the video data can be encoded by the H264 method
  • the audio data is encoded by the AAC (Advanced Audio Coding) method.
  • Step 130 Forward screen sharing data to the client device that sends the sharing request for playing and/or displaying on the client device.
  • the server device After obtaining the screen sharing data sent by the target client device, the server device forwards the obtained screen sharing data to the client device that sends the sharing request to play and/or display on the client device.
  • the server device may further process the screen sharing data by performing rate adjustment, and then forward the processed screen sharing data to the client device that sends the sharing request.
  • the server device may save the correspondence between the client device that sends the sharing request and the target client device corresponding to the sharing request in the request list.
  • the relationship after the server device receives the screen sharing data sent by the target client device, the server device forwards the screen sharing data to all the client devices in the request list that send the sharing request corresponding to the target client device.
  • the client device After receiving the screen shared data, the client device decodes and plays the audio data in the screen shared data and/or decodes and displays the video data in the screen shared data, thereby implementing screen sharing of the target client device.
  • Data is shared to client devices that send sharing requests.
  • a communication connection is established with at least two client devices, and a connection list of the client device of the current communication connection is sent to each client device; if a sharing request sent by any client device is received, the sharing is performed. Requesting, by the corresponding target client device, a sharing request to obtain 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 that sends the sharing request
  • the mobile terminal such as a smart phone or a smart tablet can only realize screen sharing with a specific computer or an interactive smart tablet, and cannot realize screen sharing with other mobile terminals according to actual needs.
  • the communication connection established between each client device and the server device is implemented, and any client device can share the screen with other client devices, thereby facilitating the user of each client device to select a target client for screen sharing according to actual needs. End devices to improve the user experience.
  • FIG. 3 is a flowchart of a method for screen sharing according to Embodiment 2 of the present invention.
  • the sharing request is sent to the target client device corresponding to the sharing request to obtain the screen sharing data of the target client device, and is optimized to: pop up a dialog box to receive a confirmation instruction for agreeing to the sharing request; Sending a sharing request to the target client device corresponding to the sharing request to obtain the screen sharing data of the target client device; sending a connection list of the client device of the current communication connection to each client device, optimizing For example, the connection list of the client device of the current communication connection is periodically sent to each client device according to the preset time interval; after receiving the sharing request sent by any client device through the connection list, the optimization further includes: Confirming that the shared display function is enabled, then playing and/or displaying the screen shared data; optimizing the method to further include: if the communication connection with any client device is confirmed to be disconnected, information related to the client device is Remove from the
  • the method provided in this embodiment specifically includes the following steps:
  • Step 210 Establish a communication connection with at least two client devices, and periodically send a connection list of the client devices of the current communication connection to each client device according to a preset time interval.
  • the server device can establish a communication connection with the client device through the socket.
  • the server device can obtain the IP address and device name of the client device, and the client device can be sent to the server.
  • the device sends the pre-stored device identifier, and the server device stores the obtained device identifier, IP address, and device name in the connection list, and then stores the current communication connection client device through the connection list.
  • the device identifier is a unique identifier generated by a preset algorithm to uniquely identify the client device.
  • the server device sends a connection list to each client device of the current communication connection in the connection list according to the preset time interval, so that each client device acquires, in real time, each client device that is currently in communication connection with the server device through the connection list.
  • the preset time interval can be 3 seconds, 5 seconds, or 10 seconds.
  • Step 220 If a sharing request sent by any client device is received, a dialog box is popped up to receive an acknowledgement instruction for agreeing to the sharing request; if yes, step 230 is performed; if not, the process ends.
  • the sharing request is generated for any client device based on the connection list.
  • the client device may display, on the client device, the device name of each client device listed in the connection list except the client device itself. a list, if the user selects a target device name corresponding to the target client device that needs to perform screen sharing in the list, the client device acquires a target device identifier corresponding to the target device name in the connection list, and generates a target device including The shared request is sent, and the sharing request is sent to the server device, and the server device can receive the sharing request sent by the client device.
  • a dialog box pops up to receive a confirmation instruction for agreeing to the sharing request.
  • a sharing request may correspond to a dialog box one by one, or multiple sharing requests may correspond to one dialog box.
  • the server device may pop up a dialog box corresponding to the sharing request to pass the dialog box.
  • the frame receives whether to agree with the confirmation instruction of the sharing request, and further implements a separate consent authorization or a separate rejection authorization for each sharing request through a dialog box corresponding to each sharing request; for a case where multiple sharing requests correspond to one dialog box,
  • the server device can confirm whether a dialog box is currently displayed. If it is confirmed that no dialog box is currently displayed, the new dialog box is no longer displayed, and the displayed dialog box is displayed.
  • the dialog box receives whether to agree to the confirmation command of all the sharing requests; if the server device confirms that no dialog box is currently displayed, a new dialog box is displayed, and the merge consent of each sharing request is implemented through a dialog box corresponding to multiple sharing requests.
  • Authorization or merger refuses authorization.
  • Step 230 Send a sharing request to the target client device corresponding to the sharing request to obtain screen sharing data of the target client device.
  • the server device If the server device receives the confirmation instruction for agreeing to a sharing request, the server device sends a sharing request to the target client device corresponding to the sharing request to obtain the screen sharing data of the target client device.
  • the server device After receiving the sharing request, the server device confirms the 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.
  • the sharing request sent by the client device may further include a sharing instruction, where the sharing instruction may include starting the sharing instruction and ending the sharing instruction. For example, if a client device does not share a screen with the target client device, if the user selects a target device identifier corresponding to the target client device in the list of device names, the client device provides the service to the client device.
  • the end device sends a sharing request including the target device identifier and starting a sharing instruction; if the client device performs screen sharing with the target client device, if the user selects the target client again in the list of device names listed
  • the target device identifier corresponding to the end device the client device sends a sharing request including the target device identifier and ending the sharing instruction to the server device; or if the user selects another target client in the list of device names again
  • the target device identifier corresponding to the device the client device sends a target device identifier corresponding to another target client device to the server device, and starts a sharing request, and sends the shared request to the server device.
  • the target client device that the device is currently performing screen sharing corresponds to.
  • the server device sends a sharing instruction in the sharing request to the target client device corresponding to the sharing request, if the server device receives the confirmation command that agrees to a sharing request, and the server device receives the confirmation command that does not agree with a sharing request. , the sharing instruction in the sharing request is not sent to the target client device corresponding to the sharing request.
  • the target client device If the target client device receives the start sharing instruction, it acquires its own screen sharing data, and sends the screen sharing data to the server device; if the target client device receives the end sharing control instruction, stops acquiring and transmitting its own screen. Share data.
  • Step 240 Forward the screen sharing data to the client device that sends the sharing request for playing and/or displaying on the client device.
  • the server device Upon receiving the screen sharing data sent by the target client device, the server device forwards the received screen sharing data to the client device that sends the sharing request.
  • the server device if the server device receives the sharing request sent by any client device, the server device sends the request IP address of the client device that sends the sharing request and the target IP address of the target client device corresponding to the sharing request.
  • the server device Stored in the request list, after the server device receives the screen sharing data sent by any target client device, the server device sends the screen sharing data to all target IP addresses in the request list and the target client device. The corresponding client device corresponding to the requested IP address.
  • the server device sends the request IP address of the client device that sends the sharing request and the corresponding relationship between the target IP address of the target client device corresponding to the sharing request. Remove from the request list.
  • the client device After receiving the screen sharing data forwarded by the server device, the client device plays the audio data in the screen sharing data and/or displays the video data in the screen sharing data.
  • the client device may generate a plurality of sharing requests corresponding to different target client devices based on the connection list, and send a plurality of sharing requests to the server device.
  • the client device C1 selects the device identifier corresponding to the client device C2 and the client device C3 from the list of device names
  • the client device C2 may be configured to include the client device C2.
  • the device identifier and the sharing request to start sharing the instruction and send the sharing request to the server device S and generate a sharing request including the device identifier corresponding to the client device C3 and start the sharing instruction and send the sharing request to the server device S.
  • the client device receives the plurality of screen sharing data forwarded by the server device
  • 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 The device can play/display multiple screen sharing data at the same time, or after playing and/or displaying multiple screen sharing data at the same time, the user can select the desired playing and playing from the screen sharing data of the playing and/or display. ⁇ Or the displayed screen shares data, and then plays and / or displays the screen shared data selected by the user.
  • Step 250 Confirm whether the shared display function is enabled; if yes, execute step 260; if not, play and/or display the screen shared data.
  • Step 260 Play and/or display the screen sharing data.
  • the server device confirms whether the shared display function is enabled; if the shared display function is enabled, the server device plays the received screen sharing data and ⁇ or display; if the sharing function is not enabled, the server device does not play and/or display the received screen sharing data.
  • the opening and closing of the sharing function can be achieved by a preset touch operation or by a preset button.
  • the server device can simultaneously play/display the received screen sharing data of all the target client devices, or simultaneously receive the data.
  • the user can select the desired and/or displayed screen sharing data from the playing and/or displayed screen sharing data, and then play and/or display. The screen selected by the user shares data.
  • Step 270 If it is confirmed that the communication connection is disconnected from any of the client devices, the related information of the client device is deleted from the connection list.
  • the server device confirms that the communication connection is disconnected from any client device, the related information of the client device is deleted from the connection list to ensure that only the client device with the current communication connection is included in the connection list. .
  • the client device by sending a connection list of the client device of the current communication connection to each client device according to a preset time interval, the client device that enables each client device to obtain the current communication connection of the server device in real time through the connection list is implemented; By popping up a dialog box to receive a confirmation instruction of whether to agree to the sharing request, whether the sharing of the sharing request to the target client device corresponding to the sharing request is controlled by the server device; by receiving the sharing sent by the client device through the connection list After the request, if it is confirmed that the shared display function is enabled, the screen shared data is played and/or displayed, so that the received screen shared data can be played and/or displayed in real time; if it is confirmed to be disconnected from any client device
  • the communication connection deletes the related information of the client device from the connection list, and implements the client device that only includes the current communication connection in the guaranteed connection list.
  • FIG. 4 is a structural block diagram of an apparatus for sharing a screen according to Embodiment 3 of the present invention.
  • the device may be comprised of software and/or hardware and may generally be integrated into the terminal.
  • the apparatus provided in this embodiment includes: a connection list sending module 310, a first sharing request sending module 320, and a screen sharing data forwarding module 330, where
  • the connection list sending module 310 is configured to establish a communication connection with at least two client devices, and send a connection list of the client devices of the current communication connection to each of the client devices;
  • the first sharing request sending module 320 is configured to: if receiving a sharing request sent by any client device, send the sharing request to the 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 the any client device based on the connection list;
  • the screen sharing data forwarding module 330 is configured to forward the screen sharing data to the client device that sends the sharing request for playing and/or displaying on the client device.
  • the connection list sending module is configured to establish a communication connection with at least two client devices, and send a connection list of the client device of the current communication connection to each client device;
  • the first sharing request sending module is configured to receive Sending a sharing request to a target client device corresponding to the sharing request to obtain a screen sharing data of the target client device, where the sharing request is generated by any client device based on the connection list,
  • the screen sharing data forwarding module is configured to forward the screen sharing data to the client device that sends the sharing request for playing and/or displaying on the client device, and the mobile terminal such as the smart phone or the smart tablet can only interact with a specific computer or The smart tablet realizes the screen, and cannot realize the screen sharing with other mobile terminals according to actual needs, and realizes the communication connection established between each client device and the server device, and any client device can share the screen with other client devices.
  • the first shared request sending module includes:
  • a dialog pop-up unit configured to: if receiving a sharing request sent by any client device, where the sharing request is generated by the any client device based on the connection list, a dialog box pops up to receive whether to agree a confirmation instruction for sharing a request;
  • a sharing request sending unit configured to send the sharing request to the target client device corresponding to the sharing request to obtain screen sharing data of the target client device, if the confirmation instruction of the consent is received through the dialog box.
  • connection list sending module is specifically configured to: establish a communication connection with at least two client devices, and periodically send a current communication connection to each of the client devices according to a preset time interval.
  • a list of connections for client devices is specifically configured to: establish a communication connection with at least two client devices, and periodically send a current communication connection to each of the client devices according to a preset time interval.
  • the method further includes: a shared display function confirming module, configured to: after receiving a sharing request sent by the client device through the connection list, if it is confirmed that the shared display function is enabled, The screen shares data for playback and/or display.
  • a shared display function confirming module configured to: after receiving a sharing request sent by the client device through the connection list, if it is confirmed that the shared display function is enabled, The screen shares data for playback and/or display.
  • the method further includes: an information deleting module, configured to delete related information about the client device from the connection list if it is confirmed that the communication connection is disconnected from any client device.
  • an information deleting module configured to delete related information about the client device from the connection list if it is confirmed that the communication connection is disconnected from any client device.
  • FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present invention.
  • the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440.
  • the processor 410 of the electronic device The number 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 device may be connected by a bus or other manner, and the figure is passed in FIG.
  • the bus connection is an example.
  • the memory 420 can be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to methods integrated on the screen sharing of the server device in any embodiment of the present invention (eg, The connection list sending module 310, the first sharing request sending module 320, and the screen sharing data forwarding module 330) in the screen sharing device.
  • the processor 410 executes various functional applications and data processing of the electronic device by operating software programs, instructions, and modules stored in the memory 420, i.e., implementing the operations described above for the electronic device.
  • the memory 420 may mainly include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the electronic device, and the like.
  • memory 420 can include high speed random access memory, and can 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.
  • memory 420 can further include memory remotely located relative to processor 410, which can be connected to the 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.
  • Input device 430 can be used to receive input digital or character information and to generate key signal inputs related to user settings and function control of the electronic device.
  • Output device 440 can include a display device such as a display screen.
  • the fifth embodiment of the present invention further provides a storage medium including computer executable instructions, where a computer program is stored thereon, and when the program is executed by the processor, the method for screen sharing provided by any embodiment of the present invention is implemented.
  • the method of implementing screen sharing integrated with the server device when the program is executed by the processor establishing a communication connection with at least two client devices, and transmitting a client device of the current communication connection to each of the client devices a connection list, if the sharing request sent by any client device is received, sending the sharing request to the target client device corresponding to the sharing request to obtain screen sharing data of the target client device, where the sharing request Generating for any of the client devices based on the connection list; forwarding the screen sharing data to a client device that sends the sharing request for playback and/or display at the client device.
  • the present invention can be implemented by software and necessary general hardware, and can also be implemented by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk of a computer.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • FLASH FLASH
  • hard disk or optical disk etc., including a number of instructions to make a computer device (can be a personal computer)
  • the server, or network device, etc. performs the method of any of the embodiments of the present invention.
  • the units and modules included in the screen are only divided according to functional logic, but are not limited to the foregoing division, as long as the corresponding functions can be implemented;
  • the specific names of the respective functional units are also for convenience of distinguishing from each other and are not intended to limit the scope of protection of the present invention.
  • the above device may perform the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of performing the above method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种屏幕共享的方法、装置、电子设备及存储介质。该方法包括:与至少两个客户端设备建立通信连接,并向每个客户端设备发送当前通信连接的客户端设备的连接列表;若接收到任一客户端设备发送的共享请求,则向共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据,其中共享请求为所述任一客户端设备基于所述连接列表生成;向发送所述共享请求的客户端设备转发所述屏幕共享数据以在所述客户端设备进行播放和/或显示。本发明提供的方法可基于各客户端设备与服务端设备建立的通信连接,实现任一客户端设备可与其他客户端设备进行屏幕共享,提高用户体验。

Description

屏幕共享的方法、装置、电子设备及存储介质 技术领域
本发明涉及屏幕共享技术领域,尤其涉及屏幕共享的方法、装置、电子设备及存储介质。
背景技术
随着信息技术的不断发展,多台设备屏幕共享的功能广泛应用于教学、培训、游戏和会议等场景中。
现有技术中,实现智能手机或智能平板等移动终端与电脑或交互智能平板之间的屏幕共享以及实现电脑与电脑之间的屏幕共享的技术方案已比较成熟,但还未有较好的智能手机与智能手机以及智能手机与智能平板等移动终端之间屏幕共享的技术方案,导致在教学或会议等场景中,各移动终端只能和特定的电脑或交互智能平板实现屏幕共享,无法实现根据实际需要与其他移动终端进行屏幕共享,用户体验低。
发明内容
本发明提供一种屏幕共享的方法、装置、电子设备及存储介质,以便于客户端设备用户根据实际需要将自己所使用的客户端设备与其他客户端设备进行屏幕共享,提高用户体验。
第一方面,本发明实施例提供了一种屏幕共享的方法,该方法包括:
与至少两个客户端设备建立通信连接,并向每个所述客户端设备发送当前 通信连接的客户端设备的连接列表;
若接收到任一客户端设备发送的共享请求,则将向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据,其中,所述共享请求为所述任一客户端设备基于所述连接列表生成;
向发送所述共享请求的客户端设备转发所述屏幕共享数据以在所述客户端设备进行播放和/或显示。
第二方面,本发明实施例还提供了一种屏幕共享的装置,该装置包括:
连接列表发送模块,用于与至少两个客户端设备建立通信连接,并向每个所述客户端设备发送当前通信连接的客户端设备的连接列表;
第一共享请求发送模块,用于若接收到任一客户端设备发送的共享请求,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据,其中,所述共享请求为所述任一客户端设备基于所述连接列表生成;
屏幕共享数据转发模块,用于向发送所述共享请求的客户端设备转发所述屏幕共享数据以在所述客户端设备进行播放和/或显示。
第三方面,本发明实施例还提供了一种电子设备,该设备包括:
一个或多个处理器;
存储器,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例提供的屏幕共享的方法。
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例提供的屏幕共享的 方法。
本发明实施例通过与至少两个客户端设备建立通信连接,并向每个客户端设备发送当前通信连接的客户端设备的连接列表;若接收到任一客户端设备发送的共享请求,则向共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据,其中,共享请求为任一客户端设备基于连接列表生成;向发送共享请求的客户端设备转发屏幕共享数据以在客户端设备进行播放和/或显示,解决了智能手机或智能平板等移动终端只能和特定的电脑或交互智能平板实现屏幕,无法实现根据实际需要与其他移动终端进行屏幕共享的问题,实现基于各客户端设备与服务端设备建立的通信连接,任一客户端设备可与其他客户端设备进行屏幕共享,进而方便各客户端设备用户根据实际需要选择所需进行屏幕共享的目标客户端设备,提高用户体验。
附图说明
图1是本发明实施例一中的一种屏幕共享的方法的流程图;
图2是本发明实施例一中的一种服务端设备和客户端设备的连接示意图;
图3是本发明实施例二中的一种屏幕共享的方法的流程图;
图4是本发明实施例三中的一种屏幕共享的装置的结构框图;
图5是本发明实施例四中的一种电子设备的结构示意图。
具体实施方式
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需 要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
实施例一
图1为本发明实施例一提供的一种屏幕共享的方法的流程图,本实施例可适用于需屏幕共享的情况,该方法可以由屏幕共享的装置来执行,该装置可由软件和\或硬件组成,一般可集成于终端中。参见图1,本实施例提供的方法具体包括如下步骤:
步骤110、与至少两个客户端设备建立通信连接,并向每个客户端设备发送当前通信连接的客户端设备的连接列表。
本实施例中对于服务端设备与客户端设备建立通信连接的方式不进行限定。如服务端设备可通过网络连接或蓝牙连接等连接方式与各客户端设备建立通信连接。
其中,客户端设备可为智能手机、智能平板、智能电视或计算机等设备,服务端设备同样可为智能手机、智能平板、智能电视或计算机等设备。
图2为本实施例提供的一种服务端设备和客户端设备的连接示意图。图2中以服务端设备和客户端设备以网络连接为例。如图2所示,客户端设备C1、客户端设备C2、客户端设备C3和客户端设备C4均与服务端设备S建立通信连接。
当任一客户端设备与服务端设备建立通信连接后,服务端设备可获取该客户端设备的特征信息,并将该客户端设备的特征信息存储至连接列表以通过连接列表存储当前通信连接的客户端设备。
示例性的,客户端设备的特征信息可以为国际移动设备标识(InteRnational  MoBile Equipment Identity,IMEI)、中央处理器(Central Processing Unit,CPU)序列号、MAC(Media Access Control,媒体访问控制)地址或IP(Internet Protocol,互联网协议)地址等信息,还可为多个信息的组合或根据多个信息按照特定算法生成的特定形式信息,从而特征信息可作为客户端设备标识唯一地标识客户端设备。
优选的,服务端设备可按照预设时间间隔向当前通信连接的各客户端设备发送连接列表,进而各客户端设备可通过连接列表获取与服务端设备当前通信连接的其他客户端设备。
步骤120、若接收到任一客户端设备通过连接列表发送的共享请求,则向共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据。
其中,共享请求为任一客户端设备基于连接列表生成。
示例性的,客户端设备在接收到服务端设备发送的连接列表后,客户端设备用户可通过预设触摸操作或者预设选项调出连接列表,进而用户可在调出的连接列表中选择所需共享屏幕的目标客户端设备的特征信息,则当用户选择目标客户端设备的特征信息后,该客户端设备生成包括有目标客户端设备的特征信息的共享请求并向服务端设备发送共享请求。由此,服务端设备可接收到该客户端设备发送的共享请求。
优选的,任一客户端设备中调出的连接列表中不包括有该客户端设备本身的特征信息。
若服务端设备接收到任一客户端设备发送的共享请求,则向该共享请求对应的目标客户端设备发送该共享请求,即向该共享请求中的特征信息对应的目 标客户端设备发送该共享请求以获取目标客户端设备的屏幕共享数据。
优选的,目标客户端设备接收到共享请求后,则获取自身的屏幕共享数据,并将获取的屏幕共享数据发送至服务端设备。
其中,屏幕共享数据可仅包括视频数据,或者仅包括音频数据,或者既包括视频数据,也包括音频数据。
具体的,目标客户端设备可将获取的视频数据和音频数据采用通用的技术和协议进行编码,并将编码后的视频数据和音频数据发送至服务端设备。如可将视频数据通过H264方式进行编码,将音频数据通过AAC(Advanced Audio Coding,高级音频编码)方式进行编码。
步骤130、向发送共享请求的客户端设备转发屏幕共享数据以在客户端设备进行播放和/或显示。
服务端设备获取到目标客户端设备发送的屏幕共享数据后,将获取到的屏幕共享数据转发至发送共享请求的客户端设备以在客户端设备进行播放和/或显示。
优选的,服务端设备接收到目标客户端发送的屏幕共享数据后,可将屏幕共享数据进行码率调节等进一步处理后,再将处理后的屏幕共享数据转发至发送共享请求的客户端设备。
示例性的,在服务端设备接收到任一客户端设备发送的共享请求后,服务端设备可在请求列表中保存发送共享请求的客户端设备与共享请求对应的目标客户端设备之间的对应关系,则当服务端设备接收到某一目标客户端设备发送的屏幕共享数据后,服务端设备将屏幕共享数据转发至请求列表中所有与目标客户端设备对应的发送共享请求的客户端设备。
客户端设备接收到屏幕共享数据后,对屏幕共享数据中的音频数据进行相应解码并播放和/或对屏幕共享数据中的视频数据进行相应解码并显示,进而实现将目标客户端设备的屏幕共享数据共享至发送共享请求的客户端设备。
本实施例通过与至少两个客户端设备建立通信连接,并向每个客户端设备发送当前通信连接的客户端设备的连接列表;若接收到任一客户端设备发送的共享请求,则向共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据,其中,共享请求为任一客户端设备基于所述连接列表生成;向发送共享请求的客户端设备转发屏幕共享数据以在客户端设备进行播放和/或显示,解决了智能手机或智能平板等移动终端只能和特定的电脑或交互智能平板实现屏幕共享,无法实现根据实际需要与其他移动终端进行屏幕共享的问题,实现基于各客户端设备与服务端设备建立的通信连接,任一客户端设备可与其他客户端设备进行屏幕共享,进而方便各客户端设备用户根据实际需要选择所需进行屏幕共享的目标客户端设备,提高用户体验。
实施例二
图3为本发明实施例二提供的一种屏幕共享的方法的流程图。本实施例为在上述实施例的基础上进行进一步优化。本实施例中将将共享请求发送到共享请求对应的目标客户端设备以获取目标客户端设备的屏幕共享数据,优化为:弹出对话框以接收是否同意共享请求的确认指令;若通过对话框接收到同意的确认指令,则向共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据;将向每个客户端设备发送当前通信连接的客户端设备的连接列表,优化为:按照预设时间间隔定时向每个客户端设备发送当前通信 连接的客户端设备的连接列表;在若接收到任一客户端设备通过连接列表发送的共享请求之后,优化为还包括:若确认共享显示功能开启,则对屏幕共享数据进行播放和/或显示;将所述方法优化为还包括:若确认与任一客户端设备断开通信连接,则将与该客户端设备的相关信息从连接列表中删除。
参见图3,本实施例提供的方法,具体包括如下步骤:
步骤210、与至少两个客户端设备建立通信连接,并按照预设时间间隔定时向每个客户端设备发送当前通信连接的客户端设备的连接列表。
具体的,服务端设备可与客户端设备通过socket建立通信连接。
在一个具体的实施例中,当任一客户端设备与服务端设备建立socket通信连接后,服务端设备可获取到该客户端设备的IP地址和设备名称,同时该客户端设备可向服务端设备发送预存的设备标识,服务端设备将获取的设备标识、IP地址以及设备名称对应存储至连接列表中,进而通过连接列表存储当前通信连接的客户端设备。
其中,设备标识为通过预设算法生成的唯一标识符以唯一地标识该客户端设备。
优选的,服务端设备按照预设时间间隔定时向连接列表中当前通信连接的各客户端设备发送连接列表以使各客户端设备通过连接列表实时获取与服务端设备当前通信连接的各客户端设备。
示例性的,预设时间间隔可为3秒、5秒或10秒。
步骤220、若接收到任一客户端设备发送的共享请求,则弹出对话框以接收是否同意共享请求的确认指令;若是,则执行步骤230;若否,则结束。
其中,共享请求为任一客户端设备基于连接列表生成。
示例性的,客户端设备在获取到服务端设备发送的连接列表后,可在该客户端设备上显示列有连接列表中除该客户端设备本身之外的其他各客户端设备的设备名称的列表,若用户在该列表中选择所需进行屏幕共享的目标客户端设备对应的目标设备名称,则该客户端设备获取连接列表中与该目标设备名称对应的目标设备标识,生成包括有目标设备标识的共享请求,并向服务端设备发送该共享请求,则服务端设备可接收到该客户端设备发送的共享请求。
服务端设备若接收到任一客户端设备发送的共享请求,则弹出对话框以接收是否同意共享请求的确认指令。
本实施例中,一个共享请求可与一个对话框一一对应,也可多个共享请求与一个对话框对应。
示例性的,对于一个共享请求与一个对话框一一对应的情况,则服务端设备接收到任一客户端设备发送的共享请求后,可弹出一个与该共享请求对应的对话框以通过该对话框接收是否同意该共享请求的确认指令,进而通过与各共享请求一一对应的对话框实现对各共享请求的单独同意授权或单独拒绝授权;对于多个共享请求与一个对话框对应的情况,则服务端设备接收到任一客户端设备发送的共享请求后,可确认当前是否已有对话框显示,若确认当前未有对话框显示,则不再显示新的对话框,且通过所显示的对话框接收是否同意所有共享请求的确认指令;服务端设备若确认当前未有对话框显示,则显示新的对话框,进而通过一个对话框与多个共享请求对应实现对各共享请求的合并同意授权或者合并拒绝授权。
步骤230、向共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据。
服务端设备若接收到同意某一共享请求的确认指令,则向该共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据。
示例性的,服务端设备接收到共享请求后,则确认连接列表中与共享请求中的目标设备标识对应的目标IP地址,向与该目标IP地址对应的目标客户端设备发送该共享请求。
在一个具体的实施例中,客户端设备发送的共享请求中还可包括共享指令,其中,共享指令可包括开始共享指令和结束共享指令。如在某一客户端设备未与目标客户端设备进行屏幕共享的情况下,若用户在列有设备名称的列表中选择与该目标客户端设备对应的目标设备标识,则该客户端设备向服务端设备发送包括有该目标设备标识以及开始共享指令的共享请求;在该客户端设备与该目标客户端设备进行屏幕共享的情况下,若用户再次在列有设备名称的列表中选择该目标客户端设备对应的目标设备标识,则该客户端设备向服务端设备发送包括有该目标设备标识以及结束共享指令的共享请求;或者若用户再次在列有设备名称的列表中选择另一目标客户端设备对应的目标设备标识,则该客户端设备向服务端设备发送包括有另一目标客户端设备对应的目标设备标识以及开始共享指令的共享请求,并向服务端设备发送包括有与该客户端设备当前正在进行屏幕共享的目标客户端设备对应的目标设备标识以及结束共享指令的共享请求。
服务端设备若接收到同意某一共享请求的确认指令,则向该共享请求对应的目标客户端设备发送该共享请求中的共享指令;服务端设备若接收到不同意某一共享请求的确认指令,则不向该共享请求对应的目标客户端设备发送该共享请求中的共享指令。
目标客户端设备若接收到开始共享指令,则获取自身的屏幕共享数据,并将屏幕共享数据发送至服务端设备;目标客户端设备若接收到结束共享控制指令,则停止获取和发送自身的屏幕共享数据。
步骤240、向发送共享请求的客户端设备转发屏幕共享数据以在客户端设备进行播放和/或显示。
服务端设备若接收到目标客户端设备发送的屏幕共享数据,则将接收的屏幕共享数据转发至发送共享请求的客户端设备。
示例性的,服务端设备若接收到任一客户端设备发送的共享请求,则服务端设备将发送共享请求的客户端设备的请求IP地址以及共享请求对应的目标客户端设备的目标IP地址对应存储至请求列表中,当服务端设备接收到任一目标客户端设备发送的屏幕共享数据后,则服务端设备将该屏幕共享数据发送至请求列表中所有与该目标客户端设备的目标IP地址对应的请求IP地址所对应的客户端设备。
优选的,服务端设备若接收到不同意某一共享请求的确认指令,则将发送该共享请求的客户端设备的请求IP地址以及该共享请求对应的目标客户端设备的目标IP地址的对应关系从请求列表中删除。
客户端设备接收到服务端设备转发的屏幕共享数据后,则对屏幕共享数据中的音频数据进行播放和/或对屏幕共享数据中的视频数据进行显示。
在一个具体的实施例中,客户端设备可基于连接列表生成多个对应不同目标客户端设备的共享请求,并向服务端设备发送多个共享请求。如在图2所示的连接示意图中,若客户端设备C1从列有设备名称的列表中分别选择客户端设备C2和客户端设备C3对应的设备标识,则可生成包括有客户端设备C2对应 的设备标识和开始共享指令的共享请求并向服务端设备S发送该共享请求以及生成包括有客户端设备C3对应的设备标识以及开始共享指令的共享请求并向服务端设备S发送该共享请求。
优选的,客户端设备若接收到服务端设备转发的多个屏幕共享数据,如若客户端设备C1接收到服务端设备S转发的客户端设备C2和客户端设备C3的屏幕共享数据,则客户端设备可同时将多个屏幕共享数据进行播放\或显示,或者在同时将多个屏幕共享数据进行播放和\或显示之后,用户可从播放和\或显示的屏幕共享数据中选择所需播放和\或显示的屏幕共享数据,进而播放和\或显示用户所选择的屏幕共享数据。
步骤250、确认共享显示功能是否开启;若是,则执行步骤260;若否,则不对屏幕共享数据进行播放和/或显示。
步骤260、对屏幕共享数据进行播放和/或显示。
优选的,服务端设备若获取到目标客户端设备的屏幕共享数据,则服务端设备确认共享显示功能是否开启;若确认共享显示功能开启,则服务端设备对接收到的屏幕共享数据进行播放和\或显示;若确认共享功能未开启,则服务端设备不对接收到的屏幕共享数据进行播放和\或显示。
示例性的,共享功能的开启和关闭可通过预设触摸操作或者通过预设按键来实现。
优选的,服务端设备若接收到多个目标客户端设备的屏幕共享数据,则服务端设备可同时将接收到的所有目标客户端设备的屏幕共享数据进行播放\或显示,或者在同时将接收到的所有目标客户端设备的屏幕共享数据进行播放\或显示之后,用户可从播放和\或显示的屏幕共享数据中选择所需播放和\或显示的 屏幕共享数据,进而播放和\或显示用户所选择的屏幕共享数据。
步骤270、若确认与任一客户端设备断开通信连接,则将与该客户端设备的相关信息从连接列表中删除。
优选的,若服务端设备确认与任一客户端设备断开通信连接,则将与该客户端设备的相关信息从连接列表中删除,以保证连接列表中仅包括有当前通信连接的客户端设备。
本实施例通过按照预设时间间隔定时向每个客户端设备发送当前通信连接的客户端设备的连接列表,实现使得各客户端设备通过连接列表实时获取服务端设备当前通信连接的客户端设备;通过弹出对话框以接收是否同意共享请求的确认指令,实现通过服务端设备控制是否将共享请求发送到共享请求对应的目标客户端设备;通过若接收到任一客户端设备通过连接列表发送的共享请求之后,若确认共享显示功能开启,则对屏幕共享数据进行播放和/或显示,实现可实时将接收到的屏幕共享数据进行播放和\或显示;通过若确认与任一客户端设备断开通信连接,则将与该客户端设备的相关信息从连接列表中删除,实现保证连接列表中仅包括有当前通信连接的客户端设备。
实施例三
图4为本发明实施例三提供的一种屏幕共享的装置的结构框图。该装置可由软件和\或硬件组成,一般可集成于终端中。参见图4,本实施例提供的装置具体包括:连接列表发送模块310、第一共享请求发送模块320和屏幕共享数据转发模块330,其中,
连接列表发送模块310,用于与至少两个客户端设备建立通信连接,并向 每个所述客户端设备发送当前通信连接的客户端设备的连接列表;
第一共享请求发送模块320,用于若接收到任一客户端设备发送的共享请求,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据,其中,所述共享请求为所述任一客户端设备基于所述连接列表生成;
屏幕共享数据转发模块330,用于向发送所述共享请求的客户端设备转发所述屏幕共享数据以在所述客户端设备进行播放和/或显示。
本实施例通过连接列表发送模块用于与至少两个客户端设备建立通信连接,并向每个客户端设备发送当前通信连接的客户端设备的连接列表;第一共享请求发送模块用于若接收到任一客户端设备发送的共享请求,则向共享请求对应的目标客户端设备发送共享请求以获取目标客户端设备的屏幕共享数据,其中,共享请求为任一客户端设备基于连接列表生成,;屏幕共享数据转发模块用于向发送共享请求的客户端设备转发屏幕共享数据以在客户端设备进行播放和/或显示,解决了智能手机或智能平板等移动终端只能和特定的电脑或交互智能平板实现屏幕,无法实现根据实际需要与其他移动终端进行屏幕共享的问题,实现基于各客户端设备与服务端设备建立的通信连接,任一客户端设备可与其他客户端设备进行屏幕共享,进而方便各客户端设备用户根据实际需要选择所需进行屏幕共享的目标客户端设备,提高用户体验。
上述方案中,可选的是,所述第一共享请求发送模块包括:
对话框弹出单元,用于若接收到任一客户端设备发送的共享请求,其中,所述共享请求为所述任一客户端设备基于所述连接列表生成,则弹出对话框以接收是否同意所述共享请求的确认指令;
共享请求发送单元,用于若通过所述对话框接收到同意的确认指令,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据。
上述方案中,可选的是,所述连接列表发送模块,具体用于:与至少两个客户端设备建立通信连接,并按照预设时间间隔定时向每个所述客户端设备发送当前通信连接的客户端设备的连接列表。
上述方案中,可选的是,还包括:共享显示功能确认模块,用于在若接收到任一客户端设备通过所述连接列表发送的共享请求之后,若确认共享显示功能开启,则对所述屏幕共享数据进行播放和/或显示。
上述方案中,可选的是,还包括:信息删除模块,用于若确认与任一客户端设备断开通信连接,则将与该客户端设备的相关信息从所述连接列表中删除。
实施例四
图5为本发明实施例四提供的一种电子设备的结构示意图,如图5所示,该电子设备包括处理器410、存储器420、输入装置430和输出装置440;电子设备中处理器410的数量可以是一个或多个,图5中以一个处理器410为例;电子设备中的处理器410、存储器420、输入装置430和输出装置440可以通过总线或其他方式连接,图5中以通过总线连接为例。
存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明任意实施例中的集成在服务端设备的屏幕共享的方法对应的程序指令/模块(例如,屏幕共享的装置中的连接列表发送模块310、第一共享请求发送模块320和屏幕共享数据转发模块330)。处理器410通过运 行存储在存储器420中的软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述的用于电子设备的操作。
存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器420可进一步包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置430可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。
实施例五
本发明实施例五还提供一种包含计算机可执行指令的存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例提供的屏幕共享的方法。
也即该程序被处理器执行时实现集成在服务端设备的屏幕共享的方法:与至少两个客户端设备建立通信连接,并向每个所述客户端设备发送当前通信连接的客户端设备的连接列表;若接收到任一客户端设备发送的共享请求,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据,其中,所述共享请求为所述任一客户端设备基于所述连接列 表生成;向发送所述共享请求的客户端设备转发所述屏幕共享数据以在所述客户端设备进行播放和/或显示。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明任意实施例所述的方法。
值得注意的是,上述屏幕共享的装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
上述装置可执行本发明任意实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的方法。
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽 然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。

Claims (10)

  1. 一种屏幕共享的方法,其特征在于,包括:
    与至少两个客户端设备建立通信连接,并向每个所述客户端设备发送当前通信连接的客户端设备的连接列表;
    若接收到任一客户端设备发送的共享请求,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据,其中,所述共享请求为所述任一客户端设备基于所述连接列表生成;
    向发送所述共享请求的客户端设备转发所述屏幕共享数据以在所述客户端设备进行播放和/或显示。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述共享请求发送到所述共享请求对应的目标客户端设备以获取目标客户端设备的屏幕共享数据,具体为:
    弹出对话框以接收是否同意所述共享请求的确认指令;
    若通过所述对话框接收到同意的确认指令,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据。
  3. 根据权利要求1或2所述的方法,其特征在于,所述向每个所述客户端设备发送当前通信连接的客户端设备的连接列表,具体为:
    按照预设时间间隔定时向每个所述客户端设备发送当前通信连接的客户端设备的连接列表。
  4. 根据权利要求1所述的方法,其特征在于,在若接收到任一客户端设备通过所述连接列表发送的共享请求之后,还包括:
    若确认共享显示功能开启,则对所述屏幕共享数据进行播放和/或显示。
  5. 根据权利要求3所述的方法,其特征在于,包括:
    若确认与任一客户端设备断开通信连接,则将与该客户端设备的相关信息从所述连接列表中删除。
  6. 一种屏幕共享的装置,其特征在于,包括:
    连接列表发送模块,用于与至少两个客户端设备建立通信连接,并向每个所述客户端设备发送当前通信连接的客户端设备的连接列表;
    第一共享请求发送模块,用于若接收到任一客户端设备发送的共享请求,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据,其中,所述共享请求为所述任一客户端设备基于所述连接列表生成;
    屏幕共享数据转发模块,用于向发送所述共享请求的客户端设备转发所述屏幕共享数据以在所述客户端设备进行播放和/或显示。
  7. 根据权利要求6所述的装置,其特征在于,所述第一共享请求发送模块包括:
    对话框弹出单元,用于若接收到任一客户端设备发送的共享请求,其中,所述共享请求为所述任一客户端设备基于所述连接列表生成,则弹出对话框以接收是否同意所述共享请求的确认指令;
    共享请求发送单元,用于若通过所述对话框接收到同意的确认指令,则向所述共享请求对应的目标客户端设备发送所述共享请求以获取目标客户端设备的屏幕共享数据。
  8. 根据权利要求6或7所述的装置,其特征在于,所述连接列表发送模块,具体用于:
    与至少两个客户端设备建立通信连接,并按照预设时间间隔定时向每个所 述客户端设备发送当前通信连接的客户端设备的连接列表。
  9. 一种电子设备,其特征在于,所述设备包括:
    一个或多个处理器;
    存储器,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5任一所述的一种屏幕共享的方法。
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-5任一所述的一种屏幕共享的方法。
PCT/CN2017/116746 2017-11-10 2017-12-17 屏幕共享的方法、装置、电子设备及存储介质 WO2019090902A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711105657.4A CN107911437B (zh) 2017-11-10 2017-11-10 屏幕共享的方法、装置、电子设备及存储介质
CN201711105657.4 2017-11-10

Publications (1)

Publication Number Publication Date
WO2019090902A1 true WO2019090902A1 (zh) 2019-05-16

Family

ID=61844764

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116746 WO2019090902A1 (zh) 2017-11-10 2017-12-17 屏幕共享的方法、装置、电子设备及存储介质

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111148081A (zh) * 2019-12-06 2020-05-12 维沃移动通信有限公司 一种信息交互方法及电子设备

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254913B (zh) * 2018-08-13 2022-11-04 北京奇虎科技有限公司 设备共享方法、装置、电子设备及计算机存储介质
CN111049790B (zh) * 2018-10-15 2021-08-17 北京仁光科技有限公司 数据交互方法
CN109542378A (zh) * 2018-11-19 2019-03-29 上海闻泰信息技术有限公司 屏幕共享方法、装置、电子设备及可读存储介质
CN109618306B (zh) * 2018-11-22 2022-10-25 京东方科技集团股份有限公司 一种通信方法、服务器和通信设备和计算机可读存储介质
CN111158631B (zh) * 2019-12-31 2023-07-28 中国银行股份有限公司 一种信息交互方法、装置、终端及存储介质
CN113223693B (zh) * 2020-01-20 2023-11-10 深圳市理邦精密仪器股份有限公司 心电图机在线交互方法、心电图机、存储介质
CN111343488A (zh) * 2020-02-19 2020-06-26 北京翼鸥教育科技有限公司 屏幕多方共享的发起、转发、响应、接收方法及互动系统
CN111338590A (zh) * 2020-02-19 2020-06-26 北京翼鸥教育科技有限公司 一种屏幕共享的发起、响应方法及互动系统
CN111813363B (zh) * 2020-07-15 2023-08-18 锐捷网络股份有限公司 一种信息共享方法、装置、介质和设备
CN112333527A (zh) * 2020-08-21 2021-02-05 深圳Tcl新技术有限公司 智能设备显示方法、装置、设备及计算机存储介质
CN112311784A (zh) * 2020-10-26 2021-02-02 杭州横竖科技有限公司 一种投屏系统及投屏方法
CN114845084B (zh) * 2022-07-05 2022-11-11 广州朗国电子科技股份有限公司 一种多用户的屏幕管理方法、装置、设备及存储介质
CN115499693A (zh) * 2022-08-09 2022-12-20 深圳市酷开网络科技股份有限公司 多屏异显的控制方法及装置、系统、存储介质、电子设备
CN116055510A (zh) * 2023-01-31 2023-05-02 西安万像电子科技有限公司 一种云桌面屏幕共享方法、系统、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040030749A1 (en) * 2001-11-27 2004-02-12 Accenture Global Services, Gmbh Service control framework for seamless transfer of a multimedia conference over different media
CN102437997A (zh) * 2010-09-29 2012-05-02 Tcl集团股份有限公司 一种基于igrs的屏幕共享方法
CN102883134A (zh) * 2012-11-01 2013-01-16 成都飞视美视频技术有限公司 用于视频会议系统的屏幕共享及控制方法
CN104471556A (zh) * 2012-05-23 2015-03-25 谷歌有限公司 多媒体会议端点传送系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883135B (zh) * 2012-11-01 2015-08-26 成都飞视美视频技术有限公司 屏幕共享及控制方法
CN103491454A (zh) * 2013-09-30 2014-01-01 天脉聚源(北京)传媒科技有限公司 一种音视频资源的共享方法、系统及装置
KR101651353B1 (ko) * 2015-03-24 2016-08-25 충북대학교 산학협력단 N 스크린 기반의 화상 회의 시스템
CN106341382B (zh) * 2016-04-11 2019-12-03 上海建朗信息科技有限公司 会议设备之间的多设备屏幕共享系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040030749A1 (en) * 2001-11-27 2004-02-12 Accenture Global Services, Gmbh Service control framework for seamless transfer of a multimedia conference over different media
CN102437997A (zh) * 2010-09-29 2012-05-02 Tcl集团股份有限公司 一种基于igrs的屏幕共享方法
CN104471556A (zh) * 2012-05-23 2015-03-25 谷歌有限公司 多媒体会议端点传送系统
CN102883134A (zh) * 2012-11-01 2013-01-16 成都飞视美视频技术有限公司 用于视频会议系统的屏幕共享及控制方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111148081A (zh) * 2019-12-06 2020-05-12 维沃移动通信有限公司 一种信息交互方法及电子设备
CN111148081B (zh) * 2019-12-06 2023-10-20 维沃移动通信有限公司 一种信息交互方法及电子设备

Also Published As

Publication number Publication date
CN107911437A (zh) 2018-04-13
CN107911437B (zh) 2021-05-14

Similar Documents

Publication Publication Date Title
WO2019090902A1 (zh) 屏幕共享的方法、装置、电子设备及存储介质
WO2017028396A1 (zh) 多媒体播放设备的连接方法、主设备、控制终端及系统
WO2022062623A1 (zh) 远程控制方法、装置、设备、存储介质及系统
US9024995B2 (en) Video calling using a remote camera device to stream video to a local endpoint host acting as a proxy
CN112235121B (zh) 一种线上会议实现方法、装置、设备及存储介质
US20180219929A1 (en) Method and system for distributed processing, rendering, and displaying of content
US10972804B2 (en) Network-based control of a media device
WO2016050080A1 (zh) 一种多人观看视频实时互动的方法及系统
US20120117168A1 (en) Method and apparatus for enabling device communication and control using xmpp
CN105472307A (zh) 视频会议控制方法和系统
CN112738559B (zh) 投屏实现方法、装置及系统
WO2016165584A1 (zh) 一种终端之间的通信方法和装置
CN111405042B (zh) 一种电子设备的发现方法、装置、存储介质和电子装置
CN109586929B (zh) 会议内容的传输方法及装置、电子设备、存储介质
EP3163805B1 (en) Method and device for processing information
US20170171571A1 (en) Push Video Documentation Methods and Appliances
WO2019079971A1 (zh) 群组的通信方法及装置、计算机存储介质、计算机设备
WO2021155702A1 (zh) 通信处理方法、装置、终端、服务器及存储介质
JP6493236B2 (ja) 通信方法、通信プログラム、及び、サーバ
CN113542904A (zh) 一种视频投屏播放方法、装置、电子设备及存储介质
US20160050244A1 (en) Systems and Methods for Shared Media Streaming
CN113242173B (zh) 屏幕的分享方法、装置、系统和即时通讯服务器
CN111049709A (zh) 一种基于蓝牙的互联音箱控制方法、设备及存储介质
WO2013078614A1 (zh) 一种虚拟桌面场景下音频压缩算法选择方法、装置及通信系统
JP2017135459A (ja) 通信方法、通信システム、及び、通信プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17931785

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 161020)

122 Ep: pct application non-entry in european phase

Ref document number: 17931785

Country of ref document: EP

Kind code of ref document: A1