Screen projection control method and device, equipment and storage medium
By detecting and responding to the touch control operation of the hot zone of the screen projection of electronic devices, and automatically performing the screen projection operation, the problem of inconvenient screen projection in the prior art is solved, and the convenience and smooth operation are improved.
Patent Information
- Application Number
- CN202311269880.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, the screen projection operation of electronic devices is not convenient enough. It is usually necessary for users to manually enter the device system setting interface or a dedicated screen projection application to operate, and may block the normal operation of other applications.
By detecting the touch operation corresponding to the screen projection hot zone of the electronic device, the screen projection operation is automatically performed in response to the user's touch operation, without the need for the user to manually enter the system setting interface or screen projection application.
It greatly improves the convenience of screen projection operation, avoids blocking the normal operation of other applications, and simplifies user operation processes.
Smart Images

Figure CN119718235A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a screen projection control method, device, equipment and storage medium. Background Art
[0002] Wireless screen projection is also called wireless screen sharing, flying screen, and screen sharing. Specifically, it is to display the screen of device A (such as mobile phone, tablet, notebook, computer) on the screen of another device B in "real time" through some technical method.
[0003] How to achieve convenient screen projection has become a technical problem that needs to be solved urgently in the industry. Summary of the invention
[0004] The embodiments of the present application provide a screen projection control method, device, equipment and storage medium, which can greatly improve the convenience of screen projection operations.
[0005] A first aspect of an embodiment of the present application provides a screen projection control method, which is applicable to an electronic device, and includes:
[0006] Detecting a touch operation corresponding to a screen projection hot zone of the electronic device; wherein the screen projection hot zone refers to an interactive area on the display screen of the electronic device for triggering screen projection;
[0007] In response to the touch operation, a screen projection operation is performed.
[0008] A second aspect of an embodiment of the present application provides a screen projection control device, the device being located on an electronic device, and the device comprising:
[0009] A detection unit, used to detect a touch operation corresponding to a screen projection hot zone of the electronic device; wherein the screen projection hot zone refers to an interactive area on the display screen of the electronic device for triggering screen projection;
[0010] The screen projection unit is used to perform a screen projection operation in response to the touch operation.
[0011] A third aspect of the embodiments of the present application provides an electronic device,
[0012] A memory storing executable program code;
[0013] and a processor coupled to the memory;
[0014] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in the first aspect of the embodiment of the present application.
[0015] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method described in the first aspect of the embodiment of the present application is implemented.
[0016] A fifth aspect of an embodiment of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the embodiment of the present application.
[0017] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the embodiment of the present application.
[0018] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0019] In an embodiment of the present application, a touch operation corresponding to a screen projection hot zone of an electronic device is detected; wherein the screen projection hot zone refers to an interactive area on the display screen of the electronic device for triggering screen projection; in response to the touch operation, the screen projection operation is performed.
[0020] By implementing this method, the electronic device can trigger the screen projection operation by responding to the user's touch operation on the screen projection hot zone, without the user having to manually enter the device system setting interface or a dedicated screen projection application to operate, which greatly improves the convenience of screen projection. In addition, it can also avoid blocking the normal operation of other applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.
[0022] Figure 1 It is a scene diagram of the screen projection control method disclosed in the embodiment of the present application;
[0023] Figure 2 It is a diagram of the WLAN screen projection scenario disclosed in the embodiment of the present application;
[0024] Figure 3A-3D This is a schematic diagram of WLAN screen projection disclosed in an embodiment of the present application;
[0025] Figure 4 It is a flowchart of the screen projection control method disclosed in the embodiment of the present application;
[0026] Figure 5is a diagram of the touch operation disclosed in the embodiment of the present application;
[0027] Figure 6 It is another flowchart of the screen projection control method disclosed in the embodiment of the present application;
[0028] Figure 7 It is a diagram of the floating window interface disclosed in the embodiment of the present application;
[0029] Figure 8 It is another flowchart of the screen projection control method disclosed in the embodiment of the present application;
[0030] Fig. 9 It is another flowchart of the screen projection control method disclosed in the embodiment of the present application;
[0031] Fig.10 It is a diagram of the screen selection interface disclosed in the embodiment of the present application;
[0032] Fig.11 It is a structural diagram of the screen projection control device disclosed in the embodiment of the present application;
[0033] Fig.12 It is a structural diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The embodiments of the present application provide a screen projection control method, device, equipment and storage medium, which can greatly improve the convenience of screen projection operation.
[0035] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.
[0036] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0037] "At least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or plural.
[0038] See also Figure 1 , Figure 1 It is a scene diagram of the screen projection control method disclosed in the embodiment of this application. Figure 1 The scene diagram shown includes an electronic device 10 and a device to be projected 20. The electronic device 10 can support screen projection, specifically: the electronic device 10 can send the display content on the display screen of the electronic device 10 to the device to be projected 20, so that the device to be projected 20 displays the display content on the display interface of the device to be projected 20.
[0039] At present, the screen projection between the electronic device 10 and the device to be projected 20 can be wireless local area network (WLAN) projection or cloud projection, which is not limited in the embodiments of the present application.
[0040] Among them, WLAN screen projection refers to the screen projection achieved by the electronic device 10 and the device to be projected 20 in the same wireless local area network. Cloud screen projection refers to the screen projection achieved by the electronic device 10 and the device to be projected 20 with the help of a cloud server.
[0041] Among them, the electronic device 10 may include general handheld screen electronic devices, such as mobile phones, smart phones, portable terminals, terminals, wearable electronic devices, personal digital assistants (PDA), portable multimedia players (Personal Media Player, PMP) devices, laptop computers, notebooks (Note Pad), wireless broadband (Wireless Broadband, Wibro) terminals, tablet computers (Personal Computer, PC), smart PCs, sales terminals (Point of Sales, POS) and car computers, etc.
[0042] It should be noted that, for the explanation of the device 20 to be projected, reference can be made to the above explanation of the electronic device 10, which will not be repeated here.
[0043] Currently, screen projection of the electronic device 10 usually requires the user to manually trigger it in a screen projection application dedicated to the electronic device 10, or to operate it in the device system setting interface of the electronic device 10, and the screen projection operation is not convenient enough. In addition, if the electronic device 10 is currently running other applications in the foreground, the electronic device 10 will block the normal operation of other applications when performing the screen projection operation.
[0044] The following is a description of the current screen projection control method of the electronic device 10 in combination with a specific scenario. In the following scenario, the electronic device 10 is a mobile phone, the device 20 to be projected is a TV, and the screen projection method is WLAN projection.
[0045] See also Figure 2 , Figure 2 This is a diagram of the WLAN screen projection scenario disclosed in the embodiment of the present application. Figure 2 The scene shown includes a mobile phone 10, a TV set 20, and a remote controller 30 of the TV set 20. The mobile phone 10 may support Near Field Communication (NFC) and WLAN, and the TV remote controller 30 may be provided with an NFC tag.
[0046] For the specific screen projection control process, please refer to the following:
[0047] First, the user turns on the NFC and WLAN functions of the mobile phone 10, such as Figure 3A As shown;
[0048] Then, the user triggers screen casting in the screen casting application of the mobile phone 10, such as Figure 3B The following is an interface diagram of the screen projection application;
[0049] Then, the user brings the NFC sensing area of the mobile phone 10 close to the NFC tag of the TV remote control 30, and holds it until the mobile phone 10 sounds or vibrates, and then moves the mobile phone 10 away. At this time, the mobile phone 10 outputs a message that the screen projection connection is successful, such as Figure 3C-3D shown.
[0050] In the technical solution of the present application, the electronic device 10 can trigger the screen projection operation by responding to the user's touch operation on the screen projection hot zone of the electronic device 10, without the user having to manually enter the system setting interface or screen projection application on the electronic device 10 to operate, which greatly improves the convenience of screen projection. In addition, it can also avoid blocking the normal operation of other applications.
[0051] See also Figure 4 , Figure 4This is a flowchart of the screen projection control method disclosed in the embodiment of this application. Figure 4 The screen projection control method shown may include the following steps:
[0052] 401. The electronic device detects a touch operation corresponding to a screen projection hot zone of the electronic device.
[0053] Among them, the screen projection hot zone refers to the interactive area on the display screen of the electronic device used to trigger screen projection. The screen projection hot zone can be set by the electronic device when it leaves the factory.
[0054] The screen projection hot zone may be part or all of the display screen of the electronic device, and is not limited in the embodiments of the present application.
[0055] In an embodiment of the present application, the electronic device may be provided with a hot zone monitoring module for the screen projection hot zone, which is used to detect whether the user performs a touch operation on the screen projection hot zone of the electronic device.
[0056] When the projection hotspot is the entire area of the display screen, the touch operation may be a pre-specified touch operation, such as a press operation of a specified duration, a press operation of a specified finger, a press operation of a specified press area, a slide operation of a specified track, and the like.
[0057] In some embodiments, the screen projection hot zone is a partial area of the display screen, and the shape of the screen projection hot zone can be circular, elliptical or rectangular, which is not limited in the embodiments of the present application.
[0058] The following mainly describes in detail the case where the projection hot area is a part of the display screen:
[0059] In some embodiments, the position of the screen projection hot zone on the display screen may be related to the current posture of the electronic device, or to the application displayed in the foreground of the electronic device, which is not limited in the embodiments of the present application. It is understandable that the electronic device may be pre-set with multiple screen projection hot zones, and the positions of different screen projection hot zones are different, and each screen projection hot zone corresponds to a posture or a type of application.
[0060] In the case where the position of the projection hot zone on the display screen is related to the current posture of the electronic device, if the current posture of the electronic device is portrait, the distance between the projection hot zone and the longitudinal side of the electronic device is less than the distance threshold; if the current posture of the electronic device is landscape, the distance between the projection hot zone and the lateral side of the electronic device is less than the distance threshold. It can be understood that when the current posture is portrait, the position of the projection hot zone can be close to the longitudinal side of the electronic device, and when the current posture is landscape, the position of the projection hot zone can be close to the lateral side of the electronic device to facilitate user operation.
[0061] When the position of the screen projection hot zone on the display screen is related to the application displayed in the foreground of the electronic device, the electronic device can determine the application type of the application displayed in the foreground, and determine the position of the screen projection hot zone on the display screen according to the application type. The electronic device can pre-set multiple positions and the application type corresponding to each position.
[0062] For example, for short video applications, news applications, and online shopping applications, the distance between their corresponding positions and the longitudinal side of the electronic device is less than the distance threshold; for video playback applications and game applications, the distance between their corresponding positions and the lateral side of the electronic device is less than the distance threshold.
[0063] In some embodiments, the electronic device detecting the touch operation corresponding to the screen projection hot zone of the electronic device may include:
[0064] When the hot zone screen projection function of the electronic device is turned on, the touch operation corresponding to the screen projection hot zone of the electronic device is detected. Among them, the hot zone screen projection function refers to a function of triggering screen projection based on the screen projection hot zone.
[0065] By implementing this method, when the hot zone screen projection function is turned on, the touch operation on the screen projection hot zone is detected, which can effectively reduce the invalid power consumption of the electronic device.
[0066] It should be noted that when the hot zone screen projection function supports user operation, if the hot zone screen projection function of the electronic device is turned off, the screen projection of the electronic device can be triggered in the existing way (that is, the user manually enters the screen projection application on the electronic device to trigger it), which is conducive to improving the flexibility of screen projection of the electronic device.
[0067] In some embodiments, the electronic device enables the hot zone screen projection function, including but not limited to the following methods:
[0068] In some embodiments, the electronic device may enable the hot zone screen projection function in response to a hot zone screen projection activation operation.
[0069] Among them, the operation of starting hot zone projection may include but is not limited to at least one of the following: voice operation, gesture operation or touch operation.
[0070] Exemplarily, when the operation of turning on hot zone screen projection includes voice operation, the operation of turning on hot zone screen projection can be the voice input of "turn on hot zone screen projection"; when the operation of turning on hot zone screen projection includes gesture operation, the operation of turning on hot zone screen projection can be shaking the electronic device left and right; when the operation of turning on hot zone screen projection includes touch operation, the operation of turning on hot zone screen projection can be clicking the screen twice in a row.
[0071] In some embodiments, the electronic device can enable the hot zone screen projection function when a specified application is running in the foreground.
[0072] The designated application may be an application preset by the user, such as a video playback application, a game application, etc.
[0073] It is understandable that the electronic device will only enable the hot zone screen projection function when the designated application is running in the foreground, so that users can easily perform personalized screen projection.
[0074] 402. The electronic device performs a screen projection operation in response to the touch operation.
[0075] The touch operation may include a click operation and / or a slide operation.
[0076] For example, when the touch operation includes a click operation, the diagram of the touch operation can be referred to as Figure 5 .like Figure 5 The diagram shown includes a screen projection hotspot 501 and a touch area 502 .
[0077] In the embodiment of the present application, the screen projection operation triggered by the above-mentioned touch operation can be cloud projection, WLAN projection, or projection of other protocols, which is not limited in the embodiment of the present application.
[0078] In some embodiments, the electronic device performs a screen projection operation in response to a touch operation, which may include:
[0079] The electronic device displays a device selection interface in response to the touch operation, where the device selection interface includes device information of at least one device to be projected that supports screen projection of the electronic device;
[0080] The electronic device sends the current interface content of the electronic device to the target device, and the target device is any one of at least one device to be projected.
[0081] The device information may include device identification, device name, device model, etc., which is not limited in the embodiments of the present application. The device supporting electronic device screen projection may refer to a device supporting electronic device cloud screen projection, WLAN screen projection, or other protocol screen projection.
[0082] It should be noted that the current interface content sent to the target device does not include the above-mentioned display device selection interface.
[0083] Among them, the electronic device sending the current interface content of the electronic device to the target device may include: the electronic device first establishes a screen projection channel with the target device, and then sends the current interface content of the electronic device to the target device through the established screen projection channel.
[0084] It should be noted that if there is only one device to be projected, the device will be directly used as the target device. If there are multiple devices to be projected, the electronic device selects the target device in the following manner.
[0085] The electronic device sends the current interface content of the electronic device to the target device, which may include but is not limited to the following methods:
[0086] The electronic device sends the current interface content of the electronic device to the target device in response to the device selection operation of the user selecting the target device from the device selection interface;
[0087] The device selection operation may include but is not limited to voice operation or touch operation.
[0088] or,
[0089] If at least one of the devices to be projected includes a historical projection device, the historical projection device is used as the target device, and the current interface content of the electronic device is sent to the target device.
[0090] The historical screen projection device may refer to a device that has established a screen projection connection with the electronic device. The historical screen projection device may include but is not limited to the device that the electronic device was last connected to for screen projection, the device that was connected to for screen projection within the last week, and the device that was connected to for screen projection within the last month.
[0091] In some embodiments, the device selection interface may include a floating window interface.
[0092] In some embodiments, the electronic device displays a floating window interface, which may include:
[0093] The electronic device confirms a target display area on a current interface of the electronic device, where the target display area is any one of a blank display area, a display area of non-critical content, or a designated area on the current interface;
[0094] The electronic device displays a floating window interface in the target display area.
[0095] Exemplarily, non-critical content may be content tags, search boxes, and the like.
[0096] The designated area refers to an area whose distance from the border (upper border, lower border, left border or right border) of the display screen is less than a distance threshold, that is, an area close to the border of the display screen.
[0097] By implementing this method, the electronic device will display a floating window interface carrying the device information of the device to be projected in a blank display area, a display area for non-critical content, or a designated area on the current interface, which can avoid blocking the key content of the current interface as much as possible.
[0098] By implementing the above method, the electronic device can trigger the screen projection operation by responding to the user's touch operation on the screen projection hot zone, without the user having to manually enter the device system setting interface or a dedicated screen projection application to operate, which greatly improves the convenience of screen projection. In addition, it can also avoid blocking the normal operation of other applications.
[0099] See also Figure 6 , Figure 6 FIG. 1 is another flowchart of the screen projection control method disclosed in the embodiment of the present application. Figure 6 The screen projection control method shown may include the following steps:
[0100] 601. The electronic device detects a touch operation corresponding to a screen projection hot zone of the electronic device.
[0101] For a detailed description of step 601, please refer to the above explanation of step 401, which will not be repeated here.
[0102] 602. The electronic device obtains a first touch parameter of the touch operation.
[0103] The first touch parameter may include but is not limited to at least one of the following: touch area, touch duration, touch times, touch track, touch strength, etc.
[0104] In some embodiments, when the touch operation includes a click operation, the first touch parameter may include at least one of the following: touch area, touch duration, touch times, and touch strength.
[0105] In some embodiments, when the touch operation includes a sliding operation, the first touch parameter may include at least one of the following: a touch track, a touch count, and a touch force.
[0106] It should be noted that, when the touch operation includes a sliding operation and the first touch parameter includes a touch force, the touch force may refer to an average force during the sliding operation.
[0107] 603. When the first touch parameter meets the specified parameter condition, the electronic device performs a screen projection operation in response to the touch operation.
[0108] The specified parameter condition may be a parameter condition preset by the electronic device and corresponding to the first touch parameter.
[0109] It can be understood that when the first touch parameter includes the touch area, the specified parameter condition may include a specified area range; when the first touch parameter includes the touch duration, the specified parameter condition may include a specified duration range; when the first touch parameter includes the number of touches, the specified parameter condition may include a specified number of touches; when the first touch parameter includes the touch trajectory, the specified parameter condition may include a specified touch trajectory; when the first touch parameter includes the touch force, the specified parameter condition may include a specified force range.
[0110] For example, the specified area range may be (54x54dp, 64x64dp), where dp: Density-independent pixel, is a unit of length used in Android development, and 1dp represents 1px length when the screen pixel density is 160ppi.
[0111] The following mainly takes WLAN screen projection as an example to explain step 603. The display device selection interface mentioned below in the above step 402 includes at least one device to be projected that supports electronic device screen projection, which is a first device connected to a specified wireless local area network, and the target device is any first device. Among them, the specified wireless local area network refers to the wireless local area network that the electronic device is currently connected to, and the first device is different from the electronic device.
[0112] In some embodiments, the device information of the device to be projected may include a device identifier of the first device, and the device selection interface includes a floating window interface.
[0113] In some embodiments, before displaying the floating window interface, the electronic device can also determine whether the WLAN of the electronic device is turned on, and if the WLAN of the electronic device is not turned on, turn on the WLAN of the electronic device, connect to a designated wireless local area network, and obtain a first device that accesses the designated wireless local area network.
[0114] In some embodiments, the device identification of the first device may be outputted through voice in addition to being outputted through a floating window interface, which is not limited in the embodiments of the present application.
[0115] In some embodiments, when the device identification of the first device is output through a floating window interface, and there are multiple first devices, the floating window interface may include one or more floating windows.
[0116] When the floating window interface includes one floating window, the floating window may display device identifiers of all first devices. When the floating window interface includes multiple floating windows, the number of floating windows is the same as the number of first devices, and each floating window displays only one device identifier.
[0117] For example, see Figure 7 , Figure 7This is a diagram of the floating window interface disclosed in the embodiment of this application. Figure 7 The floating window interface shown includes floating window 701, floating window 702 and floating window 703, wherein the device identifier in floating window 701 is "device 1", the device identifier in floating window 702 is "device 2", and the device identifier in floating window 703 is "device 3".
[0118] By implementing the above method, the electronic device can trigger the screen projection operation by responding to the user's touch operation on the screen projection hot zone, without the user manually entering the device system setting interface or the dedicated screen projection application to operate, which greatly improves the convenience of screen projection. In addition, it can also avoid blocking the normal operation of other applications. In addition, when a touch operation on the screen projection hot zone is detected, the electronic device can further determine whether the first touch parameter of the touch operation meets the specified parameter conditions, and only when the specified parameter conditions are met, the screen projection operation is performed in response to the touch operation, effectively reducing the probability of false triggering of screen projection.
[0119] Based on the above description, the present application embodiment discloses another screen projection control method. The screen projection control method can be referred to in Figure 8 .like Figure 8 The screen projection control method shown may include the following steps:
[0120] 801. The electronic device detects a touch operation corresponding to a screen projection hot zone of the electronic device.
[0121] 802. The electronic device determines whether the touch area of the touch operation is within a specified area range. If so, continue to execute steps 803-806; if not, end this process.
[0122] 803. The electronic device displays a device identification of a first device connected to a designated wireless local area network.
[0123] 804. The electronic device determines a target device from the first device.
[0124] 805. The electronic device establishes a screen projection channel with the target device.
[0125] 806. The electronic device sends the current interface content of the electronic device to the target device through the screen projection channel.
[0126] See also Fig. 9 , Fig. 9 This is another flowchart of the screen projection control method disclosed in the embodiment of the present application. Fig. 9 The screen projection control method shown may include the following steps:
[0127] 901. The electronic device detects a touch operation corresponding to a screen projection hot zone of the electronic device.
[0128] 902: The electronic device obtains a first touch parameter of the touch operation.
[0129] Among them, for the detailed introduction of step 901-step 902, please refer to the above description of step 601-step 602, which will not be repeated here.
[0130] 903. When the first touch parameter meets the specified parameter condition and is in the split-screen display mode, the electronic device determines a target screen from multiple screens corresponding to the split-screen display mode in response to the touch operation.
[0131] In some embodiments, the electronic device determines the target screen from the multiple screens corresponding to the split-screen display mode, which may include but is not limited to:
[0132] The electronic device outputs multiple screen identifiers corresponding to the split-screen display mode; and, in response to the screen selection operation, the electronic device determines a target screen identifier from the multiple screen identifiers; and, the electronic device determines the screen corresponding to the target screen identifier as the target screen.
[0133] Among them, regarding the method of determining the target screen according to the screen identifier, please refer to the above-mentioned method of determining the target device, which will not be repeated here.
[0134] For example, see Fig.10 , Fig.10 is a diagram of the screen selection interface disclosed in the embodiment of this application. Fig.10 As shown, the display screen of the electronic device is divided into screen 1 and screen 2, and screen 1 and screen 2 are used to display different interfaces respectively. The screen selection interface includes a floating window 1001 and a floating window 1002. The screen in the floating window 1001 is marked as "screen 1", and the screen in the floating window 1002 is marked as "screen 2".
[0135] The electronic device uses the screen that matches the second touch parameter of the touch operation among the multiple screens corresponding to the split-screen display mode as the target screen.
[0136] The second touch parameter is different from the first touch parameter. It can be understood that the first touch parameter is used to reduce erroneous operations triggered by the touch screen, and the second touch parameter is used to automatically select the target screen.
[0137] Exemplarily, when the first touch parameter is the touch area, the second touch parameter is the touch duration.
[0138] Exemplarily, when the first touch parameter is the touch area, the second touch parameter is the number of touches.
[0139] Exemplarily, when the first touch parameter is the touch duration, the second touch parameter is the touch area.
[0140] Exemplarily, when the first touch parameter is the touch duration, the second touch parameter is the number of touches.
[0141] Exemplarily, when the first touch parameter is the touch force, the second touch parameter is the number of touches.
[0142] Exemplarily, when the first touch parameter is the touch track, the second touch parameter is the number of touches.
[0143] Exemplarily, when the first touch parameter is the touch force, the second touch parameter is the touch trajectory.
[0144] It should be noted that, in addition to the above examples, the types of the first touch parameter and the second touch parameter may also include other types, which will not be described one by one here.
[0145] In an embodiment of the present application, the electronic device may pre-set at least one multi-screen parameter table, each of which corresponds to a split-screen display mode. Each multi-screen parameter table may include a correspondence between the second touch parameter and the screen identifier. It is understandable that each multi-screen parameter table may include multiple parameter conditions and a screen identifier corresponding to each parameter condition.
[0146] It should be noted that different split-screen display modes correspond to different numbers of screens.
[0147] The electronic device can first determine the split-screen display mode, and then obtain a multi-screen parameter table corresponding to the split-screen display mode, and from the split-screen parameter table, search for the target parameter conditions satisfied by the second touch parameter, and use the screen identifier corresponding to the target parameter conditions as the target screen identifier, and use the screen corresponding to the target screen identifier as the target screen.
[0148] Exemplarily, when the second touch parameter is the number of touches, if the split-screen display mode corresponds to two screens, namely screen 1 and screen 2, screen 1 corresponds to one touch, and screen 2 corresponds to two touches. If the second touch parameter is one touch, the target screen is screen 1, and if the second touch parameter is two touches, the target screen is screen 2.
[0149] For example, when the second touch parameter is a touch track, if the split-screen display mode corresponds to three screens, namely screen 1, screen 2 and screen 3. Among them, screen 1 corresponds to clockwise circle drawing, screen 2 corresponds to counterclockwise circle drawing, and screen 3 corresponds to horizontal sliding. If the second touch parameter is clockwise circle drawing, the target screen is screen 1, if the second touch parameter is counterclockwise circle drawing, the target screen is screen 2, and if the second touch parameter is horizontal sliding, the target screen is screen 3.
[0150] Exemplarily, when the second touch parameter is the touch force, if the split-screen display mode corresponds to 4 screens, they are screen 1, screen 2, screen 3 and screen 4. Among them, screen 1 corresponds to the first force range, screen 2 corresponds to the second force range, screen 3 corresponds to the third force range, and screen 4 corresponds to the fourth force range. If the second touch parameter is in the first force range, the target screen is screen 1, if the second touch parameter is in the second force range, the target screen is screen 2, if the second touch parameter is in the third force range, the target screen is screen 3, and if the second touch parameter is in the fourth force range, the target screen is screen 4.
[0151] By implementing this method, when the electronic device is in split-screen display mode, the user can directly and automatically select the target screen while triggering screen projection, which is conducive to improving the screen projection efficiency of the electronic device.
[0152] 904. The electronic device performs a screen projection operation on the current interface content of the target screen.
[0153] For a detailed description of step 904, please refer to the above description of step 603, which will not be repeated here.
[0154] By implementing the above method, when a touch operation on the screen projection hot zone is detected, the electronic device can further determine whether the first touch parameter of the touch operation meets the specified parameter conditions, and if the specified parameter conditions are met, determine whether the working mode of the display screen is a split-screen display mode, and in the split-screen display mode, select the target screen, and then perform the screen projection operation on the interface content in front of the target screen. This not only effectively reduces the probability of false triggering of screen projection, but also realizes accurate screen projection in the split-screen display mode.
[0155] See also Fig.11 , Fig.11 1 is a structural diagram of the screen projection control device disclosed in the embodiment of the present application. Fig.11 The screen projection control device shown may include a detection unit 1101 and a screen projection unit 1102; wherein:
[0156] The detection unit 1101 is used to detect the touch operation corresponding to the screen projection hot zone of the electronic device; wherein the screen projection hot zone refers to an interactive area on the display screen of the electronic device for triggering screen projection;
[0157] The screen projection unit 1102 is used to perform a screen projection operation in response to a touch operation.
[0158] In some embodiments, the screen projection hot zone is a partial area of the display screen.
[0159] In some embodiments, the position of the screen projection hot zone on the display screen is related to the current posture of the electronic device, or the position of the screen projection hot zone on the display screen is related to the application displayed in the foreground of the electronic device.
[0160] In some embodiments, if the current posture of the electronic device is portrait, the distance between the projection hot zone and the longitudinal side of the electronic device is less than a distance threshold; if the current posture of the electronic device is landscape, the distance between the projection hot zone and the lateral side of the electronic device is less than a distance threshold.
[0161] In some embodiments, the screen projection unit 1102 is used to respond to a touch operation, and the method of performing the screen projection operation may specifically include: the screen projection unit 1102 is used to obtain a first touch parameter of the touch operation; and, when the first touch parameter meets a specified parameter condition, respond to the touch operation and perform the screen projection operation; wherein the first touch parameter includes at least one of the following: touch area; touch duration; number of touches; touch trajectory.
[0162] In some embodiments, the screen projection unit 1102 is used to respond to touch operations, and the method of performing the screen projection operation may specifically include: the screen projection unit 1102 is used to respond to the touch operation to display a device selection interface, the device selection interface includes device information of at least one device to be projected that supports screen projection of the electronic device; and, sending the current interface content of the electronic device to the target device, the target device is any one of the at least one device to be projected.
[0163] In some embodiments, the screen projection unit 1102 may send the current interface content of the electronic device to the target device in the following manner:
[0164] The screen projection unit 1102 is used to send the current interface content of the electronic device to the target device in response to the device selection operation of the user selecting the target device from the device selection interface.
[0165] In some embodiments, the screen projection unit 1102 may send the current interface content of the electronic device to the target device in the following manner:
[0166] The screen projection unit 1102 is used to use the historical screen projection device as the target device if at least one device to be projected includes a historical screen projection device, and send the current interface content of the electronic device to the target device.
[0167] In some embodiments, the device selection interface includes a floating window interface.
[0168] In some embodiments, the method in which the projection unit 1102 is used to display a floating window interface may specifically include: the projection unit 1102 is used to confirm a target display area on a current interface of the electronic device, wherein the target display area is any one of a blank display area, a display area of non-critical content, or a designated area on the current interface; and, displaying a floating window interface in the target display area.
[0169] In some embodiments, the screen projection unit 1102 is used to respond to a touch operation, and the method of performing the screen projection operation may specifically include:
[0170] The screen projection unit 1102 is used to determine a target screen from multiple screens corresponding to the split-screen display mode in response to a touch operation when the electronic device is in the split-screen display mode; and perform a screen projection operation on the current interface content of the target screen.
[0171] In some embodiments, the method for the screen projection unit 1102 to determine the target screen from the multiple screens corresponding to the split-screen display mode may specifically include:
[0172] The screen projection unit 1102 is used to output multiple screen identifiers corresponding to the split-screen display mode; and, in response to a screen selection operation, determine a target screen identifier from the multiple screen identifiers; and determine the screen corresponding to the target screen identifier as the target screen.
[0173] In some embodiments, the method for the screen projection unit 1102 to determine the target screen from the multiple screens corresponding to the split-screen display mode may specifically include:
[0174] The screen projection unit 1102 is used to use the screen that matches the second touch parameter of the touch operation among the multiple screens corresponding to the split-screen display mode as the target screen.
[0175] See also Fig.12 , Fig.12 FIG. 1 is a structural diagram of an electronic device disclosed in an embodiment of the present application. Fig.12 The electronic device shown includes: a processor 1210, a memory 1220, a display unit 1230, an input unit 1240, a sensor 1250, an audio circuit 1260 and other components.
[0176] The processor 1210 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 1220, and calling data stored in the memory 1220, so as to monitor the electronic device as a whole. Optionally, the processor 1210 may include one or more processing units; optionally, the processor 1210 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0177] The memory 1220 can be used to store software programs and modules. The processor 1210 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 1220. The memory 1220 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating devices, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, phone book, etc.), etc. In addition, the memory 1220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0178] The display unit 1230 can be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 1230 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1210 to determine the type of touch event. Subsequently, the processor 1210 provides a corresponding visual output on the display panel according to the type of touch event. Among them, the touch panel and the display panel are not in contact with each other. Fig.12 The touch panel and the display panel can be used as two independent components to realize the input and output functions of the electronic device, or the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device.
[0179] The input unit 1240 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 1240 may include a touch panel and other input devices. A touch panel, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by a user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and drive the corresponding connection device according to a pre-set program. In addition, a variety of types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch panel. In addition to the touch panel, the input unit 1240 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0180] The electronic device may also include at least one sensor 1250, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the electronic device, and the gyroscope sensor can be used to determine the motion posture of the electronic device. It can be used for anti-shake shooting, and can also be used for navigation and somatosensory game scenes. As a type of motion sensor, the acceleration sensor can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc.; as for other sensors that the electronic device can also be configured with, such as pressure gauges, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0181] The audio circuit 1260 may include a speaker and a microphone, and may provide an audio interface between a user and an electronic device. The audio circuit 1260 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1260 and converted into audio data, and then the audio data is output to the processor 1210 for processing, and then sent to another device through the video circuit, or the audio data is output to the memory 1220 for further processing.
[0182] Although not shown, the electronic device may further include a power supply and a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the present embodiment.
[0183] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0184] In the embodiment of the present application, the processor 1210 also has the following functions:
[0185] Detecting a touch operation corresponding to a screen projection hot zone of an electronic device; wherein the screen projection hot zone refers to an interactive area on a display screen of an electronic device for triggering screen projection;
[0186] In response to the touch operation, a screen projection operation is performed.
[0187] In the embodiment of the present application, the screen projection hot zone is a partial area of the display screen.
[0188] In an embodiment of the present application, the position of the screen projection hot zone on the display screen is related to the current posture of the electronic device, or the position of the screen projection hot zone on the display screen is related to the application displayed in the foreground of the electronic device.
[0189] In an embodiment of the present application, if the current posture of the electronic device is portrait, the distance between the projection hot zone and the longitudinal side of the electronic device is less than the distance threshold; if the current posture of the electronic device is landscape, the distance between the projection hot zone and the lateral side of the electronic device is less than the distance threshold.
[0190] In the embodiment of the present application, the processor 1210 also has the following functions:
[0191] Acquire a first touch parameter of the touch operation;
[0192] When the first touch parameter meets the specified parameter condition, the screen projection operation is performed in response to the touch operation; wherein the first touch parameter includes at least one of the following: touch area; touch duration; number of touches; touch trajectory.
[0193] In the embodiment of the present application, the processor 1210 also has the following functions:
[0194] In response to the touch operation, a device selection interface is displayed, where the device selection interface includes device information of at least one device to be projected that supports screen projection of the electronic device;
[0195] Send the current interface content of the electronic device to the target device, where the target device is any one of at least one device to be projected.
[0196] In the embodiment of the present application, the processor 1210 also has the following functions:
[0197] In response to a device selection operation in which a user selects a target device from a device selection interface, the current interface content of the electronic device is sent to the target device.
[0198] In the embodiment of the present application, the processor 1210 also has the following functions:
[0199] If at least one of the devices to be projected includes a historical projection device, the historical projection device is used as the target device, and the current interface content of the electronic device is sent to the target device.
[0200] In an embodiment of the present application, the device selection interface includes a floating window interface.
[0201] In the embodiment of the present application, the processor 1210 also has the following functions:
[0202] Confirming a target display area on a current interface of the electronic device, where the target display area is any one of a blank display area, a display area of non-critical content, or a designated area on the current interface;
[0203] In the target display area, a floating window interface is displayed.
[0204] In the embodiment of the present application, the processor 1210 also has the following functions:
[0205] When the electronic device is in a split-screen display mode, in response to a touch operation, determining a target screen from a plurality of screens corresponding to the split-screen display mode;
[0206] Cast the current content of the target screen to the screen.
[0207] In the embodiment of the present application, the processor 1210 also has the following functions:
[0208] Output multiple screen identifiers corresponding to the split-screen display mode;
[0209] In response to a screen selection operation, determining a target screen identifier from a plurality of screen identifiers;
[0210] The screen corresponding to the target screen identifier is determined as the target screen.
[0211] In the embodiment of the present application, the processor 1210 also has the following functions:
[0212] Among the multiple screens corresponding to the split-screen display mode, the screen that matches the second touch parameter of the touch operation is used as the target screen.
[0213] The embodiment of the present application discloses a computer-readable storage medium on which executable program code is stored. When the executable program code is executed by a processor, the method described in the electronic device in the embodiment of the present application is implemented.
[0214] The embodiment of the present application discloses a computer program product. When the computer program product is executed on a computer, the computer implements the method described in the electronic device in the embodiment of the present application.
[0215] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer implements the method described in the electronic device in the embodiment of the present application.
[0216] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0217] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0218] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0219] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0220] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0221] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0222] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0223] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0224] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0225] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0226] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0227] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0228] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present 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 control method, characterized in that: The method is applicable to an electronic device, and the method comprises: Detecting a touch operation corresponding to a screen projection hot zone of the electronic device; wherein the screen projection hot zone refers to an interactive area on the display screen of the electronic device for triggering screen projection; In response to the touch operation, a screen projection operation is performed.
2. The method according to claim 1, characterized in that The screen projection hot zone is a partial area of the display screen.
3. The method according to claim 2, characterized in that The position of the screen projection hot zone on the display screen is related to the current posture of the electronic device, or the position of the screen projection hot zone on the display screen is related to the application displayed in the foreground of the electronic device.
4. The method according to claim 3, characterized in that If the current posture of the electronic device is portrait, the distance between the screen projection hot zone and the longitudinal side of the electronic device is less than the distance threshold; if the current posture of the electronic device is landscape, the distance between the screen projection hot zone and the lateral side of the electronic device is less than the distance threshold.
5. The method according to any one of claims 2 to 4, characterized in that: The performing a screen projection operation in response to the touch operation includes: Acquire a first touch parameter of the touch operation; When the first touch parameter meets the specified parameter condition, a screen projection operation is performed in response to the touch operation; wherein the first touch parameter includes at least one of the following: touch area; touch duration; number of touches; touch trajectory.
6. The method according to claim 1, characterized in that The performing a screen projection operation in response to the touch operation includes: In response to the touch operation, displaying a device selection interface, wherein the device selection interface includes device information of at least one device to be projected that supports screen projection of the electronic device; Send the current interface content of the electronic device to a target device, where the target device is any one of the at least one device to be projected.
7. The method according to claim 6, characterized in that The sending the current interface content of the electronic device to the target device includes: In response to a device selection operation in which a user selects a target device from the device selection interface, the current interface content of the electronic device is sent to the target device.
8. The method according to claim 6, characterized in that The sending the current interface content of the electronic device to the target device includes: If the at least one device to be projected includes a historical projection device, the historical projection device is used as the target device, and the current interface content of the electronic device is sent to the target device.
9. The method according to any one of claims 6 to 8, characterized in that: The device selection interface includes a floating window interface.
10. The method according to claim 9, characterized in that Displaying the floating window interface includes: Confirming a target display area on a current interface of the electronic device, wherein the target display area is any one of a blank display area, a display area of non-critical content, or a designated area on the current interface; The floating window interface is displayed in the target display area.
11. The method according to claim 1, characterized in that: The performing a screen projection operation in response to the touch operation includes: When the electronic device is in a split-screen display mode, in response to the touch operation, determining a target screen from a plurality of screens corresponding to the split-screen display mode; Perform a screen projection operation on the current interface content of the target screen.
12. The method according to claim 11, characterized in that The determining of the target screen from the multiple screens corresponding to the split-screen display mode includes: Outputting multiple screen identifiers corresponding to the split-screen display mode; In response to a screen selection operation, determining a target screen identifier from the plurality of screen identifiers; The screen corresponding to the target screen identifier is determined as the target screen.
13. The method according to claim 11, characterized in that The determining of the target screen from the multiple screens corresponding to the split-screen display mode includes: Among the multiple screens corresponding to the split-screen display mode, a screen that matches the second touch parameter of the touch operation is used as a target screen.
14. A screen projection control device, characterized in that: The device is on an electronic device, and comprises: A detection unit, used to detect a touch operation corresponding to a screen projection hot zone of the electronic device; wherein the screen projection hot zone refers to an interactive area on the display screen of the electronic device for triggering screen projection; The screen projection unit is used to perform a screen projection operation in response to the touch operation.
15. An electronic device, characterized in that: include: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1 to 13.
16. A computer-readable storage medium having executable program code stored thereon, characterized in that: When the executable program code is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Screen projection method, system and related device
CN110221798A
Screen projection method and device, terminal and storage medium
CN110515579A
Information processing method and electronic equipment
CN112558825A
Screen projection method and electronic equipment
CN113891167A
Screen projection method and device, equipment and storage medium
CN114168091A