WO2021217964A1 - Screen projection method and apparatus, electronic device, and storage medium - Google Patents

Screen projection method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2021217964A1
WO2021217964A1 PCT/CN2020/110324 CN2020110324W WO2021217964A1 WO 2021217964 A1 WO2021217964 A1 WO 2021217964A1 CN 2020110324 W CN2020110324 W CN 2020110324W WO 2021217964 A1 WO2021217964 A1 WO 2021217964A1
Authority
WO
WIPO (PCT)
Prior art keywords
projection
screen
screen projection
resource
sending
Prior art date
Application number
PCT/CN2020/110324
Other languages
French (fr)
Chinese (zh)
Inventor
朱增辉
赵晓波
徐瑞霞
Original Assignee
深圳市鸿合创新信息技术有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市鸿合创新信息技术有限责任公司 filed Critical 深圳市鸿合创新信息技术有限责任公司
Publication of WO2021217964A1 publication Critical patent/WO2021217964A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Definitions

  • This application relates to the field of computer technology, in particular to a screen projection method, device, electronic equipment, and storage medium.
  • each projection transmitter sends its own projection resources to the projection receiver.
  • the screen receiving end needs to compress each projection resource, which consumes a large amount of computing resources, and can easily cause problems such as freezing and freezing of the projection screen.
  • the purpose of this application is to provide a screen projection method, device, electronic equipment, and storage medium, which can reduce resource consumption at the projection receiving end, and effectively reduce problems such as screen freezes and jams on the projection screen.
  • the first aspect of the present application provides a screen projection method, which is applied to a screen projection receiving end, and the method includes:
  • the determining the screen projection parameters corresponding to each screen projection sender according to the number of the screen projection senders includes:
  • a projection parameter corresponding to each projection sending terminal is determined, wherein the projection parameter includes the projection window size of the projection resource.
  • the said projection parameter is sent to its corresponding projection sending terminal, so that the projection sending terminal sends the projection resource to the projection according to the projection parameter.
  • Screen receiver including:
  • each projection sender For each projection sender, send the projection window size of the projection resource corresponding to the projection sender to the projection sender, so that the projection sender determines the projection resource according to the projection window size
  • the screen projection resource is sent to the screen projection receiving end according to the determined resolution and bit rate.
  • the projection control event includes at least one of the following:
  • the method before responding to the projection control event, the method further includes:
  • the second aspect of the present application provides a screen projection method for the screen projection sender, and the method includes:
  • the projection resource corresponding to the projection parameter is sent to the projection receiver, so that the projection receiver displays the projection resource.
  • the screen projection parameter includes the screen projection window size of the screen projection resource according to the screen projection parameter;
  • the sending the screen projection resource corresponding to the screen projection parameter to the screen projection receiving end includes:
  • the resolution and code rate of the projection resource are determined according to the size of the projection window, and the projection resource is sent to the projection receiving end according to the determined resolution and code rate.
  • the method before receiving the projection parameters determined by the projection receiving end according to the number of projection sending ends corresponding to the projection control event, the method further includes:
  • the third aspect of the present application also provides a screen projection device for the projection receiving end, and the device includes:
  • the response module is configured to determine the screen sending end corresponding to the screen projection control event in response to the screen projection control event;
  • the first determining module is configured to determine the projection parameters corresponding to each projection transmitting terminal according to the number of the projection transmitting terminals;
  • the first sending module is configured to send the screen projection parameters to its corresponding screen projection sender, so that the screen projection sender sends the screen projection resources to the screen projection receiver according to the screen projection parameters. end;
  • the first receiving module is configured to receive and display the projection resources sent by each projection sender.
  • the determining module is configured to:
  • a projection parameter corresponding to each projection sending terminal is determined, wherein the projection parameter includes the projection window size of the projection resource.
  • the first sending module is configured to:
  • each projection sender For each projection sender, send the projection window size of the projection resource corresponding to the projection sender to the projection sender, so that the projection sender determines the projection resource according to the projection window size
  • the screen projection resource is sent to the screen projection receiving end according to the determined resolution and bit rate.
  • the projection control event includes at least one of the following:
  • the device further includes:
  • the second determining module is configured to determine whether to respond to the projection joining request according to the number of projection sending terminals currently projecting on the projection receiving terminal and the maximum projection access quantity of the projection receiving terminal.
  • the fourth aspect of the present application provides another screen projection device for the screen projection sending end, and the device includes:
  • the second receiving module is configured to receive the projection parameters determined by the projection receiving terminal according to the number of projection sending terminals corresponding to the projection control event;
  • the second sending module is configured to send the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end can display the projection resource.
  • the screen projection parameter includes the screen projection window size of the screen projection resource according to the screen projection parameter;
  • the second sending module is configured to:
  • the resolution and code rate of the projection resource are determined according to the size of the projection window, and the projection resource is sent to the projection receiving end according to the determined resolution and code rate.
  • the device further includes a request module configured to:
  • a fifth aspect of the present application provides an electronic device, including a processor, a memory, and a bus.
  • the memory stores machine-readable instructions executable by the processor.
  • the processor and the bus The memories communicate through a bus, and when the machine-readable instructions are executed by the processor, the steps of the screen projection method according to the first aspect or the second aspect are executed.
  • the sixth aspect of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium. step.
  • the projection method and device provided in the embodiments of the application firstly determine the projection sender corresponding to the projection control event in response to the projection control event; secondly, determine each projection screen according to the number of the projection senders The projection parameter corresponding to the sending terminal; then, the projection parameter is sent to its corresponding projection sending terminal, so that the projection sending terminal sends the projection resource to the projection according to the projection parameter Receiver; Finally, receive and display the projection resources sent by each projection sender.
  • this application can send the projection parameters to the projection sender, so that the projection sender sends the projection resources according to the projection parameters, thereby avoiding the projection receiving end from compressing the projection resources. Effectively reduce the computing resource occupancy of the receiving end of the projection screen, and reduce the freezing and freezing of the projection screen.
  • FIG. 1 shows a flowchart of an embodiment of the screen projection method provided in the first aspect of the present application
  • FIG. 2 shows a flowchart of another embodiment of the screen projection method provided in the first aspect of the present application
  • FIG. 3 shows a flowchart of an embodiment of the screen projection method provided in the second aspect of the present application
  • FIG. 4 shows a schematic structural diagram of an embodiment of the screen projection device provided in the third aspect of the present application.
  • FIG. 5 shows a schematic structural diagram of an embodiment of the screen projection device provided in the fourth aspect of the present application.
  • Fig. 6 shows a schematic structural diagram of an embodiment of an electronic device provided in the fifth aspect of the present application.
  • each projection transmitter sends its own projection resources to the projection receiver.
  • the screen receiving end needs to compress each projection resource, which consumes a large amount of computing resources, and can easily cause problems such as freezing and freezing of the projection screen.
  • the embodiment of the present application provides a screen projection method to reduce the resource consumption of the projection receiving end, and reduce the problems such as freezing and freezing of the projection screen.
  • the first aspect of the present application provides a screen projection method applied to the projection receiving end. Please refer to FIG. 1, which shows a flowchart of an embodiment of the screen projection method provided in the first aspect of the present application.
  • the screen projection method S100 includes:
  • the projection receiver can connect to one or more projection transmitters, and receive the projection resources sent by each projection transmitter.
  • a projection control event When a projection control event is detected, it can be based on the projection event and The currently connected screencasting sender determines the screencasting sender corresponding to the screencast event.
  • the screen projection control event may include at least one of the following:
  • the user can control the number of projection sending terminals connected to the projection receiving terminal and transmitting projection resources through the projection receiving terminal or other methods.
  • the projection receiving terminal and the projection sending terminal can be connected through Wi-Fi (wireless Internet access). ), DLNA (DIGITAL LIVING NETWORK ALLIANCE, Digital Living Network Alliance), WiDi (Intel WirelessDisplay, wireless high-definition technology), AirPlay (air play) and other methods to achieve screen projection.
  • Wi-Fi wireless Internet access
  • DLNA DIGITAL LIVING NETWORK ALLIANCE, Digital Living Network Alliance
  • WiDi Intel WirelessDisplay, wireless high-definition technology
  • AirPlay air play
  • the screen projection sending end and the screen projection receiving end may be terminals with a screen projection function, such as a smart phone, a computer, or a tablet computer.
  • the projection sender that has established a projection connection with the projection receiver and the projection sender that sends the projection join request can be used as the same
  • the projection window corresponding to the requested projection sender is closed, and then the projection sender that has established a projection connection with the projection receiver is the projection sender corresponding to the projection control event; when the projection control event is the projection
  • the screen device delete instruction you can disconnect the screen projection connection between the screen projection receiving end and the screen projection sending end indicated by the screen projection device deletion instruction, and confirm the disconnection and establish a screen projection connection with the projection receiving end
  • the sender is the screencast sender corresponding to the screencast control event.
  • the projection method S100 also includes:
  • S102 Determine a screen projection parameter corresponding to each screen projection sending terminal according to the number of screen projection sending terminals.
  • the graphical user interface of the projection receiving end can be divided into multiple display areas according to the number of projection sending ends, and each display area can correspond to one projection.
  • Screen sender and generate a screen projection window corresponding to the screen projection sender in the display area, and the size of each screen projection window can be the same or different.
  • the size of each projection window can be used as its corresponding projection parameter.
  • the size of the projection window is a specific value that can characterize the size and shape of the projection window.
  • the projection sender can set the projection resources it sends based on the projection parameters to adapt to the size of the projection window.
  • the projection receiving terminal After receiving the projection resource, the projection receiving terminal can directly display it in the corresponding projection window, avoiding the projection receiving terminal from compressing the projection resources, and effectively reducing the computing resource occupation of the projection receiving terminal and reducing the projection. Stuttering, freezing, etc. appear on the screen.
  • the projection method S100 also includes:
  • S103 Send the screen projection parameter to its corresponding screen projection sending end, so that the screen projection sending end sends the screen projection resource to the screen projection receiving end according to the screen projection parameter.
  • the projection receiver can determine the resolution and code rate of the projection resource to be pushed according to the received projection parameters, and follow the determination The resolution and bit rate will send the projection resource to the projection receiver.
  • the resolution and code rate of the projection resource can be determined according to the mapping relationship between the projection parameters and the resolution and code rate.
  • the transmission of the original projection resource can be interrupted, and the projection resource can be re-collected with the resolution and code rate corresponding to the newly received projection parameter , And send to the projection receiver; for the original projection connection that has not been established with the projection receiver, the newly added projection transmitter will directly re-collect the projection screen at the resolution and code rate corresponding to the received projection parameter Resources, and sent to the receiving end of the projection screen.
  • the projection method S100 also includes:
  • the projection sending terminal can determine the projection parameters of each projection sending terminal according to the number of new projection sending terminals, and make the projection sending terminal transmit the projection according to the projection parameters. Screen resources.
  • the projection resource received by the projection sender is a projection resource that is adapted to the projection window, there is no need to perform operations such as compression, and the processing originally performed by the projection receiver can be dispersed and transferred to the projection transmission It effectively reduces the operating resource occupancy of the projection receiving terminal, and reduces the problem of screen freezing and freezing caused by excessive resource occupancy.
  • FIG. 2 shows a flowchart of another embodiment of the screen projection method provided in the first aspect of the present application.
  • the screen projection method S200 may include:
  • S202 Generate a screen projection window for displaying the screen projection resource according to the number of screen projection sending ends.
  • the projection resource can be the video resource sent by the projection sender to the projection receiver.
  • the projection sender can use the video or the operation interface as the projection resource and send it to the projection receiver in real time, and the projection receiver can receive these Screencasting resources are displayed in the screencasting window determined according to the number of screencasting senders.
  • a four-grid projection window can be generated, where three projection windows respectively display a projection resource sent by the sender, and the remaining one is on standby Status; if the number of projection senders increases to five, a six-grid projection window will be generated; or, according to the display size of the projection sender, a projection window of equal or similar proportions will be generated.
  • the screen projection method S200 may also include:
  • S203 According to the screen projection window, determine the screen projection parameter corresponding to each screen projection sending end, where the screen projection parameter includes the screen projection window size of the screen projection resource.
  • the size of each projection window can be determined.
  • the projection sender receives its corresponding projection window size, the resolution and code rate of the projection resource can be determined , And then collect the projection resources according to the determined resolution and code rate, and send them to the projection receiving end.
  • the resolution and code rate of the projection resource can be determined according to the correspondence between the preset size, resolution, and code rate.
  • the screen projection method S200 may also include:
  • the descriptions of S201, S204, and S205 can refer to the descriptions of S101, S103, and S104, respectively, and can achieve basically the same technical effects.
  • the descriptions of S201, S204, and S205 can refer to the descriptions of S101, S103, and S104, respectively, and can achieve basically the same technical effects.
  • sending the projection parameters to its corresponding projection sending end, so that the projection sending end sends the projection resources to the projection receiving end according to the projection parameters may include:
  • the projection window size of the projection resource corresponding to the projection sender is sent to the projection sender, so that the projection sender determines the resolution of the projection resource according to the projection window size Rate and bit rate, and send the screen resources to the screen receiving end according to the determined resolution and bit rate.
  • the resource resolution and bit rate are encoded according to the size given by the projection receiver, so that the data stream size of the receiver does not need to be compressed at the projection receiver, and can be clearly displayed in the projection window of the projection receiver. This solves the problem of the clarity of the projection window at the receiving end.
  • the screen projection control event may include at least one of the following:
  • the screen-casting join request and screen-casting exit request can be sent by the screen-casting sender to the screen-casting receiving end, or they can be instructions actively input by the user at the screen-casting receiving end; the screen-casting device deletion instruction can be the user's screen-casting Commands actively input by the receiving end.
  • the screen projection method S100 or the screen projection method S200 may further include:
  • the screen projection method provided by the embodiment of this application firstly determines the screen projection sending end corresponding to the screen projection control event in response to the screen projection control event; secondly, according to the number of screen projection sending ends, the projection screen corresponding to each screen projection sending end is determined Parameters; then, send the projection parameters to its corresponding projection sender, so that the projection sender will send the projection resources to the projection receiver according to the projection parameters; finally, receive and display each projection sender The projected resources sent.
  • this application can send the projection parameters to the projection sender, so that the projection sender sends the projection resources according to the projection parameters, thereby avoiding the projection receiving end from compressing the projection resources. Effectively reduce the computing resource occupancy of the receiving end of the projection screen, and reduce the freezing and freezing of the projection screen.
  • the second aspect of the present application provides a screen projection method applied to the screen projection sending end.
  • FIG. 3 shows a flowchart of an embodiment of the screen projection method provided in the second aspect of the present application.
  • the screen projection method S300 includes:
  • S302 Send the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end can display the projection resource.
  • the projection parameter may include the projection window size of the projection resource according to the projection parameter.
  • Sending the projection resources corresponding to the projection parameters to the projection receiving end can include:
  • the projection method S300 may further include:
  • the second aspect of the application provides the screen projection method applied to the screen projection sending end and the principle of the screen projection receiving method applied to the projection receiving end shown in FIG. 1 and FIG. 2 is basically similar.
  • the embodiment of the screen projection method S300 is not mentioned.
  • the third aspect of the present application provides a projection device applied to a projection receiving end.
  • FIG. 4 shows a schematic structural diagram of an embodiment of the screen projection device provided in the third aspect of the present application.
  • the screen projection device 400 includes:
  • the response module 410 is configured to determine the screen projection sender corresponding to the screen projection control event in response to the screen projection control event;
  • the first determining module 420 is configured to determine the projection parameters corresponding to each projection transmitting terminal according to the number of projection transmitting terminals;
  • the first sending module 430 is configured to send the screen projection parameters to its corresponding screen projection sending end, so that the screen projection sending end sends the screen projection resources to the projection receiving end according to the screen projection parameters;
  • the first receiving module 440 is configured to receive and display the projection resources sent by each projection sender.
  • the determining module 420 may be configured to:
  • a screencast window for displaying screencast resources is generated
  • the projection parameter corresponding to each projection sending terminal is determined, where the projection parameter includes the projection window size of the projection resource.
  • the first sending module 430 may be configured to:
  • the projection window size of the projection resource corresponding to the projection sender is sent to the projection sender, so that the projection sender determines the resolution of the projection resource according to the projection window size Rate and bit rate, and send the screen resources to the screen receiving end according to the determined resolution and bit rate.
  • the screen projection control event may include at least one of the following:
  • the screen projection device 400 may further include:
  • the second determining module 450 is configured to determine whether to respond to a screen projection control event according to the number of screen projection sending terminals currently projecting on the screen projection receiving terminal and the maximum number of screen projection accesses of the projection receiving terminal.
  • the fourth aspect of the present application provides a screen projection device applied to a screen projection sending end.
  • FIG. 5 shows a schematic structural diagram of an embodiment of the screen projection device provided in the fourth aspect of the present application.
  • the screen projection device 500 may include:
  • the second receiving module 510 is configured to receive the projection parameters determined by the projection receiving terminal according to the number of projection sending terminals corresponding to the projection control event;
  • the second sending module 520 is configured to send the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end can display the projection resource.
  • the projection parameter may include the projection window size of the projection resource according to the projection parameter.
  • the second sending module 520 may be configured to:
  • the screen projection device 500 may further include:
  • the request module 530 is configured to send a request to join the screen to the screen receiving end.
  • the screen projection device provided by the embodiment of the application firstly determines the screen projection sending end corresponding to the screen projection control event in response to the screen projection control event; secondly, according to the number of screen projection sending ends, the projection screen corresponding to each screen projection sending end is determined Parameters; then, send the projection parameters to its corresponding projection sender, so that the projection sender will send the projection resources to the projection receiver according to the projection parameters; finally, receive and display each projection sender The projected resources sent.
  • this application can send the projection parameters to the projection sender, so that the projection sender sends the projection resources according to the projection parameters, thereby avoiding the projection receiving end from compressing the projection resources. Effectively reduce the computing resource occupancy of the receiving end of the projection screen, and reduce the freezing and freezing of the projection screen.
  • the fifth aspect of the present application provides an electronic device, including a processor, a storage medium, and a bus.
  • the storage medium stores machine-readable instructions executable by the processor.
  • the processor and the storage medium pass through the bus.
  • the processor executes machine-readable instructions to execute the steps of any embodiment of the screen projection method of the first aspect or the second aspect.
  • FIG. 6 shows a schematic structural diagram of an embodiment of an electronic device provided in the fifth aspect of the present application.
  • the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
  • the memory 620 stores machine-readable instructions executable by the processor 610.
  • the processor 610 communicates with the memory 620 through the bus 630.
  • the machine-readable instructions are executed by the processor 610, they can execute as described above.
  • the embodiment of the present application also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program can be executed when the computer program is run by a processor.
  • a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program can be executed when the computer program is run by a processor.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of units is only a logical function division, and there may be other divisions in actual implementation.
  • multiple units or components can be combined or integrated.
  • To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some communication interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application.
  • Examples of the aforementioned storage media include non-transitory computer-readable storage media, such as: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic Various media that can store program codes, such as discs or optical discs.
  • non-transitory computer-readable storage media such as: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic Various media that can store program codes, such as discs or optical discs.
  • each block in the flowchart or block diagram may represent a module, segment, or part of the code, and the module, segment, or part of the code includes components for implementing the specified logical function(s) One or more executable instructions.
  • the functions noted in the block may also occur in a different order than noted in the drawings. For example, depending on the functions involved, two blocks shown in succession may actually be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order.
  • each block in the block diagram and/or flowchart, and a combination of blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or It can be implemented by a combination of dedicated hardware and computer instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

