[go: up one dir, main page]

WO2019210667A1 - Screen image transmission method, device, server and storage medium - Google Patents

Screen image transmission method, device, server and storage medium Download PDF

Info

Publication number
WO2019210667A1
WO2019210667A1 PCT/CN2018/113685 CN2018113685W WO2019210667A1 WO 2019210667 A1 WO2019210667 A1 WO 2019210667A1 CN 2018113685 W CN2018113685 W CN 2018113685W WO 2019210667 A1 WO2019210667 A1 WO 2019210667A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
server
receiving
data
display screen
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.)
Ceased
Application number
PCT/CN2018/113685
Other languages
French (fr)
Chinese (zh)
Inventor
郭庆伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Publication of WO2019210667A1 publication Critical patent/WO2019210667A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Definitions

  • the present invention relates to the field of screen sharing, and in particular, to a screen picture transmission method, device, server, system, and storage medium.
  • Screen sharing is of high application value in modern work and has a wide range of applications in modern teaching.
  • a participant wants to share the screen screen that the source device is playing to other participants.
  • the speaker at the meeting will share the content to the audience.
  • the player's device is played on the device, or the teacher shares the lecture content on the student's device for display, so that multiple participants of the event can see the same display content on their device.
  • screen transmission is the core technology.
  • the transmitting end in order to realize screen screen transmission, the transmitting end often connects to the receiving end through the socket and transmits the screen image data, and the receiving end receives the screen screen data through the socket and displays it, thereby sharing the display content of the transmitting end.
  • the receiving end In a specific implementation, one of the methods is that the transmitting end and the receiving end are directly connected through the socket, and the other method is that the sending end is connected to the external forwarding unit through the socket, and the transmitting end is received by the forwarding unit through the socket. The screen data sent is sent to the receiving end.
  • the inventors have found that in the existing screen picture transmission technology, since the underlying layer of the socket is based on the TCP protocol and is limited by the congestion control and retransmission strategy of the TCP protocol, the redundant information transmitted will gradually accumulate. The delay between the playback content of each receiving end and the playing content of the transmitting end is increased, the information transmission efficiency is low, affecting the real-time and smoothness of sharing, and the number of participants in the same network is greatly restricted.
  • the object of the embodiments of the present invention is to provide a screen picture transmission method, device, server, system, and storage medium, which can effectively improve the real-time and smoothness of screen picture transmission, and improve the upper limit of participants that can be supported in screen picture transmission.
  • an embodiment of the present invention provides a screen picture transmission method, including:
  • the data of the display screen is used to trigger the server to send it to the subscribed receiving end device through the media channel, and trigger the receiving of the
  • the receiving end device that displays the data of the screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of the UDP protocol based on WebRTC.
  • the subscription instruction is used to trigger the server to forward the subscription instruction to at least one receiving end device, and set a subscription status of the receiving end device that feeds the subscription request to be subscribed.
  • a browser-based screen image transmission method intercepts a display screen of a current time of the device, and sends the intercepted data of the display screen through a browser.
  • the server is then sent to the receiving device through the media channel of the WebRTC-based UDP protocol for display, thereby realizing the transmission of the screen image.
  • the transmission of the media channel based on the WebRTC-based UDP protocol solves the problem that the transmission efficiency of the prior art is low due to the congestion control and retransmission strategy of the TCP protocol, and the real-time and smoothness of the sharing is not high and can be supported.
  • the technical problem with lower participant limit effectively improves the real-time and smoothness of screen transmission, and increases the upper limit of participants that can be supported in screen transmission.
  • the embodiment of the invention further provides another screen picture transmission method, including the steps:
  • the first media channel receives, by the first media channel, data of a display screen sent by the sending end device through the browser; wherein the first media channel is a communication link of a UDP protocol based on WebRTC, and data of the display screen is used by the sending end
  • the device intercepts the current display screen
  • the second media channel Receiving, by the second media channel, the received data of the display screen to the currently subscribed receiving end device; wherein the second media channel is a communication link of a WebRTC-based UDP protocol.
  • the subscription status of the receiving device that issued the subscription request is set to subscribed.
  • the communication link with the transmitting device further includes a first signaling channel of a TCP protocol-based TCP protocol; and before the receiving the subscription request from the receiving device, :
  • the sending end device Receiving, by the sending end device, a subscription instruction sent by the first signaling channel; the subscription instruction includes address information of the local device;
  • the subscription instruction further includes address information of the at least one receiving end device; the receiving end device to be subscribed to is the receiving end device corresponding to the address information of the receiving end device.
  • the communication link with the receiving end device further includes a second signaling channel of a TCP protocol-based TCP protocol; and the second signaling channel is used to the receiving end to be subscribed
  • the device forwards the received subscription instruction and receives a subscription signal sent by the receiving device in response to the subscription instruction.
  • a browser-based screen image transmission method receives data of a display screen sent by a transmitting end device through a first media channel, and passes the data of the display screen through The two media channels are forwarded to the receiving device, thereby implementing transmission of the screen of the transmitting device.
  • the first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol.
  • the technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.
  • the embodiment of the invention further provides a screen image transmission device, comprising:
  • a screen intercepting module configured to intercept a display screen at a current time
  • a picture transmission module configured to transmit the intercepted data of the display screen to a local browser
  • a screen forwarding module based on the local browser, sending data of the display screen to a server; the data of the display screen is used to trigger the server to send it to the subscribed receiving device through the media channel, and trigger
  • the receiving end device receiving the data of the display screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of a UDP protocol based on WebRTC.
  • An embodiment of the present invention further provides another screen picture transmission apparatus, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the computer program
  • the first screen transmission method as described above is implemented.
  • An embodiment of the present invention further provides a screen transfer server, including a first sub-server, where the first sub-server includes:
  • a receiving module configured to receive data of a display screen sent by the sending end device through the browser through the first media channel, where the first media channel is a communication link of a UDP protocol based on WebRTC, and the data of the display screen Obtaining, by the sending end device, the current display screen;
  • a detecting module configured to obtain a receiving device that is currently subscribed to
  • a forwarding module configured to forward the received data of the display screen to the currently subscribed receiving end device by using the second media channel, where the second media channel is a communication link of a WebRTC-based UDP protocol.
  • the second sub-server is further included, and the second sub-server includes:
  • An instruction receiving module configured to receive a subscription instruction sent by the sending end device; the subscription instruction includes address information of the first sub-server;
  • an instruction forwarding module configured to forward the received subscription instruction to the receiving end device to be subscribed, and receive a subscription signal sent by the receiving end device in response to the subscription instruction.
  • the first sub-server and the second sub-server are provided on the same computer device or on different computer devices.
  • Another embodiment of the present invention provides a screen transfer server including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the computer program
  • the second screen transmission method as described above is implemented.
  • the embodiment of the present invention further provides a computer readable storage medium, comprising: a stored computer program, wherein, when the computer program is running, controlling a device where the computer readable storage medium is located performs any of the above A screen transmission method as described.
  • the embodiment of the present invention further provides a screen picture transmission system, comprising the screen picture transmission device according to any one of the preceding claims, and a plurality of receiving end devices, further comprising the screen picture transmission server according to any one of the preceding claims;
  • the screen picture transmission device is connected to the screen picture transmission server through a network as a source device; the receiving device is connected to the screen picture transmission server through a network.
  • the screen picture transmission system Compared with the prior art, the screen picture transmission system provided by the embodiment of the present invention intercepts the display screen of the current time of the screen picture transmission device, and transmits the data of the display screen to the screen screen transmission through the first media channel. And transmitting, by the screen transmission server, the second screen channel to the receiving end device, thereby implementing transmission of the screen image of the screen image transmission device.
  • the first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol.
  • the technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.
  • FIG. 1 is a schematic structural diagram of a screen picture transmission system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a screen picture transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of another screen picture transmission method according to an embodiment of the present invention.
  • FIG. 4 is a flow chart showing an alternative flow of the screen transfer method shown in FIG.
  • FIG. 5 is a schematic flowchart of a screen picture transmission method according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a screen picture transmission apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a screen picture transmission server according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a screen picture transmission apparatus according to an embodiment of the present invention.
  • the screen transmission system includes at least one transmitting device, at least one server, and a plurality of receiving devices; wherein the transmitting device and the receiving device have at least a display function and are installed with browsing Program related to the function.
  • the transmitting device is connected to the server through a network
  • the receiving device is connected to the server through a network
  • the screen transmission system 100 includes a sender device 110, a server 120, and three receiver devices 130, wherein Both the end device 110 and the sink device 130 are connected to the server 120 via a network.
  • the structure shown in the screen transmission system 100 is only an example. In other cases, the number of devices in the screen transmission system may be adjusted, for example, two or four receiving devices may be included, or It is a larger number of sender devices, and can also be a larger number of servers, without affecting the beneficial effects that can be achieved by the present invention.
  • the embodiment of the invention provides a screen picture transmission method as shown in FIG. 2, and the screen picture transmission method can be performed by a sender device of the screen picture transmission system.
  • a sender device of the screen picture transmission system.
  • any participant's tablet or smart phone can be used as the sender device, while other participants
  • the network display device can be used as the receiving device; for example, in the teaching class, the teacher's tablet or smart phone can be used as the sending device, and the student's tablet or smart phone can be used as the receiving device.
  • the types of devices that can be used as the transmitting device include, but are not limited to, a tablet computer or a smart phone, and can also be a display computer having a display function and a related program with a browser function, such as a notebook computer, a desktop computer, or a learning machine. Electronic equipment.
  • the screen picture transmission method provided by the embodiment of the present invention includes the following steps S110 to S130.
  • the sending end device may intercept the display screen of the device itself at the current time, thereby obtaining data of the display screen.
  • the display screen may be all content being displayed by the display module of the sending end device, or may be part of content being displayed; the intercepting may be data extraction to obtain data of the display screen. It is also possible to obtain the data of the display screen by saving the display screen without affecting the advantageous effects obtained by the present invention.
  • the sending end device may transmit data of the display screen to the local browser by using an internal data channel of the device itself; and performing intercepting of the display screen by the local browser.
  • the data of the display screen intercepted by the local browser may be transmitted and transmitted within the program.
  • S130 Send, according to the local browser, data of the display screen to a server, where the data of the display screen is used to trigger the server to send the data to the subscribed receiving end device through the media channel, and trigger the receiving.
  • the receiving end device of the data of the display screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of a UDP protocol based on WebRTC.
  • the subscription status of all or part of the receiving end device may be set to be subscribed by sending a subscription instruction to the server in advance; wherein the subscription instruction is used to trigger when received by the server
  • the server forwards a subscription instruction to the at least one receiving end device; the subscription instruction forwarded by the server is configured to trigger the receiving end device to feed back a subscription request to the server when received by the receiving end device, the server
  • the subscription status of the receiving device that feeds back the subscription request is set to subscribed. It can be understood that the timing of sending the subscription instruction to the server may be performed before step S110 or before step S120 or step S130, without affecting the beneficial effects obtained by the present invention.
  • the media channel connected between the sender device and the server is pre-built based on the UDP protocol of WebRTC.
  • the sending end device may establish a communication link to connect to the server according to a WebRTC UDP protocol by accessing an IP address of the server on the local browser, and perform subsequent steps via the communication link.
  • the data of the display screen intercepted is sent to the server. Since the media channel is built based on the WebRTC UDP channel, and the function of the device is implemented based on a local browser, it is not necessary to develop different client programs for different operating systems, and the screen is improved while reducing the development difficulty. The compatibility and stability of the picture transmission method in different application environments.
  • the browser-based screen image transmission method provided by the embodiment of the present invention, the interception of the display screen of the current time of the device is performed, and the intercepted data of the display screen is sent to the server by the browser, and then The server sends the media channel based on the WebRTC-based UDP protocol to the receiving device for display, thereby realizing the transmission of the screen image.
  • the transmission of the media channel based on the WebRTC-based UDP protocol solves the problem that the transmission efficiency of the prior art is low due to the congestion control and retransmission strategy of the TCP protocol, and the real-time and smoothness of the sharing is not high and can be supported.
  • the technical problem with lower participant limit effectively improves the real-time and smoothness of screen transmission, and increases the upper limit of participants that can be supported in screen transmission.
  • the embodiment of the present invention further provides a browser-based screen image transmission method as shown in FIG. 3, which may be executed by a server of the screen image transmission system, and includes steps S210 to S230 as described below.
  • S210 Receive, by using a first media channel, data of a display screen sent by a sending device by using a browser, where the first media channel is a communication link of a WebRTC-based UDP protocol, and the data of the display screen is The sending device intercepts the current display screen.
  • the server is connected to the sending end device by using the first media channel. Specifically, the server may receive a network access request of the sending end device in advance and respond, so that the UDP protocol based on the WebRTC is constructed and The communication link between the sender devices is the first media channel.
  • the server may directly obtain the subscribed receiving device by performing the step of performing the step, or the server may perform the steps in FIG. 4 by using the step.
  • the flow shown in step S221 to step S224 or the flow as shown in step S223 to step S224 is performed to instantly update the subscription status of the receiving device to provide flexibility in adjusting the subscription status of the receiving device. It can be understood that the above two control modes for the subscription state of the receiving device are only used as an example, and the method for controlling the subscription state of the receiving device in the above manner does not affect the present invention. The beneficial effects achieved.
  • steps S221 to S224 are as follows:
  • the subscription instruction includes address information of the local device.
  • the subscription instruction may further include address information of the at least one receiving end device, and the receiving end device corresponding to the address information of the receiving end device is used as the receiving end device to be subscribed.
  • the address information of the device may be an IP address of the server or other information including an address of the server in the network.
  • the first signaling channel is a pre-built WebSocket-based TCP communication link, and the communication link connects the server and the sending end device, so that signaling between the server and the sending end device.
  • the stream and the media stream are transmitted through different communication links, which avoids the mutual influence of the transmission of the media stream and the signaling stream, and improves the bandwidth utilization and communication efficiency.
  • the subscription instruction is used to trigger the receiving device to initiate a subscription request to the local device according to the address information in the subscription instruction.
  • the server may be that the receiving end device forwards the received subscription instruction through the second signaling channel.
  • the second signaling channel is a pre-built WebSocket-based TCP communication link, and the communication link connects the server and the receiving end device to enable signaling flow between the server and the receiving end device.
  • the media stream is transmitted through different communication links, which avoids the interaction between the media stream and the signaling stream, and improves bandwidth utilization and communication efficiency.
  • the subscription request may be request information for constructing a media channel that is sent by the receiving device to the server, or request information for subscribing to the server, or may be received by the receiving device.
  • the server may be configured to receive the subscription request that is sent by the receiving end device, that is, directly perform step S223 without performing step S221 and step S222; or may receive the receiving device to send under a specific trigger condition. If the server performs step S221 and step S222, the receiving end device is triggered to send a subscription request, and then the content of step S223 is executed, thereby improving the controllability of the subscription status of the receiving end device and the subscription status.
  • the convenience of regulation It can be understood that regardless of whether the server receives the subscription request sent by the receiving device by using the above manner, the beneficial effects that can be achieved by the present invention are not affected.
  • the second media channel may be constructed when the receiving device accesses the server, or may be constructed when the server receives the subscription request sent by the receiving device, without affecting The beneficial effects that can be achieved by the present invention.
  • the screen picture transmission method provided by the embodiment of the invention receives the data of the display screen sent by the sending end device through the first media channel, and forwards the data of the display screen to the receiving end device through the second media channel, thereby realizing The transmission of the screen of the transmitting device.
  • the first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol.
  • the technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.
  • the embodiment of the present invention further provides a screen image transmission method as shown in FIG. 5, which may be executed by a screen screen transmission system, and includes the following steps S310 to S370:
  • the transmitting device intercepts the display screen at the current time.
  • the sending end device transmits the intercepted data of the display screen to a local browser.
  • the sending end device sends, according to the local browser, data of the display screen to a server by using a first media channel, where the first media channel is a communication link of a UDP protocol based on WebRTC.
  • the server receives data of the display screen by using the first media channel.
  • the server acquires a currently subscribed receiving end device.
  • the server forwards the received data of the display screen to a currently subscribed receiving end device by using a second media channel, where the second media channel is a communication link of a WebRTC-based UDP protocol.
  • the receiving end device receives data of the display screen from the second media channel, and performs rendering display on data of the display screen.
  • the screen transmission system 100 includes a transmitting device 110, a server 120, a receiving device 130A, a receiving device 130B, and a receiving device 130C.
  • the source device 110 is connected to the sink devices 130A, 130B, and 130C through the server 120.
  • the transmitting device 110 intercepts the display screen A of its current time to obtain the data of the display screen A.
  • the source device 110 transmits the data of the display screen A to the local browser, and then transmits the data of the display screen A to the server 120 based on the local browser.
  • the data is triggered by the server 120 to perform the forwarding operation, that is, the data of the display screen A is forwarded to the receiving device.
  • the server 120 forwards the data of the display screen A, the subscription instruction B sent by the source device 110 is also received, and the server 120 forwards the subscription instruction B to the receiving device 130A and the receiving device 130B, and the receiving device After receiving the subscription instruction B forwarded by the server 120, the 130A feeds back the subscription request C to the server 120. After receiving the subscription request C, the server 120 sets the subscription status of the receiving device 130A to subscribed. When the server 120 forwards the data of the display screen A, since the subscription status of the receiving end device 130A is subscribed, the subscription status of the receiving end devices 130B and 130C is not set to subscribed, so the server 120 forwards the data of the display screen A. To the receiving end device 130A, the receiving end device 130A performs rendering display on the received data of the display screen A, so that the intercepted display screen of the transmitting end device 110 is shared with the receiving end device 130A.
  • the screen picture transmission method provided by the embodiment of the present invention, the current display screen is intercepted by the sending end device, and the data of the display screen is sent to the server through the first media channel, and the data of the display screen is passed by the server.
  • the second media channel is forwarded to the receiving device, thereby implementing transmission of the screen of the transmitting device.
  • the first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol.
  • the technical problem of low real-time and fluent sharing and low supportable participants has effectively improved the real-time and smoothness of screen transmission and increased the upper limit of participants that can be supported in screen transmission.
  • the embodiment of the invention further provides a screen picture transmission device.
  • the screen picture transmission device 40 can be used as a transmitting end device of the screen picture transmission system, or can be used as a component of the transmitting end device.
  • the screen picture transmission device 40 includes:
  • the screen capture module 41 is configured to intercept the display screen at the current time
  • the screen transmission module 42 is configured to transmit the intercepted data of the display screen to a local browser
  • the screen forwarding module 43 sends the data of the display screen to the server based on the local browser; the data of the display screen is used to trigger the server to send it to the subscribed receiving device through the media channel, and The receiving end device that triggers the data received by the display screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of a WebRTC-based UDP protocol.
  • the workflow of the screen transfer device 40 is the same as the screen transfer method shown in FIG. 2, and details are not described herein.
  • the screen picture transmission device intercepts the display screen of the current time of the device, sends the intercepted data of the display screen to the server through the browser, and then passes the server through the WebRTC.
  • the media channel of the UDP protocol is sent to the receiving device for display, thereby realizing the transmission of the screen image.
  • the transmission of the media channel based on the WebRTC-based UDP protocol solves the problem that the transmission efficiency of the prior art is low due to the congestion control and retransmission strategy of the TCP protocol, and the real-time and smoothness of the sharing is not high and can be supported.
  • the technical problem with lower participant limit effectively improves the real-time and smoothness of screen transmission, and increases the upper limit of participants that can be supported in screen transmission.
  • the embodiment of the present invention further provides a screen transfer server.
  • the screen transfer server 50 can serve as a server of the screen transfer system or as a component of the server.
  • the screen transfer server 50 includes a first sub-server 51, and the first sub-server 51 includes a receiving module 51a, a detecting module 51b, and a forwarding module 51c.
  • the receiving module 51a is configured to receive data of a display screen sent by the sending end device through the browser through the first media channel, where the first media channel is a communication link of a UDP protocol based on WebRTC, and the display screen is The data is obtained by intercepting the current display screen by the transmitting device.
  • the detecting module 51b is configured to obtain the receiving device that is currently subscribed.
  • the forwarding module 51c is configured to forward, by using the second media channel, the received data of the display screen to the currently subscribed receiving end device, where the second media channel is a communication link of a WebRTC-based UDP protocol.
  • the screen transfer server 50 may further include a second sub-server 52, and the second sub-server 52 includes an instruction receiving module 52a and an instruction forwarding module 52b.
  • the instruction receiving module 52a is configured to receive a subscription instruction sent by the sender device, where the subscription instruction includes address information of the first subserver.
  • the instruction forwarding module 52b is configured to forward the received subscription instruction to the receiving end device to be subscribed, and receive a subscription signal sent by the receiving end device in response to the subscription instruction.
  • first sub-server 51 and the second sub-server 52 may be located on the same computer device; the first sub-server 51 and the second sub-server 52 may also be located on different computer devices and share the same IP address.
  • another child server can remain in normal operation, providing stability to the system screen transfer server.
  • the working process of the screen transfer server 50 is the same as the screen transfer method shown in FIG. 3, and details are not described herein.
  • the browser-based screen image transmission server provided by the embodiment of the present invention receives the data of the display screen sent by the sending end device through the first media channel, and forwards the data of the display screen to the receiving end device through the second media channel. Thereby, the transmission of the screen of the transmitting device is realized.
  • the first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol.
  • the technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.
  • the embodiment of the invention further provides a screen picture transmission device.
  • the screen picture transmission device 60 can be used as a component of the sender device in the screen picture transmission system or as a sender device or as a screen image.
  • a component or server of the server in the transmission system, the screen transfer device 60 includes a processor 61, a memory 62, and a computer program stored in the memory and operable on the processor, such as a screen transfer program .
  • the processor 61 executes the computer program, the steps in the above embodiments of the respective screen image transmission methods are implemented, for example, step S120 shown in FIG.
  • the processor executes the computer program, the functions of each module in the foregoing device embodiments are implemented, such as the screen screen transmission device or the screen screen transmission server described in the above embodiments.
  • the computer program can be partitioned into one or more modules that are stored in the memory 62 and executed by the processor 61 to complete the present invention.
  • the one or more modules may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program in the screen transmission device 60.
  • the computer program may be divided into a screen intercepting module, a screen transmission module, and a screen forwarding module, and the specific functions of each module are as follows: the screen intercepting module is configured to intercept a current time display screen; the screen transmission module Transmitting, by the screen forwarding module, the data of the display screen to the server according to the local browser; the data of the display screen is used by the screen forwarding module And the receiving end device that triggers the server to send the data to the subscribed receiving end device through the media channel, and triggers the receiving the data of the display screen to display and display the data of the display screen by using a browser;
  • the media channel is a communication link of the WebRTC-based UDP protocol.
  • the computer program can also be divided into a receiving module, a detecting module and a forwarding module.
  • the specific functions of each module are as follows: the receiving module is configured to receive, by using the first media channel, data of a display screen sent by the sending end device through the browser.
  • the first media channel is a communication link of the UDP protocol based on the WebRTC, and the data of the display screen is obtained by the sending end device to intercept the current display image;
  • the detecting module is configured to acquire the current
  • the subscribed receiving device is configured to forward the received data of the display screen to the currently subscribed receiving end device through the second media channel; wherein the second media channel is a WebRTC-based
  • the communication link of the UDP protocol is a WebRTC-based
  • the screen transmission device 60 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the screen transfer device 60 may include, but is not limited to, a processor 61 and a memory 62. It will be understood by those skilled in the art that the schematic diagram is merely an example of a screen transmission device, does not constitute a limitation of the screen transmission device 60, may include more or less components than those illustrated, or may combine certain components. Or different components, such as the screen transmission device 60, may also include input and output devices, network access devices, buses, and the like.
  • the processor 61 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 61 is a control center of the screen transmission device 60, and connects the entire screen transmission by using various interfaces and lines. Various parts of device 60.
  • the memory 62 can be used to store the computer program and/or module, by executing or executing computer programs and/or modules stored in the memory 62, and recalling data stored in the memory 62, Various functions of the screen transmission device 60 are implemented.
  • the memory 62 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be Stores data created based on the use of the phone (such as audio data, phone book, etc.).
  • the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD). Card, flash card, at least one disk storage device, flash device, or other volatile solid state storage device.
  • a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD).
  • SSD secure digital
  • flash card at least one disk storage device, flash device, or other volatile solid state storage device.
  • the module integrated by the screen transmission device 60 can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
  • the computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor.
  • the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.
  • the screen picture transmission apparatus provided by the embodiment of the present invention can obtain the beneficial effects of the screen picture transmission apparatus shown in FIG. 6 when it is used as a component of the transmission end device of the screen picture transmission system or as a transmission end device;
  • the beneficial effects of the screen transmission server shown in FIG. 7 can be obtained, and details are not described herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed is a browser-based screen image transmission method. Said method comprises the steps of: capturing a display image at the current moment; transmitting data of the captured display image to a local browser; transmitting, on the basis of the local browser, the data of the display image to a server, the data of the display image being used for triggering the server to send, by means of a media channel, said data to a receiving end device having subscribed said data, and for triggering the receiving end device having received the data of the display image to render and display, by means of the browser, the data of the display image, the media channel being a communication link based on the UDP protocol of WebRTC. The embodiments of the present invention further provide a screen image transmission device, a storage medium and a system, being able to effectively improve the instantaneity and fluency of screen image transmission, and improving the upper limit of participants supportable in screen image transmission.

