Content display method and related products
By displaying the functional interface of the application on the first device and projecting the screen to the second device, the problem of poor user operability when sharing data resources between devices is solved, realizing convenient cross-device data resource sharing, and improving user experience. experience.
Patent Information
- Application Number
- CN202111681037.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-12-30
AI Technical Summary
The existing technology does not have strong user operability when sharing data resources between devices, and cannot achieve convenient collaborative sharing of data resources across devices.
By displaying the functional interface of the application in the form of a floating window on the first device and projecting it to the second device in response to user operations, data flow and content sharing between devices are realized.
It improves the user experience, realizes convenient data resource sharing between devices, and meets the needs of multi-screen collaborative use.
Smart Images

Figure CN114356162B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of multi-device flow, and in particular to a content display method and related products. Background Art
[0002] In the era of mobile Internet, data updates faster and faster. Generally, data resources are shared between devices by projecting the screen in the application, but this method has application limitations and poor user operability. Therefore, there is an urgent need for a content display method to achieve collaborative sharing of data resources across devices. Summary of the invention
[0003] The embodiments of the present application provide a content display method and related products to realize data flow between devices, which is conducive to convenient screen projection and improving user experience.
[0004] In a first aspect, an embodiment of the present application provides a content display method, which is applied to a first device, and the method includes:
[0005] Displaying a first function interface of a first application, wherein the first function interface is displayed in a floating window on the display interface of the first device;
[0006] In response to a first operation of the user on the floating window, the first function interface is projected to a second device to display the first function interface through the second device, and the floating window displayed on the first device is closed.
[0007] In a second aspect, an embodiment of the present application provides a content display method, which is applied to a second device, and the method includes:
[0008] A first function interface sent by a first device is displayed, wherein the first function interface corresponds to a first application in the first device, and the first function interface is suspended in the display interface of the first device in the form of a floating window.
[0009] In a third aspect, an embodiment of the present application provides a content display device, which is applied to a first device, and includes: a display unit and a screen projection unit, wherein:
[0010] The display unit is used to display a first application, wherein a first function interface of the first application is displayed in a floating window on the display interface of the first device;
[0011] The screen projection unit is used to project the first function interface to the second device in response to the user's first operation on the floating window, so as to display the first function interface through the second device and close the floating window.
[0012] In a fourth aspect, an embodiment of the present application provides a content display device, which is applied to a second device, a display unit, wherein:
[0013] The display unit is used to display a first function interface sent by a first device, wherein the first function interface corresponds to a first application in the first device, and the first application is suspended in the display interface of the first device in the form of a floating window.
[0014] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect or the second aspect of the embodiment of the present application.
[0015] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application.
[0016] In a seventh aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0017] It can be seen that in the embodiment of the present application, the first function interface of the first application is displayed, and the first function interface is displayed in the form of a floating window on the display interface of the first device; in response to the user's first operation on the floating window, the first function interface is projected to the second device, so that the first function interface is displayed through the second device, and the floating window displayed on the first device is closed. In this way, the user can project the first application corresponding to the floating window to the second device through the operation corresponding to the first operation, so as to realize the flow of content between devices when the applications corresponding to the current large screen and small screen (floating window) need to be used at the same time, which is conducive to realizing convenient screen projection and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a schematic diagram of the architecture of a content display system provided in an embodiment of the present application;
[0020] Figure 2 This is a schematic diagram of a scene in which an electronic device displays a floating window provided by an embodiment of the present application;
[0021] Figure 3 It is a scene schematic diagram of a content display method provided in an embodiment of the present application;
[0022] Figure 4 It is a flowchart of a content display method provided in an embodiment of the present application;
[0023] Figure 5A It is a scene schematic diagram of a content display method provided in an embodiment of the present application;
[0024] Figure 5B It is a scene schematic diagram of a content display method provided in an embodiment of the present application;
[0025] Figure 6 It is a flowchart of a content display method provided in an embodiment of the present application;
[0026] Figure 7 It is a flowchart of a content display method provided in an embodiment of the present application;
[0027] Figure 8 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0028] Fig. 9 It is a block diagram of the functional units of a content display device provided in an embodiment of the present application;
[0029] Fig. 10A It is a block diagram of the functional units of a content display device provided in an embodiment of the present application;
[0030] Fig. 10B It is a block diagram of the functional units of a content display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0034] 1) The electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch, a smart prosthesis), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an IOS system, an Android system, a Microsoft system, or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop), etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer. In an embodiment of the present application, the above-mentioned electronic device may include a first device and a second device.
[0035] 2) The floating window is a system tool on computers or smart phones. It floats a movable window on the surface of other applications to open different applications. The use of floating windows on mobile phones requires system authorization.
[0036] In the first part, the example application scenarios disclosed in the embodiments of the present application are introduced as follows.
[0037] Figure 1 The network architecture diagram of the content display system to which the present application is applicable is shown, wherein the network architecture may include multiple electronic devices, which may be smart phones, tablet computers, desktop computers, wearable electronic devices with wireless communication functions, etc., and the specifics are not limited here. It should be noted that in the present application, multiple may refer to two or more, which will not be repeated later.
[0038] Among them, the above-mentioned multiple electronic devices can establish communication connections and realize the transmission of content data through wireless communication methods such as 2G, 3G, 4G or 5G mobile communication methods, wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks) or Bluetooth (blue tooth, BT) or ultra-wideband (Ultra Wide Band, UWB) or near-field wireless communication technology (nearfield communication, NFC).
[0039] Exemplarily, the electronic device 100b may establish a communication connection with the electronic device 100a and / or the electronic device 100c, and display the display interface corresponding to the application projected by the electronic device 100b through the electronic device 100a and / or the electronic device 100c. When the application is a video application, the content corresponding to the application may be played in the electronic device 100a and / or the electronic device 100c.
[0040] Currently, if Figure 2 As shown, it is a schematic diagram of a scene in which an electronic device displays a floating window. When the electronic device 100b can display a first application and the current display interface of the electronic device, the first application includes at least one of the following: social applications, news applications, shopping applications, entertainment applications, financial applications, life applications, tool applications, etc., which are not limited here. Among them, the first function interface of the first application is displayed on the display interface in the form of a floating window. When the electronic device 100b establishes a communication connection with the electronic device 100a, and when the devices are used in coordination, the application being used by the electronic device 100b can be displayed through the display screen of the electronic device 100a. However, when casting the screen, the user cannot select the target application (the first application or the second application) from the two applications being displayed on the electronic device 100b at the same time to perform multi-screen collaboration. The content flow can only be realized through specific logic, and the user controllability is not strong.
[0041] Therefore, based on the above reasons, this application proposes a content display method to achieve multi-screen collaboration, specifically, Figure 3The figure shows a scenario diagram of a content display method, in which a first device displays a first functional interface of a first application, and the first functional interface is displayed in the form of a floating window on the display interface of the first device; in response to a first operation of the user on the floating window, the first functional interface is projected to the second device, so that the first functional interface is displayed through the second device, and the floating window displayed on the first device is closed. In this way, the user can project the first application corresponding to the floating window to the second device through the operation corresponding to the first operation, so as to realize the flow of content between devices when the applications corresponding to the current large screen and small screen (floating window) need to be used at the same time, which is conducive to convenient screen projection and improving user experience.
[0042] In the second part, the protection scope of the claims disclosed in the embodiments of the present application is introduced as follows.
[0043] See also Figure 4 , Figure 4 It is a flow chart of a content display method provided in an embodiment of the present application, which is applied to a first device. As shown in the figure, the content display method includes the following operations.
[0044] S401. Display a first function interface of a first application, wherein the first function interface is displayed in a floating window on a display interface of the first device.
[0045] Among them, Figure 3 As shown, the display status of the first application displayed in the first device, wherein the first function interface corresponding to the first application is displayed in suspension on the display interface of the first device.
[0046] Optionally, if the first device currently has another second application displayed and running, the floating window of the first application can be suspended on the functional interface of the second application. For example, the first application can be a chat application, and the second application can be a video application.
[0047] S402. In response to a first operation of the user on the floating window, project the first function interface to a second device to display the first function interface through the second device, and close the floating window displayed on the first device.
[0048] Among them, the above-mentioned first operation can be set by the user or by system default, and is not limited here.
[0049] For example, the gesture corresponding to the first operation may include at least one of the following: drag up and throw, drag to the right and throw, drag down and throw, drag to the left and throw; or a combination of a long press operation and a drag up operation, a drag to the left operation, a drag to the right operation, or a drag down operation, etc., which are not limited here. Among them, the specific operation mode corresponding to the first operation can be set by the user or by the system default, which is not limited here. Different operations can correspond to different functions.
[0050] For example, the user can realize the transfer of the first application to the corresponding display interface of the second device by dragging the floating window upward and throwing it out of the top of the screen of the first device.
[0051] Optionally, the electronic device may select a corresponding second device according to the user's operation direction and the positional relationship between the second device and the first device to realize the flow of display content corresponding to the first application in the floating window of the first device. In a specific implementation, if the environment in which the first device is located includes multiple second devices, and each second device has successfully communicated and connected with the first device, if the communication connection is via WiFi, the first device may respond to the user's first operation of dragging upward and throwing, determine that the device closest to the first device and above the first device is the second device in this application, and display the first functional interface of the first application in the second device.
[0052] For another example, if the first device is a mobile phone, the user wears a smart watch on the left wrist, and a tablet is placed on the desk on the left hand, the smart watch and the mobile phone establish a communication connection through Bluetooth, and the tablet and the mobile phone establish a WiFi connection. When the user holds the mobile phone in his left hand and drags and throws the first application to the left in the mobile phone, the smart watch is selected as the second device, and the first function interface corresponding to the first application is displayed in the display interface of the smart watch. In this way, you don't need to pay attention to the communication connection method between the second device and the first device, and you can determine the device for projection by the distance between the two, which is conducive to improving the user experience.
[0053] It can be seen that in the content display method described in the embodiment of the present application, the first device can display the first function interface of the first application, and the first function interface is displayed in the form of a floating window on the display interface of the first device; in response to the user's first operation on the floating window, the first function interface is projected to the second device, so that the first function interface is displayed through the second device, and the floating window displayed on the first device is closed. In this way, the user can project the first application corresponding to the floating window to the second device through the operation corresponding to the first operation, so as to realize the flow of content between devices when the applications corresponding to the current large screen and small screen (floating window) need to be used at the same time, which is conducive to convenient screen projection and improving user experience.
[0054] In a possible example, after the response to the user's first operation on the first application, the first function interface is projected to the second device. The above method may include the following steps: triggering a device connection request, wherein the device connection request is used to request to establish a communication connection with the second device; after the communication connection is successfully established, obtaining the display content of the first application in the first function interface, and sending the display content to the second device.
[0055] Among them, if the first device and the second device are devices of the same user (user name, user account, etc.), a communication connection can be established in advance, and after the first operation is triggered, a communication connection is directly established with the second device.
[0056] It can be seen that in this application, after the first device receives the user's first operation, it can automatically trigger the establishment of a communication connection with the second device, and then, after the communication connection is successful, the first function interface can be projected to the second device. In this way, the communication efficiency can be improved, and the projection task can be completed without the user noticing, which is conducive to improving the user experience.
[0057] In a possible example, the first operation includes a gesture of flinging the floating window out of the display interface of the first device; sending the displayed content to the second device may include the following steps: if the number of devices that successfully establish a communication connection with the first device is 1, the device that successfully establishes communication is determined as the second device, and the display content of the first application in the first function interface is sent to the second device; if the number of devices that successfully establish a communication connection with the first device is greater than 1, a projection device selection interface is displayed, wherein the projection device selection interface displays the identifiers of at least two to-be-selected projection devices that successfully establish a communication connection with the first device; based on the device identifier, a second device is selected from the at least two to-be-selected projection devices, and the display content of the first application in the first function interface is sent to the second device.
[0058] The device identification may include device name, device model, device code, device type, etc., which are not limited here.
[0059] Among them, the above-mentioned projection device selection interface can be used to display at least one projection device to be selected that establishes a communication connection with the first device, and the second device can be selected from the projection devices to be selected. Specifically, the device identification of the projection device to be selected can be displayed. When the number of devices that establish a communication connection with the first device is greater than 1, the device identifications of multiple projection devices to be selected can be displayed in the projection device selection interface. The first device can respond to the user clicking on the identification of any one of the projection devices to be selected, and then determine that the projection device to be selected is the second device, and then, the display content of the first function interface of the first application can be sent to the second device.
[0060] For example, if Figure 5A As shown, it is a scene schematic diagram of a content display method. As shown in the figure, when the first device recognizes the user's gesture of throwing the floating window out of the display interface of the first device, and the number of devices that successfully establish a communication connection with the first device is 2, the screen projection device selection interface is directly displayed, and the floating window corresponding to the first application is not displayed, wherein the screen projection device selection interface may include two screen projection devices to be selected and their corresponding device identifiers: a tablet computer and a TV; further, based on the device identifier, the user can select a second device from at least two screen projection devices to be selected, such as Figure 5A As shown, the user can click the icon position of the tablet computer to complete the selection of the second device, and send the display content of the first application in the first function interface to the second device, and then the display content of the first application can be displayed by the tablet computer.
[0061] It can be seen that in this example, when the first operation includes a gesture of flinging the floating window out of the display interface of the first device, a projection device selection interface can be provided to the user, and the floating window of the first application is not displayed. The user can select the application he wants to project on the page to realize the projection display of the content of the first application in the floating window. This is conducive to improving the user experience and the operability of device selection.
[0062] In another possible example, the first operation will not throw the floating window out of the display interface of the first device; sending the displayed content to the second device includes: displaying a projection device selection interface, wherein the projection device selection interface displays the identifier of at least one projection device to be selected that has successfully established a communication connection with the first device, and the floating window is suspended on the projection device selection interface; in response to the user's selection operation of the identifier of the projection device to be selected, selecting a second device from the at least one projection device to be selected; sending the display content of the first application in the first function interface to the second device.
[0063] For example, the user's selection operation for the identifier of the selected projection device includes the operation of the user dragging the floating window to the position of the identifier of the selected projection device and then releasing the user's finger from the touch display screen of the first device; that is, the user drags the floating window to the position of the identifier and then releases the finger.
[0064] By way of example, the first operation at least includes a long press gesture operation, a long press and downward (or left or right or up) dragging gesture operation of the first application, a long press for 1.5 seconds and release gesture operation, etc., which are not limited here.
[0065] Among them, users can trigger the display of the projection device selection interface by long pressing or dragging.
[0066] For example, if Figure 5B As shown, it is a scene schematic diagram of a content display method. As shown in the figure, when the first device recognizes that the user will not throw the floating window out of the display interface of the first device by gesture operation, and the number of devices that successfully establish a communication connection with the first device is 2, then the projection device selection interface is displayed, and the floating window corresponding to the first application is retained, which may include two screen projection devices to be selected and their corresponding device identifiers: a tablet computer and a TV; further, based on the device identifier, the user can select a second device from at least two screen projection devices to be selected. In a specific implementation, Figure 5B As shown, the user can drag the floating window corresponding to the first application downward to the icon position of the tablet computer to complete the selection of the second device, and send the display content of the first application in the first function interface to the second device. Then, the display content of the first application can be displayed through the tablet computer.
[0067] It can be seen that in this example, when the floating window will not be thrown out of the display interface of the first device, a projection device selection interface can be provided to the user, and a floating window of the first application can be displayed. The user can select the application he wants to project on this page to realize the projection display of the first application content in the floating window. This is conducive to improving the user experience and the operability of device selection.
[0068] In a possible example, the above method may also include the following steps: receiving the user's target operation on the floating window corresponding to the first application, and identifying the pressing force, dragging direction, dragging duration and dragging speed corresponding to the target operation; identifying the operation corresponding to the target operation based on the pressing force, the dragging direction, the dragging duration and the dragging speed.
[0069] Among them, the first device may include a preset model, which can be set by the user or by the system default, and is not limited here; the preset model may include a neural network model, and the user's operation behavior can be identified through the preset model. Specifically, the above-mentioned pressing force, dragging direction, dragging duration and dragging speed and other relevant parameters can be input into the preset model to calculate the evaluation value corresponding to each preset operation (for example, the gesture of throwing the floating window out of the display interface of the first device, the long press gesture, the long press and drag downward gesture, and the drag gesture), and compare multiple evaluation values, and select the operation corresponding to the maximum evaluation value as the operation corresponding to the target operation.
[0070] It can be seen that in this example, the first device can identify relevant parameters of the target operation performed by the user in the first device (including at least one of the following: pressing force, dragging direction, dragging duration and dragging speed, etc., which are not limited here); and determine the operation that the user wants to perform, and the function corresponding to the operation based on the relevant parameters, so as to adapt different response functions corresponding to different operations to the user (for example, projecting the function display interface of the first application to the second device, displaying the projection device selection interface, only dragging the first application floating window to change the position of the floating window, etc., without limitation).
[0071] In a possible example, identifying the instruction corresponding to the target operation based on the pressing force, the dragging direction, the dragging time and the dragging speed may include the following steps: when the pressing force is less than or equal to the first preset force and greater than the second preset force, the dragging time is less than or equal to the preset duration, and the dragging speed is greater than the preset speed, determining that the instruction corresponding to the target operation is the gesture of throwing the floating window out of the display interface of the first device; when the pressing force is less than or equal to the second preset force, determining that the target operation corresponds to the gesture of moving the floating window corresponding to the first application in the display interface in the dragging direction; when the pressing force is greater than the first preset force and the dragging direction satisfies the preset dragging direction, determining that the target operation corresponds to the gesture that will not throw the floating window out of the display interface of the first device, and triggering the electronic device to display the projection device selection interface.
[0072] Among them, the above-mentioned first preset force and / or second preset force and / or preset duration and / or preset speed can be set by the user or by the system default, which is not limited here; the combination of the above-mentioned different parameters can trigger different operations, and the above-mentioned second preset force is smaller than the first preset force. The above-mentioned preset drag direction can be determined according to the display position of the first application. The preset drag direction is the direction from the display position of the first application to the center position of the screen. For example, it can be understood that if the first application is displayed on the top of the screen of the first device, the preset drag direction is to drag downward, and if the first application is displayed on the left side of the screen of the first device, the preset drag direction is to drag to the right.
[0073] For example, when the user's pressing force is less than or equal to the second preset force, the first device can respond to the gesture corresponding to the target operation and adaptively move the floating window corresponding to the first application in the display screen of the first device according to the user's dragging direction; when the user's pressing force is greater than the first preset force, it indicates that the user wants to realize the device flow function, and the corresponding gesture can be further determined based on other parameters of the target operation.
[0074] The preset speed may be greater than the speed at which the user normally drags the floating window.
[0075] In a specific implementation, when the pressing force is greater than or equal to a first preset force, and the dragging direction satisfies the preset dragging direction relative to the display position of the first application, it indicates that the user wants to realize the device flow function and wants to select a projection device. The operation corresponding to the target operation is determined to be a gesture that will not throw the floating window out of the display interface of the first device. The first device can display the projection device selection interface and display at least one selected projection device that has successfully communicated with the first device in the projection device selection interface.
[0076] Furthermore, when the pressing force is less than or equal to the first preset force and greater than the second preset force, it indicates that the user wants to realize the device transfer function, and when the dragging time is less than or equal to the preset duration, and the dragging speed is greater than the preset speed, it indicates that the user wants to quickly drag the floating window to throw out the floating window to directly realize the device transfer function, that is, the gesture corresponding to the target operation is the display interface of the floating window being thrown out of the first device; if there is only one second device with which the first device establishes a communication connection, the first function interface corresponding to the first application can be directly displayed in the second device. Of course, if there are multiple devices with which the first device establishes a communication connection, multiple devices can be displayed in the projection device selection interface for the user to select the second device.
[0077] It can be seen that in this example, the first device can further determine the function that the user wants to achieve based on the different parameters of the user's operation of the floating window, thereby providing the user with a variety of display functions, which is conducive to improving the user experience.
[0078] See also Figure 6 , Figure 6 It is a flow chart of a content display method provided in an embodiment of the present application, which is applied to a second device. As shown in the figure, the content display method includes the following operations.
[0079] S601. Display a first function interface sent by a first device, wherein the first function interface corresponds to a first application in the first device, and the first function interface is suspended in the display interface of the first device in the form of a floating window.
[0080] Among them, when displaying the above-mentioned first function interface, it can be displayed through a floating window or full screen or half screen, which can be set in advance by the user and is not limited here.
[0081] In a possible example, the method further includes the following step: the second device may receive display content sent by the first device, wherein the display content is display content displayed in the first function interface.
[0082] In a possible example, the above method also includes the following steps: if the second device is running a second application, then the display content corresponding to the first device is displayed in a floating manner on the target function interface of the second application in a preset manner in the form of a floating window; if the second device is not running any application, then the display content corresponding to the first device is directly displayed in the form of the floating window, or, the second application corresponding to the first application is started, and the display content is displayed in the second function interface corresponding to the second application.
[0083] Among them, the above-mentioned second application is an application that is running in the second device, and the above-mentioned target function interface is a page corresponding to the second application.
[0084] In a possible example, the method further includes the following steps: the second device starts a third application corresponding to the first application, and displays the display content in a third function interface corresponding to the third application, wherein the third application is used to achieve screen projection display requirements. For example, when the first application is not installed in the second device, a third application with the same function as the first application can be started to display the display content of the first application.
[0085] Among them, the above-mentioned third application can be used to realize screen projection. The user can set the second device to realize the screen projection function of the first device through the third application. Of course, the style, operation and function of the third function interface in the third application can be set by the user. The display content corresponding to the first application can be displayed according to the layout of the style of the third function interface, which is conducive to improving the user experience.
[0086] It can be seen that in the content display method described in the embodiment of the present application, the second device displays the first functional interface sent by the first device, wherein the first functional interface corresponds to the first application in the first device, and the first functional interface is suspended in the display interface of the first device in the form of a floating window. In this way, the second device can support the device content flow function of the first device to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application in its corresponding page.
[0087] Please refer to Figure 7 , Figure 7 1 is a flow chart of a content display method provided in an embodiment of the present application. As shown in the figure, the content display method includes the following operations.
[0088] S701. A first device displays a first function interface of a first application, where the first function interface is displayed in a floating window on a display interface of the first device.
[0089] S702. The first device responds to the user's first operation on the floating window, where the first operation includes a gesture of flinging the floating window out of the display interface of the first device. If the number of devices that have successfully established a communication connection with the first device is 1, the device that has successfully established communication is determined as the second device, and the display content of the first application in the first function interface is sent to the second device.
[0090] S703. If the number of devices that have successfully established communication connections with the first device is greater than 1, a projection device selection interface is displayed, wherein the projection device selection interface displays the identifiers of at least two projection devices to be selected that have successfully established communication connections with the first device; based on the device identifiers, a second device is selected from the at least two projection devices to be selected, and the display content of the first application in the first function interface is sent to the second device.
[0091] S704. The second device receives display content sent by the first device, wherein the display content is display content displayed in a first function interface of a first application in the first device.
[0092] S705. The second device displays the first function interface sent by the first device, wherein the first function interface corresponds to the first application in the first device, and the first function interface is suspended in the display interface of the first device in the form of a floating window.
[0093] The description of steps S701-S703 is similar to that of Figure 4 The relevant description of the content display method is consistent with that in the above content display method, and will not be repeated here; the relevant description of the above steps S704-S705 is the same as that in the above content display method. Figure 6The relevant description in the content display method is consistent and will not be repeated here.
[0094] It can be seen that in the content display method described in the embodiment of the present application, the first device displays the first functional interface of the first application, and the first functional interface is displayed in the form of a floating window on the display interface of the first device; the first device responds to the user's first operation on the floating window, and the first operation includes a gesture of throwing the floating window out of the display interface of the first device. If the number of devices that successfully establish a communication connection with the first device is 1, the device that successfully establishes communication is determined as the second device, and the display content of the first application in the first functional interface is sent to the second device; if the number of devices that successfully establish a communication connection with the first device is greater than 1, the first device displays a screen projection device selection interface. The screen projection device selection interface displays the identifications of at least two screen projection devices that have successfully established a communication connection with the first device; based on the device identification, a second device is selected from the at least two screen projection devices to be selected, and the display content of the first application in the first function interface is sent to the second device; the second device receives the display content sent by the first device, wherein the display content is the display content displayed in the first function interface of the first application in the first device; the second device displays the first function interface sent by the first device, wherein the first function interface corresponds to the first application in the first device, and the first function interface is suspended in the display interface of the first device in the form of a floating window. In this way, the user can select different screen projection methods through the gesture corresponding to the first operation and the number of devices in communication connection to realize the projection of the first application corresponding to the floating window to the second device, so as to realize that when the applications corresponding to the current large screen and small screen (floating window) need to be used at the same time, the flow of content between devices is conducive to the realization of convenient screen projection; according to the actual situation, the user can realize screen projection through different operation gestures, which is conducive to improving the user experience.
[0095] See also Figure 8 , Figure 8 It is a structural diagram of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory.
[0096] In a possible example, the electronic device includes a first device, and the one or more programs are configured to execute instructions of the following steps by the processor:
[0097] Displaying a first function interface of a first application, wherein the first function interface is displayed in a floating window on the display interface of the first device;
[0098] In response to a first operation of the user on the floating window, the first function interface is projected to a second device to display the first function interface through the second device, and the floating window displayed on the first device is closed.
[0099] It can be seen that the electronic device described in the embodiment of the present application can display the first function interface of the first application, and the first function interface is displayed in the form of a floating window on the display interface of the first device; in response to the user's first operation on the floating window, the first function interface is projected to the second device to display the first function interface through the second device, and the floating window displayed on the first device is closed. In this way, the user can project the first application corresponding to the floating window to the second device through the operation corresponding to the first operation, so as to realize the flow of content between devices when the applications corresponding to the current large screen and small screen (floating window) need to be used at the same time, which is conducive to convenient screen projection and improving user experience.
[0100] Optionally, in terms of projecting the first function interface to the second device, the program includes instructions for executing the following steps:
[0101] triggering a device connection request, wherein the device connection request is used to request to establish a communication connection with the second device;
[0102] After the communication connection is successfully established,
[0103] Obtain display content of the first application in the first function interface, and send the display content to the second device.
[0104] Optionally, the first operation includes a gesture of throwing the floating window out of a display interface of the first device;
[0105] In terms of projecting the first function interface to the second device, the program includes instructions for executing the following steps:
[0106] If the number of devices that successfully establish communication connection with the first device is 1, determine the device that successfully establishes communication as the second device, and send the display content of the first application in the first function interface to the second device;
[0107] If the number of devices that have successfully established a communication connection with the first device is greater than 1, a projection device selection interface is displayed, wherein the projection device selection interface displays the identifiers of at least two projection devices to be selected that have successfully established a communication connection with the first device; based on the device identifiers, a second device is selected from the at least two projection devices to be selected, and the display content of the first application in the first function interface is sent to the second device.
[0108] Optionally, the first operation will not throw the floating window out of the display interface of the first device;
[0109] In terms of projecting the first function interface to the second device, the program includes instructions for executing the following steps:
[0110] Displaying a screen projection device selection interface, wherein the screen projection device selection interface displays an identification of at least one screen projection device to be selected that has successfully established a communication connection with the first device, and the floating window floats on the screen projection device selection interface;
[0111] In response to a user selecting an identifier of the screen projection device to be selected, selecting a second device from the at least one screen projection device to be selected;
[0112] Send the display content of the first application in the first function interface to the second device.
[0113] Optionally, the above program includes instructions for executing the following steps: the user's selection operation of the identifier of the selected projection device includes the operation of the user dragging the floating window to the position where the identifier of the selected projection device is located and then the user's finger leaves the touch display screen of the first device.
[0114] Optionally, the program includes instructions for executing the following steps: the user's selection operation of the identifier of the selected projection device includes the user dragging the floating window to the position where the identifier of the selected projection device is located and then the user's finger leaves the touch display screen of the first device.
[0115] Optionally, the first operation includes at least a long press gesture operation.
[0116] Optionally, the program includes instructions for executing the following steps:
[0117] receiving a target operation of the user on the floating window, and identifying a pressing force, a dragging direction, a dragging duration, and a dragging speed corresponding to the target operation;
[0118] An operation corresponding to the target operation is identified according to the pressing force, the dragging direction, the dragging duration, and the dragging speed.
[0119] Optionally, in terms of the instruction for identifying the target operation corresponding to the target operation according to the pressing force, the dragging direction, the dragging time and the dragging speed, the program includes instructions for executing the following steps:
[0120] When the pressing force is less than or equal to the first preset force and greater than the second preset force, the dragging time is less than or equal to the preset duration, and the dragging speed is greater than the preset speed, it is determined that the target operation corresponds to the gesture of throwing the floating window out of the display interface of the first device;
[0121] When the pressing force is less than or equal to the second preset force, determining that the target operation corresponds to a gesture of moving a floating window corresponding to the first application in the display interface in the dragging direction;
[0122] When the pressing force is greater than the first preset force and the dragging direction satisfies the preset dragging direction, the instruction corresponding to the target operation is determined to be the gesture that will not throw the floating window out of the display interface of the first device, and the first device is triggered to display the projection device selection interface.
[0123] In a possible example, the electronic device includes a second device, and the one or more programs are configured to cause the processor to execute instructions of the following steps:
[0124] A first function interface sent by a first device is displayed, wherein the first function interface corresponds to a first application in the first device, and the first function interface is suspended in the display interface of the first device in the form of a floating window.
[0125] It can be seen that in the electronic device described in the embodiment of the present application, the second device displays the first functional interface sent by the first device, wherein the first functional interface corresponds to the first application in the first device, and the first functional interface is suspended in the display interface of the first device in the form of a floating window. In this way, the second device can support the device content flow function of the first device to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application in its corresponding page.
[0126] Optionally, the program further includes instructions for executing the following steps:
[0127] Receive display content sent by the first device, wherein the display content is display content displayed in the first function interface.
[0128] Optionally, the program further includes instructions for executing the following steps:
[0129] If the second device is running a second application, the first function interface is displayed in a floating manner on the second function interface of the second application in a floating window in a preset manner;
[0130] If the second device is not running any application, the first function interface is directly displayed in a floating window or in a full-screen manner.
[0131] Optionally, the program further includes instructions for executing the following steps:
[0132] Start a third application corresponding to the first application, and display the display content in a third function interface corresponding to the third application, wherein the third application is used to achieve screen projection display requirements.
[0133] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0134] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0135] In the case of dividing each functional module into corresponding functional modules, Fig. 9 A schematic diagram of a content display device is shown, Fig. 9 As shown, the device is applied to a first device, and the content display device 900 may include: a display unit 901 and a screen projection unit 902, wherein:
[0136] The display unit 901 may be used to support the terminal device to execute the above step S401 and / or other processes for the technology described herein.
[0137] The screen projection unit 902 can be used to support the terminal device to execute the above-mentioned step S402, and / or other processes of the technology described in this article.
[0138] It can be seen that the content display device provided in the embodiment of the present application displays the first functional interface of the first application, and the first functional interface is displayed in the form of a floating window on the display interface of the first device; in response to the user's first operation on the floating window, the first functional interface is projected to the second device, so that the first functional interface is displayed through the second device, and the floating window displayed on the first device is closed. In this way, the user can project the first application corresponding to the floating window to the second device through the operation corresponding to the first operation, so as to realize the flow of content between devices when the applications corresponding to the current large screen and small screen (floating window) need to be used at the same time, which is conducive to realizing convenient screen projection and improving user experience.
[0139] Optionally, in projecting the first function interface to the second device, the projection unit 902 is specifically used for:
[0140] triggering a device connection request, wherein the device connection request is used to request to establish a communication connection with the second device;
[0141] After the communication connection is successfully established,
[0142] Obtain display content of the first application in the first function interface, and send the display content to the second device.
[0143] Optionally, the first operation includes a gesture of throwing the floating window out of a display interface of the first device;
[0144] In terms of projecting the first functional interface to the second device, the projection unit 902 is specifically used for:
[0145] If the number of devices that successfully establish communication connection with the first device is 1, determine the device that successfully establishes communication as the second device, and send the display content of the first application in the first function interface to the second device;
[0146] If the number of devices that have successfully established a communication connection with the first device is greater than 1, a projection device selection interface is displayed, wherein the projection device selection interface displays the identifiers of at least two projection devices to be selected that have successfully established a communication connection with the first device; based on the device identifiers, a second device is selected from the at least two projection devices to be selected, and the display content of the first application in the first function interface is sent to the second device.
[0147] Optionally, the first operation will not throw the floating window out of the display interface of the first device;
[0148] In terms of projecting the first functional interface to the second device, the projection unit 902 is specifically used for:
[0149] Displaying a screen projection device selection interface, wherein the screen projection device selection interface displays an identification of at least one screen projection device to be selected that has successfully established a communication connection with the first device, and the floating window floats on the screen projection device selection interface;
[0150] In response to a user selecting an identifier of the screen projection device to be selected, selecting a second device from the at least one screen projection device to be selected;
[0151] Send the display content of the first application in the first function interface to the second device.
[0152] Fig. 10A A schematic diagram of a content display device is shown, Fig. 10A As shown, the device is applied to a second device, and the content display device 1000 may include: a display unit 1001, wherein:
[0153] The display unit 1001 may be used to support the terminal device to execute the above step S601 and / or other processes of the technology described herein.
[0154] It can be seen that in the content display device provided in the embodiment of the present application, the second device displays the first functional interface sent by the first device, wherein the first functional interface corresponds to the first application in the first device, and the first functional interface is suspended in the display interface of the first device in the form of a floating window. In this way, the second device can support the device content flow function of the first device to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application in its corresponding page.
[0155] Optionally, Fig. 10B A schematic diagram of a content display device is shown, and Fig. 10A Compared with the device Fig. 10B The above-mentioned content display device 1000 may include: a receiving unit 1002, configured to receive display content sent by the first device, wherein the display content is the display content displayed in the first function interface.
[0156] Optionally, the display unit 1001 is specifically used for:
[0157] If the second device is running a second application, the first function interface is displayed in a floating manner on the second function interface of the second application in a floating window in a preset manner;
[0158] If the second device is not running any application, the first function interface is directly displayed in a floating window or in a full-screen manner.
[0159] Optionally, the display unit 1001 is specifically used for:
[0160] Start a third application corresponding to the first application, and display the display content in a third function interface corresponding to the third application, wherein the third application is used to achieve screen projection display requirements.
[0161] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0162] The electronic device provided in this embodiment is used to execute the above content display method, and thus can achieve the same effect as the above implementation method.
[0163] In the case of using an integrated unit, the electronic device may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the electronic device, for example, it can be used to support the electronic device to execute the above-mentioned display unit 901 and the projection unit 902, or the steps performed by the display unit 1001 and the receiving unit 1002. The storage module can be used to support the electronic device to execute stored program codes and data, etc. The communication module can be used to support the communication between the electronic device and other devices.
[0164] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0165] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0166] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0167] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0168] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0169] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0170] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0171] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0172] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0173] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0174] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A content display method, applied to a first device, It is characterized in that The method comprises: Displaying a first function interface of a first application, wherein the first function interface is displayed in a floating window on the display interface of the first device; In response to the user's first operation on the floating window, the first function interface is projected to the second device according to the operation direction corresponding to the first operation and the positional relationship between the first device and the second device, so as to display the first function interface through the second device, and the floating window displayed on the first device is closed.
2. The method according to claim 1, It is characterized in that The projecting the first function interface to the second device includes: triggering a device connection request, wherein the device connection request is used to request to establish a communication connection with the second device; After the communication connection is successfully established, Obtain display content of the first application in the first function interface, and send the display content to the second device.
3. The method according to claim 2, It is characterized in that The first operation includes a gesture of throwing the floating window out of the display interface of the first device; The sending the display content to the second device includes: If the number of devices that successfully establish communication connection with the first device is 1, determine the device that successfully establishes communication as the second device, and send the display content of the first application in the first function interface to the second device; If the number of devices that have successfully established a communication connection with the first device is greater than 1, a projection device selection interface is displayed, wherein the projection device selection interface displays the identifiers of at least two projection devices to be selected that have successfully established a communication connection with the first device; based on the device identifiers, a second device is selected from the at least two projection devices to be selected, and the display content of the first application in the first function interface is sent to the second device.
4. The method according to claim 2, It is characterized in that The first operation will not throw the floating window out of the display interface of the first device; The sending the display content to the second device includes: Displaying a screen projection device selection interface, wherein the screen projection device selection interface displays an identification of at least one screen projection device to be selected that has successfully established a communication connection with the first device, and the floating window floats on the screen projection device selection interface; In response to a user selecting an identifier of the screen projection device to be selected, selecting a second device from the at least one screen projection device to be selected; Send the display content of the first application in the first function interface to the second device.
5. The method according to claim 4, It is characterized in that The user's selection operation for the identifier of the screen projection device to be selected includes the operation of the user dragging the floating window to the position where the identifier of the screen projection device to be selected is located and then the user's finger leaves the touch display screen of the first device.
6. The method according to claim 4, It is characterized in that The first operation at least includes a long press gesture operation.
7. The method according to any one of claims 3 to 6, It is characterized in that The method further comprises: receiving a target operation of the user on the floating window, and identifying a pressing force, a dragging direction, a dragging duration, and a dragging speed corresponding to the target operation; An operation corresponding to the target operation is identified according to the pressing force, the dragging direction, the dragging duration, and the dragging speed.
8. The method according to claim 7, It is characterized in that The identifying, according to the pressing force, the dragging direction, the dragging duration, and the dragging speed, an operation corresponding to the target operation includes: When the pressing force is less than or equal to the first preset force and greater than the second preset force, the dragging duration is less than or equal to the preset duration, and the dragging speed is greater than the preset speed, it is determined that the target operation corresponds to the gesture of throwing the floating window out of the display interface of the first device; When the pressing force is less than or equal to the second preset force, determining that the target operation corresponds to a gesture of moving a floating window corresponding to the first application in the display interface in the dragging direction; When the pressing force is greater than the first preset force and the dragging direction satisfies the preset dragging direction, the operation corresponding to the target operation is determined to be a gesture that will not throw the floating window out of the display interface of the first device, and the first device is triggered to display the projection device selection interface.
9. A content display method, applied to a second device, It is characterized in that The method comprises: Display a first function interface sent by a first device, wherein the first function interface corresponds to a first application in the first device, and the first function interface is suspended in the display interface of the first device in the form of a floating window, and the first function interface is projected by the first device according to an operation direction corresponding to the first operation and a positional relationship between the first device and the second device.
10. The method according to claim 9, It is characterized in that The method further comprises: Receive display content sent by the first device, wherein the display content is display content displayed in the first function interface.
11. The method according to claim 9 or 10, It is characterized in that The method further comprises: If the second device is running a second application, the first function interface is displayed in a floating manner on the second function interface of the second application in a floating window in a preset manner; If the second device is not running any application, the first function interface is directly displayed in a floating window or in a full-screen manner.
12. The method according to claim 9 or 10, It is characterized in that The method further comprises: Start a third application corresponding to the first application, and display the display content in a third function interface corresponding to the third application, wherein the third application is used to achieve screen projection display requirements.
13. A content display device, It is characterized in that The device is applied to a first device, and comprises: a display unit and a screen projection unit, wherein: The display unit is used to display a first application, wherein a first function interface of the first application is displayed in a floating window on the display interface of the first device; The screen projection unit is used to respond to the user's first operation on the floating window, and according to the operation direction corresponding to the first operation and the positional relationship between the first device and the second device, project the first function interface to the second device, so as to display the first function interface through the second device and close the floating window.
14. A content display device, It is characterized in that The device is applied to a second device, and comprises: a display unit, wherein: The display unit is used to display a first function interface sent by a first device, wherein the first function interface corresponds to a first application in the first device, the first application is suspended in the display interface of the first device in the form of a floating window, and the first function interface is projected by the first device according to an operation direction corresponding to a first operation and a positional relationship between the first device and the second device.
15. An electronic device, It is characterized in that The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 8 or any one of claims 9 to 12.
16. A computer-readable storage medium, It is characterized in that A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 8 or any one of claims 9 to 12.
17. A computer program product, in, The computer program product comprises a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute the method as described in any one of claims 1 to 8 or any one of claims 9 to 12.