A screen projection method and apparatus, an electronic device, and a storage medium. The method comprises: firstly, in response to a screen projection control event, determining screen projection transmitting ends corresponding to the screen projection control event (S101); secondly, according to the number of screen projection transmitting ends, determining a screen projection parameter corresponding to each screen projection transmitting end (S102); then, transmitting the screen projection parameter to the screen projection transmitting end corresponding thereto, so that the screen projection transmitting end transmits a screen projection resource to a screen projection receiving end according to the screen projection parameter (S103); and finally, receiving and displaying the screen projection resource transmitted by each screen projection transmitting end (S104).

Description

投屏方法、装置、电子设备及存储介质Screen projection method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本申请要求享有于2020年04月30日提交的名称为“一种投屏方法及装置”的中国专利申请202010366830.1的优先权,该申请的全部内容通过引用并入本文中。This application claims the priority of the Chinese patent application 202010366830.1 titled "A Screen Projection Method and Device" filed on April 30, 2020, and the entire content of the application is incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,尤其是涉及一种投屏方法、装置、电子设备及存储介质。This application relates to the field of computer technology, in particular to a screen projection method, device, electronic equipment, and storage medium.
背景技术Background technique
目前,投屏技术已经融入到人们的生活与工作之中,在会议、教学等场景中都有广泛的应用。随着投屏技术的快速发展,一对一的投屏模式已经难以满足用户的需求,因此,一对多、多对一等投屏模式也应运而生。At present, screen projection technology has been integrated into people's lives and work, and has been widely used in conferences, teaching and other scenes. With the rapid development of projection technology, the one-to-one projection model has been difficult to meet the needs of users. Therefore, one-to-many and many-to-one projection models have also emerged.
通常,在多对一的投屏模式中,包括一个投屏接收端及多个投屏发送端,每个投屏发送端将自身要进行投屏的投屏资源发送至投屏接收端,投屏接收端接收这些投屏资源后,由于需要对每个投屏资源进行压缩等处理,需要消耗大量的运算资源,容易造成投屏画面卡顿、卡死等问题。Generally, in a many-to-one projection mode, there is one projection receiver and multiple projection transmitters. Each projection transmitter sends its own projection resources to the projection receiver. After receiving these projection resources, the screen receiving end needs to compress each projection resource, which consumes a large amount of computing resources, and can easily cause problems such as freezing and freezing of the projection screen.
发明内容Summary of the invention
有鉴于此,本申请的目的在于提供一种投屏方法、装置、电子设备及存储介质,能够降低投屏接收端的资源消耗,有效减少投屏画面卡顿、卡死等问题。In view of this, the purpose of this application is to provide a screen projection method, device, electronic equipment, and storage medium, which can reduce resource consumption at the projection receiving end, and effectively reduce problems such as screen freezes and jams on the projection screen.
本申请第一方面提供了一种投屏方法,应用于投屏接收端,所述方法包括:The first aspect of the present application provides a screen projection method, which is applied to a screen projection receiving end, and the method includes:
响应于投屏控制事件,确定所述投屏控制事件对应的投屏发送端;In response to a screen projection control event, determine the screen projection sender corresponding to the screen projection control event;
根据所述投屏发送端的数量,确定每个投屏发送端对应的投屏参数;Determine the projection parameters corresponding to each projection transmitting terminal according to the number of the projection transmitting terminals;
将所述投屏参数发送至其对应的投屏发送端,以使所述投屏发送端根据所述投屏参数,发送投屏资源至所述投屏接收端;Sending the screen projection parameter to its corresponding screen projection sending terminal, so that the screen projection sending terminal sends the screen projection resource to the projection receiving terminal according to the screen projection parameter;
接收并展示每个投屏发送端发送的投屏资源。Receive and display the projection resources sent by each projection sender.
在一种可能的实施方式中,所述根据所述投屏发送端的数量,确定每个投屏发送端对应的投屏参数,包括:In a possible implementation manner, the determining the screen projection parameters corresponding to each screen projection sender according to the number of the screen projection senders includes:
根据所述投屏发送端的数量,生成用于展示所述投屏资源的投屏窗口;According to the number of the screen projection senders, generating a screen projection window for displaying the screen projection resource;
根据所述投屏窗口,确定每个投屏发送端对应的投屏参数,其中,所述投屏参数包括所述投屏资源的投屏窗口尺寸。According to the projection window, a projection parameter corresponding to each projection sending terminal is determined, wherein the projection parameter includes the projection window size of the projection resource.
在一种可能的实施方式中,所述将所述投屏参数发送至其对应的投屏发送端,以使所述投屏发送端根据所述投屏参数,发送投屏资源至所述投屏接收端,包括:In a possible implementation manner, the said projection parameter is sent to its corresponding projection sending terminal, so that the projection sending terminal sends the projection resource to the projection according to the projection parameter. Screen receiver, including:
针对每个投屏发送端,将该投屏发送端对应的投屏资源的投屏窗口尺寸发送至该投屏发送端,以使该投屏发送端根据所述投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向所述投屏接收端发送投屏资源。For each projection sender, send the projection window size of the projection resource corresponding to the projection sender to the projection sender, so that the projection sender determines the projection resource according to the projection window size The screen projection resource is sent to the screen projection receiving end according to the determined resolution and bit rate.
在一种可能的实施方式中,所述投屏控制事件包括以下至少一种:In a possible implementation manner, the projection control event includes at least one of the following:
检测到任一投屏发送端对应的投屏加入请求、检测到任一投屏发送端对应的投屏退出请求、检测到投屏设备删除指令。Detecting a projection joining request corresponding to any projection sending terminal, detecting a projection exit request corresponding to any projection sending terminal, and detecting a projection device deletion instruction.
在一种可能的实施方式中,在响应所述投屏控制事件之前,所述方法还包括:In a possible implementation manner, before responding to the projection control event, the method further includes:
根据当前投屏于所述投屏接收端的投屏发送端的数量及所述投屏接收端的最大投屏接入数量,确定是否响应所述投屏控制事件。Determine whether to respond to the projection control event according to the number of projection senders currently projected on the projection receiver and the maximum number of projection accesses of the projection receiver.
本申请第二方面提供了一种投屏方法,用于投屏发送端,所述方法包括:The second aspect of the present application provides a screen projection method for the screen projection sender, and the method includes:
接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数;Receiving the projection parameters determined by the projection receiver according to the number of projection transmitters corresponding to the projection control event;
发送与所述投屏参数对应的投屏资源至所述投屏接收端,以使所述投 屏接收端展示所述投屏资源。The projection resource corresponding to the projection parameter is sent to the projection receiver, so that the projection receiver displays the projection resource.
在一种可能的实施方式中,所述投屏参数包括所述投屏资源的投屏窗口尺寸所述根据所述投屏参数;In a possible implementation manner, the screen projection parameter includes the screen projection window size of the screen projection resource according to the screen projection parameter;
所述发送与所述投屏参数对应的投屏资源至所述投屏接收端,包括:The sending the screen projection resource corresponding to the screen projection parameter to the screen projection receiving end includes:
根据所述投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向所述投屏接收端发送投屏资源。The resolution and code rate of the projection resource are determined according to the size of the projection window, and the projection resource is sent to the projection receiving end according to the determined resolution and code rate.
在一种可能的实施方式中,所述方法在接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数之前,还包括:In a possible implementation manner, before receiving the projection parameters determined by the projection receiving end according to the number of projection sending ends corresponding to the projection control event, the method further includes:
向所述投屏接收端发送投屏加入请求。Send a screen-casting join request to the screen-casting receiving end.
本申请第三方面还提供了一种投屏装置,用于投屏接收端,所述装置包括:The third aspect of the present application also provides a screen projection device for the projection receiving end, and the device includes:
响应模块,被配置用于响应于投屏控制事件,确定所述投屏控制事件对应的投屏发送端;The response module is configured to determine the screen sending end corresponding to the screen projection control event in response to the screen projection control event;
第一确定模块,被配置用于根据所述投屏发送端的数量,确定每个投屏发送端对应的投屏参数;The first determining module is configured to determine the projection parameters corresponding to each projection transmitting terminal according to the number of the projection transmitting terminals;
第一发送模块,被配置用于将所述投屏参数发送至其对应的投屏发送端,以使所述投屏发送端根据所述投屏参数,发送投屏资源至所述投屏接收端;The first sending module is configured to send the screen projection parameters to its corresponding screen projection sender, so that the screen projection sender sends the screen projection resources to the screen projection receiver according to the screen projection parameters. end;
第一接收模块,被配置用于接收并展示每个投屏发送端发送的投屏资源。The first receiving module is configured to receive and display the projection resources sent by each projection sender.
在一种可能的实施方式中,所述确定模块被配置用于:In a possible implementation manner, the determining module is configured to:
根据所述投屏发送端的数量,生成用于展示所述投屏资源的投屏窗口;According to the number of the screen projection senders, generating a screen projection window for displaying the screen projection resource;
根据所述投屏窗口,确定每个投屏发送端对应的投屏参数,其中,所述投屏参数包括所述投屏资源的投屏窗口尺寸。According to the projection window, a projection parameter corresponding to each projection sending terminal is determined, wherein the projection parameter includes the projection window size of the projection resource.
在一种可能的实施方式中,所述第一发送模块被配置用于:In a possible implementation manner, the first sending module is configured to:
针对每个投屏发送端,将该投屏发送端对应的投屏资源的投屏窗口尺寸发送至该投屏发送端,以使该投屏发送端根据所述投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向所述投屏接收端发 送投屏资源。For each projection sender, send the projection window size of the projection resource corresponding to the projection sender to the projection sender, so that the projection sender determines the projection resource according to the projection window size The screen projection resource is sent to the screen projection receiving end according to the determined resolution and bit rate.
在一种可能的实施方式中,所述投屏控制事件包括以下至少一种:In a possible implementation manner, the projection control event includes at least one of the following:
检测到任一投屏发送端对应的投屏加入请求、检测到任一投屏发送端对应的投屏退出请求、检测到投屏设备删除指令。Detecting a projection joining request corresponding to any projection sending terminal, detecting a projection exit request corresponding to any projection sending terminal, and detecting a projection device deletion instruction.
在一种可能的实施方式中,所述装置还包括:In a possible implementation manner, the device further includes:
第二确定模块,被配置用于根据当前投屏于所述投屏接收端的投屏发送端的数量及所述投屏接收端的最大投屏接入数量,确定是否响应所述投屏加入请求。The second determining module is configured to determine whether to respond to the projection joining request according to the number of projection sending terminals currently projecting on the projection receiving terminal and the maximum projection access quantity of the projection receiving terminal.
本申请第四方面提供了另一种投屏装置,用于投屏发送端,所述装置包括:The fourth aspect of the present application provides another screen projection device for the screen projection sending end, and the device includes:
第二接收模块,被配置用于接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数;The second receiving module is configured to receive the projection parameters determined by the projection receiving terminal according to the number of projection sending terminals corresponding to the projection control event;
第二发送模块,被配置用于发送与所述投屏参数对应的投屏资源至所述投屏接收端,以使所述投屏接收端展示所述投屏资源。The second sending module is configured to send the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end can display the projection resource.
在一种可能的实施方式中,所述投屏参数包括所述投屏资源的投屏窗口尺寸所述根据所述投屏参数;In a possible implementation manner, the screen projection parameter includes the screen projection window size of the screen projection resource according to the screen projection parameter;
所述第二发送模块被配置用于:The second sending module is configured to:
根据所述投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向所述投屏接收端发送投屏资源。The resolution and code rate of the projection resource are determined according to the size of the projection window, and the projection resource is sent to the projection receiving end according to the determined resolution and code rate.
在一种可能的实施方式中,所述装置还包括请求模块被配置用于:In a possible implementation manner, the device further includes a request module configured to:
向所述投屏接收端发送投屏加入请求。Send a screen-casting join request to the screen-casting receiving end.
本申请的第五方面提供一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如上述第一方面或者第二方面的投屏方法的步骤。A fifth aspect of the present application provides an electronic device, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the bus The memories communicate through a bus, and when the machine-readable instructions are executed by the processor, the steps of the screen projection method according to the first aspect or the second aspect are executed.
本申请的第六方面提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述第一方面或者第二方面的投屏方法的步骤。The sixth aspect of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium. step.
本申请实施例提供的投屏方法及装置,首先响应于投屏控制事件,确 定所述投屏控制事件对应的投屏发送端;其次,根据所述投屏发送端的数量,确定每个投屏发送端对应的投屏参数;然后,将所述投屏参数发送至其对应的投屏发送端,以使所述投屏发送端根据所述投屏参数,发送投屏资源至所述投屏接收端;最后,接收并展示每个投屏发送端发送的投屏资源。与现有技术相比,本申请能够将投屏参数发送给投屏发送端,使投屏发送端根据投屏参数发送投屏资源,进而避免投屏接收端对投屏资源进行压缩等处理,有效减少投屏接收端的计算资源占用,减少投屏画面出现卡顿、卡死等情况。The projection method and device provided in the embodiments of the application firstly determine the projection sender corresponding to the projection control event in response to the projection control event; secondly, determine each projection screen according to the number of the projection senders The projection parameter corresponding to the sending terminal; then, the projection parameter is sent to its corresponding projection sending terminal, so that the projection sending terminal sends the projection resource to the projection according to the projection parameter Receiver; Finally, receive and display the projection resources sent by each projection sender. Compared with the prior art, this application can send the projection parameters to the projection sender, so that the projection sender sends the projection resources according to the projection parameters, thereby avoiding the projection receiving end from compressing the projection resources. Effectively reduce the computing resource occupancy of the receiving end of the projection screen, and reduce the freezing and freezing of the projection screen.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly describe the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative work.
图1示出了本申请第一方面提供的投屏方法的一个实施例的流程图;FIG. 1 shows a flowchart of an embodiment of the screen projection method provided in the first aspect of the present application;
图2示出了本申请第一方面提供的投屏方法的另一个实施例的流程图;FIG. 2 shows a flowchart of another embodiment of the screen projection method provided in the first aspect of the present application;
图3示出了本申请第二方面提供的投屏方法的一个实施例的流程图;FIG. 3 shows a flowchart of an embodiment of the screen projection method provided in the second aspect of the present application;
图4示出了本申请第三方面提供的投屏装置的一个实施例的结构示意图;FIG. 4 shows a schematic structural diagram of an embodiment of the screen projection device provided in the third aspect of the present application;
图5示出了本申请第四方面提供的投屏装置的一个实施例的结构示意图;FIG. 5 shows a schematic structural diagram of an embodiment of the screen projection device provided in the fourth aspect of the present application;
图6示出了本申请第五方面提供的电子设备的一个实施例的结构示意图。Fig. 6 shows a schematic structural diagram of an embodiment of an electronic device provided in the fifth aspect of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描 述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的每个其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by those skilled in the art without creative work shall fall within the protection scope of the present application.
目前,投屏技术已经融入到人们的生活与工作之中,在会议、教学等场景中都有广泛的应用。随着投屏技术的快速发展,一对一的投屏模式已经难以满足用户的需求,因此,一对多、多对一等投屏模式也应运而生。At present, screen projection technology has been integrated into people's lives and work, and has been widely used in conferences, teaching and other scenes. With the rapid development of projection technology, the one-to-one projection model has been difficult to meet the needs of users. Therefore, one-to-many and many-to-one projection models have also emerged.
通常,在多对一的投屏模式中,包括一个投屏接收端及多个投屏发送端,每个投屏发送端将自身要进行投屏的投屏资源发送至投屏接收端,投屏接收端接收这些投屏资源后,由于需要对每个投屏资源进行压缩等处理,需要消耗大量的运算资源,容易造成投屏画面卡顿、卡死等问题。Generally, in a many-to-one projection mode, there is one projection receiver and multiple projection transmitters. Each projection transmitter sends its own projection resources to the projection receiver. After receiving these projection resources, the screen receiving end needs to compress each projection resource, which consumes a large amount of computing resources, and can easily cause problems such as freezing and freezing of the projection screen.
基于此,本申请实施例提供了一种投屏方法,以降低投屏接收端的资源消耗,减少投屏画面卡顿、卡死等问题。Based on this, the embodiment of the present application provides a screen projection method to reduce the resource consumption of the projection receiving end, and reduce the problems such as freezing and freezing of the projection screen.
本申请第一方面提供了一种应用于投屏接收端的投屏方法。请参阅图1,图1示出了本申请第一方面提供的投屏方法的一个实施例的流程图。如图1中所示,投屏方法S100包括:The first aspect of the present application provides a screen projection method applied to the projection receiving end. Please refer to FIG. 1, which shows a flowchart of an embodiment of the screen projection method provided in the first aspect of the present application. As shown in FIG. 1, the screen projection method S100 includes:
S101、响应于投屏控制事件,确定投屏控制事件对应的投屏发送端。S101. In response to a screen projection control event, determine a screen projection sender corresponding to the screen projection control event.
该步骤中,投屏接收端可以与一个或多个投屏发送端连接,并接收每个投屏发送端发送的投屏资源,当检测到投屏控制事件发生时,可以根据投屏事件和当前接入的投屏发送端,确定该投屏事件对应的投屏发送端。In this step, the projection receiver can connect to one or more projection transmitters, and receive the projection resources sent by each projection transmitter. When a projection control event is detected, it can be based on the projection event and The currently connected screencasting sender determines the screencasting sender corresponding to the screencast event.
在一种可能的实施方式中,投屏控制事件可以包括以下至少一种:In a possible implementation manner, the screen projection control event may include at least one of the following:
检测到任一投屏发送端对应的投屏加入请求、检测到任一投屏发送端对应的投屏退出请求、检测到投屏设备删除指令。Detecting a projection joining request corresponding to any projection sending terminal, detecting a projection exit request corresponding to any projection sending terminal, and detecting a projection device deletion instruction.
这里,用户可以通过投屏接收端或其他方式,控制与投屏接收端连接、并传输投屏资源的投屏发送端的数量,投屏接收端与投屏发送端可以通过Wi-Fi(无线上网)、DLNA(DIGITAL LIVING NETWORK ALLIANCE,数字生活网络联盟)、WiDi(Intel WirelessDisplay,无线高清 技术)、AirPlay(隔空播放)等方式实现投屏。Here, the user can control the number of projection sending terminals connected to the projection receiving terminal and transmitting projection resources through the projection receiving terminal or other methods. The projection receiving terminal and the projection sending terminal can be connected through Wi-Fi (wireless Internet access). ), DLNA (DIGITAL LIVING NETWORK ALLIANCE, Digital Living Network Alliance), WiDi (Intel WirelessDisplay, wireless high-definition technology), AirPlay (air play) and other methods to achieve screen projection.
这里,投屏发送端与投屏接收端可以是智能手机、计算机、平板电脑等具有投屏功能的终端。Here, the screen projection sending end and the screen projection receiving end may be terminals with a screen projection function, such as a smart phone, a computer, or a tablet computer.
当投屏控制事件为投屏发送端发送的投屏加入请求时,可以将当前已经与投屏接收端建立投屏连接的投屏发送端,及发送投屏加入请求的投屏发送端一同作为投屏控制事件对应的投屏发送端;当投屏控制事件为投屏退出请求时,可以将投屏接收端与发送投屏退出请求的投屏发送端的连接断开,并将发送投屏退出请求的投屏发送端对应的投屏窗口关闭,再确定当前已与投屏接收端建立投屏连接的投屏发送端为投屏控制事件对应的投屏发送端;当投屏控制事件为投屏设备删除指令时,可以将投屏接收端与投屏设备删除指令指示的投屏发送端之间的投屏连接断开,并确定断开后与投屏接收端建立投屏连接的投屏发送端为投屏控制事件对应的投屏发送端。When the projection control event is a projection join request sent by the projection sender, the projection sender that has established a projection connection with the projection receiver and the projection sender that sends the projection join request can be used as the same The projection sender corresponding to the projection control event; when the projection control event is a projection exit request, the connection between the projection receiver and the projection sender that sent the projection exit request can be disconnected, and the sending projection will exit The projection window corresponding to the requested projection sender is closed, and then the projection sender that has established a projection connection with the projection receiver is the projection sender corresponding to the projection control event; when the projection control event is the projection When the screen device delete instruction, you can disconnect the screen projection connection between the screen projection receiving end and the screen projection sending end indicated by the screen projection device deletion instruction, and confirm the disconnection and establish a screen projection connection with the projection receiving end The sender is the screencast sender corresponding to the screencast control event.
投屏方法S100还包括:The projection method S100 also includes:
S102、根据投屏发送端的数量,确定每个投屏发送端对应的投屏参数。S102: Determine a screen projection parameter corresponding to each screen projection sending terminal according to the number of screen projection sending terminals.
该步骤中,在确定投屏控制事件对应的投屏发送端的数量后,可以根据投屏发送端的数量,将投屏接收端的图形用户界面划分为多个显示区域,每个显示区域可以对应一个投屏发送端,并在该显示区域生成与投屏发送端对应的投屏窗口,每个投屏窗口的大小可以是相同的,也可以是不同的。在生成投屏窗口后,可以分别将每个投屏窗口的尺寸作为其对应的投屏参数。投屏窗口尺寸是能够表征投屏窗口大小、形状的具体数值。投屏发送端可以基于该投屏参数对其发送的投屏资源进行设置,以适应投屏窗口大小。投屏接收端在收到该投屏资源后可以直接显示在对应的投屏窗口中,避免投屏接收端对投屏资源进行压缩等处理,有效减少投屏接收端的计算资源占用,减少投屏画面出现卡顿、卡死等情况。In this step, after determining the number of projection sending ends corresponding to the projection control event, the graphical user interface of the projection receiving end can be divided into multiple display areas according to the number of projection sending ends, and each display area can correspond to one projection. Screen sender, and generate a screen projection window corresponding to the screen projection sender in the display area, and the size of each screen projection window can be the same or different. After the projection window is generated, the size of each projection window can be used as its corresponding projection parameter. The size of the projection window is a specific value that can characterize the size and shape of the projection window. The projection sender can set the projection resources it sends based on the projection parameters to adapt to the size of the projection window. After receiving the projection resource, the projection receiving terminal can directly display it in the corresponding projection window, avoiding the projection receiving terminal from compressing the projection resources, and effectively reducing the computing resource occupation of the projection receiving terminal and reducing the projection. Stuttering, freezing, etc. appear on the screen.
投屏方法S100还包括:The projection method S100 also includes:
S103、将投屏参数发送至其对应的投屏发送端,以使投屏发送端根据投屏参数,发送投屏资源至投屏接收端。S103: Send the screen projection parameter to its corresponding screen projection sending end, so that the screen projection sending end sends the screen projection resource to the screen projection receiving end according to the screen projection parameter.
该步骤中,在投屏接收端将投屏参数发送至各个投屏发送端后,投屏接收端可以根据接收到的投屏参数,确定推送投屏资源的分辨率和码率,并按照确定的分辨率及码率将投屏资源发送至投屏接收端。示例性的,可以根据投屏参数与分辨率和码率的映射关系,确定投屏资源的分辨率和码率。In this step, after the projection receiver sends the projection parameters to each projection sender, the projection receiver can determine the resolution and code rate of the projection resource to be pushed according to the received projection parameters, and follow the determination The resolution and bit rate will send the projection resource to the projection receiver. Exemplarily, the resolution and code rate of the projection resource can be determined according to the mapping relationship between the projection parameters and the resolution and code rate.
对于已经和投屏接收端建立投屏连接的投屏发送端,可以将原有的投屏资源的发送中断,并以新接收到的投屏参数对应的分辨率和码率重新采集投屏资源,并发送至投屏接收端;对于原来未与投屏接收端建立投屏连接,新加入的投屏发送端,则直接以接收到的投屏参数对应的分辨率和码率重新采集投屏资源,并发送至投屏接收端。For the projection sender that has established a projection connection with the projection receiver, the transmission of the original projection resource can be interrupted, and the projection resource can be re-collected with the resolution and code rate corresponding to the newly received projection parameter , And send to the projection receiver; for the original projection connection that has not been established with the projection receiver, the newly added projection transmitter will directly re-collect the projection screen at the resolution and code rate corresponding to the received projection parameter Resources, and sent to the receiving end of the projection screen.
投屏方法S100还包括:The projection method S100 also includes:
S104、接收并展示每个投屏发送端发送的投屏资源。S104. Receive and display the screen projection resources sent by each screen projection sender.
这样,在投屏发送端的数量增加或减少时,投屏发送端可以根据新的投屏发送端的数量,确定每个投屏发送端的投屏参数,并使投屏发送端根据投屏参数传输投屏资源。In this way, when the number of projection sending terminals increases or decreases, the projection sending terminal can determine the projection parameters of each projection sending terminal according to the number of new projection sending terminals, and make the projection sending terminal transmit the projection according to the projection parameters. Screen resources.
由于投屏发送端接收到的投屏资源是与投屏窗口适配的投屏资源,因此,不需要在进行压缩等操作,能够将原来由投屏接收端进行的处理分散转移至投屏发送端,有效降低投屏接收端的运行资源占用,并减少因资源占用过高引起的投屏画面卡顿、卡死等问题。Since the projection resource received by the projection sender is a projection resource that is adapted to the projection window, there is no need to perform operations such as compression, and the processing originally performed by the projection receiver can be dispersed and transferred to the projection transmission It effectively reduces the operating resource occupancy of the projection receiving terminal, and reduces the problem of screen freezing and freezing caused by excessive resource occupancy.
请参阅图2,图2示出了本申请第一方面提供的投屏方法的另一个实施例的流程图。如图2中所示,投屏方法S200可以包括:Please refer to FIG. 2, which shows a flowchart of another embodiment of the screen projection method provided in the first aspect of the present application. As shown in FIG. 2, the screen projection method S200 may include:
S201、响应于投屏控制事件,确定投屏控制事件对应的投屏发送端;S201: In response to the screen projection control event, determine the screen projection sender corresponding to the screen projection control event;
S202、根据投屏发送端的数量,生成用于展示投屏资源的投屏窗口。S202: Generate a screen projection window for displaying the screen projection resource according to the number of screen projection sending ends.
其中,投屏资源可以是投屏发送端发送给投屏接收端的视频资源,投屏发送端可以将视频或操作界面作为投屏资源,实时发送给投屏接收端,投屏接收端可以接收这些投屏资源,并在根据投屏发送端的数量确定的投屏窗口中展示。Among them, the projection resource can be the video resource sent by the projection sender to the projection receiver. The projection sender can use the video or the operation interface as the projection resource and send it to the projection receiver in real time, and the projection receiver can receive these Screencasting resources are displayed in the screencasting window determined according to the number of screencasting senders.
示例性的,若投屏发送端的数量为三个,可以生成四宫格形式的投屏窗口,其中三个投屏窗口分别显示一个投放发送端发送的投屏资源,剩余 一个投屏窗口处于待命状态;若投屏发送端的数量增长为五个,则生成六宫格形式的投屏窗口;或者,根据投屏发送端的显示尺寸,生成比例相等或相似的投屏窗口。Exemplarily, if the number of projection senders is three, a four-grid projection window can be generated, where three projection windows respectively display a projection resource sent by the sender, and the remaining one is on standby Status; if the number of projection senders increases to five, a six-grid projection window will be generated; or, according to the display size of the projection sender, a projection window of equal or similar proportions will be generated.
投屏方法S200还可以包括:The screen projection method S200 may also include:
S203、根据投屏窗口,确定每个投屏发送端对应的投屏参数,其中,投屏参数包括投屏资源的投屏窗口尺寸。S203: According to the screen projection window, determine the screen projection parameter corresponding to each screen projection sending end, where the screen projection parameter includes the screen projection window size of the screen projection resource.
该步骤中,在生成投屏窗口后,可以确定每个投屏窗口的尺寸,在投屏发送端接收到其对应的投屏窗口尺寸后,即可确定出投屏资源的分辨率及码率,进而按照确定出的分辨率及码率采集投屏资源,并将其发送给投屏接收端。In this step, after the projection window is generated, the size of each projection window can be determined. After the projection sender receives its corresponding projection window size, the resolution and code rate of the projection resource can be determined , And then collect the projection resources according to the determined resolution and code rate, and send them to the projection receiving end.
具体的,可以根据预设的尺寸、分辨率、码率之间的对应关系,确定投屏资源的分辨率及码率。Specifically, the resolution and code rate of the projection resource can be determined according to the correspondence between the preset size, resolution, and code rate.
投屏方法S200还可以包括:The screen projection method S200 may also include:
S204、将投屏参数发送至其对应的投屏发送端,以使投屏发送端根据投屏参数,发送投屏资源至投屏接收端;S204. Send the screen projection parameters to its corresponding screen projection sending end, so that the screen projection sending end sends the screen projection resources to the projection receiving end according to the screen projection parameters;
S205、接收并展示每个投屏发送端发送的投屏资源。S205. Receive and display the screen projection resources sent by each screen projection sender.
其中,S201、S204、S205的描述可以分别参照S101、S103及S104的描述,并且能达到基本相同的技术效果,为简明起见,对于投屏方法S200的实施例部分未提及描述之处,可参考上述的投屏方法S100的实施例中相应内容。Among them, the descriptions of S201, S204, and S205 can refer to the descriptions of S101, S103, and S104, respectively, and can achieve basically the same technical effects. For the sake of brevity, for the parts not mentioned in the description of the embodiment of the projection method S200, you can Refer to the corresponding content in the embodiment of the above-mentioned projection method S100.
在一种可能的实施方式中,将投屏参数发送至其对应的投屏发送端,以使投屏发送端根据投屏参数,发送投屏资源至投屏接收端,可以包括:In a possible implementation manner, sending the projection parameters to its corresponding projection sending end, so that the projection sending end sends the projection resources to the projection receiving end according to the projection parameters, which may include:
针对每个投屏发送端,将该投屏发送端对应的投屏资源的投屏窗口尺寸发送至该投屏发送端,以使该投屏发送端根据投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向投屏接收端发送投屏资源。For each projection sender, the projection window size of the projection resource corresponding to the projection sender is sent to the projection sender, so that the projection sender determines the resolution of the projection resource according to the projection window size Rate and bit rate, and send the screen resources to the screen receiving end according to the determined resolution and bit rate.
这样可优化投屏接收端的性能资源消耗,在多路投屏时投屏接收端的性能消耗不会成倍数的递增,这样可以保证投屏接收端流畅的运行,由于投屏发送端发送的投屏资源的分辨率和码率是根据投屏接收端给的尺寸而 编码的,这样在投屏接收端就不需要压缩接收端的数据流尺寸,可以清晰的显示在投屏接收端的投屏窗口内。从而解决了投屏窗口在接收端的清晰度问题。This can optimize the performance and resource consumption of the projection receiving end, and the performance consumption of the projection receiving end will not increase by multiples during multi-channel projection. This can ensure the smooth operation of the projection receiving end due to the projection sent by the projection sender The resource resolution and bit rate are encoded according to the size given by the projection receiver, so that the data stream size of the receiver does not need to be compressed at the projection receiver, and can be clearly displayed in the projection window of the projection receiver. This solves the problem of the clarity of the projection window at the receiving end.
由于发送的数据是进过优化后的数据,在传输过程中没有传输过多的不必要数据,从而节省了投屏发送端和投屏接收端的网络资源、中央处理器(Central Processing Unit,CPU)资源、内存资源,大大提高了软件的可用性。Since the data sent is optimized data, there is not too much unnecessary data transmitted during the transmission process, which saves the network resources and central processing unit (CPU) of the projection sender and the projection receiver. Resources and memory resources greatly improve the usability of the software.
在一种可能的实施方式中,投屏控制事件可以包括以下至少一种:In a possible implementation manner, the screen projection control event may include at least one of the following:
检测到任一投屏发送端对应的投屏加入请求、检测到任一投屏发送端对应的投屏退出请求、检测到投屏设备删除指令。Detecting a projection joining request corresponding to any projection sending terminal, detecting a projection exit request corresponding to any projection sending terminal, and detecting a projection device deletion instruction.
其中,投屏加入请求及投屏退出请求可以是投屏发送端向投屏接收端发送的,也可以是用户在投屏接收端主动输入的指令;投屏设备删除指令可以是用户在投屏接收端主动输入的指令。Among them, the screen-casting join request and screen-casting exit request can be sent by the screen-casting sender to the screen-casting receiving end, or they can be instructions actively input by the user at the screen-casting receiving end; the screen-casting device deletion instruction can be the user's screen-casting Commands actively input by the receiving end.
在一种可能的实施方式中,在响应投屏控制事件之前,投屏方法S100或者投屏方法S200还可以包括:In a possible implementation manner, before responding to the screen projection control event, the screen projection method S100 or the screen projection method S200 may further include:
根据当前投屏于投屏接收端的投屏发送端的数量及投屏接收端的最大投屏接入数量,确定是否响应投屏控制事件。Determine whether to respond to a screen projection control event according to the number of screen projection sending terminals currently projected on the screen projection receiving terminal and the maximum number of screen projection accesses of the projection receiving terminal.
该步骤中,在响应投屏加入请求之前,可以先对发送请求的投屏发送端进行验证,若当前投屏接收端能够承载的投屏数量以达到上限,或发送请求的投屏发送端身份认证失败,则不响应该投屏加入请求。In this step, before responding to the request to join the screen, you can verify the sending end of the screen that sent the request. If the number of screens that the current receiving end can carry reaches the upper limit, or the identity of the sending end of the request is sent If the authentication fails, it will not respond to the request to join the screencast.
本申请实施例提供的投屏方法,首先响应于投屏控制事件,确定投屏控制事件对应的投屏发送端;其次,根据投屏发送端的数量,确定每个投屏发送端对应的投屏参数;然后,将投屏参数发送至其对应的投屏发送端,以使投屏发送端根据投屏参数,发送投屏资源至投屏接收端;最后,接收并展示每个投屏发送端发送的投屏资源。The screen projection method provided by the embodiment of this application firstly determines the screen projection sending end corresponding to the screen projection control event in response to the screen projection control event; secondly, according to the number of screen projection sending ends, the projection screen corresponding to each screen projection sending end is determined Parameters; then, send the projection parameters to its corresponding projection sender, so that the projection sender will send the projection resources to the projection receiver according to the projection parameters; finally, receive and display each projection sender The projected resources sent.
与现有技术相比,本申请能够将投屏参数发送给投屏发送端,使投屏发送端根据投屏参数发送投屏资源,进而避免投屏接收端对投屏资源进行压缩等处理,有效减少投屏接收端的计算资源占用,减少投屏画面出现卡顿、卡死等情况。Compared with the prior art, this application can send the projection parameters to the projection sender, so that the projection sender sends the projection resources according to the projection parameters, thereby avoiding the projection receiving end from compressing the projection resources. Effectively reduce the computing resource occupancy of the receiving end of the projection screen, and reduce the freezing and freezing of the projection screen.
本申请第二方面提供一种应用于投屏发送端的投屏方法。请参阅图3,图3示出了本申请第二方面提供的投屏方法的一个实施例的流程图。如图3所示,投屏方法S300包括:The second aspect of the present application provides a screen projection method applied to the screen projection sending end. Please refer to FIG. 3, which shows a flowchart of an embodiment of the screen projection method provided in the second aspect of the present application. As shown in Figure 3, the screen projection method S300 includes:
S301、接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数。S301. Receive the screen projection parameters determined by the screen projection receiving end according to the number of screen projection sending ends corresponding to the screen projection control event.
S302、发送与投屏参数对应的投屏资源至投屏接收端,以使投屏接收端展示投屏资源。S302: Send the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end can display the projection resource.
在一些可能的实施方式中,投屏参数可以包括投屏资源的投屏窗口尺寸根据投屏参数。In some possible implementation manners, the projection parameter may include the projection window size of the projection resource according to the projection parameter.
发送与投屏参数对应的投屏资源至投屏接收端,可以包括:Sending the projection resources corresponding to the projection parameters to the projection receiving end can include:
根据投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向投屏接收端发送投屏资源。Determine the resolution and code rate of the projection resource according to the size of the projection window, and send the projection resource to the projection receiver according to the determined resolution and code rate.
在一些可能的实施方式中,在接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数之前,投屏方法S300还可以包括:In some possible implementations, before receiving the projection parameters determined by the projection receiving end according to the number of projection sending ends corresponding to the projection control event, the projection method S300 may further include:
向投屏接收端发送投屏加入请求。Send a request to join the screen to the receiving end of the screen.
本申请第二方面提供的应用于投屏发送端的投屏方法与图1以及图2所示的应用于投屏接收端的投屏接收方法原理基本相似,对于投屏方法S300的实施例部分未提及描述之处,可参考上述的投屏方法S100或者投屏方法S200的实施例中相应内容。The second aspect of the application provides the screen projection method applied to the screen projection sending end and the principle of the screen projection receiving method applied to the projection receiving end shown in FIG. 1 and FIG. 2 is basically similar. The embodiment of the screen projection method S300 is not mentioned. For the description, please refer to the corresponding content in the embodiment of the above-mentioned screen projection method S100 or the screen projection method S200.
本申请第三方面提供一种应用于投屏接收端的投屏装置。请参阅图4,图4示出了本申请第三方面提供的投屏装置的一个实施例的结构示意图。如图4中所示,投屏装置400包括:The third aspect of the present application provides a projection device applied to a projection receiving end. Please refer to FIG. 4, which shows a schematic structural diagram of an embodiment of the screen projection device provided in the third aspect of the present application. As shown in FIG. 4, the screen projection device 400 includes:
响应模块410,被配置用于响应于投屏控制事件,确定投屏控制事件对应的投屏发送端;The response module 410 is configured to determine the screen projection sender corresponding to the screen projection control event in response to the screen projection control event;
第一确定模块420,被配置用于根据投屏发送端的数量,确定每个投屏发送端对应的投屏参数;The first determining module 420 is configured to determine the projection parameters corresponding to each projection transmitting terminal according to the number of projection transmitting terminals;
第一发送模块430,被配置用于将投屏参数发送至其对应的投屏发送端,以使投屏发送端根据投屏参数,发送投屏资源至投屏接收端;The first sending module 430 is configured to send the screen projection parameters to its corresponding screen projection sending end, so that the screen projection sending end sends the screen projection resources to the projection receiving end according to the screen projection parameters;
第一接收模块440,被配置用于接收并展示每个投屏发送端发送的投 屏资源。The first receiving module 440 is configured to receive and display the projection resources sent by each projection sender.
在一种可能的实施方式中,确定模块420可以被配置用于:In a possible implementation manner, the determining module 420 may be configured to:
根据投屏发送端的数量,生成用于展示投屏资源的投屏窗口;According to the number of screencasting senders, a screencast window for displaying screencast resources is generated;
根据投屏窗口,确定每个投屏发送端对应的投屏参数,其中,投屏参数包括投屏资源的投屏窗口尺寸。According to the projection window, the projection parameter corresponding to each projection sending terminal is determined, where the projection parameter includes the projection window size of the projection resource.
在一种可能的实施方式中,第一发送模块430可以被配置用于:In a possible implementation manner, the first sending module 430 may be configured to:
针对每个投屏发送端,将该投屏发送端对应的投屏资源的投屏窗口尺寸发送至该投屏发送端,以使该投屏发送端根据投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向投屏接收端发送投屏资源。For each projection sender, the projection window size of the projection resource corresponding to the projection sender is sent to the projection sender, so that the projection sender determines the resolution of the projection resource according to the projection window size Rate and bit rate, and send the screen resources to the screen receiving end according to the determined resolution and bit rate.
在一种可能的实施方式中,投屏控制事件可以包括以下至少一种:In a possible implementation manner, the screen projection control event may include at least one of the following:
检测到任一投屏发送端对应的投屏加入请求、检测到任一投屏发送端对应的投屏退出请求、检测到投屏设备删除指令。Detecting a projection joining request corresponding to any projection sending terminal, detecting a projection exit request corresponding to any projection sending terminal, and detecting a projection device deletion instruction.
在一种可能的实施方式中,投屏装置400还可以包括:In a possible implementation manner, the screen projection device 400 may further include:
第二确定模块450,被配置用于根据当前投屏于投屏接收端的投屏发送端的数量及投屏接收端的最大投屏接入数量,确定是否响应投屏控制事件。The second determining module 450 is configured to determine whether to respond to a screen projection control event according to the number of screen projection sending terminals currently projecting on the screen projection receiving terminal and the maximum number of screen projection accesses of the projection receiving terminal.
本申请第四方面提供一种应用于投屏发送端的投屏装置。请参阅图5,图5示出了本申请第四方面提供的投屏装置的一个实施例的结构示意图。如图5所示,投屏装置500可以包括:The fourth aspect of the present application provides a screen projection device applied to a screen projection sending end. Please refer to FIG. 5, which shows a schematic structural diagram of an embodiment of the screen projection device provided in the fourth aspect of the present application. As shown in FIG. 5, the screen projection device 500 may include:
第二接收模块510,被配置用于接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数;The second receiving module 510 is configured to receive the projection parameters determined by the projection receiving terminal according to the number of projection sending terminals corresponding to the projection control event;
第二发送模块520,被配置用于发送与投屏参数对应的投屏资源至投屏接收端,以使投屏接收端展示投屏资源。The second sending module 520 is configured to send the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end can display the projection resource.
在一些可能的实施方式中,投屏参数可以包括投屏资源的投屏窗口尺寸根据投屏参数。In some possible implementation manners, the projection parameter may include the projection window size of the projection resource according to the projection parameter.
第二发送模块520可以被配置用于:The second sending module 520 may be configured to:
根据投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向投屏接收端发送投屏资源。Determine the resolution and code rate of the projection resource according to the size of the projection window, and send the projection resource to the projection receiver according to the determined resolution and code rate.
在一些可能的实施方式中,投屏装置500还可以包括:In some possible implementation manners, the screen projection device 500 may further include:
请求模块530,被配置用于向投屏接收端发送投屏加入请求。The request module 530 is configured to send a request to join the screen to the screen receiving end.
本申请实施例提供的投屏装置,首先响应于投屏控制事件,确定投屏控制事件对应的投屏发送端;其次,根据投屏发送端的数量,确定每个投屏发送端对应的投屏参数;然后,将投屏参数发送至其对应的投屏发送端,以使投屏发送端根据投屏参数,发送投屏资源至投屏接收端;最后,接收并展示每个投屏发送端发送的投屏资源。The screen projection device provided by the embodiment of the application firstly determines the screen projection sending end corresponding to the screen projection control event in response to the screen projection control event; secondly, according to the number of screen projection sending ends, the projection screen corresponding to each screen projection sending end is determined Parameters; then, send the projection parameters to its corresponding projection sender, so that the projection sender will send the projection resources to the projection receiver according to the projection parameters; finally, receive and display each projection sender The projected resources sent.
与现有技术相比,本申请能够将投屏参数发送给投屏发送端,使投屏发送端根据投屏参数发送投屏资源,进而避免投屏接收端对投屏资源进行压缩等处理,有效减少投屏接收端的计算资源占用,减少投屏画面出现卡顿、卡死等情况。Compared with the prior art, this application can send the projection parameters to the projection sender, so that the projection sender sends the projection resources according to the projection parameters, thereby avoiding the projection receiving end from compressing the projection resources. Effectively reduce the computing resource occupancy of the receiving end of the projection screen, and reduce the freezing and freezing of the projection screen.
本申请第五方面提供一种电子设备,包括:处理器、存储介质和总线,存储介质存储有处理器可执行的机器可读指令,当电子设备运行时,处理器与存储介质之间通过总线通信,处理器执行机器可读指令,以执行上述第一方面或第二方面的投屏方法的任意实施例的步骤。The fifth aspect of the present application provides an electronic device, including a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium pass through the bus. In communication, the processor executes machine-readable instructions to execute the steps of any embodiment of the screen projection method of the first aspect or the second aspect.
请参阅图6,图6示出了本申请第五方面提供的电子设备的一个实施例的结构示意图。如图6中所示,电子设备600包括处理器610、存储器620和总线630。Please refer to FIG. 6, which shows a schematic structural diagram of an embodiment of an electronic device provided in the fifth aspect of the present application. As shown in FIG. 6, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
存储器620存储有处理器610可执行的机器可读指令,当电子设备600运行时,处理器610与存储器620之间通过总线630通信,机器可读指令被处理器610执行时,可以执行如上述图1、图2以及图3所示方法实施例中的投屏方法的步骤,具体实现方式可参见方法实施例,在此不再赘述。The memory 620 stores machine-readable instructions executable by the processor 610. When the electronic device 600 is running, the processor 610 communicates with the memory 620 through the bus 630. When the machine-readable instructions are executed by the processor 610, they can execute as described above. For the steps of the screen projection method in the method embodiments shown in FIG. 1, FIG. 2 and FIG.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时可以执行如上述图1、图2以及图3所示方法实施例中的投屏方法的步骤,具体实现方式可参见方法实施例,在此不再赘述。The embodiment of the present application also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program can be executed when the computer program is run by a processor. For the steps of the screen projection method in the example, please refer to the method embodiment for the specific implementation, which will not be repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的***、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical function division, and there may be other divisions in actual implementation. For example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some communication interfaces, devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质的示例包括非暂态计算机可读存储介质,如:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application. Examples of the aforementioned storage media include non-transitory computer-readable storage media, such as: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic Various media that can store program codes, such as discs or optical discs.
还需要说明的是,附图中的流程图和框图图示了根据本公开的各种实施例的***、方法和计算机程序产品的可能实现方式的体系结构、功能、和操作。在这点上,流程图或框图中的每个方框可代表一模块、片段或代码的一部分,所述模块、片段或代码的一部分包括用于实现(一个或多个)指定的逻辑功能的一个或多个可执行指令。也应当注意,在一些替换 实现方式中,方框中标注的功能也可以按不同于附图中标注的顺序发生。例如,取决于所涉及的功能,接连示出的两个方框实际上可被基本同时执行,或者方框有时可按相反顺序被执行。还要注意,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以由执行指定的功能或动作的专用的基于硬件的***来实现,或者可以由专用硬件和计算机指令的组合来实现。It should also be noted that the flowcharts and block diagrams in the drawings illustrate the architecture, functions, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or part of the code, and the module, segment, or part of the code includes components for implementing the specified logical function(s) One or more executable instructions. It should also be noted that in some alternative implementations, the functions noted in the block may also occur in a different order than noted in the drawings. For example, depending on the functions involved, two blocks shown in succession may actually be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order. It should also be noted that each block in the block diagram and/or flowchart, and a combination of blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or It can be implemented by a combination of dedicated hardware and computer instructions.
最后应说明的是:以上实施例,仅为本申请的具体实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。Finally, it should be noted that the above examples are only specific implementations of the application, to illustrate the technical solutions of the application, but not to limit it. The scope of protection of the application is not limited thereto, although referring to the foregoing examples This application has been described in detail, and those of ordinary skill in the art should understand that any person skilled in the art can still modify or modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in this application. Easily think of changes, or equivalent replacements of some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should be covered by the protection of this application Within range. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (11)

  1. 一种投屏方法,应用于投屏接收端,所述方法包括:A screen projection method, applied to a screen projection receiving end, the method including:
    响应于投屏控制事件,确定所述投屏控制事件对应的投屏发送端;In response to a screen projection control event, determine the screen projection sender corresponding to the screen projection control event;
    根据所述投屏发送端的数量,确定每个投屏发送端对应的投屏参数;Determine the projection parameters corresponding to each projection transmitting terminal according to the number of the projection transmitting terminals;
    将所述投屏参数发送至其对应的投屏发送端,以使所述投屏发送端根据所述投屏参数,发送投屏资源至所述投屏接收端;Sending the screen projection parameter to its corresponding screen projection sending terminal, so that the screen projection sending terminal sends the screen projection resource to the projection receiving terminal according to the screen projection parameter;
    接收并展示每个投屏发送端发送的投屏资源。Receive and display the projection resources sent by each projection sender.
  2. 根据权利要求1所述的方法,其中,所述根据所述投屏发送端的数量,确定每个投屏发送端对应的投屏参数,包括:The method according to claim 1, wherein the determining the screen projection parameter corresponding to each screen projection sending terminal according to the number of the screen projection sending terminal comprises:
    根据所述投屏发送端的数量,生成用于展示所述投屏资源的投屏窗口;According to the number of the screen projection senders, generating a screen projection window for displaying the screen projection resource;
    根据所述投屏窗口,确定每个投屏发送端对应的投屏参数,其中,所述投屏参数包括所述投屏资源的投屏窗口尺寸。According to the projection window, a projection parameter corresponding to each projection sending terminal is determined, wherein the projection parameter includes the projection window size of the projection resource.
  3. 根据权利要求2所述的方法,其中,所述将所述投屏参数发送至其对应的投屏发送端,以使所述投屏发送端根据所述投屏参数,发送投屏资源至所述投屏接收端,包括:The method according to claim 2, wherein said sending the screen projection parameters to its corresponding screen projection sending terminal, so that the screen projection sending terminal sends the screen projection resources to all the screen projections according to the screen projection parameters. The receiving end of the projection screen, including:
    针对每个投屏发送端,将该投屏发送端对应的投屏资源的投屏窗口尺寸发送至该投屏发送端,以使该投屏发送端根据所述投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向所述投屏接收端发送投屏资源。For each projection sender, send the projection window size of the projection resource corresponding to the projection sender to the projection sender, so that the projection sender determines the projection resource according to the projection window size The screen projection resource is sent to the screen projection receiving end according to the determined resolution and bit rate.
  4. 根据权利要求1所述的方法,其中,所述投屏控制事件包括以下至少一种:The method according to claim 1, wherein the projection control event includes at least one of the following:
    检测到任一投屏发送端对应的投屏加入请求、检测到任一投屏发送端对应的投屏退出请求、检测到投屏设备删除指令。Detecting a projection joining request corresponding to any projection sending terminal, detecting a projection exit request corresponding to any projection sending terminal, and detecting a projection device deletion instruction.
  5. 根据权利要求4所述的方法,其中,在响应所述投屏控制事件之前,所述方法还包括:The method according to claim 4, wherein, before responding to the projection control event, the method further comprises:
    根据当前投屏于所述投屏接收端的投屏发送端的数量及所述投屏接收端的最大投屏接入数量,确定是否响应所述投屏控制事件。Determine whether to respond to the projection control event according to the number of projection senders currently projected on the projection receiver and the maximum number of projection accesses of the projection receiver.
  6. 一种投屏方法,其中,应用于投屏发送端,所述方法包括:A screen projection method, wherein, applied to a screen projection sending end, the method includes:
    接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数;Receiving the projection parameters determined by the projection receiver according to the number of projection transmitters corresponding to the projection control event;
    发送与所述投屏参数对应的投屏资源至所述投屏接收端,以使所述投屏接收端展示所述投屏资源。Sending the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end displays the projection resource.
  7. 根据权利要求6所述的方法,其中,所述投屏参数包括所述投屏资源的投屏窗口尺寸所述根据所述投屏参数;8. The method according to claim 6, wherein the screen projection parameter comprises the screen projection window size of the screen projection resource, the screen projection parameter is based on the screen projection parameter;
    所述发送与所述投屏参数对应的投屏资源至所述投屏接收端,包括:The sending the screen projection resource corresponding to the screen projection parameter to the screen projection receiving end includes:
    根据所述投屏窗口尺寸确定投屏资源的分辨率及码率,并按照确定的分辨率及码率向所述投屏接收端发送投屏资源。The resolution and code rate of the projection resource are determined according to the size of the projection window, and the projection resource is sent to the projection receiving end according to the determined resolution and code rate.
  8. 一种投屏装置,用于投屏接收端,所述装置包括:A screen projection device for the projection receiving end, the device comprising:
    响应模块,被配置用于响应于投屏控制事件,确定所述投屏控制事件对应的投屏发送端;The response module is configured to determine the screen sending end corresponding to the screen projection control event in response to the screen projection control event;
    第一确定模块,被配置用于根据所述投屏发送端的数量,确定每个投屏发送端对应的投屏参数;The first determining module is configured to determine the projection parameters corresponding to each projection transmitting terminal according to the number of the projection transmitting terminals;
    第一发送模块,被配置用于将所述投屏参数发送至其对应的投屏发送端,以使所述投屏发送端根据所述投屏参数,发送投屏资源至所述投屏接收端;The first sending module is configured to send the screen projection parameters to its corresponding screen projection sender, so that the screen projection sender sends the screen projection resources to the screen projection receiver according to the screen projection parameters. end;
    第一接收模块,被配置用于接收并展示每个投屏发送端发送的投屏资源。The first receiving module is configured to receive and display the projection resources sent by each projection sender.
  9. 一种投屏装置,用于投屏发送端,所述装置包括:A screen projection device, used at a screen projection sending end, the device comprising:
    第二接收模块,被配置用于接收投屏接收端根据投屏控制事件对应的投屏发送端的数量确定的投屏参数;The second receiving module is configured to receive the projection parameters determined by the projection receiving terminal according to the number of projection sending terminals corresponding to the projection control event;
    第二发送模块,被配置用于发送与所述投屏参数对应的投屏资源至所述投屏接收端,以使所述投屏接收端展示所述投屏资源。The second sending module is configured to send the projection resource corresponding to the projection parameter to the projection receiving end, so that the projection receiving end can display the projection resource.
  10. 一种电子设备,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如权利要求1至7任一所述的投屏方法的步骤。An electronic device, comprising: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium are Through bus communication, the processor executes the machine-readable instructions to execute the steps of the screen projection method according to any one of claims 1 to 7.
  11. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求1至7任一所述的投屏方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is run by a processor, the steps of the screen projection method according to any one of claims 1 to 7 are executed.