Description

屏幕画面传输方法、装置、服务器、系统及存储介质Screen screen transmission method, device, server, system and storage medium 技术领域Technical field

本发明涉及屏幕共享领域,尤其涉及一种屏幕画面传输方法、装置、服务器、系统及存储介质。The present invention relates to the field of screen sharing, and in particular, to a screen picture transmission method, device, server, system, and storage medium.

背景技术Background technique

屏幕共享是现代工作中具有很高的应用价值,在现代教学中也具有广泛的应用。例如在同一活动的参与中,如会议或是课堂,一名参与者希望将自己的源设备正在播放的屏幕画面分享给其他的参与者,如会议上的发言人将显示内容分享到座下听者们的设备上进行播放,或是教师将讲课内容分享到学生们的设备上进行显示等,使活动的多个参与者都能够在自己的设备上收看到相同的显示内容。Screen sharing is of high application value in modern work and has a wide range of applications in modern teaching. For example, in the participation of the same event, such as a meeting or a class, a participant wants to share the screen screen that the source device is playing to other participants. For example, the speaker at the meeting will share the content to the audience. The player's device is played on the device, or the teacher shares the lecture content on the student's device for display, so that multiple participants of the event can see the same display content on their device.

而在屏幕共享的实现上,屏幕画面传输是其中的核心技术。在现有技术,为了实现屏幕画面传输,发送端往往是通过socket与接收端实现连接并传送屏幕画面数据,接收端通过socket接收到所述屏幕画面数据并进行显示,从而将发送端的显示内容共享到接收端上。在具体实现上,其中一种方法是发送端与接收端通过socket直接连接,而另一种方法是发送端通过socket与外置的转发单元连接,由所述转发单元通过socket接收到的发送端发出的屏幕画面数据发送到接收端上。In the implementation of screen sharing, screen transmission is the core technology. In the prior art, in order to realize screen screen transmission, the transmitting end often connects to the receiving end through the socket and transmits the screen image data, and the receiving end receives the screen screen data through the socket and displays it, thereby sharing the display content of the transmitting end. To the receiving end. In a specific implementation, one of the methods is that the transmitting end and the receiving end are directly connected through the socket, and the other method is that the sending end is connected to the external forwarding unit through the socket, and the transmitting end is received by the forwarding unit through the socket. The screen data sent is sent to the receiving end.

