A device screen projection method, device, apparatus and storage medium
By determining the target display screen of the device to be projected upon receiving a screen projection command, based on the principle of average distribution and/or the principle of prioritizing the first display screen for projection, the problem of uneven screen content in multi-device screen projection scenarios is solved, achieving balanced distribution of devices and diversified screen projection effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU SHIYUAN ELECTRONICS CO LTD
- Filing Date
- 2021-09-01
- Publication Date
- 2026-05-01
AI Technical Summary
Existing screen mirroring technologies cannot effectively solve the problem of uneven display across multiple screens in multi-device screen mirroring scenarios, resulting in some screens having overly dense or monotonous content, which cannot meet different needs.
Upon receiving a screen mirroring command, the system determines the target display screen of the device to be mirrored based on the principle of average allocation and/or the principle of priority for the first display screen, and then projects the screen onto the corresponding display screen, thereby achieving balanced allocation of devices.
It enables the device to project content evenly onto different displays when there are multiple devices waiting to be projected, solving the problems of dense and monotonous screen content and meeting diverse projection needs.
Smart Images

Figure CN115729497B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to data processing technology, and more particularly to a device projection method, apparatus, device, and storage medium. Background Technology
[0002] With the continuous development of technology, different screen projection methods can be used for display. Currently, there are three main screen projection methods: First, single-screen display: When using screen projection on an electronic whiteboard, all projection devices can only be displayed on one screen. The problems are as follows: If there are too many participants in a meeting room, one monitor cannot conveniently display the projected content for everyone; if there are too many projection devices, the content displayed on one screen will be too dense. Second, dual-screen simultaneous display: The host connects two monitors via two High Definition Multimedia Interface (HDMI) cables, displaying the same content, i.e., achieving screen duplication. The problems are as follows: If there are too many projection devices, the content displayed on one screen will be too dense. Third, dual-screen differential display (each screen displays single content): In convenience stores and cinemas, the screens seen by customers and cashiers are different. The problems are: the content on each screen is relatively simple and not suitable for commercial screen projection. Summary of the Invention
[0003] In view of this, the present invention provides a device projection method, apparatus, equipment, and storage medium, which achieves the purpose of projecting different devices onto different displays.
[0004] In a first aspect, embodiments of the present invention provide a device screen projection method, including:
[0005] Upon receiving a screen mirroring command, determine the number of devices to be mirrored;
[0006] Based on the principle of average allocation and / or the principle of priority projection to the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected, the target display screen for each device to be projected is determined;
[0007] Each of the devices to be projected is projected and displayed on the corresponding target display screen.
[0008] Secondly, embodiments of the present invention also provide a device projection apparatus, comprising:
[0009] The first determining module is used to determine the number of devices to be projected when a projection instruction is received;
[0010] The second determining module is used to determine the target display screen for each device to be projected based on the principle of average allocation and / or the principle of priority projection of the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected.
[0011] The projection module is used to project and display each of the devices to be projected onto the corresponding target display screen.
[0012] Thirdly, embodiments of the present invention also provide an electronic device, the device comprising: a communication module, a memory, and one or more processors;
[0013] The communication module is used to establish a communication connection between the device to be projected and the display screen;
[0014] Memory, used to store one or more programs;
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the device projection method as described in any of the above embodiments.
[0016] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the device projection method as described in any of the above embodiments.
[0017] This invention, upon receiving a screen-casting command, determines the number of devices to be cast to, and based on the principle of average allocation and / or the principle of priority casting to the first display screen, determines the target display screen for each device to be cast to according to the number of devices already cast to each display screen and the number of devices to be cast to each display screen obtained in advance, and casts and displays each device to be cast to the corresponding target display screen. This enables the average casting of each device to be cast to different display screens when there are multiple devices to be cast to. Attached Figure Description
[0018] Figure 1 This is a flowchart of a device screen projection method provided in an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram of a device connection provided in an embodiment of the present invention;
[0020] Figure 3 This is a flowchart of another device screen mirroring method provided in an embodiment of the present invention;
[0021] Figure 4 This is an interactive diagram illustrating device screen projection provided in an embodiment of the present invention;
[0022] Figure 5This is another interactive diagram of device screen projection provided by an embodiment of the present invention;
[0023] Figure 6 This is another interactive diagram of device screen projection provided by an embodiment of the present invention;
[0024] Figure 7 This is a structural block diagram of a device projection device provided in an embodiment of the present invention;
[0025] Figure 8 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0026] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0027] In one embodiment, Figure 1 This is a flowchart illustrating a device projection method according to an embodiment of the present invention. This embodiment is applicable to situations where multiple devices to be projected are evenly distributed across different displays. This embodiment can be executed by an electronic device, which can be a projection box. Figure 1 As shown, this embodiment includes the following steps:
[0028] S110. Upon receiving a screen mirroring command, determine the number of devices to be mirrored.
[0029] In one embodiment, the device to be projected and the display screen are on the same wireless network, and the display screen and the projection box are connected via an HDMI cable. Figure 2 This is a schematic diagram of a device connection provided by an embodiment of the present invention. For example... Figure 2 As shown, a communication connection is established between the device to be projected 210, the projection box 220, and the display screen 230. The device to be projected 210 and the display screen 220 establish a communication connection through a wireless network, for example, the device to be projected 210 and the display screen 220 are in the same WiFi network, and the projection box 220 and the display screen 230 establish a communication connection through an HDMI cable.
[0030] In this context, a screen mirroring command refers to the instruction information to project the display interface of the device to be mirrored onto another display screen. In this embodiment, a screen mirroring control is configured on the device to be mirrored. The user can trigger the screen mirroring process through this control. Specifically, when the device receives the user's trigger operation on the screen mirroring control, it generates a corresponding screen mirroring command and sends it to a screen mirroring box located on the same network as the device. This allows the screen mirroring box to project the display interface of the device to be mirrored onto a display screen connected to it.
[0031] In practice, the number of devices to be cast can be determined by the number of devices sending casting commands; that is, the number of devices sending casting commands equals the number of devices to be cast. Alternatively, the number can be determined by the total number of casting commands received; that is, the number of devices to be cast is incremented by one each time a casting command is received. After casting is completed on each device, the number of devices to be cast is decremented by one.
[0032] S120. Based on the principle of average allocation and / or the principle of priority projection of the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected on each display screen obtained in advance, determine the target display screen for each device to be projected.
[0033] In actual operation, the number of devices to be projected may not be the same as the number of displays. That is, the number of devices to be projected may be greater than the number of displays, or the number of devices to be projected may be less than the number of displays. However, the display area of each display is limited. When there are many devices to be projected and few displays, in order to project the display interface of the devices to be projected onto the displays as much as possible, the principle of average allocation and / or the principle of priority projection to the first display can be adopted to determine the target display for the devices to be projected.
[0034] It should be noted that since the device to be projected, the projection box, and the display screen are all on the same network, it can also be understood that they are in the same area. This area can be indoors or outdoors; there is no limitation in this regard. The first display screen refers to the main screen, meaning that among all the displays in the same area, only one is configured as the main screen, while the others are secondary screens. The difference between the main and secondary screens can be understood as their location. For example, the main screen might be located in a central position within the area (e.g., in the center or directly in front, depending on the environment, but there is no limitation in this regard).
[0035] In this embodiment, when there is only one device to be projected onto the screen and the number of devices already projected onto each display screen is equal, the target display screen for the device to be projected onto is determined based on the principle that the first display screen is given priority for projecting onto the screen. When there is only one device to be projected onto the screen and the number of devices already projected onto each display screen is unequal, the target display screen for the device to be projected onto the screen is determined based on the principle of equal distribution. When there are multiple devices to be projected onto the screen, the target display screen for each device to be projected onto the screen is determined based on the principle of equal distribution and the principle that the first display screen is given priority for projecting onto the screen, and according to the number of devices already projected onto each display screen.
[0036] Of course, when the display screen is initialized and started, the number of devices already projected on each display screen is 0, and when it is determined that the number of devices to be projected is one, the display interface of the device to be projected can be displayed on both the main screen and the secondary screen. That is, the main screen and the secondary screen are equivalent to the function of a copy screen.
[0037] S130. Project and display each device to be projected onto the corresponding target display screen.
[0038] In this embodiment, after determining the target display screen for each device to be projected, the device to be projected is directly projected and displayed on the corresponding target display screen through the projection box.
[0039] The technical solution of this embodiment determines the number of devices to be projected upon receiving a projection command, and based on the principle of average allocation and / or the principle of priority projection to the first display screen, and determines the target display screen for each device to be projected according to the number of devices already projected on each display screen and the number of devices to be projected on each display screen in advance, and projects and displays each device to be projected onto the corresponding target display screen, thereby achieving the goal of evenly projecting each device to be projected onto different display screens when there are multiple devices to be projected.
[0040] In one embodiment, the device projection method further includes: upon receiving a projection shutdown command, determining the projection display screen corresponding to the device to be turned off; receiving a deletion command for the device to be turned off on the projection display screen to delete the device to be turned off; and distributing the projected devices evenly to each display screen according to an average distribution principle. The projection shutdown command refers to the command information that closes the display interface of the projected device on the display screen. In this embodiment, a projection control is configured on the device to be projected. After the user clicks the projection control and the display interface of the device to be projected is successfully projected onto the display screen, the device to be projected becomes a projected device on the display screen. That is, the projection control on the display interface of the projected device becomes a shutdown projection control. At this time, the user can directly trigger the projection shutdown process by clicking the shutdown projection control. Specifically, upon receiving a projection shutdown command, the projection display screen corresponding to the device to be turned off is determined, and then the device to be turned off is deleted from the projection display screen. It should be noted that after deleting the devices waiting to be turned off on the display screen, the number of projected devices on each display screen may not be evenly distributed. In this case, the number of projected devices on each display screen is obtained, and then, according to the principle of even distribution, one of the projected devices on the display screen with the most projected devices is transferred and projected to the display screen with the fewest projected devices.
[0041] In one embodiment, the device casting method further includes: upon detecting an HDMI cable unplugging command, performing a removal operation on all casting devices on the display screen connected to the HDMI cable. In this embodiment, when each display screen is in a state of separate display, i.e., the images displayed on each display screen are different, when the user unplugs one of the HDMI cables, the removal operation is directly performed on all casting devices on the display screen connected to the HDMI cable, i.e., the images of all casting devices on the display screen connected to that HDMI cable are turned off.
[0042] In one embodiment, Figure 3 This is a flowchart of another device screen mirroring method provided in an embodiment of the present invention. This embodiment further explains the device screen mirroring process based on the above embodiments. Figure 3 As shown, the device projection method in this embodiment includes the following steps:
[0043] S310. Upon receiving a screen mirroring command, determine the number of devices to be mirrored.
[0044] S320: Is the number of devices to be projected 1? If yes, proceed to S330; otherwise, proceed to S360.
[0045] S330. Determine the comparison result between the number of devices projected on the first display screen and the number of devices projected on the second display screen.
[0046] S340. When the number of devices projected onto the first display screen is equal to the number of devices projected onto the second display screen, the target display screen of the device to be projected onto is determined to be the first display screen.
[0047] S350: When the number of devices already projected on the first display screen is greater than the number of devices already projected on the second display screen, the target display screen of the device to be projected is determined to be the second display screen.
[0048] S360: Obtain the screen casting command reception time for each device to be cast.
[0049] In this embodiment, when there are at least two devices to be projected, in order to project the display interface of each device onto the display screen as much as possible, the projection command reception time of each device is obtained. The projection command reception time refers to the time it takes for the projection box to receive the projection command sent by the device to be projected. For example, the projection box can be a MAXHUB WB05 box.
[0050] S370. Determine the screen projection order of each device to be projected based on the order in which the screen projection command is received.
[0051] In this embodiment, the screen casting order of each device to be cast is determined according to the order in which the screen casting command is received. That is, the earlier the screen casting command is received, the earlier the corresponding screen casting order of the device to be cast is.
[0052] S380, based on the principle of average allocation and the principle of priority projection of the first display screen, and according to the number of projection devices on each display screen, the target display screen of each device to be projected is determined in turn.
[0053] In this embodiment, when the number of devices casting to the screen on each display screen is equal, the target display screen corresponding to the device casting to the screen that received the casting command earlier is determined as the first display screen according to the principle of priority casting to the first display screen; then the target display screen of the second device casting to the screen is determined as the secondary screen (e.g., the second display screen) according to the principle of average allocation, and so on, until the target display screen of each device casting to the screen is determined.
[0054] S390. Project and display each device to be projected onto the corresponding target display screen.
[0055] Of course, in actual operation, the projection position of the projected device can also be moved manually by dragging and dropping. For example, assuming there are two projected devices on the main screen and one projected device on the secondary screen, if a projection shutdown command is received from the projected device on the secondary screen, the projected device on the secondary screen can be automatically or manually deleted, and one projected device on the main screen can be manually dragged to the secondary screen so that one projected device is evenly distributed on each display screen.
[0056] Of course, the maximum number of devices that can be displayed on each screen can also be configured. This means that if the number of devices already projected on a screen exceeds the maximum, no more devices will be displayed on that screen. For example, assuming the maximum number of devices that can be displayed on each screen is 9, then the maximum number of devices that can be projected on each screen is 9.
[0057] The technical solution of this embodiment is based on the principle of average allocation and / or the principle of priority projection of the first display screen. According to the number of devices that have been projected and the number of devices to be projected on each display screen, the target display screen of each device to be projected is determined. Each device to be projected is projected and displayed on the corresponding target display screen. This realizes that when multiple devices to be projected are projected, each device to be projected can be projected onto different display screens on an average basis.
[0058] In one embodiment, Figure 4 This is an interactive schematic diagram of device screen projection provided by an embodiment of the present invention. In this embodiment, the process of device screen projection is described using a first display screen as the main screen and a second display screen as the secondary screen. Figure 4 As shown, the device projection process in this embodiment includes the following steps:
[0059] S410 receives screen mirroring commands.
[0060] S420: Is the number of devices to be projected greater than 1? If yes, proceed to S430; otherwise, proceed to S450.
[0061] S430: Is the number of devices to be projected equal to 2? If not, proceed to S440; if yes, proceed to S460.
[0062] S440: Is the number of devices projected onto the main screen greater than the number of devices projected onto the secondary screen? If not, proceed to S450; if yes, proceed to S470.
[0063] S450: Add the device to be projected to the main screen display interface.
[0064] S460, Initialize the secondary screen.
[0065] S470: Add the device to be projected to the secondary screen's display interface.
[0066] In this embodiment, when a user starts screen mirroring, if there is only one device to be mirrored (i.e., there are 0 devices that have already mirrored and 1 device to be mirrored), the device to be mirrored will be displayed on both the main screen and the secondary screen. In other words, the main screen and the secondary screen are equivalent to a duplicate screen.
[0067] When the second device to be cast (i.e., there is 1 device already cast on the main screen and 0 devices already cast on the secondary screen) needs to cast, the secondary screen is initialized (using the Presentation feature of the Android system), and the second device to be cast is added to the secondary screen.
[0068] When there are more than two devices waiting to be cast, determine if the number of devices already cast on the main screen is greater than the number of devices already cast on the secondary screen. The number of devices already cast on the main screen and the secondary screen can be recorded in a single management program. Casting is performed according to the principle of average distribution and the principle of priority for casting to the main screen. When the number of devices already cast on the main screen and the secondary screen are equal, the first device waiting to be cast is cast directly to the main screen, and then the second device waiting to be cast is cast to the secondary screen. For example, if there is one device already cast on the main screen and one device already cast on the secondary screen, the device waiting to be cast is added to the main screen. When the number of devices already cast on the main screen is greater than the number of devices already cast on the secondary screen, the device waiting to be cast is added to the secondary screen. For example, if there are two devices already cast on the main screen and one device already cast on the secondary screen, the device waiting to be cast is added to the secondary screen. The technical solution of this embodiment allows for the projection of multiple devices onto two displays, enabling the display of different devices onto different displays and distributing the images of multiple devices onto different displays evenly.
[0069] In one embodiment, Figure 5 This is another interactive diagram of device screen mirroring provided by an embodiment of the present invention. In this embodiment, taking the first display screen as the main screen and the second display screen as the secondary screen as an example, the process of device screen mirroring is explained when a screen mirroring shutdown command is received. Figure 5 As shown, the device projection process in this embodiment includes the following steps:
[0070] S510 receives the command to turn off screen mirroring.
[0071] S520: Is the device to be turned off on the main screen? If yes, proceed to S530; otherwise, proceed to S540.
[0072] S530: Delete the device to be turned off on the main screen display interface.
[0073] S540: Delete the device to be turned off on the secondary screen display interface.
[0074] S550. After turning off the screen mirroring of the device to be turned off, check if the number of devices that have already mirrored on the main screen is greater than the number of devices that have already mirrored on the secondary screen. If yes, proceed to S560; otherwise, proceed to S580.
[0075] S560, delete the first projected device on the home screen.
[0076] S570: Add the first screen-casting device that was deleted from the main screen to the display interface of the secondary screen.
[0077] S580. Is the number of devices projected on the main screen less than the number of devices projected on the secondary screen? If so, proceed to S590.
[0078] S590, delete the first projected device on the secondary screen.
[0079] S5100: Add the first screen-casting device that was deleted from the secondary screen to the display interface of the main screen.
[0080] In this embodiment, when a user closes a screen-casting device, the display screen containing the device to be closed is determined. This involves deleting the display screen containing the device, or removing the device from its display. Then, the screen-casting devices are evenly distributed according to an equal distribution principle. For example, if there are two screen-casting devices on the main screen and one on the secondary screen, and the device on the secondary screen is the one to be closed, after deleting the secondary screen, one of the screen-casting devices on the main screen is moved to the secondary screen. Thus, each of the two displays shows the screen of one screen-casting device.
[0081] In one embodiment, Figure 6 This is another interactive schematic diagram of device screen projection provided by an embodiment of the present invention. In this embodiment, taking the first display screen as the main screen and the second display screen as the secondary screen as an example, the process of device screen projection is explained when an HDMI disconnect command is received. Figure 6 As shown, the device projection process in this embodiment includes the following steps:
[0082] S610 receives the HDMI cable disconnection command.
[0083] S620: Is the HDMI1 cable that was unplugged? If yes, proceed to S630; otherwise, proceed to S640.
[0084] S630: Delete all projected devices displayed on the home screen.
[0085] S640: Delete all projected devices displayed on the secondary screen.
[0086] S650: When using a single HDMI cable, insert another HDMI cable.
[0087] S660, Initialize the secondary screen.
[0088] S670. Is the number of devices already projected on the main screen greater than the number of devices already projected on the secondary screen? If so, proceed to S680.
[0089] S680, delete the first projected device on the home screen.
[0090] S690: Add the first screen-casting device that was deleted from the main screen to the display interface of the secondary screen, and return to S670.
[0091] In this embodiment, when the two displays are used for dual-screen display, if the user unplugs one of the HDMI cables, all projected devices on the display corresponding to that HDMI cable are removed. For example, assuming there are three projected devices on the main screen and two projected devices on the secondary screen, if the user unplugs HDMI1, all projected devices on the main screen corresponding to HDMI1 are turned off.
[0092] In one embodiment, Figure 7 This is a structural block diagram of a device projection apparatus provided in an embodiment of the present invention. This apparatus is suitable for evenly projecting multiple devices onto different displays. The apparatus can be implemented in hardware or software. Figure 7 As shown, the device includes: a first determining module 710, a second determining module 720, and a projection module 730.
[0093] The first determining module 710 is used to determine the number of devices to be projected when a projection instruction is received.
[0094] The second determining module 720 is used to determine the target display screen for each device to be projected based on the principle of average allocation and / or the principle of priority projection of the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected on each display screen obtained in advance.
[0095] The projection module 730 is used to project and display each device to be projected onto the corresponding target display screen.
[0096] The technical solution of this embodiment determines the number of devices to be projected upon receiving a projection command, and based on the principle of average allocation and / or the principle of priority projection to the first display screen, and determines the target display screen for each device to be projected according to the number of devices already projected on each display screen and the number of devices to be projected on each display screen in advance, and projects and displays each device to be projected onto the corresponding target display screen, thereby achieving the goal of evenly projecting each device to be projected onto different display screens when there are multiple devices to be projected.
[0097] Based on the above embodiments, the device projection device further includes:
[0098] The third determining module is used to determine the projection display screen corresponding to the device to be turned off when a screen projection shutdown command is received;
[0099] The deletion module is used to receive deletion instructions for devices to be turned off on the projection display screen, so as to delete the devices to be turned off;
[0100] The allocation module is used to distribute the projected devices evenly to each display screen according to the principle of average allocation.
[0101] Based on the above embodiments, the device projection device further includes:
[0102] The removal module is used to remove all projected devices on the display connected to the HDMI cable when a disconnection command is detected.
[0103] Based on the above embodiments, when two displays are used for screen projection and the number of devices to be projected is one, the second determining module includes:
[0104] The first determining unit is used to determine the comparison result between the number of devices projected on the first display screen and the number of devices projected on the second display screen;
[0105] The second determining unit is used to determine the target display screen of the device to be projected as the first display screen when the number of projected devices on the first display screen is equal to the number of projected devices on the second display screen.
[0106] The third determining unit is used to determine the target display screen of the device to be projected as the second display screen when the number of devices projected on the first display screen is greater than the number of devices projected on the second display screen.
[0107] Based on the above embodiments, when two displays are used for screen projection and the number of devices to be projected is at least two, the device projection device further includes:
[0108] The acquisition module is used to acquire the screen casting instruction reception time of each device to be cast before determining the target display screen of each device to be cast based on the number of devices already cast to the screen and the number of devices to be cast to the screen on each display screen.
[0109] Based on the above embodiments, when the number of devices to be projected is at least two, the second determining module includes:
[0110] The fourth determining unit is used to determine the screen projection order of each device to be projected based on the order in which the screen projection instructions are received.
[0111] The fifth determining unit is used to determine the target display screen for each device to be projected based on the principle of average allocation and the principle of priority projection of the first display screen, and according to the number of devices already projected on each display screen.
[0112] Based on the above embodiments, the device to be projected and the display screen are in the same wireless network, and the display screen and the projection box are connected via an HDMI cable.
[0113] The above-mentioned device projection device can execute the device projection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the device projection method.
[0114] Figure 8 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. The device in this embodiment is illustrated using a screen mirroring box as an example. Figure 8 As shown, the screen mirroring box provided in this embodiment of the invention includes: a processor 810, a memory 820, an input device 830, an output device 840, and a communication module 850. The processor 810 in this screen mirroring box can be one or more. Figure 8 Taking a processor 810 as an example, the processor 810, memory 820, input device 830, output device 840, and communication module 850 in the projection box can be connected via a bus or other means. Figure 8 Taking the example of a connection between China and Israel via a bus.
[0115] The memory 820 in the screen mirroring box serves as a computer-readable storage medium, which can be used to store one or more programs. These programs can be software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the screen mirroring method provided in this embodiment of the invention (e.g., [example]). Figure 6 The modules in the device projection device shown include: a first determining module 610, a second determining module 620, and a projection module 630. The processor 810 executes various functional applications and data processing of the projection box by running software programs, instructions, and modules stored in the memory 820, thereby realizing the device projection method in the above method embodiment.
[0116] The memory 820 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the device. Furthermore, the memory 820 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 820 may further include memory remotely located relative to the processor 810, which can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0117] Input device 830 can be used to receive numeric or character information input by the user to generate key signal inputs related to user settings and function control of the terminal device. Output device 840 may include a display device such as a screen. Communication module 850 is used to establish a communication connection between the device to be projected and the display screen.
[0118] Furthermore, when one or more programs included in the aforementioned cloud server are executed by one or more processors 810, the programs perform the following operations: upon receiving a screen projection instruction, determine the number of devices to be projected; based on the principle of average allocation and / or the principle of priority projection for the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected, determine the target display screen for each device to be projected; and project and display each device to be projected onto the corresponding target display screen.
[0119] This invention also provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements the device projection method provided in this invention. The method includes: upon receiving a projection instruction, determining the number of devices to be projected; based on an average allocation principle and / or a principle that the first display screen is given priority for projection, and according to the number of devices already projected on each display screen and the number of devices to be projected, determining the target display screen for each device to be projected; and projecting and displaying each device to be projected onto the corresponding target display screen.
[0120] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0121] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0122] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0123] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0124] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A method for projecting a device screen, characterized in that, include: Upon receiving a screen mirroring command, determine the number of devices to be mirrored; Based on the principle of average allocation and / or the principle of priority projection of the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected, the target display screen of each device to be projected is determined; wherein, the first display screen is the main screen among all display screens in the same area, and the first display screen is located in the core position of the area. Project and display each of the devices to be projected onto the corresponding target display screen; Specifically, when there is only one device to be projected onto, and the number of devices already projected onto each display screen is equal, the target display screen for the device to be projected onto is determined based on the principle that the first display screen is given priority for projecting onto. When there is only one device to be projected onto, and the number of devices already projected onto each display screen is unequal, the target display screen for the device to be projected onto is determined based on the principle of equal distribution. When there are multiple devices to be projected onto, the target display screen for each device to be projected onto is determined based on the principle of equal distribution and the principle that the first display screen is given priority for projecting onto, and according to the number of devices already projected onto each display screen.
2. The method according to claim 1, characterized in that, The method further includes: Upon receiving a screen mirroring shutdown command, determine the projection display screen corresponding to the device to be turned off; Receive a deletion command for the device to be turned off on the display screen, and delete the device to be turned off; Based on the principle of equal distribution, the projected devices are evenly distributed to each display screen.
3. The method according to claim 1, characterized in that, The method further includes: When a disconnection command for the HDMI cable is detected, all projected devices on the display screen connected to the HDMI cable are removed.
4. The method according to claim 1, characterized in that, When using two displays for screen mirroring, and the number of devices to be mirrored is one, the determination of the target display for each device to be mirrored, based on the principle of average allocation and / or the principle of priority mirroring of the first display, and according to the number of devices already mirrored on each display and the number of devices to be mirrored, includes: Determine the comparison result between the number of devices projecting on the first display screen and the number of devices projecting on the second display screen; When the number of devices projecting onto the first display screen is equal to the number of devices projecting onto the second display screen, the target display screen of the device to be projected onto is determined to be the first display screen; When the number of devices projecting onto the first display screen is greater than the number of devices projecting onto the second display screen, the target display screen for the device to be projected onto is determined to be the second display screen.
5. The method according to claim 1, characterized in that, When using two displays for screen projection, and the number of devices to be projected is at least two, before determining the target display for each device to be projected based on the number of devices already projected on each display and the number of devices to be projected, the method further includes: Get the screen casting command reception time for each device to be cast.
6. The method according to claim 5, characterized in that, When the number of devices to be projected is at least two, the determination of the target display screen for each device to be projected, based on the principle of average allocation and / or the principle of priority projection for the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected, includes: The screen casting order of each device to be cast is determined according to the order in which the screen casting instructions are received. Based on the principle of average allocation and the principle of priority for the first display screen to be projected, the target display screen of each device to be projected is determined sequentially according to the number of devices already projected on each display screen.
7. The method according to any one of claims 1-6, characterized in that, The device to be projected and the display screen are on the same wireless network, and the display screen and the projection box are connected via an HDMI cable.
8. A device projection apparatus, characterized in that, include: The first determining module is used to determine the number of devices to be projected when a projection instruction is received; The second determining module is used to determine the target display screen for each device to be projected based on the principle of average allocation and / or the principle of priority projection of the first display screen, and according to the number of devices already projected on each display screen and the number of devices to be projected on each display screen obtained in advance; wherein, the first display screen is the main screen among all display screens in the same area, and the first display screen is located in the core position of the area. The projection module is used to project and display each of the devices to be projected onto the corresponding target display screen. Specifically, when there is only one device to be projected onto, and the number of devices already projected onto each display screen is equal, the target display screen for the device to be projected onto is determined based on the principle that the first display screen is given priority for projecting onto. When there is only one device to be projected onto, and the number of devices already projected onto each display screen is unequal, the target display screen for the device to be projected onto is determined based on the principle of equal distribution. When there are multiple devices to be projected onto, the target display screen for each device to be projected onto is determined based on the principle of equal distribution and the principle that the first display screen is given priority for projecting onto, and according to the number of devices already projected onto each display screen.
9. An electronic device, characterized in that, The device includes: a communication module, a memory, and one or more processors; The communication module is used to establish a communication connection between the device to be projected and the display screen; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the device projection method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the device projection method as described in any one of claims 1-7.
Citation Information
Patent Citations
Display control method and electronic apparatus
CN107690612A
Wireless screen transmission display system and display method
CN111601120A