PCT/CN2020/110324 2020-04-30 2020-08-20 Screen projection method and apparatus, electronic device, and storage medium WO2021217964A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010366830.1 2020-04-30
CN202010366830.1A CN111552450A (en) 2020-04-30 2020-04-30 Screen projection method and device

Publications (1)

Publication Number Publication Date
WO2021217964A1 true WO2021217964A1 (en) 2021-11-04

Family

ID=72000165

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/110324 WO2021217964A1 (en) 2020-04-30 2020-08-20 Screen projection method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN111552450A (en)
WO (1) WO2021217964A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143371A (en) * 2021-11-17 2022-03-04 深圳Tcl新技术有限公司 Screen projection method and device, storage medium and electronic equipment
CN114461164A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection eye protection method and device, screen projector and computer readable storage medium
CN114727080A (en) * 2022-04-01 2022-07-08 福建卓航特种设备有限公司 Portable image screen fusing equipment, system, method and device
CN115190353A (en) * 2022-06-30 2022-10-14 京东方科技集团股份有限公司 Screen projection system, screen projection method, computer device, storage medium, and program product
CN115729504A (en) * 2022-10-08 2023-03-03 珠海金智维信息科技有限公司 Data visualization system, method and device based on remote control large screen

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552450A (en) * 2020-04-30 2020-08-18 深圳市鸿合创新信息技术有限责任公司 Screen projection method and device
US20230305792A1 (en) * 2020-08-27 2023-09-28 Beijing Bytedance Network Technology Co., Ltd. Screen projection method and apparatus, electronic device, and computer-readable medium
CN114327313A (en) * 2020-09-29 2022-04-12 北京小米移动软件有限公司 Screen projection method, device and medium
CN112637672A (en) * 2020-12-11 2021-04-09 深圳乐播科技有限公司 Screen projection method, screen projection receiving terminal and screen projection sending terminal
CN113992963A (en) * 2021-10-28 2022-01-28 海信视像科技股份有限公司 Display device and screen projection method
CN113766305A (en) * 2021-09-27 2021-12-07 海信视像科技股份有限公司 Display device and mirror image screen projection audio output control method
CN114401433A (en) * 2021-08-27 2022-04-26 海信视像科技股份有限公司 Resource synchronous playing method and display equipment
CN117859331A (en) * 2021-08-27 2024-04-09 海信视像科技股份有限公司 Display device, terminal device and content display method
CN113965785A (en) * 2021-08-27 2022-01-21 海信视像科技股份有限公司 Resource synchronous playing method and display equipment
CN114143596B (en) * 2021-11-29 2024-03-19 惠州Tcl移动通信有限公司 Screen projection control method and device, terminal equipment and storage medium
CN114281288A (en) * 2021-12-10 2022-04-05 海宁奕斯伟集成电路设计有限公司 Screen projection processing method and device and electronic equipment
CN114979755A (en) * 2022-05-20 2022-08-30 Oppo广东移动通信有限公司 Screen projection method and device, terminal equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095084A (en) * 2016-06-06 2016-11-09 乐视控股(北京)有限公司 Throw screen method and device
CN107450871A (en) * 2017-06-22 2017-12-08 广州视源电子科技股份有限公司 Wireless screen transmission display method and device and storage medium
US20180220114A1 (en) * 2017-02-01 2018-08-02 Canon Kabushiki Kaisha System for controlling projector, information processing apparatus, information processing method, and storage medium
CN109348177A (en) * 2018-10-30 2019-02-15 长威信息科技发展股份有限公司 A kind of large screen multi-screen display method
CN111552450A (en) * 2020-04-30 2020-08-18 深圳市鸿合创新信息技术有限责任公司 Screen projection method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454461B (en) * 2017-06-16 2019-05-24 广州视源电子科技股份有限公司 DVB-based screen transmission equipment and method and DVB receiving end
CN108920116A (en) * 2018-06-12 2018-11-30 广州视源电子科技股份有限公司 Control method, device and equipment of screen projection equipment and storage medium
CN110248226B (en) * 2019-07-16 2021-04-02 广州视源电子科技股份有限公司 Information screen projection method, device, system, storage medium and processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095084A (en) * 2016-06-06 2016-11-09 乐视控股(北京)有限公司 Throw screen method and device
US20180220114A1 (en) * 2017-02-01 2018-08-02 Canon Kabushiki Kaisha System for controlling projector, information processing apparatus, information processing method, and storage medium
CN107450871A (en) * 2017-06-22 2017-12-08 广州视源电子科技股份有限公司 Wireless screen transmission display method and device and storage medium
CN109348177A (en) * 2018-10-30 2019-02-15 长威信息科技发展股份有限公司 A kind of large screen multi-screen display method
CN111552450A (en) * 2020-04-30 2020-08-18 深圳市鸿合创新信息技术有限责任公司 Screen projection method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143371A (en) * 2021-11-17 2022-03-04 深圳Tcl新技术有限公司 Screen projection method and device, storage medium and electronic equipment
CN114461164A (en) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 Screen projection eye protection method and device, screen projector and computer readable storage medium
CN114727080A (en) * 2022-04-01 2022-07-08 福建卓航特种设备有限公司 Portable image screen fusing equipment, system, method and device
CN115190353A (en) * 2022-06-30 2022-10-14 京东方科技集团股份有限公司 Screen projection system, screen projection method, computer device, storage medium, and program product
CN115729504A (en) * 2022-10-08 2023-03-03 珠海金智维信息科技有限公司 Data visualization system, method and device based on remote control large screen
CN115729504B (en) * 2022-10-08 2023-07-21 珠海金智维信息科技有限公司 Data visualization system, method and device based on remote control large screen