在实施本发明的过程中,发明人发现,现有的屏幕画面传输技术中,由于socket的底层基于TCP协议,受限于TCP协议的拥塞控制和重传策略,传输的冗余信息会逐渐累积,将导致每一接收端的播放内容与发送端的播放内容之间的延时增加,信息传输效率低下,影响共享的实时性和流畅性,对同一网络中的参与者数量构成了极大的限制。In the process of implementing the present invention, the inventors have found that in the existing screen picture transmission technology, since the underlying layer of the socket is based on the TCP protocol and is limited by the congestion control and retransmission strategy of the TCP protocol, the redundant information transmitted will gradually accumulate. The delay between the playback content of each receiving end and the playing content of the transmitting end is increased, the information transmission efficiency is low, affecting the real-time and smoothness of sharing, and the number of participants in the same network is greatly restricted.

发明内容Summary of the invention

本发明实施例的目的是提供一种屏幕画面传输方法、装置、服务器、系统及存储介质,能有效提升屏幕画面传输的实时性和流畅性,提高屏幕画面传输中可支持的参与者上限。The object of the embodiments of the present invention is to provide a screen picture transmission method, device, server, system, and storage medium, which can effectively improve the real-time and smoothness of screen picture transmission, and improve the upper limit of participants that can be supported in screen picture transmission.

为实现上述目的,本发明实施例提供了一种屏幕画面传输方法,包括:To achieve the above objective, an embodiment of the present invention provides a screen picture transmission method, including:

对当前时刻的显示画面进行截取;Intercepting the display screen at the current time;

将截取到的所述显示画面的数据传输至本地浏览器;Transmitting the intercepted data of the display screen to a local browser;

基于所述本地浏览器,将所述显示画面的数据发送至服务器;所述显示画面的数据用于触发所述服务器将其通过媒体通道发送至已订阅的接收端设备,并触发接收到所述显示画面的数据的接收端设备通过浏览器对所述显示画面的数据进行渲染显示;其中,所述媒体通道为基于WebRTC的UDP协议的通信链路。Sending, according to the local browser, the data of the display screen to a server; the data of the display screen is used to trigger the server to send it to the subscribed receiving end device through the media channel, and trigger the receiving of the The receiving end device that displays the data of the screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of the UDP protocol based on WebRTC.

作为上述方案的改进,还包括:As an improvement of the above scheme, it also includes:

向所述服务器发送订阅指令;所述订阅指令用于触发所述服务器向至少一个接收端设备转发所述订阅指令,并将反馈订阅请求的接收端设备的订阅状态置为已订阅。Sending a subscription instruction to the server; the subscription instruction is used to trigger the server to forward the subscription instruction to at least one receiving end device, and set a subscription status of the receiving end device that feeds the subscription request to be subscribed.

与现有技术相比,本发明实施例提供的一种基于浏览器的屏幕画面传输方法,通过对本设备的当前时刻的显示画面进行截取,通过浏览器将截取到的所述显示画面的数据发送给服务器,再由所述服务器通过基于WebRTC的UDP协议的媒体通道发送到接收端设备上进行显示,从而实现屏幕画面的传输。由于采用基于WebRTC的UDP协议的媒体通道进行传输,解决了现有技术由于TCP协议的拥塞控制和重传策略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性,提高了屏幕画面传输中可支持的参与者上限。Compared with the prior art, a browser-based screen image transmission method provided by the embodiment of the present invention intercepts a display screen of a current time of the device, and sends the intercepted data of the display screen through a browser. The server is then sent to the receiving device through the media channel of the WebRTC-based UDP protocol for display, thereby realizing the transmission of the screen image. The transmission of the media channel based on the WebRTC-based UDP protocol solves the problem that the transmission efficiency of the prior art is low due to the congestion control and retransmission strategy of the TCP protocol, and the real-time and smoothness of the sharing is not high and can be supported. The technical problem with lower participant limit effectively improves the real-time and smoothness of screen transmission, and increases the upper limit of participants that can be supported in screen transmission.

本发明实施例还提供了另一种屏幕画面传输方法,包括步骤:The embodiment of the invention further provides another screen picture transmission method, including the steps:

通过第一媒体通道接收由发送端设备通过浏览器发送的显示画面的数据;其 中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路,所述显示画面的数据由所述发送端设备对当前的显示画面进行截取获得;Receiving, by the first media channel, data of a display screen sent by the sending end device through the browser; wherein the first media channel is a communication link of a UDP protocol based on WebRTC, and data of the display screen is used by the sending end The device intercepts the current display screen;

获取当前已订阅的接收端设备;Obtain the currently subscribed receiving device;

通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。Receiving, by the second media channel, the received data of the display screen to the currently subscribed receiving end device; wherein the second media channel is a communication link of a WebRTC-based UDP protocol.

作为上述方案的改进,还包括:As an improvement of the above scheme, it also includes:

接收来自至少一个接收端设备的订阅请求;Receiving a subscription request from at least one receiving device;

将发出所述订阅请求的所述接收端设备的订阅状态置为已订阅。The subscription status of the receiving device that issued the subscription request is set to subscribed.

作为上述方案的改进,与所述发送端设备之间的通信链路还包括,基于WebSocket的TCP协议的第一信令通道;在所述接收来自所述接收端设备的订阅请求之前,还包括:As an improvement of the foregoing solution, the communication link with the transmitting device further includes a first signaling channel of a TCP protocol-based TCP protocol; and before the receiving the subscription request from the receiving device, :

接收所述发送端设备通过所述第一信令通道发送的订阅指令;所述订阅指令包括本设备的地址信息;Receiving, by the sending end device, a subscription instruction sent by the first signaling channel; the subscription instruction includes address information of the local device;

向待订阅的接收端设备转发接收到的所述订阅指令;其中,所述订阅指令用于触发所述接收端设备根据所述订阅指令中的地址信息向本设备发起订阅请求。Forwarding the received subscription instruction to the receiving device to be subscribed; wherein the subscription instruction is used to trigger the receiving device to initiate a subscription request to the local device according to the address information in the subscription instruction.

作为上述方案的改进,所述订阅指令还包括至少一个接收端设备的地址信息;所述待订阅的接收端设备为所述接收端设备的地址信息对应的接收端设备。As an improvement of the foregoing solution, the subscription instruction further includes address information of the at least one receiving end device; the receiving end device to be subscribed to is the receiving end device corresponding to the address information of the receiving end device.

作为上述方案的改进,与所述接收端设备之间的通信链路还包括,基于WebSocket的TCP协议的第二信令通道;通过所述第二信令通道,向待订阅的所述接收端设备转发接收到的订阅指令,并接收所述接收端设备响应所述订阅指令而发出的订阅信号。As an improvement of the foregoing solution, the communication link with the receiving end device further includes a second signaling channel of a TCP protocol-based TCP protocol; and the second signaling channel is used to the receiving end to be subscribed The device forwards the received subscription instruction and receives a subscription signal sent by the receiving device in response to the subscription instruction.

