Screen projection method and device, equipment and storage medium
By using the direction perpendicular to the display plane in the screen projection technology to stack and flexibly operate the screen projection windows, the problem of window management and display efficiency in multi-person collaboration scenarios is solved, and multi-tasking windows and split-screen support are realized. Improved user experience and operational efficiency.
Patent Information
- Application Number
- CN202310285234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-27
AI Technical Summary
Existing screen projection technology cannot effectively manage and operate multi-channel projection images, especially in multi-person collaboration scenarios. It cannot flexibly adjust the window size and position, resulting in a waste of display space and resolution.
By obtaining requests from multiple screen projection devices, create a screen projection window for stacked display, and support top, delete, move, zoom and switch operations, and use window management in a direction perpendicular to the display plane to achieve a flexible screen Show and adjust.
It realizes the need for multi-person screen projection collaboration, avoids the loss of display space and resolution when there are too many screen projection devices, improves user experience and operating efficiency, and supports multi-tasking windows and split-screen display.
Smart Images

Figure CN118708141A
Abstract
Description
Technical Field
[0001] The present application relates to the field of screen projection technology, and in particular to a screen projection method, device, equipment and storage medium. Background Art
[0002] In current screen projection applications, the presentation of screen projection content is done by rendering the projection content in a single full-screen window or in a grid-tiled arrangement. When a single full-screen window is used to display multiple projections, all windows cannot be displayed. Only the latest projection window can be displayed, and the windows cannot be freely and flexibly operated, such as stacking, window scaling, moving, switching, etc. When the projection content window is rendered in a grid-tiled arrangement, the window size and position are fixed and cannot be adjusted dynamically, and the projection content is small. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a screen projection method, device, equipment and storage medium, which can more efficiently manage and operate multiple screen projection images.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a screen projection method, the method comprising:
[0006] Obtain at least two screen projection requests from at least two screen projection devices;
[0007] Based on the at least two screen projection requests, create at least two screen projection windows, wherein each of the at least two screen projection windows is used to display the projection content of a screen projection device;
[0008] Based on the at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane, the at least two projection screen windows are stacked and displayed.
[0009] In the above scheme, the method further includes:
[0010] Get the preset operation instructions for the target projection screen window;
[0011] Based on the preset operation instruction, perform corresponding operations on the target projection screen window;
[0012] The preset operation instruction includes at least one of the following:
[0013] The first command for setting the window on top;
[0014] A second instruction for deleting the window;
[0015] A third instruction for moving the window;
[0016] A fourth instruction for scaling the window;
[0017] The fifth instruction is used to switch windows.
[0018] In the above scheme, the method comprises:
[0019] The method further comprises:
[0020] Obtaining a preview display request for displaying at least two of the projection screen windows;
[0021] Based on the preview display request, determining arrangement position information of the preview display windows corresponding to at least two of the projection screen windows;
[0022] Determine the window size parameters and preview display spacing parameters of the preview display window of each row based on the arrangement position information, the original window size parameters of each projection screen window, and the plane size data of the projection screen display area;
[0023] At least two of the projection screen windows are previewed and displayed based on the arrangement position information, the window size parameter of the preview display window and the preview display spacing parameter.
[0024] In the above scheme, the method further includes:
[0025] Get split-screen operation instructions for the projection display area;
[0026] Based on the split-screen operation instruction, determine the target split-screen window and control the projection display area to be divided into a first split-screen window and a second split-screen window; wherein the target split-screen window is a projection screen window selected based on the split-screen operation instruction, the first split-screen window is used to display the target split-screen window, and the second split-screen window is used to display the remaining projection screen windows other than the target split-screen window;
[0027] Based on the first split-screen window, the second split-screen window and the set split-screen ratio, the projection display area is split-screen displayed; wherein the set split-screen ratio is used to determine the proportional relationship between the first split-screen window and the second split-screen window.
[0028] In the above scheme, the method further includes:
[0029] The arrangement position information includes: an arrangement order of the preview display windows, a number of arrangement rows of the preview display windows, and a number of preview display windows in each row, and the determining, based on the preview display request, arrangement position information of the preview display windows corresponding to at least two of the projection screen windows includes:
[0030] Get the projection time of each projection screen window, the number of at least two projection screen windows, and the preview limit number of each row of projection screen windows;
[0031] Determining an arrangement order of the preview display windows based on the projection time of each projection screen window;
[0032] Determining the number of arrangement rows of the preview display windows based on the number of the at least two projection screen windows and the preview limit number of each row of projection screen windows;
[0033] The number of preview display windows in each row is determined based on the number of the at least two projection screen windows, the original window size parameters of each projection screen window, the number of arrangement rows of the preview display windows and a first ratio, wherein the first ratio represents the aspect ratio of a single row of the projection display area after being divided based on the number of arrangement rows.
[0034] In the above scheme, the window size parameters include: the width value and the height value of the window, and the window size parameters and the preview display spacing parameters of each row of the preview display window are determined based on the arrangement position information, the original window size parameters of each of the projection screen windows, and the plane size data of the projection display area, including:
[0035] Determine the width and height of the preview display window in each row based on the arrangement position information and the original width and height of each projection screen window;
[0036] The preview display spacing parameter is determined based on the arrangement position information, the width value and the height value of the preview display window of each row, and the plane size data of the projection display area.
[0037] In the above scheme, the arrangement position information includes: the arrangement order of the preview display windows, the number of arrangement rows of the preview display windows and the number of preview display windows in each row, and the width value and height value of the preview display windows in each row are determined based on the arrangement position information and the original width value and original height value of each projection screen window, including:
[0038] Obtaining a second ratio, a third ratio, and a fourth ratio, wherein the second ratio is the maximum aspect ratio of the preview display window, and the maximum aspect ratio is the ratio of the maximum display width value of the preview display window to the default height value of the preview display window; the third ratio is the ratio of the initial width value of each preview display window in each row to the width value of the projection display area; and the fourth ratio is the ratio of the initial width value of each preview display window in each row to the default height value of the preview display window;
[0039] Based on the original aspect ratio, the second ratio and the third ratio of each projection screen window in each row, determine whether the initial width value of each preview display window in each row is adjusted; if not, based on the initial width value of each preview display window, the original aspect ratio of each projection screen window and the fourth ratio, determine whether the width value and height value of the preview display window in each row are the default width value and default height value of the preview display window or the initial width value and initial height value of the preview display window;
[0040] If so, based on the original aspect ratio of each projection screen window in each row and the maximum display width value of the preview display window, the width value of each preview display window in each row is adjusted to determine the height value of each preview display window in each row after adjustment;
[0041] Based on the adjusted height value and the adjusted width value, a width value and a height value of the preview display window of each row are generated.
[0042] In a second aspect, an embodiment of the present application provides a screen projection device, the device comprising:
[0043] An acquisition module, used to acquire at least two screen projection requests from at least two screen projection devices;
[0044] A creation module, used to create at least two projection screen windows based on the at least two projection screen requests, wherein each of the at least two projection screen windows is used to display the projection content of a projection device;
[0045] The display module is used to stack and display the at least two projection screen windows based on the at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane.
[0046] In a third aspect, an embodiment of the present application provides a screen projection device, the electronic device comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein:
[0047] The processor is used to execute the steps of implementing the screen projection method provided in the first aspect when running the computer program.
[0048] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the screen projection method provided in the first aspect are implemented.
[0049] The technical solution provided by the embodiment of the present application obtains at least two projection requests from at least two projection devices; based on the at least two projection requests, creates at least two projection screen windows, wherein each projection screen window in the at least two projection screen windows is used to display the projection content of a projection device; based on the at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane, the at least two projection screen windows are stacked and displayed. In this way, each projection screen is no longer forced to be tiled, but each projection screen is presented in a windowed manner based on a direction perpendicular to the display plane, avoiding the problem of sacrificing display space and resolution due to too many projection devices, while also meeting the needs of multi-person projection collaboration and achieving flexible screen display and adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flowchart of a screen projection method provided in one embodiment of the present application;
[0051] Figure 2 A schematic diagram of a window-type overlay of a projection screen in an application example of the present application;
[0052] Figure 3 A schematic diagram of a multi-tasking window in an application example of the present application;
[0053] Figure 4 This is a schematic diagram of splitting the screen projection window into two parts in an application example of this application;
[0054] Figure 5 A schematic diagram of the structure of a screen projection device provided in an embodiment of the present application;
[0055] Figure 6 A schematic diagram of the structure of a screen projection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0058] The present application embodiment provides a screen projection method, which can be applied to a screen projection device. Figure 1 A schematic diagram of the implementation process of a screen projection method provided in an embodiment of the present application is shown in FIG. Figure 1 Said method mainly comprises the following steps:
[0059] Step 110: Obtain at least two screen projection requests from at least two screen projection devices.
[0060] Here, the screen projection device includes but is not limited to at least one of the following: a mobile phone, a computer, and a tablet device. Here, at least two screen projection devices can be devices of the same type or devices of different types, and this application does not limit this.
[0061] Step 120: Based on at least two screen projection requests, create at least two screen projection windows, wherein each of the at least two screen projection windows is used to display the projection content of a screen projection device.
[0062] Here, each projection device corresponds to a projection request, and each projection request corresponds to a projection screen window, which is used to display the projection content of the projection device. For at least two projection requests, at least two projection screen windows are created, and each of the at least two projection screen windows is used to display the projection content of a projection device.
[0063] Step 130: Based on the at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane, at least two projection screen windows are stacked and displayed.
[0064] Here, based on a preset stacking order in a direction perpendicular to the display plane, at least two projection screen windows are stacked and displayed. Exemplarily, the preset stacking order in a direction perpendicular to the display plane may be a Z order, which is a virtual axis extending outward from the display plane. If the width of the screen is regarded as the X-axis and the height of the screen is regarded as the Y-axis, the virtual axis is the Z-axis perpendicular to these two axes. Generally speaking, the window at the top of the Z order can be set to cover all other windows, and the window at the bottom of the Z order can be covered by other windows. After determining the stacking order of the projection screen windows, at least two projection screen windows can be superimposed and displayed in sequence according to the stacking order.
[0065] By obtaining at least two projection requests from at least two projection devices; based on the at least two projection requests, creating at least two projection screen windows, wherein each of the at least two projection screen windows is used to display the projection content of a projection device; based on the at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane, the at least two projection screen windows are stacked and displayed. In this way, each projection screen is no longer forced to be tiled, but multiple projection screen windows are stacked and displayed in a windowed manner based on a direction perpendicular to the display plane, avoiding the problem of sacrificing display space and resolution due to too many projection devices, and at the same time facilitating subsequent operations such as scaling and dragging of windows, so that flexible screen display and adjustment can be achieved.
[0066] In some embodiments, the method further comprises:
[0067] Get the preset operation instructions for the target projection screen window;
[0068] Based on the preset operation instructions, perform corresponding operations on the target projection screen window;
[0069] The preset operation instruction includes at least one of the following:
[0070] The first command for setting the window on top;
[0071] A second instruction for deleting the window;
[0072] A third instruction for moving the window;
[0073] A fourth instruction for scaling the window;
[0074] The fifth instruction is used to switch windows.
[0075] Here, the correspondence between preset operations and preset operation instructions will be pre-stored in the projection device, and the preset operation instructions include at least one of the following: a first instruction for pinning a window; a second instruction for deleting a window; a third instruction for moving a window; a fourth instruction for scaling a window; and a fifth instruction for switching windows.
[0076] It can be understood that the target projection screen window can be at least one projection screen window in the aforementioned stacked display.
[0077] For example, taking the moving operation as an example, the target projection screen window can be selected based on the mouse and moved along the set direction as the corresponding instruction, as shown in the following example:
[0078] Horizontal rightward movement operation: Generates a rightward movement instruction, which can also include the movement distance;
[0079] Horizontal left movement operation: Generates a left movement instruction, which can also include the moving distance;
[0080] Vertical downward movement operation: Generates a downward movement instruction, which can also include the moving distance;
[0081] Vertical upward movement operation: Generates an upward movement instruction, which can also include the moving distance.
[0082] Here, the window switching operation refers to switching the stacking order between two stacked projection screen windows.
[0083] Exemplarily, when each projection screen window is displayed in a stacked manner, a projection screen window that is relatively later in the stacking order will be covered by a projection screen window that is relatively earlier in the stacking order and cannot be fully displayed. When it is necessary to switch the position of a specific projection screen window to the target projection screen window position, for example, when the position of the specific projection screen window is switched to a projection screen window position that is relatively earlier or relatively later in the stacking order, the projection device can pre-set a gesture switching operation and a window switching rule. When the gesture switching operation is performed on the switching window, a window switching instruction is triggered. Based on the window switching instruction and the window switching rule, the stacking order of at least two projection screen windows is switched. In this way, the projection device does not need to perform additional projection operations to achieve arbitrary switching between the stacking orders of projection screen windows.
[0084] In this way, by operating the window with the mouse or flying mouse, the projection screen window can be pinned, closed, moved, scaled, switched, and the like. In this way, when supplementing the information on the projection screen, the user can perform the above operations on the projection screen window as needed, without the need to frequently switch the stacking order between the projection screens, thereby improving the user experience and operating efficiency.
[0085] In some embodiments, the method further comprises:
[0086] Obtain a preview display request for displaying at least two projection screen windows;
[0087] Based on the preview display request, determining arrangement position information of the preview display windows corresponding to at least two projection screen windows;
[0088] Determine the window size parameters and preview display spacing parameters of the preview display window of each row based on the arrangement position information, the original window size parameters of each projection screen window and the plane size data of the projection screen display area;
[0089] At least two projection screen windows are previewed and displayed based on the arrangement position information, the window size parameters of the preview display window, and the preview display spacing parameters.
[0090] Here, after the projection screen windows are stacked and displayed, at least two projection screen windows can also be previewed and displayed.
[0091] Here, the arrangement position information is used to characterize the arrangement position of at least two preview display windows. Here, the original size parameters of each projection screen window refer to the size parameters of each projection screen window stacked and displayed in the projection display area before preview display. The projection display area here is the display area of all projection devices; after determining the arrangement position information, the window size parameters of the preview display window and the preview display spacing parameters, at least two projection screen windows are previewed. By calculating the optimal arrangement position information, the maximum preview display window is displayed as much as possible by maximizing the window presentation.
[0092] In some embodiments, the method further comprises:
[0093] Get split-screen operation instructions for the projection display area;
[0094] Based on the split-screen operation instruction, determine the target split-screen window and control the projection display area to be divided into a first split-screen window and a second split-screen window; wherein the target split-screen window is a projection screen window selected based on the split-screen operation instruction, the first split-screen window is used to display the target split-screen window, and the second split-screen window is used to display the remaining projection screen windows other than the target split-screen window;
[0095] Based on the first split-screen window, the second split-screen window and the set split-screen ratio, the projection display area is split-screen displayed; wherein the set split-screen ratio is used to determine the proportional relationship between the first split-screen window and the second split-screen window.
[0096] Here, after stacking or previewing the projection screen, the target split-screen window can be determined based on the split-screen operation instructions for the projection display area, and the projection display area can be controlled to be divided into a first split-screen window and a second split-screen window.
[0097] Here, the split-screen operation can be set to drag the target window to the edge of the screen, wherein the target split-screen window is the projection screen window selected based on the split-screen operation instruction, the first split-screen window is used to display the target split-screen window, and the second split-screen window is used to display the remaining projection screen windows outside the target split-screen window; here, the display method of displaying the remaining projection screen windows outside the target split-screen window in the second split-screen window can be the above-mentioned stacked display or the above-mentioned preview display.
[0098] Exemplarily, when there is one target split-screen window, dragging the target window to the edge of the screen triggers the split-screen operation instruction, and the projection display area is divided into a first split-screen window and a second split-screen window. At this time, the projection display area is in a two-split-screen state, and the first split-screen window displays one target split-screen window, and the second split-screen window stacks and displays the remaining projection screen windows or previews the remaining screen windows.
[0099] In some embodiments, when there are at least two target split-screen windows, in the above-mentioned two-split-screen state, dragging at least one target split-screen window to the edge of the screen triggers a split-screen operation instruction, and the projection display area is divided into a first split-screen window and a second split-screen window. The first split-screen window displays at least two target split screens, and the second split-screen window stacks and displays the remaining projection screen windows or previews the remaining screen windows.
[0100] In some embodiments, the split screen ratio can be preset to determine the ratio between the first split screen window and the second split screen window. Then, based on the first split screen window, the second split screen window and the set split screen ratio, the projection display area is split screen displayed.
[0101] In some embodiments, the arrangement position information includes: an arrangement order of the preview display windows, the number of arrangement rows of the preview display windows, and the number of preview display windows in each row. Based on the preview display request, determining the arrangement position information of the preview display windows corresponding to at least two projection screen windows includes:
[0102] Get the projection time of each projection screen window, the number of at least two projection screen windows, and the preview limit number of each row of projection screen windows;
[0103] Determine the arrangement order of the preview display windows based on the projection time of each projection screen window;
[0104] Determine the number of rows of the preview display windows based on the number of at least two projection screen windows and the preview limit number of each row of projection screen windows;
[0105] Based on the number of at least two projection screen windows, the original window size parameters of each projection screen window, the number of arrangement rows of preview display windows and the first ratio, the number of preview display windows in each row is determined. The first ratio represents the aspect ratio of a single row after the projection display area is divided based on the number of arrangement rows.
[0106] Here, the arrangement position information of the preview display windows includes the arrangement order of the preview display windows, the number of arrangement rows of the preview display windows, and the number of preview display windows in each row.
[0107] Here, the arrangement order of the preview display windows is generated based on the projection time of each projection screen window. For each projection screen window, the arrangement order of the preview display windows can be determined based on the sequence of the projection time of each projection screen window. For example, if there are 8 projection screen windows, the 8 projection screen windows can be sorted in sequence according to the sequence of the projection time of the 8 projection screen windows, 1, 2, 3...8.
[0108] Here, the preview limit number of each row of projection screen windows refers to the projection screen display area. Due to the size limit of the projection screen display area, the projection screen display area limits the preview number of each row of projection screen windows. Exemplarily, the preview limit number of each row of projection screen windows can be set to 3. Based on the number of at least two projection screen windows and the preview limit number of each row of projection screen windows, the number of rows of the preview display windows is determined.
[0109] Here, the original window parameters of each projection screen refer to the window size parameters after each projection screen window is stacked and displayed, and the first ratio is the aspect ratio of a single row after the projection display area is divided based on the number of rows. For example, M represents the number of rows, W0 represents the width value of the projection display area, H0 represents the height value of the projection display area, T0 represents the aspect ratio of the projection display area, T0 = W0 / H0, at this time, the first ratio is:
[0110]
[0111] In some embodiments, determining the number of rows of the preview display windows based on the number of at least two projection screen windows and the preview limit number of each row of projection screen windows includes:
[0112] If the number of at least two projection windows is less than the preview limit number of projection windows in each row, the preview display windows are arranged in one row;
[0113] If the number of at least two projection screen windows is greater than or equal to the preview limit number of projection screen windows in each row, the number of arrangement rows of the preview display windows is determined based on the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row.
[0114] Exemplarily, taking the example that the preview limit number of projection screen windows in each row is 3, if the number of at least two projection screen windows is less than 3, for example 2, the number of rows of the preview display windows is 1.
[0115] Here, if the number of projection screen windows is greater than or equal to 3, the number of rows of the preview display windows is determined based on the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row. If the number of at least two projection screen windows is equal to the preview limit number 3, the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row is 1, and the number of rows of the preview display windows can be 1 or two. If the number of at least two projection screen windows is greater than the preview limit number 3, if the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row is an integer, the number of rows of the preview display windows is equal to the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row; if it is not an integer, the number of rows of the preview display windows is the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row plus 1.
[0116] Exemplarily, if the number of at least two projection screen windows is 8, the ratio of the number of at least two projection screen windows to the preview limit number of each row of projection screen windows is 2.66, and 2.66 is not an integer. Then the number of preview display windows in each row is 2.66, which is the integer 2 plus 1, which is 3 rows.
[0117] In some embodiments, based on the number of at least two projection screen windows, the original window size parameters of each projection screen window, the number of rows of the preview display windows, and the first ratio, determining the number of preview display windows in each row includes:
[0118] If it is determined that the number of rows is only one, the number of preview display windows in each row is the number of the at least two projection screen windows;
[0119] If the number of rows is at least two, then determine whether the order of the rows is the last two rows.
[0120] If it is the last two rows, compare the sum of the original aspect ratios of the first half of the preview display windows in the last two rows with the size of the first ratio; if the sum of the original aspect ratios of the first half of the number of projection screen windows in the last two rows is greater than the first ratio, then the number of preview display windows in the first row of the last two rows is less than or equal to the number of preview display windows in the second row; if the sum of the original aspect ratios of the first half of the number of projection screen windows in the last two rows is less than the first ratio, then the number of preview display windows in the first row of the last two rows is greater than the number of preview display windows in the second row;
[0121] If it is not the last two rows, the number of preview display windows in each row is the preview limit number of projection screen windows in each row.
[0122] In some embodiments, the window size parameters include: a width value and a height value of the window, and based on the arrangement position information, the original window size parameters of each projection screen window, and the plane size data of the projection display area, the window size parameters and the preview display spacing parameters of each row of the preview display window are determined, including:
[0123] Determine the width and height of the preview display window in each row based on the arrangement position information and the original width and height of each projection screen window;
[0124] The preview display spacing parameters are determined based on the arrangement position information, the width and height values of the preview display window of each row, and the plane size data of the projection display area.
[0125] Here, the plane size data of the projection display area can be expressed in width and height. After determining the arrangement position information of the preview display window, the width value and height value of the preview display window of each row are determined based on the arrangement position information and the original width value and original height value of each projection screen window. After determining the width and height value of the preview display window of each row, the preview display spacing parameter is determined based on the arrangement position information, the width value and height value of the preview display window of each row, and the plane size data of the projection display area.
[0126] In some embodiments, the arrangement position information includes: the arrangement order of the preview display windows, the number of arrangement rows of the preview display windows, and the number of preview display windows in each row. Based on the arrangement position information and the original width value and the original height value of each projection screen window, the width value and the height value of the preview display window in each row are determined, including:
[0127] Obtaining a second ratio, a third ratio, and a fourth ratio, wherein the second ratio is the maximum aspect ratio of the preview display window, and the maximum aspect ratio is the ratio of the maximum display width value of the preview display window to the default height value of the preview display window; the third ratio is the ratio of the initial width value of each preview display window in each row to the width value of the projection display area; and the fourth ratio is the ratio of the initial width value of each preview display window in each row to the default height value of the preview display window;
[0128] Based on the original aspect ratio, the second ratio and the third ratio of each projection screen window in each row, determine whether the initial width value of each preview display window in each row is adjusted; if not, based on the initial width value of each preview display window, the original aspect ratio of each projection screen window and the fourth ratio, determine whether the width value and height value of the preview display window in each row are the default width value and default height value of the preview display window or the initial width value and initial height value of the preview display window;
[0129] If so, based on the original aspect ratio of each projection screen window in each row and the maximum display width value of the preview display window, the width value of each preview display window in each row is adjusted to determine the height value of each preview display window in each row after adjustment;
[0130] Based on the adjusted height value and the adjusted width value, a width value and a height value of the preview display window of each row are generated.
[0131] In some embodiments, the maximum display width of the preview display window refers to the maximum width of the preview display window occupied by the projection display width, and the default height of the preview display window is the default height of the projection screen display window for preview display.
[0132] For example, W0 represents the width of the projection display area. Generally speaking, the maximum display width of the preview display window is 0.9W0. H0 represents the height of the projection display area. T0 represents the aspect ratio of the projection display area. T0 = W0 / H0. The default height of the preview display window is αH0, where α is determined by the number of rows M. The second ratio B is
[0133]
[0134] For example, using W i Indicates the original width of each projection window, H i Represents the original height value. Use W i ** Indicates the initial width of each preview display window, with W i * Indicates the adjusted width of each preview display window. The third ratio C i for:
[0135] C i =W i ** / W0
[0136] Fourth Ratio D i for:
[0137] D i =W i ** / αH0
[0138] The original aspect ratio of each projection window can be expressed as:
[0139] T i =W i / H i
[0140] Based on T i , B and C i, determine whether the width value of the preview display window is adjusted, if not, based on the initial width value of each preview display window, the original aspect ratio T of each projection screen window i and the fourth ratio D i , determining whether the width value and the height value of the preview display window of each row are the default width value and the default height value of the preview display window or the initial width value and the initial height value of the preview display window;
[0141] When the width and height of the preview display window of each row are the default width and height of the preview display window, the default width of the preview display window is based on the default height and T i The original aspect ratio of the projection window is generated. The default height value is αH0, and the default width value is αH0×T i .
[0142] If so, then based on the original aspect ratio T of each projection window in each row i The maximum display width of the preview display window is 0.9W0, and the width of each preview display window of each row is W i ** Performing adjustments to determine the height value of each preview display window of each row after the adjustments;
[0143] Based on the adjusted height value and the adjusted width value, a width value and a height value of the preview display window of each row are generated.
[0144] The present application is further described in detail below in conjunction with application examples.
[0145] At present, the related solutions of screen projection display have the following disadvantages:
[0146] (1) Disadvantages of the palace-style tiling presentation solution:
[0147] The split screen ratio is fixed and difficult to adjust. When devices with different ratios are projected at the same time, the presentation effect is poor (such as projecting the screen from a laptop and a mobile phone at the same time). When multiple people are projecting, each projected screen is proportionally reduced because the screen is evenly divided. Basically, when the number of grids exceeds the limit, the specific content cannot be seen clearly.
[0148] (2) Disadvantages of the split-level tiling scheme:
[0149] There can be a maximum of two projection windows, because the tiling of the screen reduces the display space occupied by each projection screen. When multiple people are projecting, most of the projection screens are not clear, and more than two projection screens cannot be displayed.
[0150] The application embodiment of this application provides a multi-channel screen projection method. Compared with the traditional wired screen projection, which only supports the projection of a single device at the same time and cannot support the problem of screen projection collaboration. It solves the needs of multi-person screen projection collaboration in conference room scenarios. The specific implementation mainly includes the following four parts:
[0151] 1. Screen projection window overlay
[0152] Obtain at least two screen projection requests from at least two screen projection devices;
[0153] Based on at least two screen projection requests, at least two screen projection windows are created, wherein each of the at least two screen projection windows is used to display the projection content of a screen projection device;
[0154] Based on at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane, at least two projection screen windows are stacked and displayed.
[0155] Figure 2 This is a schematic diagram of the window-like overlay of the projection screen, such as Figure 2 As shown, the projection device sends a projection request to the projection device, where each projection device corresponds to a projection screen window. The projection device creates a projection screen window for displaying the projection content of the corresponding projection device. The projection screen windows are stacked and displayed based on the projection screen windows and a preset stacking order in a direction perpendicular to the display plane.
[0156] Here, the preset stacking order in the direction perpendicular to the display plane is set as the Z order, and the stacking of windows is along an imaginary axis Z axis, extending from the inside of the screen to the outside. In the Z order, windows with high Z orders will be pressed on other windows. Windows with low Z orders will be pressed by other windows. Based on the Z order of the projection screen window and the window, the projection screen window is stacked and displayed, and the level of the Z order here can be set by the user.
[0157] In this way, each projection screen window is not forced to be tiled, but is stacked in a windowed manner. At least two current projection screens will exist in the form of windows on the virtual desktop canvas, that is, the display plane, with different windows in size, position and Z-axis level. Multiple projection screens are stacked through windows, and display space and resolution will not be sacrificed due to multiple projections. Flexible screen display and adjustment can be achieved through window scaling and dragging operations. It solves the problem that when devices are projected simultaneously, they are displayed in multiple windows in a grid format to display the projection screens of multiple devices. The display mode is fixed and cannot be adjusted. It can only be tiled in an evenly divided grid to fill the display. However, in the case of actual screen size, the tiled grid display mode exceeds the number of grids and each screen situation cannot be seen clearly, resulting in poor effect.
[0158] 2. Window Operation
[0159] Get the preset operation instructions for the target projection screen window;
[0160] Based on the preset operation instruction, perform corresponding operations on the target projection screen window;
[0161] The preset operation instruction includes at least one of the following:
[0162] The first command for setting the window on top;
[0163] A second instruction for deleting the window;
[0164] A third instruction for moving the window;
[0165] A fourth instruction for scaling the window;
[0166] The fifth instruction is used to switch windows.
[0167] The projection device will pre-store the correspondence between preset operations and preset operation instructions. In the present application embodiment, the projection device stores the top window operation and the first instruction, the window deletion operation and the second instruction, the window movement operation and the third instruction, the window scaling operation and the fourth instruction, and the window switching operation and the fifth instruction.
[0168] Specifically, for the top window operation, set the start operation of clicking the top display bar: generate a first instruction;
[0169] For the delete window operation, set the click to delete display bar operation: generate the second instruction;
[0170] For the window moving operation, the third instruction may include a right move instruction, a left move instruction, a downward move instruction, and an upward move instruction. Specifically, the target projection screen window may be selected based on the mouse and moved in a set direction as a corresponding instruction, as shown in the following example:
[0171] Horizontal rightward movement operation: Generates a rightward movement instruction, which can also include the movement distance;
[0172] Horizontal left movement operation: Generates a left movement instruction, which can also include the moving distance;
[0173] Vertical downward movement operation: Generates a downward movement instruction, which can also include the moving distance;
[0174] Vertical upward movement operation: Generates an upward movement instruction, which can also include the moving distance.
[0175] For the zoom window operation, set the drag window edge operation: generate a fourth instruction, which includes the zoom ratio.
[0176] For the window switching operation, it is set to drag the switching window to the current window: a fifth instruction is generated, and the fifth instruction includes identification information of the switching window.
[0177] In this way, the projection screen window can be created, closed, moved, scaled, switched, and other operations can be performed on it through a mouse or a flying mouse. The projection screen window can be flexibly operated, which improves the operating efficiency and simplicity.
[0178] 3. Multitasking Windows
[0179] Obtaining a preview display request for displaying at least two of the projection screen windows;
[0180] Based on the preview display request, determining arrangement position information of the preview display windows corresponding to at least two of the projection screen windows;
[0181] Determine the window size parameters and preview display spacing parameters of the preview display window of each row based on the arrangement position information, the original window size parameters of each projection screen window, and the plane size data of the projection screen display area;
[0182] At least two projection screen windows are previewed and displayed based on the arrangement position information, the window size parameters of the preview display window, and the preview display spacing parameters.
[0183] In the embodiment of the present application, you can drag the window to the top edge of the screen to call out the window preview box, which prompts you to enter the full-screen window to display the projection screen. Enter the full-screen multitasking window, calculate the number of projection screen windows, the width and height of the video content to calculate the best multitasking preview window arrangement, and use the window maximization presentation method to display the largest projection screen window content as much as possible.
[0184] In this application embodiment, it is assumed that the width of the multi-task window canvas, i.e., the projection display area, is W0, the height is H0, and the aspect ratio is T0=W0 / H0. The default height of the window is aH0, and α is the ratio of the default row height of the row to the multi-window canvas. α is determined by the number of rows. In this application example, the corresponding relationship between α and the number of rows is: α=0.6 when the number of rows M is 1, α=0.45 when the number of rows M is 2, and α=0.3 when the number of rows M is 3, that is, α decreases by 0.15 for each additional row. The maximum display width is W m =0.9W0, use W i Indicates the original width of each projection window, H i Represents the original height value aspect ratio T i =W i / H i . Use W i **Indicates the initial width of each preview display window, with W i * Indicates the adjusted width of each preview display window. The first ratio is
[0185] A M =MT0
[0186] The second ratio B is
[0187]
[0188] The third ratio C i for:
[0189] C i =W i ** / W0
[0190] Fourth Ratio D i for:
[0191] D i =W i ** / αH0
[0192] The second ratio is to assume that the preview limit number of each row of projection screen windows is 3. Taking the number of windows from 1 to 8 as an example, the rendering rule of each row of windows can be expressed as f=(N, α, [T1, ..., T N ]), N is the number of windows in this row, α is the ratio of the default row height to the multi-window canvas, i.e., the projection display area. In the case of multiple windows, each row can display at most 3 windows and at least 1 window, i.e., 1≤N≤3N, [T1, ..., T N ] is the aspect ratio of N windows. The following describes the implementation process of multi-tasking windows:
[0193] 1. Determine the arrangement position information of the preview display window. The arrangement position information includes the arrangement order of the preview display window, the number of arrangement rows of the preview display window and the number of preview display windows in each row, as follows:
[0194] (1) The order of the preview display window
[0195] The windows can be marked according to the time sequence of the projection or the Z order of the projection screen window (denoted as i, i∈[1,8]).
[0196] (2) The number of rows in the preview display window
[0197] Here, N represents the number of at least two projection screen windows, that is, the number of windows participating in the multitasking window. Based on the number of at least two projection screen windows and the preview limit number of each row of projection screen windows, the number of rows of the preview display windows is determined, including:
[0198] If the number of at least two projection windows is less than the preview limit number of projection windows in each row, the preview display windows are arranged in one row;
[0199] When the number of windows participating in the multitasking window is 1 (N=1), it is displayed as a single-row single window, and the window is displayed vertically and horizontally centered;
[0200] When the number of windows participating in the multitasking window is 2 (iN=2), it is displayed as a single-row double window, and the whole window is displayed vertically and horizontally centered;
[0201] If the number of at least two projection screen windows is greater than or equal to the preview limit number of projection screen windows in each row, the number of arrangement rows of the preview display windows is determined based on the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row.
[0202] When the number of windows participating in the multitasking window is 3 (N=3), if the number of at least two projection windows is equal to the preview limit number 3, the ratio of the number of at least two projection windows to the preview limit number of each row of projection windows is 1, and the number of rows of preview display windows can be 1 or 2. At this time, it is necessary to count the sum of the aspect ratios of at least two windows, η, The number of rows is determined according to the value of η. Specifically, when 0≤η≤2T0, at least two windows are displayed in one row, the window height is 0.45H0, and they are arranged from left to right according to the i sequence. At least two windows are displayed vertically and horizontally centered as a whole. When η>2T0, at least two windows are displayed in two rows. Here, 2T0 is the first ratio.
[0203] If the number of at least two projection screen windows is greater than the preview limit number 3, if the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row is an integer, then the number of rows of preview display windows is equal to the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row; if it is not an integer, then the number of rows of preview display windows is the integer of the ratio of the number of at least two projection screen windows to the preview limit number of projection screen windows in each row plus 1.
[0204] Exemplarily, if the number of at least two projection screen windows is 8, the ratio of the number of at least two projection screen windows to the preview limit number of each row of projection screen windows is 2.66, and 2.66 is not an integer, then the number of rows of preview display windows in each row is 2.66, and the integer 2 plus 1 is 3 rows. According to the above method, if the number of at least two projection screen windows is 4, 5, and 6, the number of rows of preview display windows in each row is two; if the number of at least two projection screen windows is 7 and 8, the number of rows of preview display windows in each row is three.
[0205] (3) Number of preview display windows per row
[0206] If the number of rows is only one, the number of preview display windows in each row is at least two projection screen windows.
[0207] When the number of windows participating in the multitasking window is 1 (N=1), it is displayed as a single window, and the window is centered vertically and horizontally. The rule is f=(N=1, α=0.6, [T1]);
[0208] When the number of windows participating in the multitasking window is 2 (N=2), it is displayed as a single-row double window, and the whole window is vertically and horizontally centered. The rule is f=(N=2, α=0.45, [T1, T2]);
[0209] When the number of windows participating in the multitasking window is 3 (N=3), 0≤η≤2T0, at least two windows are displayed in 1 row, the window height is 0.45H0, and they are arranged from left to right according to the i sequence. The whole window is displayed vertically and horizontally centered, and the arrangement rule is f=(N=3, α=0.45, [T1, T2, T3]).
[0210] If the number of arrangement rows is at least two rows, when the number of arrangement rows is two rows, it is necessary to determine whether the number of at least two projection screen windows is an even number. If it is an even number, the number of preview display windows in the first row is equal to that in the second row. Taking the number of at least two projection screen windows as 4 or 6 as an example, the number of preview display windows in each corresponding row is 2 or 3. If it is an odd number or the number of arrangement rows is more than three rows, it is determined whether the order of the arrangement rows is the last two rows. If it is the last two rows, the sum of the original aspect ratios of the first half of the preview display windows in the last two rows is compared with the size of the first ratio. If the sum of the original aspect ratios of the projection screen windows in the first half of the number of projection screen windows in the last two rows is greater than the first ratio, then the number of preview display windows in the first row of the last two rows is less than or equal to the number of preview display windows in the second row. If the sum of the original aspect ratios of the projection screen windows in the first half of the number of projection screen windows in the last two rows is less than the first ratio, then the number of preview display windows in the first row of the last two rows is greater than the number of preview display windows in the second row.
[0211] If it is not the last two rows, the number of preview display windows in each row is the preview limit number of projection screen windows in each row.
[0212] When the number of windows participating in the multitasking window is 3 (N=3), when η>2T0, the windows are displayed in 2 rows, the window height is 0.45H0, and the arrangement may be 1 up and 2 down or 2 up and 1 down, depending on the aspect ratio T1 of the first projection window. If T1>2T0, then it is 1 up and 2 down; if T1<2T0, then it is 1 up and 2 down; the row of two windows follows: f=(N=2,α=0.45,[T i , T i+1 ]);
[0213] When the number of rows is two, that is, the number of windows N participating in the multitasking window is 4 or 6, for example, they must be displayed in two rows, and the windows are displayed vertically and horizontally centered as a whole. The arrangement method is 2 on top and 2 on bottom, and the default height of each row is 0.45H0.
[0214] When the number of multitasking windows is 6 (N=6), they must be displayed in two rows, with the windows vertically and horizontally centered, and arranged in a 3-up-3-down arrangement. The rendering rules for each row are f1=(N=3, α=0.45, [T1, T2, T3]), f2=(N=3, α=0.45, [T4, T5, T6]).
[0215] When the number of windows participating in the multitasking window is 5 (N=5), they must be displayed in two rows, and the windows are displayed vertically and horizontally centered. There are two ways of arrangement (2 on top and 3 on bottom or 3 on top and 2 on bottom), depending on whether the sum of the aspect ratios of the first two windows is too long;
[0216] Up 2 Down 3: When (That is, if the first two are longer, display them on 2, otherwise display them on 3, no matter how long the third one is), f1 = (N = 2, α = 0.45, [T1, T2]), f2 = (N = 3, α = 0.45, [T3, T4, T5]);
[0217] Up 3 Down 2: When f1=(N=3, α=0.45, [T1, T2, T3]), f2=(N=3, α=0.45, [T4, T5]).
[0218] For example, if the number of at least two projection windows is 7, Figure 3 As shown, the number of rows is 3, and the default height of each row is 0.3H0. If the first row is not the last two rows, the number of preview display windows in the first row is the preview limit of 3 for each row of projection screen windows. There are two arrangement modes for the second and third rows: (3, 1) and (2, 2). At this time, it depends on whether the sum of the original aspect ratios of the projection screen windows of the first half of the number of projection screen windows in the last two rows, that is, whether the sum of the original aspect ratios of the 4th and 5th projection screen windows is too long, η 4,5It represents the sum of the original aspect ratios of the 4th and 5th projection windows. The first ratio is when The arrangement is (3, 2, 2);
[0219] when like Figure 3 As shown, the arrangement is (3, 3, 1), and the corresponding rendering rules for each row are f1 = (N = 3, α = 0.3, [T1, T2, T3]), f2 = (N = 2, α = 0.3, [T4, T5]), and f3 = (N = 2, α = 0.3, [T6, T7]).
[0220] When the number of windows participating in the multitasking window is 8 (N=8), they must be displayed in three rows (the default height is 0.3H0), and the windows are displayed vertically and horizontally centered as a whole. The arrangement method is (3, 3, 2) or (3, 2, 3), where the rules corresponding to (3, 3, 2) are f1=(N=3, α=0.3, [T1, T2, T3]), f2=(N=3, α=0.3, [T4, T5, T6]), and f3=(N=2, α=0.3, [T7, T8]).
[0221] 2. Determine the window width and height of the preview display window for each row
[0222] Determine the width and height of the preview display window in each row based on the arrangement position information and the original width and height of each projection screen window;
[0223] As can be seen from the above, the arrangement position information includes: the arrangement order of the preview display windows, the number of arrangement rows of the preview display windows, and the number of preview display windows in each row. Based on the arrangement position information and the original width value and original height value of each projection screen window, the width value and height value of the preview display window in each row are determined, including:
[0224] Obtaining a second ratio, a third ratio, and a fourth ratio, wherein the second ratio is the maximum aspect ratio of the preview display window, and the maximum aspect ratio is the ratio of the maximum display width value of the preview display window to the default height value of the preview display window; the third ratio is the ratio of the initial width value of each preview display window in each row to the width value of the projection display area; and the fourth ratio is the ratio of the initial width value of each preview display window in each row to the default height value of the preview display window;
[0225] From the above, we can see that the second ratio B is The third ratio C i For: C i =W i ** / W0, fourth ratio D i for:
[0226] D i =W i ** / αH0, the default window height is αH0, and the default width is αH0×T i , W i Indicates the original width of each projection window, H i Represents the original height value, W i ** Indicates the initial width of each preview display window, with W i * Indicates the adjusted width of each preview display window.
[0227] Based on the original aspect ratio, the second ratio and the third ratio of each projection screen window in each row, determine whether the width value of the preview display window is adjusted. If not, the width value and height value of the preview display window in each row are the default width value and default height value of the preview display window.
[0228] If so, based on the original aspect ratio of each projection screen window in each row and the maximum display width value of the preview display window, the width value of each preview display window in each row is adjusted, and based on the adjusted width value of each preview display window in each row and the fourth ratio, the height value of each preview display window in each row is determined after adjustment; based on the original aspect ratio, the second ratio and the third ratio of each projection screen window in each row, it is determined whether the initial width value of each preview display window in each row is adjusted; if not, based on the initial width value of each preview display window, the original aspect ratio of each projection screen window and the fourth ratio, it is determined whether the width value and height value of the preview display window in each row are the default width value and default height value of the preview display window or the initial width value and initial height value of the preview display window;
[0229] If so, based on the original aspect ratio of each projection screen window in each row and the maximum display width value of the preview display window, the width value of each preview display window in each row is adjusted to determine the height value of each preview display window in each row after adjustment;
[0230] Based on the adjusted height value and the adjusted width value, a width value and a height value of the preview display window of each row are generated.
[0231] N=1, this row displays 1 window: it is displayed as a single window, and the window is displayed horizontally in the center.
[0232] like The window does not need to be adjusted. The width and height of each row of the preview display window are the default width and height of the preview display window, that is, the default height is αH0, and the window width is αH0×Ti;
[0233] like The window needs to be adjusted, and the window width is limited to W m , window height W m / T1<αH0, the window is displayed horizontally, centered, and vertically at the top.
[0234] N=2, the row displays two windows: it is displayed as a single row with two windows, and the windows are displayed horizontally in the center.
[0235] If two windows Then the window does not need to be adjusted, and the width and height of each row of the preview display window are the default width and height of the preview display window, that is, the default height of the window is αH0, and the width is αH0×T i , and then arrange them left and right, and the gap can be fixed at 40px;
[0236] If two windows The preview of the two windows shows the initial width value W of the window i ** According to the following formula and Calculate, but limit the initial width of the preview display window to W i ** In the following range, 0.4W0≤W i ** ≤0.5W0, (to avoid overly long windows compressing the space of another window), where 0.4 and 0.5 are the third ratios, that is, if there is a preview window with an initial width value W i ** , is not within the above range, the initial width of the preview window needs to be adjusted, for example: W of the first window i ** When it is greater than 0.5W0, it will cause T1∶T2≥1.25, then the width ratio of the first window will be limited and adjusted to at this time is the adjusted width of the first window, and the other is The remaining 0.1W0 is used for left and right and window gaps.
[0237] If the initial width of the preview display window is W i ** If they are all within the above range, they shall be determined according to the following rules:
[0238] like The preview display windows do not need to be adjusted, that is, the default height of the window is αH0 and the width is αH0×T i
[0239] like The initial width of the preview window is W. i** , height is W i =W i ** / T i , the window is placed on top of that row.
[0240] Based on the adjusted height value and the adjusted width value, a width value and a height value of the preview display window of each row are generated.
[0241] N=3, this line shows the situation of 3 windows:
[0242] Displayed as a single row of 3 windows, the windows in this row are horizontally centered, and the default window height is αH0;
[0243] If 3 windows Then the window does not need to be adjusted. The width and height of each line of the preview display window are the default width and height of the preview display window. The default height of the window is αH0 and the width is αH0×T. i , and then arrange them left and right, and the gap can be fixed at 40px;
[0244] If 3 windows The width of the preview window W i ** It can be calculated according to the following formula and But the limit is 0.25W0≤W i ** ≤0.4W0 (to avoid excessively long windows compressing the space of another window), for example:
[0245] When the T distribution is T1∶T2∶T3=2.5∶1∶1, according to the calculation However, due to range limitations, the width of the preview window needs to be adjusted. At this time, 0.4W0 is the adjustment width of the first window, and the remaining 0.5W0 is divided into At this time, based on the adjusted width value and T i , generate the width and height values of each preview display window.
[0246] When the T distribution is T1∶T2∶T3=10∶4∶1, according to the calculation But because W i ** The upper limit of W1 * = 0.4W0, the remaining 0.5W0 is divided according to the proportion Because the lower limit of W is 0.25W0, (That is, there is a fat window so that when The ratio must be 0.4W0∶0.25W0∶0.25W0.
[0247] When the T distribution is T1∶T2∶T3=1.2∶1∶2∶0.6, according to the calculation But because of the lower limit of W, The remaining 0.65W0 will be divided according to the proportion For each window in its own limit W i * If the width is displayed within the range, it is determined according to the following rules:
[0248] like The default window height is αH0, and the window width is αH0×T. i like Window fixed to W i ** , height is W i =W i ** / T i The window is brought to the top of this row.
[0249] After determining the width and height of the preview display window of each row, the preview display spacing parameter is determined based on the arrangement position information, the width and height of the preview display window of each row and the plane size data of the projection display area. Among them, the preview display spacing.
[0250] Here, the preview display spacing parameters include preview display row spacing and preview display column spacing.
[0251] Based on the plane size data of the projection display area, the height data of the preview display window in each row, and the number of rows of the preview display windows, the preview display row spacing is determined;
[0252] Determine the preview display column spacing based on the plane size data of the projection display area, the width data of the preview display window in each row, and the number of preview display windows in each row;
[0253] Based on the Preview display row spacing and Preview display column spacing, confirm the Preview display spacing parameters.
[0254] For column spacing:
[0255] When the T distribution is T1∶T2∶T3=1.2∶1∶2∶0.6, according to the calculation But because W i ** The lower limit of The remaining 0.65W0 will be divided according to the proportion The remaining 0.1W0 is the total width of the preview display column spacing. The preview display column spacing includes the left and right spacing and the window spacing. The number of preview display windows in each row can be used to determine the number of spacings between preview display windows in each row, and 0.1W0 can be evenly divided based on the number of spacings. You can also set the column spacing between the projection screen windows to 40px, and divide the remaining left and right spacing evenly.
[0256] For line spacing:
[0257] Based on the height value of the preview display window and the height value of the projection display area, the height of at least two row spacings can be determined, for example, 0.1H0. The preview display row spacing includes the upper and lower spacing and the window spacing. The number of spacings between preview display windows in each column can be determined by the number of at least two preview display windows in each row, and 0.1H0 can be evenly divided based on the spacing number. The row spacing between the projection screen windows can also be set to 40px, and the remaining upper and lower spacing is evenly divided.
[0258] 4. Split the screen into two parts
[0259] Get split-screen operation instructions for the projection display area;
[0260] Based on the split-screen operation instruction, a target split-screen window is determined and the projection screen display area is controlled to be divided into a first split-screen window and a second split-screen window; wherein the target split-screen window is a projection screen window selected based on the split-screen operation instruction, the first split-screen window is used to display the target split-screen window, and the second split-screen window is used to display the remaining projection screen windows other than the target split-screen window;
[0261] Based on the first split-screen window, the second split-screen window and the set split-screen ratio, the projection display area is split-screen displayed; wherein the set split-screen ratio is used to determine the proportional relationship between the first split-screen window and the second split-screen window.
[0262] Figure 4 This is a schematic diagram of splitting the projection window into two parts. Figure 4 As shown, by pressing and dragging the projection screen window area with a flying mouse or a mouse, approaching the edge of the screen, a split-screen operation instruction for the projection screen display area is triggered, a split-screen preview window appears, the selected target window enters the split-screen mode, and the projection screen display area is controlled to be divided into a first split-screen window and a second split-screen window. For example, the selected window enters the left and right split-screen mode, the first split-screen window displays the target split-screen window, and the second split-screen window displays a multi-task preview projection screen window (projection screen window 1, projection screen window 2, projection screen window 3 and projection screen window 4), wherein the ratio of the left window vs. the right window can be pre-set, for example, left window vs. right window = 3:1, 1:1, 1:3.
[0263] Based on the above screen projection solution, (1) the projection screen window can be displayed by stacking windows on the z-axis to meet the needs of multi-person screen projection collaboration in the conference room scene, solving the problem that traditional wired screen projection only supports single device projection at the same time and cannot support screen projection collaboration. (2) It supports multiple people to project screens at the same time and manages and operates windows more efficiently: create and close, move, scale, pin, switch, etc., so that when supplementing information on the screen, users can perform the above operations on the projection screen window according to their needs, without the need to frequently switch the stacking order between the projection screens, which improves the user experience and operation efficiency; (3) It solves the problem that all projection screen windows cannot be previewed in multi-person screen projection.
[0264] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a screen projection device, which corresponds to the above-mentioned screen projection method, and each step in the above-mentioned screen projection method embodiment is also completely applicable to the present screen projection device embodiment. Figure 5 As shown, the screen projection device includes: an acquisition module 510, a creation module 520 and a display module 530, wherein the acquisition module 510 is used to acquire at least two screen projection requests of at least two screen projection devices; the creation module 520 is used to create at least two screen projection windows based on the at least two screen projection requests, wherein each of the at least two screen projection windows is used to display the projection content of a screen projection device; the display module 530 is used to stack and display the at least two screen projection windows based on the at least two screen projection windows and a preset stacking order in a direction perpendicular to the display plane.
[0265] In some embodiments, the acquisition module 510 is further used to acquire a preset operation instruction for the target projection screen window; the projection module further includes an execution module 540, which is used to perform a corresponding operation on the target projection screen window based on the preset operation instruction;
[0266] The preset operation instruction includes at least one of the following:
[0267] The first command for setting the window on top;
[0268] A second instruction for deleting the window;
[0269] A third instruction for moving the window;
[0270] A fourth instruction for scaling the window;
[0271] The fifth instruction is used to switch windows.
[0272] In some embodiments, the acquisition module 510 is also used to obtain a preview display request for displaying at least two projection screen windows; the projection module also includes a determination module 550, which is used to determine, based on the preview display request, the arrangement position information of the preview display windows corresponding to the at least two projection screen windows; based on the arrangement position information, the original window size parameters of each projection screen window and the plane size data of the projection display area, determine the window size parameters and preview display spacing parameters of the preview display windows in each row; the display module 530 is also used to preview display at least two projection screen windows based on the arrangement position information, the window size parameters of the preview display window and the preview display spacing parameters.
[0273] In some embodiments, the acquisition module 510 is also used to obtain split-screen operation instructions for the projection display area; the determination module 550 is also used to determine the target split-screen window based on the split-screen operation instructions and control the projection display area to be divided into a first split-screen window and a second split-screen window; wherein the target split-screen window is a projection screen window selected based on the split-screen operation instructions, the first split-screen window is used to display the target split-screen window, and the second split-screen window is used to display the remaining projection screen windows other than the target split-screen window; the display module 530 is also used to split-screen display the projection display area based on the first split-screen window, the second split-screen window and the set split-screen ratio; wherein the set split-screen ratio is used to determine the proportional relationship between the first split-screen window and the second split-screen window.
[0274] In some embodiments, the arrangement position information includes: the arrangement order of the preview display windows, the number of arrangement rows of the preview display windows and the number of preview display windows in each row. The acquisition module 510 is also used to obtain the projection time of each projection screen window, the original window size parameters of each projection screen window, the number of at least two projection screen windows and the preview limit number of projection screen windows in each row; the determination module 550 is also used to determine the arrangement order of the preview display windows based on the projection time of each projection screen window; determine the number of arrangement rows of the preview display windows based on the number of at least two projection screen windows and the preview limit number of projection screen windows in each row; determine the number of preview display windows in each row based on the number of at least two projection screen windows, the original window size parameters of each projection screen window, the number of arrangement rows of the preview display windows and the first ratio, the first ratio characterizing the aspect ratio of a single row of the projection display area after being divided based on the number of arrangement rows.
[0275] In some embodiments, the window size parameters include: the width and height of the window. The determination module 550 is also used to determine the width and height of the preview display window in each row based on the arrangement position information and the original width and height of each projection screen window; and determine the preview display spacing parameters based on the arrangement position information, the width and height of the preview display window in each row and the plane size data of the projection display area.
[0276] In some embodiments, the arrangement position information includes: the arrangement order of the preview display windows, the number of arrangement rows of the preview display windows and the number of preview display windows in each row. The acquisition module 510 is also used to acquire the second ratio, the third ratio and the fourth ratio. The second ratio is the maximum aspect ratio of the preview display window, and the maximum aspect ratio is the ratio of the maximum display width value of the preview display window to the default height value of the preview display window; the third ratio is the ratio of the initial width value of each preview display window in each row to the width value of the projection display area; the fourth ratio is the ratio of the initial width value of each preview display window in each row to the default height value of the preview display window; the projection device also includes a judgment module 560 for determining the ratio of the initial width value of each preview display window in each row based on the original aspect ratio, the second ratio and the third ratio. ratio, determine whether the initial width value of each preview display window in each row is adjusted; if not, determine whether the width value and height value of the preview display window in each row are the default width value and default height value of the preview display window or the initial width value and initial height value of the preview display window based on the initial width value of each preview display window, the original aspect ratio of each projection screen window and the fourth ratio; if so, adjust the width value of each preview display window in each row based on the original aspect ratio of each projection screen window in each row and the maximum display width value of the preview display window, and determine the height value of each preview display window in each row after adjustment; the determination module 550 is also used to generate the width value and height value of the preview display window in each row based on the adjusted height value and the adjusted width value.
[0277] In actual application, the acquisition module 510, the creation module 520, the display module 530, the execution module 640, the determination module 550 and the judgment module 560 can be implemented by a processor in the projection device. Of course, the processor needs to run the computer program in the memory to realize its function.
[0278] It should be noted that: the screen projection device provided in the above embodiment only uses the division of the above program modules as an example when performing screen projection. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the screen projection device and the screen projection method embodiment provided in the above embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0279] Based on the hardware implementation of the above-mentioned program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a screen projection device. Figure 6 Only an exemplary structure of the projection device is shown, not all structures, and can be implemented as needed. Figure 6 Partial or complete structure shown.
[0280] like Figure 6 As shown, the screen projection device 600 provided in the embodiment of the present application includes: at least one processor 601, a memory 602, a user interface 603 and at least one network interface 604. The various components in the screen projection device 600 are coupled together through a bus system 605. It can be understood that the bus system 605 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 6 Various buses are labeled as bus system 605 .
[0281] The user interface 603 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0282] The memory 602 in the embodiment of the present application is used to store various types of data to support the operation of the display device 600. Examples of such data include: any computer program used to operate on the projection device.
[0283] The screen projection method disclosed in the embodiment of the present application can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the screen projection method can be completed by the hardware integrated logic circuit or software instructions in the processor 601. The above-mentioned processor 601 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 601 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 602, and the processor 601 reads the information in the memory 602, and completes the steps of the screen projection method provided in the embodiment of the present application in combination with its hardware.
[0284] In an exemplary embodiment, the screen projection device can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0285] It can be understood that the memory 602 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0286] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, which may be a computer-readable storage medium, for example, a memory 602 storing a computer program, and the computer program may be executed by a processor 601 of a display device to complete the steps of the method of the present application. The computer-readable storage medium may be a memory such as a ROM, a PROM, an EPROM, an EEPROM, a Flash Memory, a magnetic surface memory, an optical disk, or a CD-ROM.
[0287] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0288] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0289] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A screen projection method, characterized in that: The method comprises: Obtain at least two screen projection requests from at least two screen projection devices; Based on the at least two screen projection requests, create at least two screen projection windows, wherein each of the at least two screen projection windows is used to display the projection content of a screen projection device; Based on the at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane, the at least two projection screen windows are stacked and displayed.
2. The method according to claim 1, characterized in that The method further comprises: Get the preset operation instructions for the target projection screen window; Based on the preset operation instruction, perform corresponding operations on the target projection screen window; The preset operation instruction includes at least one of the following: The first command for setting the window on top; A second instruction for deleting the window; A third instruction for moving the window; A fourth instruction for scaling the window; The fifth instruction is used to switch windows.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining a preview display request for displaying at least two of the projection screen windows; Based on the preview display request, determining arrangement position information of the preview display windows corresponding to at least two of the projection screen windows; Determine the window size parameters and preview display spacing parameters of the preview display window of each row based on the arrangement position information, the original window size parameters of each projection screen window, and the plane size data of the projection screen display area; At least two of the projection screen windows are previewed and displayed based on the arrangement position information, the window size parameter of the preview display window and the preview display spacing parameter.
4. The method according to claim 1 or 3, characterized in that: The method further comprises: Get split-screen operation instructions for the projection display area; Based on the split-screen operation instruction, determine the target split-screen window and control the projection display area to be divided into a first split-screen window and a second split-screen window; wherein the target split-screen window is a projection screen window selected based on the split-screen operation instruction, the first split-screen window is used to display the target split-screen window, and the second split-screen window is used to display the remaining projection screen windows other than the target split-screen window; Based on the first split-screen window, the second split-screen window and the set split-screen ratio, the projection display area is split-screen displayed; wherein the set split-screen ratio is used to determine the proportional relationship between the first split-screen window and the second split-screen window.
5. The method according to claim 3, characterized in that: The arrangement position information includes: an arrangement order of the preview display windows, a number of arrangement rows of the preview display windows, and a number of preview display windows in each row. The determining, based on the preview display request, arrangement position information of the preview display windows corresponding to at least two of the projection screen windows includes: Obtaining the projection time of each projection screen window, the original window size parameters of each projection screen window, the number of the at least two projection screen windows, and the preview limit number of each row of projection screen windows; Determining an arrangement order of the preview display windows based on the projection time of each projection screen window; Determining the number of arrangement rows of the preview display windows based on the number of the at least two projection screen windows and the preview limit number of each row of projection screen windows; The number of preview display windows in each row is determined based on the number of the at least two projection screen windows, the original window size parameters of each projection screen window, the number of arrangement rows of the preview display windows and a first ratio, wherein the first ratio represents the aspect ratio of a single row of the projection display area after being divided based on the number of arrangement rows.
6. The method according to claim 3, characterized in that The window size parameters include: a width value and a height value of the window, and the window size parameters and the preview display spacing parameters of each row of the preview display window are determined based on the arrangement position information, the original window size parameters of each of the projection screen windows, and the plane size data of the projection screen display area, including: Determine the width and height of the preview display window in each row based on the arrangement position information and the original width and height of each projection screen window; The preview display spacing parameter is determined based on the arrangement position information, the width value and the height value of the preview display window of each row, and the plane size data of the projection display area.
7. The method according to claim 6, characterized in that The arrangement position information includes: an arrangement order of the preview display windows, the number of arrangement rows of the preview display windows, and the number of preview display windows in each row; and determining the width and height of the preview display windows in each row based on the arrangement position information and the original width and height of each projection screen window includes: Obtaining a second ratio, a third ratio, and a fourth ratio, wherein the second ratio is the maximum aspect ratio of the preview display window, and the maximum aspect ratio is the ratio of the maximum display width value of the preview display window to the default height value of the preview display window; the third ratio is the ratio of the initial width value of each preview display window in each row to the width value of the projection display area; and the fourth ratio is the ratio of the initial width value of each preview display window in each row to the default height value of the preview display window; Based on the original aspect ratio, the second ratio and the third ratio of each projection screen window in each row, determine whether the initial width value of each preview display window in each row is adjusted; if not, based on the initial width value of each preview display window, the original aspect ratio of each projection screen window and the fourth ratio, determine whether the width value and height value of the preview display window in each row are the default width value and default height value of the preview display window or the initial width value and initial height value of the preview display window; If so, based on the original aspect ratio of each projection screen window in each row and the maximum display width value of the preview display window, the width value of each preview display window in each row is adjusted to determine the height value of each preview display window in each row after adjustment; Based on the adjusted height value and the adjusted width value, a width value and a height value of the preview display window of each row are generated.
8. A screen projection device, characterized in that: The device comprises: An acquisition module, used to acquire at least two screen projection requests from at least two screen projection devices; A creation module, used to create at least two projection screen windows based on the at least two projection screen requests, wherein each of the at least two projection screen windows is used to display the projection content of a projection device; The display module is used to stack and display the at least two projection screen windows based on the at least two projection screen windows and a preset stacking order in a direction perpendicular to the display plane.
9. A screen projection device, characterized in that: include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 7 when running a computer program.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