Also Published As

Publication number Publication date
CN111552450A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
WO2021217964A1 (en) Screen projection method and apparatus, electronic device, and storage medium
CN109194647B (en) Data transmission method and device, electronic equipment and storage medium
WO2022062623A1 (en) Remote control method and apparatus, and device, and storage medium, and system
WO2021143182A1 (en) Game processing method and apparatus, electronic device, and computer-readable storage medium
CN109600610B (en) Data encoding method, terminal and computer readable storage medium
US8819125B2 (en) Method of transmitting data of USB device to server, and client terminal performing the method
WO2019228340A1 (en) Program optimization method and apparatus, terminal, and storage medium
CN109348167B (en) Wireless auxiliary stream data transmission method and system based on video conference system
CN113489805B (en) Butt joint method, device, equipment and storage medium of cloud desktop system
CN106648670B (en) Same-screen common control system and method for cloud classrooms
WO2021212906A1 (en) Network port allocation method and apparatus, electronic device, and computer-usable medium
TW202147834A (en) Synchronizing local room and remote sharing
TW201539312A (en) Display device and method for displaying images
CN111654450A (en) Data transmission method and device and storage medium
CN112929704A (en) Data transmission method, device, electronic equipment and storage medium
WO2023142390A1 (en) Screen mirroring method and apparatus, and device and computer-readable storage medium
WO2021139345A1 (en) Method and apparatus for displaying network state during call process, and computer device and medium
CN109104774B (en) Data transmission method and system
CN106686635B (en) Data transmission method and device based on control and configuration protocol of wireless access point
WO2020125705A1 (en) Novel kvm extender
CN113709493A (en) Video stream data encryption device, method and equipment of KVM system
CN115567518B (en) Device, system and method for reorienting camera of cloud desktop
WO2019196441A1 (en) Signal transmission method, system, device, storage medium and electronic device
CN113726608B (en) Data processing method and device
WO2015196586A1 (en) Virtual desktop configuration and acquisition method and apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20933159

Country of ref document: EP

Kind code of ref document: A1