与现有技术相比,本发明实施例提供的一种基于浏览器的屏幕画面传输方法,通过第一媒体通道接收发送端设备发送的显示画面的数据,并将所述显示画面的数据通过第二媒体通道转发给接收端设备,从而实现所述发送端设备的屏幕画面的传输。由于所述第一媒体通道和所述第二媒体通道均为采用WebRTC的 UDP协议的通信链路,解决了现有技术由于TCP协议的拥塞控制和重传策略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性,提高了屏幕画面传输中可支持的参与者上限。Compared with the prior art, a browser-based screen image transmission method provided by the embodiment of the present invention receives data of a display screen sent by a transmitting end device through a first media channel, and passes the data of the display screen through The two media channels are forwarded to the receiving device, thereby implementing transmission of the screen of the transmitting device. The first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol. The technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.

本发明实施例还提供了一种屏幕画面传输装置,包括:The embodiment of the invention further provides a screen image transmission device, comprising:

画面截取模块,用于对当前时刻的显示画面进行截取;a screen intercepting module, configured to intercept a display screen at a current time;

画面传输模块,用于将截取到的所述显示画面的数据传输至本地浏览器;a picture transmission module, configured to transmit the intercepted data of the display screen to a local browser;

画面转发模块,基于所述本地浏览器,将所述显示画面的数据发送至服务器;所述显示画面的数据用于触发所述服务器将其通过媒体通道发送至已订阅的接收端设备,并触发接收到所述显示画面的数据的接收端设备通过浏览器对所述显示画面的数据进行渲染显示;其中,所述媒体通道为基于WebRTC的UDP协议的通信链路。a screen forwarding module, based on the local browser, sending data of the display screen to a server; the data of the display screen is used to trigger the server to send it to the subscribed receiving device through the media channel, and trigger The receiving end device receiving the data of the display screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of a UDP protocol based on WebRTC.

本发明实施例还提供了另一种屏幕画面传输装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的第一种屏幕画面传输方法。An embodiment of the present invention further provides another screen picture transmission apparatus, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the computer program The first screen transmission method as described above is implemented.

本发明实施例还提供了一种屏幕画面传输服务器,包括第一子服务器,所述第一子服务器包括:An embodiment of the present invention further provides a screen transfer server, including a first sub-server, where the first sub-server includes:

接收模块,用于通过第一媒体通道接收由发送端设备通过浏览器发送的显示画面的数据;其中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路,所述显示画面的数据由所述发送端设备对当前的显示画面进行截取获得;a receiving module, configured to receive data of a display screen sent by the sending end device through the browser through the first media channel, where the first media channel is a communication link of a UDP protocol based on WebRTC, and the data of the display screen Obtaining, by the sending end device, the current display screen;

检测模块,用于获取当前已订阅的接收端设备;a detecting module, configured to obtain a receiving device that is currently subscribed to;

转发模块,用于通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。And a forwarding module, configured to forward the received data of the display screen to the currently subscribed receiving end device by using the second media channel, where the second media channel is a communication link of a WebRTC-based UDP protocol.

作为上述方案的改进,还包括第二子服务器,所述第二子服务器包括:As an improvement of the foregoing solution, the second sub-server is further included, and the second sub-server includes:

指令接收模块,用于接收发送端设备发出的订阅指令;所述订阅指令包括所述第一子服务器的地址信息;An instruction receiving module, configured to receive a subscription instruction sent by the sending end device; the subscription instruction includes address information of the first sub-server;

指令转发模块,用于向待订阅的所述接收端设备转发接收到的订阅指令,并接收所述接收端设备响应所述订阅指令而发出的订阅信号。And an instruction forwarding module, configured to forward the received subscription instruction to the receiving end device to be subscribed, and receive a subscription signal sent by the receiving end device in response to the subscription instruction.

作为上述方案的改进,所述第一子服务器和所述第二子服务器设于同一计算机设备或设于不同的计算机设备。As an improvement of the above solution, the first sub-server and the second sub-server are provided on the same computer device or on different computer devices.

本发明实施例还提供了另一种屏幕画面传输服务器,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的第二种屏幕画面传输方法。Another embodiment of the present invention provides a screen transfer server including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the computer program The second screen transmission method as described above is implemented.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上任意一项所述的屏幕画面传输方法。The embodiment of the present invention further provides a computer readable storage medium, comprising: a stored computer program, wherein, when the computer program is running, controlling a device where the computer readable storage medium is located performs any of the above A screen transmission method as described.

本发明实施例还提供了一种屏幕画面传输系统,包括如上任一项所述的屏幕画面传输装置,以及若干个接收端设备,还包括如上任一项所述的屏幕画面传输服务器;The embodiment of the present invention further provides a screen picture transmission system, comprising the screen picture transmission device according to any one of the preceding claims, and a plurality of receiving end devices, further comprising the screen picture transmission server according to any one of the preceding claims;

所述屏幕画面传输装置作为发送端设备,通过网络与所述屏幕画面传输服务器连接;所述接收端设备通过网络与所述屏幕画面传输服务器连接。The screen picture transmission device is connected to the screen picture transmission server through a network as a source device; the receiving device is connected to the screen picture transmission server through a network.

与现有技术相比,本发明实施例提供的一种屏幕画面传输系统,由屏幕画面传输装置当前时刻的显示画面进行截取,通过第一媒体通道将所述显示画面的数据发送到屏幕画面传输服务器,并由所述屏幕画面传输服务器通过第二媒体通道转发给接收端设备,从而实现所述屏幕画面传输装置的屏幕画面的传输。由于所述第一媒体通道和所述第二媒体通道均为采用WebRTC的UDP协议的通信链路,解决了现有技术由于TCP协议的拥塞控制和重传策略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性,提高了屏幕画面传输中可支持的参 与者上限。Compared with the prior art, the screen picture transmission system provided by the embodiment of the present invention intercepts the display screen of the current time of the screen picture transmission device, and transmits the data of the display screen to the screen screen transmission through the first media channel. And transmitting, by the screen transmission server, the second screen channel to the receiving end device, thereby implementing transmission of the screen image of the screen image transmission device. The first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol. The technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.

附图说明DRAWINGS

图1是本发明实施例提供的一种屏幕画面传输系统的结构示意图。FIG. 1 is a schematic structural diagram of a screen picture transmission system according to an embodiment of the present invention.

图2是本发明实施例提供的一种屏幕画面传输方法的流程示意图。FIG. 2 is a schematic flowchart of a screen picture transmission method according to an embodiment of the present invention.

图3是本发明实施例提供的另一种屏幕画面传输方法的流程示意图。FIG. 3 is a schematic flowchart diagram of another screen picture transmission method according to an embodiment of the present invention.

图4是如图3所示的屏幕画面传输方法的可选流程的流程示意图。4 is a flow chart showing an alternative flow of the screen transfer method shown in FIG.

图5是本发明实施例提供的一种屏幕画面传输方法的流程示意图。FIG. 5 is a schematic flowchart of a screen picture transmission method according to an embodiment of the present invention.

图6是本发明实施例提供的一种屏幕画面传输装置的结构示意图。FIG. 6 is a schematic structural diagram of a screen picture transmission apparatus according to an embodiment of the present invention.

图7是本发明实施例提供的一种屏幕画面传输服务器的结构示意图。FIG. 7 is a schematic structural diagram of a screen picture transmission server according to an embodiment of the present invention.

图8是本发明实施例提供的一种屏幕画面传输装置的结构示意图。FIG. 8 is a schematic structural diagram of a screen picture transmission apparatus according to an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

在本发明实施例中,屏幕画面传输系统包括至少一个发送端设备、至少一个服务器以及若干个接收端设备;其中,所述发送端设备与所述接收端设备至少具有显示功能,并安装具有浏览器功能的相关程序。In an embodiment of the present invention, the screen transmission system includes at least one transmitting device, at least one server, and a plurality of receiving devices; wherein the transmitting device and the receiving device have at least a display function and are installed with browsing Program related to the function.

在所述屏幕画面传输系统中,所述发送端设备通过网络与所述服务器连接,且所述接收端设备通过网络与所述服务器连接。In the screen transmission system, the transmitting device is connected to the server through a network, and the receiving device is connected to the server through a network.

参见图1,是本发明实施例提供的一种屏幕画面传输系统的结构示意图,作为举例,屏幕画面传输系统100包括一个发送端设备110、一个服务器120和三个接收端设备130,其中,发送端设备110和接收端设备130均通过网络连接到服务器120。可以理解地,屏幕画面传输系统100所示的结构仅作为举例,在其 他情况下,屏幕画面传输系统中的设备数量可以进行调整,例如,可以包括两个或四个接收端设备等,也可以是数量更多的发送端设备,还可以是数量更多的服务器,均不影响本发明可取得的有益效果。1 is a schematic structural diagram of a screen image transmission system according to an embodiment of the present invention. By way of example, the screen transmission system 100 includes a sender device 110, a server 120, and three receiver devices 130, wherein Both the end device 110 and the sink device 130 are connected to the server 120 via a network. It can be understood that the structure shown in the screen transmission system 100 is only an example. In other cases, the number of devices in the screen transmission system may be adjusted, for example, two or four receiving devices may be included, or It is a larger number of sender devices, and can also be a larger number of servers, without affecting the beneficial effects that can be achieved by the present invention.

本发明实施例提供了一种如图2所示的屏幕画面传输方法,该屏幕画面传输方法可以由屏幕画面传输系统的发送端设备执行。例如,在多人参与的会议中,与会者拥有平板电脑或是智能手机等设备的情况下,任一与会者的平板电脑或是智能手机均可以作为所述发送端设备,同时其他与会者的可联网显示设备作为接收端设备;又如,在教学课堂上,可以是由教师的平板电脑或是智能手机作为发送端设备,学生的平板电脑或是智能手机作为接收端设备。The embodiment of the invention provides a screen picture transmission method as shown in FIG. 2, and the screen picture transmission method can be performed by a sender device of the screen picture transmission system. For example, in a multi-person conference, when a participant has a device such as a tablet or a smart phone, any participant's tablet or smart phone can be used as the sender device, while other participants The network display device can be used as the receiving device; for example, in the teaching class, the teacher's tablet or smart phone can be used as the sending device, and the student's tablet or smart phone can be used as the receiving device.

可以理解地,可作为发送端设备的设备种类包括但不限于平板电脑或是智能手机,还可以是如笔记本电脑、台式计算机或是学习机等具有显示功能且安装具有浏览器功能的相关程序的电子设备。It can be understood that the types of devices that can be used as the transmitting device include, but are not limited to, a tablet computer or a smart phone, and can also be a display computer having a display function and a related program with a browser function, such as a notebook computer, a desktop computer, or a learning machine. Electronic equipment.

本发明实施例提供的所述屏幕画面传输方法包括如下步骤S110至步骤S130。The screen picture transmission method provided by the embodiment of the present invention includes the following steps S110 to S130.

S110、对当前时刻的显示画面进行截取。S110: Intercepting a display screen of the current time.

其中,可以是所述发送端设备对设备本身在当前时刻的显示画面进行截取,从而得到所述显示画面的数据。可选地,所述显示画面可以是所述发送端设备的显示模块正在显示的全部内容,也可以是正在显示的部分内容;所述截取可以是通过数据提取以获得所述显示画面的数据,也可以是通过将所述显示画面保存下来,以获得所述显示画面的数据,均不影响本发明取得的有益效果。The sending end device may intercept the display screen of the device itself at the current time, thereby obtaining data of the display screen. Optionally, the display screen may be all content being displayed by the display module of the sending end device, or may be part of content being displayed; the intercepting may be data extraction to obtain data of the display screen. It is also possible to obtain the data of the display screen by saving the display screen without affecting the advantageous effects obtained by the present invention.

S120、将截取到的所述显示画面的数据传输至本地浏览器。S120. Transmit the intercepted data of the display screen to a local browser.

可选地,所述发送端设备可以通过设备本身的内部数据通道,将所述显示画面的数据传输至所述本地浏览器;在由所述本地浏览器完成对所述显示画面的截取工作的情况下,也可以是所述本地浏览器将截取的所述显示画面的数据在程序内部传输进行传输。Optionally, the sending end device may transmit data of the display screen to the local browser by using an internal data channel of the device itself; and performing intercepting of the display screen by the local browser. In this case, the data of the display screen intercepted by the local browser may be transmitted and transmitted within the program.

S130、基于所述本地浏览器,将所述显示画面的数据发送至服务器;所述显示画面的数据用于触发所述服务器将其通过媒体通道发送至已订阅的接收端设备,并触发接收到所述显示画面的数据的接收端设备通过浏览器对所述显示画面的数据进行渲染显示;其中,所述媒体通道为基于WebRTC的UDP协议的通信链路。S130. Send, according to the local browser, data of the display screen to a server, where the data of the display screen is used to trigger the server to send the data to the subscribed receiving end device through the media channel, and trigger the receiving. The receiving end device of the data of the display screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of a UDP protocol based on WebRTC.

可选地,可以通过预先向所述服务器发送订阅指令,以将全部或部分所述接收端设备的订阅状态置为已订阅;其中,所述订阅指令用于在被所述服务器接收时,触发所述服务器向至少一个接收端设备转发订阅指令;由所述服务器转发的订阅指令用于在被所述接收端设备接收时,触发所述接收端设备向所述服务器反馈订阅请求,所述服务器将反馈所述订阅请求的接收端设备的订阅状态置为已订阅。可以理解的,向所述服务器发送订阅指令的时机可以在步骤S110执行之前,也可以在步骤S120或步骤S130执行之前,均不影响本发明取得的有益效果。Optionally, the subscription status of all or part of the receiving end device may be set to be subscribed by sending a subscription instruction to the server in advance; wherein the subscription instruction is used to trigger when received by the server The server forwards a subscription instruction to the at least one receiving end device; the subscription instruction forwarded by the server is configured to trigger the receiving end device to feed back a subscription request to the server when received by the receiving end device, the server The subscription status of the receiving device that feeds back the subscription request is set to subscribed. It can be understood that the timing of sending the subscription instruction to the server may be performed before step S110 or before step S120 or step S130, without affecting the beneficial effects obtained by the present invention.

所述发送端设备与所述服务器之间连接的所述媒体通道,基于WebRTC的UDP协议预先构建。具体地,所述发送端设备可以通过在所述本地浏览器上访问所述服务器的IP地址,从而基于WebRTC的UDP协议构建通信链路以连接所述服务器,并经由该通信链路将后续步骤中截取到的显示画面的数据发送给所述服务器。由于所述媒体通道基于WebRTC的UDP通道构建,并且在本设备的功能基于本地浏览器实现,无需针对不同操作系统开发不同的客户端程序,在降低了开发难度的基础上,还同时提高了屏幕画面传输方法在不同应用环境下的兼容性和稳定性。The media channel connected between the sender device and the server is pre-built based on the UDP protocol of WebRTC. Specifically, the sending end device may establish a communication link to connect to the server according to a WebRTC UDP protocol by accessing an IP address of the server on the local browser, and perform subsequent steps via the communication link. The data of the display screen intercepted is sent to the server. Since the media channel is built based on the WebRTC UDP channel, and the function of the device is implemented based on a local browser, it is not necessary to develop different client programs for different operating systems, and the screen is improved while reducing the development difficulty. The compatibility and stability of the picture transmission method in different application environments.

本发明实施例提供的一种基于浏览器的屏幕画面传输方法,通过对本设备的当前时刻的显示画面进行截取,通过浏览器将截取到的所述显示画面的数据发送给服务器,再由所述服务器通过基于WebRTC的UDP协议的媒体通道发送到接收端设备上进行显示,从而实现屏幕画面的传输。由于采用基于WebRTC的UDP协议的媒体通道进行传输,解决了现有技术由于TCP协议的拥塞控制和重传策 略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性,提高了屏幕画面传输中可支持的参与者上限。The browser-based screen image transmission method provided by the embodiment of the present invention, the interception of the display screen of the current time of the device is performed, and the intercepted data of the display screen is sent to the server by the browser, and then The server sends the media channel based on the WebRTC-based UDP protocol to the receiving device for display, thereby realizing the transmission of the screen image. The transmission of the media channel based on the WebRTC-based UDP protocol solves the problem that the transmission efficiency of the prior art is low due to the congestion control and retransmission strategy of the TCP protocol, and the real-time and smoothness of the sharing is not high and can be supported. The technical problem with lower participant limit effectively improves the real-time and smoothness of screen transmission, and increases the upper limit of participants that can be supported in screen transmission.

本发明实施例还提供了一种如图3所示基于浏览器的屏幕画面传输方法,该屏幕画面传输方法可以由屏幕画面传输系统的服务器执行,包括如下所述的步骤S210至步骤S230。The embodiment of the present invention further provides a browser-based screen image transmission method as shown in FIG. 3, which may be executed by a server of the screen image transmission system, and includes steps S210 to S230 as described below.

S210、通过第一媒体通道接收由发送端设备通过浏览器发送的显示画面的数据;其中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路,所述显示画面的数据由所述发送端设备对当前的显示画面进行截取获得。S210: Receive, by using a first media channel, data of a display screen sent by a sending device by using a browser, where the first media channel is a communication link of a WebRTC-based UDP protocol, and the data of the display screen is The sending device intercepts the current display screen.

其中,所述服务器通过所述第一媒体通道连接到所述发送端设备,具体地,可以是所述服务器预先接收所述发送端设备的网络访问请求并响应,从而基于WebRTC的UDP协议构建与所述发送端设备之间的通信链路,即为所述第一媒体通道。The server is connected to the sending end device by using the first media channel. Specifically, the server may receive a network access request of the sending end device in advance and respond, so that the UDP protocol based on the WebRTC is constructed and The communication link between the sender devices is the first media channel.

S220、获取当前已订阅的接收端设备。S220. Obtain a currently-received receiving device.

可选地,可以是通过预先设定所述接收端设备的订阅状态,在执行本步骤时所述服务器直接获取已订阅的接收端设备;也可以是所述服务器通过预先执行如图4中步骤S221至步骤S224所示的流程或执行如步骤S223至步骤S224所示的流程,即时更新所述接收端设备的订阅状态,以提供对所述接收端设备的订阅状态的调整的灵活性。可以理解的,上述对所述接收端设备的订阅状态的两种调控方式仅作为举例,不论所述服务器采用上述何种方式对所述接收端设备的订阅状态进行调控,均不影响本发明可取得的有益效果。Optionally, the server may directly obtain the subscribed receiving device by performing the step of performing the step, or the server may perform the steps in FIG. 4 by using the step. The flow shown in step S221 to step S224 or the flow as shown in step S223 to step S224 is performed to instantly update the subscription status of the receiving device to provide flexibility in adjusting the subscription status of the receiving device. It can be understood that the above two control modes for the subscription state of the receiving device are only used as an example, and the method for controlling the subscription state of the receiving device in the above manner does not affect the present invention. The beneficial effects achieved.

参见图4,步骤S221至步骤S224如下:Referring to FIG. 4, steps S221 to S224 are as follows:

S221、接收所述发送端设备通过所述第一信令通道发送的订阅指令;所述订阅指令包括本设备的地址信息。S221. Receive a subscription instruction sent by the sending end device by using the first signaling channel. The subscription instruction includes address information of the local device.

优选地,所述订阅指令还可以包括至少一个接收端设备的地址信息,以所述 接收端设备的地址信息对应的接收端设备作为待订阅的接收端设备。Preferably, the subscription instruction may further include address information of the at least one receiving end device, and the receiving end device corresponding to the address information of the receiving end device is used as the receiving end device to be subscribed.

所述本设备的地址信息可以是所述服务器的IP地址,或是包括所述服务器的网内地址的其他信息。所述第一信令通道为预先构建的基于WebSocket的TCP的通信链路,该通信链路连接所述服务器与所述发送端设备,使所述服务器与所述发送端设备之间的信令流和媒体流通过不同的通信链路进行传输,避免了媒体流与信令流的传输相互影响的情况发生,提高了带宽的利用率和通信效率。The address information of the device may be an IP address of the server or other information including an address of the server in the network. The first signaling channel is a pre-built WebSocket-based TCP communication link, and the communication link connects the server and the sending end device, so that signaling between the server and the sending end device The stream and the media stream are transmitted through different communication links, which avoids the mutual influence of the transmission of the media stream and the signaling stream, and improves the bandwidth utilization and communication efficiency.

S222、向待订阅的接收端设备转发接收到的所述订阅指令;其中,所述订阅指令用于触发所述接收端设备根据所述订阅指令中的地址信息向本设备发起订阅请求。S222. Forward the received subscription instruction to the receiving device to be subscribed. The subscription instruction is used to trigger the receiving device to initiate a subscription request to the local device according to the address information in the subscription instruction.

优选地,所述服务器可以是通过第二信令通道想所述接收端设备转发接收到的所述订阅指令。所述第二信令通道为预先构建的基于WebSocket的TCP通信链路,该通信链路连接所述服务器与所述接收端设备,使所述服务器与所述接收端设备之间的信令流和媒体流通过不同的通信链路进行传输,避免了媒体流与信令流的传输相互影响的情况发生,提高了带宽的利用率和通信效率。Preferably, the server may be that the receiving end device forwards the received subscription instruction through the second signaling channel. The second signaling channel is a pre-built WebSocket-based TCP communication link, and the communication link connects the server and the receiving end device to enable signaling flow between the server and the receiving end device. The media stream is transmitted through different communication links, which avoids the interaction between the media stream and the signaling stream, and improves bandwidth utilization and communication efficiency.

S223、接收来自至少一个接收端设备的订阅请求。S223. Receive a subscription request from at least one receiving device.

其中,所述订阅请求可以是所述接收端设备主动向所述服务器发送的构建媒体通道的请求信息或是向所述服务器订阅媒体流的请求信息,也可以是所述接收端设备在接收到的订阅指令的触发下向所述服务器发送的请求信息。The subscription request may be request information for constructing a media channel that is sent by the receiving device to the server, or request information for subscribing to the server, or may be received by the receiving device. The request information sent to the server under the trigger of the subscription instruction.

可选的,所述服务器可以是接收所述接收端设备主动发送的订阅请求,即不经过步骤S221和步骤S222直接执行步骤S223;也可以是接收所述接收端设备在特定的触发条件下发送的订阅请求,如所述服务器执行步骤S221和步骤S222,触发所述接收端设备发送订阅请求,再执行步骤S223的内容,从而提高所述接收端设备的订阅状态的可控性以及对订阅状态的调控的便利性。可以理解的,不论所述服务器接收到所述接收端设备通过上述何种方式发送的订阅请求,均不影响本发明可取得的有益效果。Optionally, the server may be configured to receive the subscription request that is sent by the receiving end device, that is, directly perform step S223 without performing step S221 and step S222; or may receive the receiving device to send under a specific trigger condition. If the server performs step S221 and step S222, the receiving end device is triggered to send a subscription request, and then the content of step S223 is executed, thereby improving the controllability of the subscription status of the receiving end device and the subscription status. The convenience of regulation. It can be understood that regardless of whether the server receives the subscription request sent by the receiving device by using the above manner, the beneficial effects that can be achieved by the present invention are not affected.

S224、将发出所述订阅请求的所述接收端设备的订阅状态置为已订阅。S224. Set a subscription status of the receiving device that sends the subscription request to be subscribed.

S230、通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。S230. Forward, by the second media channel, the received data of the display screen to the currently subscribed receiving end device, where the second media channel is a communication link of a WebRTC-based UDP protocol.

其中,所述第二媒体通道可以是在所述接收端设备访问到所述服务器时进行构建,也可以是在所述服务器接收到所述接收端设备发送的订阅请求时进行构建,均不影响本发明可取得的有益效果。The second media channel may be constructed when the receiving device accesses the server, or may be constructed when the server receives the subscription request sent by the receiving device, without affecting The beneficial effects that can be achieved by the present invention.

本发明实施例提供的一种屏幕画面传输方法,通过第一媒体通道接收发送端设备发送的显示画面的数据,并将所述显示画面的数据通过第二媒体通道转发给接收端设备,从而实现所述发送端设备的屏幕画面的传输。由于所述第一媒体通道和所述第二媒体通道均为采用WebRTC的UDP协议的通信链路,解决了现有技术由于TCP协议的拥塞控制和重传策略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性,提高了屏幕画面传输中可支持的参与者上限。The screen picture transmission method provided by the embodiment of the invention receives the data of the display screen sent by the sending end device through the first media channel, and forwards the data of the display screen to the receiving end device through the second media channel, thereby realizing The transmission of the screen of the transmitting device. The first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol. The technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.

本发明实施例还提供了一种如图5所示的屏幕画面传输方法,该屏幕画面传输方法可以由屏幕画面传输系统执行,包括如下步骤S310至步骤S370:The embodiment of the present invention further provides a screen image transmission method as shown in FIG. 5, which may be executed by a screen screen transmission system, and includes the following steps S310 to S370:

S310、发送端设备对当前时刻的显示画面进行截取。S310. The transmitting device intercepts the display screen at the current time.

S320、所述发送端设备将截取到的所述显示画面的数据传输至本地浏览器。S320. The sending end device transmits the intercepted data of the display screen to a local browser.

S330、所述发送端设备基于所述本地浏览器,通过第一媒体通道将所述显示画面的数据发送至服务器;其中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路。S330. The sending end device sends, according to the local browser, data of the display screen to a server by using a first media channel, where the first media channel is a communication link of a UDP protocol based on WebRTC.

S340、所述服务器通过所述第一媒体通道接收到所述显示画面的数据。S340. The server receives data of the display screen by using the first media channel.

S350、所述服务器获取当前已订阅的接收端设备。S350. The server acquires a currently subscribed receiving end device.

S360、所述服务器通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。S360. The server forwards the received data of the display screen to a currently subscribed receiving end device by using a second media channel, where the second media channel is a communication link of a WebRTC-based UDP protocol.

S370、所述接收端设备接收来自所述第二媒体通道的所述显示画面的数据,并对所述显示画面的数据进行渲染显示。S370. The receiving end device receives data of the display screen from the second media channel, and performs rendering display on data of the display screen.

以图1所示的屏幕画面传输系统为例,屏幕画面传输系统100包括发送端设备110、服务器120、接收端设备130A、接收端设备130B和接收端设备130C。发送端设备110通过服务器120连接到接收端设备130A、130B和130C。发送端设备110截取自身当前时刻的显示画面A,得到显示画面A的数据。发送端设备110将显示画面A的数据传输至本地浏览器,再基于所述本地浏览器,将显示画面A的数据发送至服务器120。由显示画面A的数据触发服务器120进行转发工作,即将显示画面A的数据转发给接收端设备。Taking the screen transmission system shown in FIG. 1 as an example, the screen transmission system 100 includes a transmitting device 110, a server 120, a receiving device 130A, a receiving device 130B, and a receiving device 130C. The source device 110 is connected to the sink devices 130A, 130B, and 130C through the server 120. The transmitting device 110 intercepts the display screen A of its current time to obtain the data of the display screen A. The source device 110 transmits the data of the display screen A to the local browser, and then transmits the data of the display screen A to the server 120 based on the local browser. The data is triggered by the server 120 to perform the forwarding operation, that is, the data of the display screen A is forwarded to the receiving device.

假设服务器120对显示画面A的数据进行转发之前,还接收到了由发送端设备110发送出来的订阅指令B,服务器120将订阅指令B转发给接收端设备130A和接收端设备130B,并且接收端设备130A在接收到服务器120转发的订阅指令B之后,向服务器120反馈了订阅请求C,服务器120在接收到订阅请求C之后,将接收端设备130A的订阅状态置为已订阅。当服务器120对显示画面A的数据进行转发时,由于接收端设备130A的订阅状态为已订阅,接收端设备130B和130C的订阅状态未置为已订阅,因此服务器120将显示画面A的数据转发给接收端设备130A,接收端设备130A对接收到的显示画面A的数据进行渲染显示,从而实现发送端设备110的截取的显示画面分享到接收端设备130A上。It is assumed that before the server 120 forwards the data of the display screen A, the subscription instruction B sent by the source device 110 is also received, and the server 120 forwards the subscription instruction B to the receiving device 130A and the receiving device 130B, and the receiving device After receiving the subscription instruction B forwarded by the server 120, the 130A feeds back the subscription request C to the server 120. After receiving the subscription request C, the server 120 sets the subscription status of the receiving device 130A to subscribed. When the server 120 forwards the data of the display screen A, since the subscription status of the receiving end device 130A is subscribed, the subscription status of the receiving end devices 130B and 130C is not set to subscribed, so the server 120 forwards the data of the display screen A. To the receiving end device 130A, the receiving end device 130A performs rendering display on the received data of the display screen A, so that the intercepted display screen of the transmitting end device 110 is shared with the receiving end device 130A.

本发明实施例提供的一种屏幕画面传输方法,由发送端设备截取当前的显示画面,并将所述显示画面的数据通过第一媒体通道发送给服务器,由服务器将所述显示画面的数据通过第二媒体通道转发给接收端设备,从而实现所述发送端设备的屏幕画面的传输。由于所述第一媒体通道和所述第二媒体通道均为采用WebRTC的UDP协议的通信链路,解决了现有技术由于TCP协议的拥塞控制和重传策略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性, 提高了屏幕画面传输中可支持的参与者上限。The screen picture transmission method provided by the embodiment of the present invention, the current display screen is intercepted by the sending end device, and the data of the display screen is sent to the server through the first media channel, and the data of the display screen is passed by the server. The second media channel is forwarded to the receiving device, thereby implementing transmission of the screen of the transmitting device. The first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol. The technical problem of low real-time and fluent sharing and low supportable participants has effectively improved the real-time and smoothness of screen transmission and increased the upper limit of participants that can be supported in screen transmission.

本发明实施例还提供了一种屏幕画面传输装置,参见图6,屏幕画面传输装置40可以作为所述屏幕画面传输系统的发送端设备,也可以作为发送端设备的组成部分。其中,屏幕画面传输装置40包括:The embodiment of the invention further provides a screen picture transmission device. Referring to FIG. 6, the screen picture transmission device 40 can be used as a transmitting end device of the screen picture transmission system, or can be used as a component of the transmitting end device. The screen picture transmission device 40 includes:

画面截取模块41,用于对当前时刻的显示画面进行截取;The screen capture module 41 is configured to intercept the display screen at the current time;

画面传输模块42,用于将截取到的所述显示画面的数据传输至本地浏览器;The screen transmission module 42 is configured to transmit the intercepted data of the display screen to a local browser;

画面转发模块43,基于所述本地浏览器,将所述显示画面的数据发送至服务器;所述显示画面的数据用于触发所述服务器将其通过媒体通道发送至已订阅的接收端设备,并触发接收到所述显示画面的数据的接收端设备通过浏览器对所述显示画面的数据进行渲染显示;其中,所述媒体通道为基于WebRTC的UDP协议的通信链路。The screen forwarding module 43 sends the data of the display screen to the server based on the local browser; the data of the display screen is used to trigger the server to send it to the subscribed receiving device through the media channel, and The receiving end device that triggers the data received by the display screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of a WebRTC-based UDP protocol.

屏幕画面传输装置40的工作流程同如图2所示的屏幕画面传输方法,在此不作赘述。The workflow of the screen transfer device 40 is the same as the screen transfer method shown in FIG. 2, and details are not described herein.

本发明实施例提供的一种屏幕画面传输装置,通过对本设备的当前时刻的显示画面进行截取,通过浏览器将截取到的所述显示画面的数据发送给服务器,再由所述服务器通过基于WebRTC的UDP协议的媒体通道发送到接收端设备上进行显示,从而实现屏幕画面的传输。由于采用基于WebRTC的UDP协议的媒体通道进行传输,解决了现有技术由于TCP协议的拥塞控制和重传策略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性,提高了屏幕画面传输中可支持的参与者上限。The screen picture transmission device provided by the embodiment of the present invention intercepts the display screen of the current time of the device, sends the intercepted data of the display screen to the server through the browser, and then passes the server through the WebRTC. The media channel of the UDP protocol is sent to the receiving device for display, thereby realizing the transmission of the screen image. The transmission of the media channel based on the WebRTC-based UDP protocol solves the problem that the transmission efficiency of the prior art is low due to the congestion control and retransmission strategy of the TCP protocol, and the real-time and smoothness of the sharing is not high and can be supported. The technical problem with lower participant limit effectively improves the real-time and smoothness of screen transmission, and increases the upper limit of participants that can be supported in screen transmission.

本发明实施例还提供了一种屏幕画面传输服务器,如图7所示,屏幕画面传输服务器50可以作为所述屏幕画面传输系统的服务器,也可以作为服务器的组成部分。屏幕画面传输服务器50包括第一子服务器51,第一子服务器51包括接收模块51a、检测模块51b和转发模块51c。The embodiment of the present invention further provides a screen transfer server. As shown in FIG. 7, the screen transfer server 50 can serve as a server of the screen transfer system or as a component of the server. The screen transfer server 50 includes a first sub-server 51, and the first sub-server 51 includes a receiving module 51a, a detecting module 51b, and a forwarding module 51c.

接收模块51a,用于通过第一媒体通道接收由发送端设备通过浏览器发送的显示画面的数据;其中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路,所述显示画面的数据由所述发送端设备对当前的显示画面进行截取获得。检测模块51b,用于获取当前已订阅的接收端设备。转发模块51c,用于通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。The receiving module 51a is configured to receive data of a display screen sent by the sending end device through the browser through the first media channel, where the first media channel is a communication link of a UDP protocol based on WebRTC, and the display screen is The data is obtained by intercepting the current display screen by the transmitting device. The detecting module 51b is configured to obtain the receiving device that is currently subscribed. The forwarding module 51c is configured to forward, by using the second media channel, the received data of the display screen to the currently subscribed receiving end device, where the second media channel is a communication link of a WebRTC-based UDP protocol.

优选地,屏幕画面传输服务器50还可以包括第二子服务器52,第二子服务器52包括指令接收模块52a和指令转发模块52b。Preferably, the screen transfer server 50 may further include a second sub-server 52, and the second sub-server 52 includes an instruction receiving module 52a and an instruction forwarding module 52b.

指令接收模块52a,用于接收发送端设备发出的订阅指令;所述订阅指令包括所述第一子服务器的地址信息。指令转发模块52b,用于向待订阅的所述接收端设备转发接收到的订阅指令,并接收所述接收端设备响应所述订阅指令而发出的订阅信号。The instruction receiving module 52a is configured to receive a subscription instruction sent by the sender device, where the subscription instruction includes address information of the first subserver. The instruction forwarding module 52b is configured to forward the received subscription instruction to the receiving end device to be subscribed, and receive a subscription signal sent by the receiving end device in response to the subscription instruction.

可选地,第一子服务器51和第二子服务器52可以设于同一计算机设备;第一子服务器51和第二子服务器52也可以设于不同计算机设备,并共享相同的IP地址,以在任一子服务器出现故障的情况下,另一子服务器可以保持正常工作,提供系统屏幕画面传输服务器的稳定性。Optionally, the first sub-server 51 and the second sub-server 52 may be located on the same computer device; the first sub-server 51 and the second sub-server 52 may also be located on different computer devices and share the same IP address. In the event of a child server failure, another child server can remain in normal operation, providing stability to the system screen transfer server.

屏幕画面传输服务器50的工作过程同图3所示的屏幕画面传输方法,在此不作赘述。The working process of the screen transfer server 50 is the same as the screen transfer method shown in FIG. 3, and details are not described herein.

本发明实施例提供的基于浏览器的屏幕画面传输服务器,通过第一媒体通道接收发送端设备发送的显示画面的数据,并将所述显示画面的数据通过第二媒体通道转发给接收端设备,从而实现所述发送端设备的屏幕画面的传输。由于所述第一媒体通道和所述第二媒体通道均为采用WebRTC的UDP协议的通信链路,解决了现有技术由于TCP协议的拥塞控制和重传策略导致的传输效率低下,进而导致的共享的实时性和流畅性不高、可支持的参与者上限较低的技术问题,有效地提升了屏幕画面传输的实时性和流畅性,提高了屏幕画面传输中可支持的参 与者上限。The browser-based screen image transmission server provided by the embodiment of the present invention receives the data of the display screen sent by the sending end device through the first media channel, and forwards the data of the display screen to the receiving end device through the second media channel. Thereby, the transmission of the screen of the transmitting device is realized. The first media channel and the second media channel are both communication links of the UDP protocol of the WebRTC, which solves the problem that the transmission efficiency of the prior art is low due to congestion control and retransmission policies of the TCP protocol. The technical problem of low real-time and fluency of sharing and low supportable upper limit of participants can effectively improve the real-time and smoothness of screen transmission and increase the upper limit of participants that can be supported in screen transmission.

本发明实施例还提供了一种屏幕画面传输装置,如图8所示,屏幕画面传输装置60可作为屏幕画面传输系统中的发送端设备的组成部分或作为发送端设备,也可作为屏幕画面传输系统中的服务器的组成部分或是服务器,屏幕画面传输装置60包括:处理器61、存储器62以及存储在所述存储器中并可在所述处理器上运行的计算机程序,例如屏幕画面传输程序。所述处理器61执行所述计算机程序时实现上述各个屏幕画面传输方法实施例中的步骤,例如图2所示的步骤S120。或者,所述处理器执行所述计算机程序时实现上述各装置实施例中各模块的功能,例如上述实施例中所述的屏幕画面传输装置或屏幕画面传输服务器。The embodiment of the invention further provides a screen picture transmission device. As shown in FIG. 8 , the screen picture transmission device 60 can be used as a component of the sender device in the screen picture transmission system or as a sender device or as a screen image. A component or server of the server in the transmission system, the screen transfer device 60 includes a processor 61, a memory 62, and a computer program stored in the memory and operable on the processor, such as a screen transfer program . When the processor 61 executes the computer program, the steps in the above embodiments of the respective screen image transmission methods are implemented, for example, step S120 shown in FIG. Alternatively, when the processor executes the computer program, the functions of each module in the foregoing device embodiments are implemented, such as the screen screen transmission device or the screen screen transmission server described in the above embodiments.

示例性的,所述计算机程序可以被分割成一个或多个模块,所述一个或者多个模块被存储在所述存储器62中,并由所述处理器61执行,以完成本发明。所述一个或多个模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述屏幕画面传输装置60中的执行过程。例如,所述计算机程序可以被分割成画面截取模块、画面传输模块和画面转发模块,各模块具体功能如下:所述画面截取模块,用于对当前时刻的显示画面进行截取;所述画面传输模块,用于将截取到的所述显示画面的数据传输至本地浏览器;所述画面转发模块,基于所述本地浏览器,将所述显示画面的数据发送至服务器;所述显示画面的数据用于触发所述服务器将其通过媒体通道发送至已订阅的接收端设备,并触发接收到所述显示画面的数据的接收端设备通过浏览器对所述显示画面的数据进行渲染显示;其中,所述媒体通道为基于WebRTC的UDP协议的通信链路。Illustratively, the computer program can be partitioned into one or more modules that are stored in the memory 62 and executed by the processor 61 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program in the screen transmission device 60. For example, the computer program may be divided into a screen intercepting module, a screen transmission module, and a screen forwarding module, and the specific functions of each module are as follows: the screen intercepting module is configured to intercept a current time display screen; the screen transmission module Transmitting, by the screen forwarding module, the data of the display screen to the server according to the local browser; the data of the display screen is used by the screen forwarding module And the receiving end device that triggers the server to send the data to the subscribed receiving end device through the media channel, and triggers the receiving the data of the display screen to display and display the data of the display screen by using a browser; The media channel is a communication link of the WebRTC-based UDP protocol.

所述计算机程序还可以被分割成接收模块、检测模块和转发模块,各模块具体功能如下:所述接收模块,用于通过第一媒体通道接收由发送端设备通过浏览器发送的显示画面的数据;其中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路,所述显示画面的数据由所述发送端设备对当前的显示画面进行截 取获得;所述检测模块,用于获取当前已订阅的接收端设备;所述转发模块,用于通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。The computer program can also be divided into a receiving module, a detecting module and a forwarding module. The specific functions of each module are as follows: the receiving module is configured to receive, by using the first media channel, data of a display screen sent by the sending end device through the browser. The first media channel is a communication link of the UDP protocol based on the WebRTC, and the data of the display screen is obtained by the sending end device to intercept the current display image; the detecting module is configured to acquire the current The subscribed receiving device is configured to forward the received data of the display screen to the currently subscribed receiving end device through the second media channel; wherein the second media channel is a WebRTC-based The communication link of the UDP protocol.

所述屏幕画面传输装置60可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述屏幕画面传输装置60可包括,但不仅限于,处理器61、存储器62。本领域技术人员可以理解,所述示意图仅仅是屏幕画面传输装置的示例,并不构成对屏幕画面传输装置60的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述屏幕画面传输装置60还可以包括输入输出设备、网络接入设备、总线等。The screen transmission device 60 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The screen transfer device 60 may include, but is not limited to, a processor 61 and a memory 62. It will be understood by those skilled in the art that the schematic diagram is merely an example of a screen transmission device, does not constitute a limitation of the screen transmission device 60, may include more or less components than those illustrated, or may combine certain components. Or different components, such as the screen transmission device 60, may also include input and output devices, network access devices, buses, and the like.

所称处理器61可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器61是所述屏幕画面传输装置60的控制中心,利用各种接口和线路连接整个屏幕画面传输装置60的各个部分。The processor 61 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 61 is a control center of the screen transmission device 60, and connects the entire screen transmission by using various interfaces and lines. Various parts of device 60.

所述存储器62可用于存储所述计算机程序和/或模块,所述处理器61通过运行或执行存储在所述存储器62内的计算机程序和/或模块,以及调用存储在存储器62内的数据,实现所述屏幕画面传输装置60的各种功能。所述存储器62可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器62可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失 性固态存储器件。The memory 62 can be used to store the computer program and/or module, by executing or executing computer programs and/or modules stored in the memory 62, and recalling data stored in the memory 62, Various functions of the screen transmission device 60 are implemented. The memory 62 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be Stores data created based on the use of the phone (such as audio data, phone book, etc.). In addition, the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a secure digital (SD). Card, flash card, at least one disk storage device, flash device, or other volatile solid state storage device.

其中,所述屏幕画面传输装置60集成的模块如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。Wherein, the module integrated by the screen transmission device 60 can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware. The computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor. Wherein, the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form. The computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.

本发明实施例提供的屏幕画面传输装置,在作为屏幕画面传输系统的发送端设备的组成部分或是作为发送端设备时,可取得如图6所示的屏幕画面传输装置的有益效果;在作为屏幕画面传输系统的服务器的组成部分或是作为服务器时,可取得如图7所示的屏幕画面传输服务器的有益效果,在此不作赘述。The screen picture transmission apparatus provided by the embodiment of the present invention can obtain the beneficial effects of the screen picture transmission apparatus shown in FIG. 6 when it is used as a component of the transmission end device of the screen picture transmission system or as a transmission end device; When the components of the server of the screen transmission system or the server are used as the server, the beneficial effects of the screen transmission server shown in FIG. 7 can be obtained, and details are not described herein.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is the scope of protection of the present invention.

Claims (15)

一种屏幕画面传输方法,其特征在于,包括:A screen picture transmission method, comprising: 对当前时刻的显示画面进行截取;Intercepting the display screen at the current time; 将截取到的所述显示画面的数据传输至本地浏览器;Transmitting the intercepted data of the display screen to a local browser; 基于所述本地浏览器,将所述显示画面的数据发送至服务器;所述显示画面的数据用于触发所述服务器将其通过媒体通道发送至已订阅的接收端设备,并触发接收到所述显示画面的数据的接收端设备通过浏览器对所述显示画面的数据进行渲染显示;其中,所述媒体通道为基于WebRTC的UDP协议的通信链路。Sending, according to the local browser, the data of the display screen to a server; the data of the display screen is used to trigger the server to send it to the subscribed receiving end device through the media channel, and trigger the receiving of the The receiving end device that displays the data of the screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of the UDP protocol based on WebRTC. 如权利要求1所述的屏幕画面传输方法,其特征在于,还包括:The method for transmitting a screen image according to claim 1, further comprising: 向所述服务器发送订阅指令;所述订阅指令用于触发所述服务器向至少一个接收端设备转发所述订阅指令,并将反馈订阅请求的接收端设备的订阅状态置为已订阅。Sending a subscription instruction to the server; the subscription instruction is used to trigger the server to forward the subscription instruction to at least one receiving end device, and set a subscription status of the receiving end device that feeds the subscription request to be subscribed. 一种屏幕画面传输方法,其特征在于,包括步骤:A screen picture transmission method, comprising the steps of: 通过第一媒体通道接收由发送端设备通过浏览器发送的显示画面的数据;其中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路,所述显示画面的数据由所述发送端设备对当前的显示画面进行截取获得;Receiving, by the first media channel, data of a display screen sent by the sending end device through the browser; wherein the first media channel is a communication link of a UDP protocol based on WebRTC, and data of the display screen is used by the sending end The device intercepts the current display screen; 获取当前已订阅的接收端设备;Obtain the currently subscribed receiving device; 通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。Receiving, by the second media channel, the received data of the display screen to the currently subscribed receiving end device; wherein the second media channel is a communication link of a WebRTC-based UDP protocol. 如权利要求3所述的屏幕画面传输方法,其特征在于,还包括:The method for transmitting a screen image according to claim 3, further comprising: 接收来自至少一个接收端设备的订阅请求;Receiving a subscription request from at least one receiving device; 将发出所述订阅请求的所述接收端设备的订阅状态置为已订阅。The subscription status of the receiving device that issued the subscription request is set to subscribed. 如权利要求4所述的屏幕画面传输方法,其特征在于,与所述发送端设备之间的通信链路还包括:基于WebSocket的TCP协议的第一信令通道;则在所述接收来自所述接收端设备的订阅请求之前,还包括:The screen transmission method according to claim 4, wherein the communication link with the transmitting device further comprises: a first signaling channel of a TCP protocol based on WebSocket; Before the subscription request of the receiving device, the method further includes: 接收所述发送端设备通过所述第一信令通道发送的订阅指令;所述订阅指令包括本设备的地址信息;Receiving, by the sending end device, a subscription instruction sent by the first signaling channel; the subscription instruction includes address information of the local device; 向待订阅的接收端设备转发接收到的所述订阅指令;其中,所述订阅指令用于触发所述接收端设备根据所述订阅指令中的地址信息向本设备发起订阅请求。Forwarding the received subscription instruction to the receiving device to be subscribed; wherein the subscription instruction is used to trigger the receiving device to initiate a subscription request to the local device according to the address information in the subscription instruction. 如权利要求5所述的屏幕画面传输方法,其特征在于,所述订阅指令还包括至少一个接收端设备的地址信息;所述待订阅的接收端设备为所述接收端设备的地址信息对应的接收端设备。The screen transmission method of claim 5, wherein the subscription instruction further comprises address information of at least one receiving device; and the receiving device to be subscribed corresponds to address information of the receiving device Receiver device. 如权利要求5所述的屏幕画面传输方法,其特征在于,与所述接收端设备之间的通信链路还包括,基于WebSocket的TCP协议的第二信令通道;通过所述第二信令通道,向待订阅的所述接收端设备转发接收到的订阅指令,并接收所述接收端设备响应所述订阅指令而发出的订阅信号。The screen transmission method according to claim 5, wherein the communication link with the receiving device further comprises: a second signaling channel of a TCP protocol based on WebSocket; and the second signaling And the channel forwards the received subscription instruction to the receiving device to be subscribed, and receives a subscription signal sent by the receiving device in response to the subscription instruction. 一种屏幕画面传输装置,其特征在于,包括:A screen picture transmission device, comprising: 画面截取模块,用于对当前时刻的显示画面进行截取;a screen intercepting module, configured to intercept a display screen at a current time; 画面传输模块,用于将截取到的所述显示画面的数据传输至本地浏览器;a picture transmission module, configured to transmit the intercepted data of the display screen to a local browser; 画面转发模块,基于所述本地浏览器,将所述显示画面的数据发送至服务器;所述显示画面的数据用于触发所述服务器将其通过媒体通道发送至已订阅的接收端设备,并触发接收到所述显示画面的数据的接收端设备通过浏览器对所述显示画面的数据进行渲染显示;其中,所述媒体通道为基于WebRTC的UDP协议的通信链路。a screen forwarding module, based on the local browser, sending data of the display screen to a server; the data of the display screen is used to trigger the server to send it to the subscribed receiving device through the media channel, and trigger The receiving end device receiving the data of the display screen performs rendering display on the data of the display screen by using a browser; wherein the media channel is a communication link of a UDP protocol based on WebRTC. 一种基于浏览器的屏幕画面传输装置,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至2中任意一项所述的屏幕画面传输方法。A browser-based screen transfer device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the computer program as claimed The screen transmission method according to any one of claims 1 to 2. 一种基于浏览器的屏幕画面传输服务器,其特征在于,包括第一子服务器,所述第一子服务器包括:A browser-based screen transfer server, comprising: a first sub-server, the first sub-server comprising: 接收模块,用于通过第一媒体通道接收由发送端设备通过浏览器发送的显示画面的数据;其中,所述第一媒体通道为基于WebRTC的UDP协议的通信链路,所述显示画面的数据由所述发送端设备对当前的显示画面进行截取获得;a receiving module, configured to receive data of a display screen sent by the sending end device through the browser through the first media channel, where the first media channel is a communication link of a UDP protocol based on WebRTC, and the data of the display screen Obtaining, by the sending end device, the current display screen; 检测模块,用于获取当前已订阅的接收端设备;a detecting module, configured to obtain a receiving device that is currently subscribed to; 转发模块,用于通过第二媒体通道向当前已订阅的接收端设备转发接收到的所述显示画面的数据;其中,所述第二媒体通道为基于WebRTC的UDP协议的通信链路。And a forwarding module, configured to forward the received data of the display screen to the currently subscribed receiving end device by using the second media channel, where the second media channel is a communication link of a WebRTC-based UDP protocol. 如权利要求10所述的屏幕画面传输服务器,其特征在于,还包括第二子服务器,所述第二子服务器包括:The screen transfer server of claim 10, further comprising a second sub-server, the second sub-server comprising: 指令接收模块,用于接收发送端设备发出的订阅指令;所述订阅指令包括所述第一子服务器的地址信息;An instruction receiving module, configured to receive a subscription instruction sent by the sending end device; the subscription instruction includes address information of the first sub-server; 指令转发模块,用于向待订阅的所述接收端设备转发接收到的订阅指令,并接收所述接收端设备响应所述订阅指令而发出的订阅信号。And an instruction forwarding module, configured to forward the received subscription instruction to the receiving end device to be subscribed, and receive a subscription signal sent by the receiving end device in response to the subscription instruction. 如权利要求11所述的屏幕画面传输服务器,其特征在于,所述第一子服务器和所述第二子服务器设于同一计算机设备或设于不同的计算机设备。The screen transfer server according to claim 11, wherein the first sub-server and the second sub-server are provided on the same computer device or on different computer devices. 一种基于浏览器的屏幕画面传输服务器,包括处理器、存储器以及存储 在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求3至7中任意一项所述的屏幕画面传输方法。A browser-based screen transfer server includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the computer program as claimed The screen transmission method according to any one of 3 to 7. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如权利要求1至7中任意一项所述的屏幕画面传输方法。A computer readable storage medium, comprising: a stored computer program, wherein the computer readable storage medium is controlled to execute the apparatus as claimed in claim 1 The screen picture transmission method according to any one of the items 7. 一种基于浏览器的屏幕画面传输系统,其特征在于,包括如权利要求8至9任一项所述的屏幕画面传输装置、若干个接收端设备以及如权利要求10至13任一项所述的屏幕画面传输服务器;A browser-based screen transmission system, comprising the screen transmission device according to any one of claims 8 to 9, a plurality of receiving end devices, and the apparatus according to any one of claims 10 to 13 Screen transfer server; 所述屏幕画面传输装置作为发送端设备,通过网络与所述屏幕画面传输服务器连接;所述接收端设备通过网络与所述屏幕画面传输服务器连接。The screen picture transmission device is connected to the screen picture transmission server through a network as a source device; the receiving device is connected to the screen picture transmission server through a network.
PCT/CN2018/113685 2018-05-03 2018-11-02 Screen image transmission method, device, server and storage medium Ceased WO2019210667A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810418450.0 2018-05-03
CN201810418450.0A CN108848121A (en) 2018-05-03 2018-05-03 Screen picture transmission method, device, server, system and storage medium

Publications (1)

Publication Number Publication Date
WO2019210667A1 true WO2019210667A1 (en) 2019-11-07

Family

ID=64212658

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/113685 Ceased WO2019210667A1 (en) 2018-05-03 2018-11-02 Screen image transmission method, device, server and storage medium

Country Status (2)

Country Link
CN (1) CN108848121A (en)
WO (1) WO2019210667A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113298B (en) * 2019-03-19 2021-09-28 视联动力信息技术股份有限公司 Data transmission method, device, signaling server and computer readable medium
CN113132376B (en) * 2021-04-14 2022-11-22 腾讯科技(深圳)有限公司 Media data processing method, device and system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510405A (en) * 2011-11-18 2012-06-20 深圳中兴网信科技有限公司 Screen sharing method and system
CN106161571A (en) * 2015-04-27 2016-11-23 Tcl集团股份有限公司 The remote operation method of a kind of sing on web RTC and system
CN107040574A (en) * 2016-11-17 2017-08-11 阿里巴巴集团控股有限公司 A kind of sectional drawing, data processing method and equipment
CN107783807A (en) * 2016-08-29 2018-03-09 中兴通讯股份有限公司 A kind of method and device of screenshot capture

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101809605B (en) * 2007-08-14 2014-04-09 三星电子株式会社 Method and system for SIP based dynamic advertisement of presence information
ES2555653T3 (en) * 2013-02-22 2016-01-07 Telefónica Digital España, S.L.U. Method and system for telecommunication conference based on a peer-to-peer network (P2P) and on a combined central relay server using a telephony and conference protocol
CN105376194B (en) * 2014-08-15 2019-03-26 中国电信股份有限公司 Real-time communication method, system and platform device
US10264035B2 (en) * 2016-02-23 2019-04-16 At&T Intellectual Property I, L.P. Method and apparatus for architecting multimedia conferencing services using SDN

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510405A (en) * 2011-11-18 2012-06-20 深圳中兴网信科技有限公司 Screen sharing method and system
CN106161571A (en) * 2015-04-27 2016-11-23 Tcl集团股份有限公司 The remote operation method of a kind of sing on web RTC and system
CN107783807A (en) * 2016-08-29 2018-03-09 中兴通讯股份有限公司 A kind of method and device of screenshot capture
CN107040574A (en) * 2016-11-17 2017-08-11 阿里巴巴集团控股有限公司 A kind of sectional drawing, data processing method and equipment

Also Published As

Publication number Publication date
CN108848121A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
US11140106B2 (en) Method, device and storage medium for interactive message in video page
US9641559B2 (en) Methods and systems for dynamic adjustment of session parameters for effective video collaboration among heterogeneous devices
US9118729B2 (en) Method for sharing resource of a videoconference using a video conferencing system
US11316909B2 (en) Data transmission method and apparatus, and computer storage medium
US10630739B2 (en) Parallel peer to peer connection establishment in WebRTC conferencing
US10897599B1 (en) Facilitation of video conference based on bytes sent and received
CN108600777B (en) Streaming media playback server and client
US11838572B2 (en) Streaming video trunking
CN109981711A (en) Document dynamic playback method, device, system and computer-readable storage medium
CN110198478B (en) Interactive recording and broadcasting method, system, client, device, equipment and storage medium
CN102970513A (en) Monitoring system and related control method thereof
US11240469B1 (en) Systems and methods for audience interactions in real-time multimedia applications
CN106162043A (en) Multimedia file demenstration method in a kind of video conferencing system
CN110620953A (en) Multi-screen interaction method, device and system
CN112788276A (en) Video stream display method, transmission method, device, terminal, server and medium
WO2020248649A1 (en) Audio and video data synchronous playback method, apparatus and system, electronic device and medium
WO2014180234A1 (en) Virtual desktop reproducing and pushing method and device, and virtual desktop system
WO2020015750A1 (en) Data sharing method and apparatus, electronic device and storage medium
WO2022134928A1 (en) Method for sharing cloud desktop to conference television system, cloud desktop terminal, and cloud desktop
WO2019196577A1 (en) Streaming media playback method, server, client and computer device
CN114928641A (en) Data sharing method and device based on cloud application, electronic equipment and storage medium
WO2019210667A1 (en) Screen image transmission method, device, server and storage medium
WO2016197955A1 (en) Multimedia stream multicasting method and device
WO2023082585A1 (en) Information sharing method and apparatus based on two-way selection right, and device and medium
CN110830752B (en) Video conference host

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: 18917470

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18917470

Country of ref document: EP

Kind code of ref document: A1