WO2023125048A1 - Content display method and related product - Google Patents
Content display method and related product Download PDFInfo
- Publication number
- WO2023125048A1 WO2023125048A1 PCT/CN2022/139337 CN2022139337W WO2023125048A1 WO 2023125048 A1 WO2023125048 A1 WO 2023125048A1 CN 2022139337 W CN2022139337 W CN 2022139337W WO 2023125048 A1 WO2023125048 A1 WO 2023125048A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- display
- interface
- application
- floating window
- screen projection
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 93
- 238000007667 floating Methods 0.000 claims abstract description 137
- 230000004044 response Effects 0.000 claims abstract description 15
- 230000006870 function Effects 0.000 claims description 80
- 238000004891 communication Methods 0.000 claims description 72
- 238000003825 pressing Methods 0.000 claims description 26
- 238000004590 computer program Methods 0.000 claims description 20
- 238000011156 evaluation Methods 0.000 claims description 6
- 238000012546 transfer Methods 0.000 abstract description 9
- 230000006872 improvement Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 18
- 238000012545 processing Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000005266 casting Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 238000005316 response function Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 210000000707 wrist Anatomy 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
Definitions
- the present application relates to the technical field of multi-device transfer, in particular to a content display method and related products.
- Embodiments of the present application provide a content display method and related products, which realize data transfer between devices, facilitate convenient screen projection, and improve user experience.
- the embodiment of the present application provides a method for displaying content, which is applied to a first device, and the method includes:
- the embodiment of the present application provides a method for displaying content, which is applied to a second device, and the method includes:
- Displaying a first functional interface sent by the first device wherein the first functional interface corresponds to a first application in the first device, and the first functional interface is suspended in the form of a floating window on the first device's display interface.
- an embodiment of the present application provides a content display device, the device is applied to a first device, and the device includes: a display unit and a screen projection unit, wherein,
- the display unit is configured to display a first application, and the first functional interface of the first application is suspended and displayed on the display interface of the first device in the form of a floating window;
- the screen projection unit is configured to project the first functional interface to a second device in response to the user's first operation on the floating window, so as to display the first functional interface through the second device , and close the floating window.
- an embodiment of the present application provides a content display device, the device is applied to a second device, a display unit, wherein,
- the display unit is configured to display a first functional interface sent by the first device, wherein the first functional interface corresponds to a first application in the first device, and the first application is suspended in the form of a floating window In the display interface of the first device.
- an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be processed by the above
- the above program includes instructions for executing the steps in any method of the first aspect or the second aspect of the embodiments of the present application.
- the embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables the computer to execute Part or all of the steps described in any method of the first aspect or the second aspect.
- the 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 enable the computer to execute the program as implemented in the present application.
- the computer program product may be a software installation package.
- the first functional interface of the first application is displayed, and the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window; in response to the user's first operation on the floating window , projecting the first functional interface to the second device, so as to display the first functional interface through the second device, and close the floating window displayed on the first device.
- 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
- FIG. 1 is a schematic diagram of the architecture of a content display system provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of an electronic device displaying a floating window provided by an embodiment of the present application
- FIG. 3 is a schematic diagram of a scene of a content display method provided by an embodiment of the present application.
- FIG. 4 is a schematic flowchart of a content display method provided by an embodiment of the present application.
- FIG. 5A is a schematic diagram of a scene of a content display method provided by an embodiment of the present application.
- FIG. 5B is a schematic diagram of a scene of a content display method provided by an embodiment of the present application.
- FIG. 6 is a schematic flowchart of a content display method provided by an embodiment of the present application.
- FIG. 7 is a schematic flowchart of a content display method provided by an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 9 is a block diagram of functional units of a content display device provided by an embodiment of the present application.
- FIG. 10A is a block diagram of functional units of a content display device provided by an embodiment of the present application.
- FIG. 10B is a block diagram of functional units of a content display device provided by an embodiment of the present application.
- the electronic device can be a portable electronic device that also includes other functions such as personal digital assistant and/or music player function, such as mobile phone, tablet computer, wearable electronic device with wireless communication function (such as smart watch, smart prosthesis), Vehicle equipment, etc.
- portable electronic devices include, but are not limited to, portable electronic devices equipped with IOS systems, Android systems, Microsoft systems, or other operating systems.
- the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop). 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.
- the foregoing electronic device may include a first device and a second device.
- the floating window is a system tool of a computer or smart phone. It floats a movable window on the surface of other applications to open different applications. The mobile phone needs system authorization to use the floating window.
- Figure 1 shows a schematic diagram of the network architecture of the content display system applicable to the present application, wherein the above network architecture may include multiple electronic devices, and the electronic devices may be smartphones, tablet computers, desktop computers, wireless communication Wearable electronic devices and the like are not specifically limited here. It should be noted that, in this application, a plurality may refer to two or more, which will not be repeated hereafter.
- the above-mentioned multiple electronic devices can be connected through 2G, 3G, 4G or 5G mobile communication methods, wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless fidelity, Wi-Fi) network) or Bluetooth ( Blue tooth, BT) or ultra-wideband (Ultra Wide Band, UWB) or near field communication (near field communication, NFC) and other wireless communication methods to establish communication connections and realize the transmission of content data.
- wireless local area networks wireless local area networks, WLAN
- WLAN wireless local area networks
- Wi-Fi Wireless fidelity
- Bluetooth Blue tooth, BT
- UWB ultra-wideband
- NFC near field communication
- the above-mentioned electronic device 100b may establish a communication connection with the electronic device 100a and/or the electronic device 100c, and display the corresponding display interface of the application projected to 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 above application may be played on the electronic device 100a and/or the electronic device 100c.
- FIG. 2 it is a schematic diagram of a scene where an electronic device displays a floating window.
- the first application includes at least one of the following: social networking Applications, news applications, shopping applications, entertainment applications, financial applications, lifestyle applications, tool applications, etc., are not limited here.
- the first functional interface of the first application is suspended and displayed on the display interface by means of a floating window.
- the display screen of the electronic device 100a can display the application program that the electronic device 100b is using, but when the screen is projected, the user cannot At the same time, there are two currently displayed applications to select the target application (the first application or the second application) for multi-screen collaboration, and the content flow can only be realized through specific logic, and the user's controllability is not strong.
- FIG. 3 it is a schematic diagram of a scene of a content display method. interface, the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window; in response to the user’s first operation on the floating window, the first functional interface is projected to the second In the second device, the first function interface is displayed through the second device, and the floating window displayed on the first device is closed.
- 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
- FIG. 4 is a schematic flowchart of a content display method provided by 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.
- FIG. 3 it is a display state in which the first application is displayed on the first device, wherein the first function interface corresponding to the first application is suspended and displayed on the display interface of the first device.
- the floating window of the first application may be suspended on the functional interface of the second application.
- the first application may be a chat application
- the second application may be a video application.
- the above-mentioned first operation may be set by the user or defaulted by the system, which is not limited herein.
- the gesture corresponding to the first operation may include at least one of the following: drag and throw upward, drag and throw right, drag and throw downward, drag and throw left; or Combination operations corresponding to the long press operation and the upward drag operation, leftward drag operation, rightward drag operation, or downward drag operation, etc., are not limited herein.
- the specific operation mode corresponding to the first operation may be set by the user or defaulted by the system, which is not limited herein. Different operations can correspond to different functions.
- the user can realize that the flow of the first application is transferred to the corresponding display interface of the second device by dragging the floating window upward and throwing the top of the screen of the first device.
- the electronic device can select the 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 the display content corresponding to the first application in the floating window in the first device , in a specific implementation, if the environment where the first device is located includes multiple second devices, and each second device has successfully communicated with the first device, if the communication connection is via WiFi, the first device can respond Based on the user's first operation of dragging up and throwing, determine the device above the first device closest to the first device as the second device in this application, and display the first application's content on the second device The first functional interface.
- 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 side
- the smart watch mobile phone establishes a communication connection through Bluetooth
- the tablet establishes a WiFi connection with the mobile phone.
- the smart watch is selected as the second device, and the first function interface corresponding to the first application is displayed on the display interface of the smart watch. In this way, it is not necessary to pay attention to the communication connection mode between the second device and the first device, and the device for screen projection can be determined according to the distance between the two, which is beneficial to improve user experience.
- the first device can display the first functional interface of the first application, and the first functional interface is suspended and displayed on the display of the first device in the form of a floating window.
- 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
- the method of projecting the first functional interface to the second device may include the following steps: triggering a device connection request, where 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 the display content of the first application in the first function interface, and The display content is sent to the second device.
- the communication connection can be established in advance, and the communication connection can be directly established with the second device after the first operation is triggered.
- the first device 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 the second device. In this way, the communication efficiency can be improved, and the screen projection task can be completed without the user feeling, which is conducive to improving user experience.
- 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 may include the following Step: if the number of devices successfully establishing communication connections with the first device is 1, then determine the device successfully establishing communication as the second device, and display the first application in the first function interface The content is sent 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 screen-casting device selection interface is displayed, wherein the screen-casting device selection interface is displayed with the The identifiers of at least two screen projection devices to be selected for which the first device has successfully established a communication connection; based on the device identifiers, selecting a second device from the at least two screen projection devices to be selected, and applying the first application to the selected screen projection devices Send the display content in the first function interface to the second device.
- the above-mentioned device identification may include a device name, a device model, a device code, a device type, etc., which are not limited herein.
- the above-mentioned screen projection device selection interface may be used to display at least one screen projection device to be selected that has established a communication connection with the first device, and a second device may be selected among the screen projection devices to be selected.
- the device identification of the screen projection device to be selected may be displayed.
- the device identifications of multiple screen projection devices to be selected may be displayed in the screen projection device selection interface, and the first device may respond to the user clicking any one of the screen projection devices to be selected
- the operation of the identification of the selected screen projection device is determined to be the second device, and then, the display content of the first function interface of the first application can be sent to the second device.
- FIG. 5A it is a schematic diagram of a scene of a content display method.
- the display screen projection device selection interface may include two screen projections to be selected Devices and their corresponding device identifiers: a tablet computer and a TV set; furthermore, based on the device identifiers, the user can select a second device from at least two screen-casting devices to be selected, as shown in Figure 5A, the user can click on the tablet computer Icon position, 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 display the display content of the first application through the tablet computer.
- the user when the first operation includes the gesture of throwing the floating window out of the display interface of the first device, the user can be provided with a screen projection device selection interface, and the floating window of the first application is not displayed.
- the application to be projected is selected by oneself, so as to realize the projected display of the content of the first application in the floating window. In this way, it is beneficial to improve the user experience and the operability of device selection.
- the first operation does 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 Screen projection device selection interface, wherein the screen projection device selection interface displays at least one candidate screen projection device identification that has successfully established a communication connection with the first device, and the floating window is suspended on the screen projection device On the selection interface; in response to the user’s selection operation on the identification of the screen projection device to be selected, select a second device from the at least one screen projection device to be selected; apply the first application to the first function interface The displayed content in is sent to the second device.
- the user's selection operation of the logo of the screen projection device to be selected includes the user's operation of leaving the touch screen of the first device after the user drags the floating window to the position where the logo of the screen projection device to be selected is located; The operation of letting go after dragging the floating window to the location of the logo.
- the above-mentioned first operation includes at least a long press gesture operation, a gesture operation of long press and dragging down (or left or right or up) the first application, a gesture operation of long press for 1.5s and releasing, and so on. This is not limited.
- the user can trigger the display of the screen projection device selection interface by long pressing or dragging.
- FIG. 5B it is a schematic diagram of a scene of a content display method.
- the first device recognizes that the user will not throw the floating window out of the display interface of the first device
- the screen projection device selection interface will be displayed, and the floating window corresponding to the first application will be reserved, which may include two screen projection devices to be selected and other Corresponding device identifiers: tablet computer and TV; furthermore, based on the device identifiers, the user can select a second device from at least two screen projection devices to be selected.
- the user can drag the second device
- the device can furthermore display the display content of the first application through the tablet computer.
- the floating window when the floating window is not thrown out of the display interface of the first device, the user can be provided with a screen projection device selection interface, and the floating window of the first application is displayed. Select the application that you want to cast a screen on your own, so as to realize the screen projection display of the content of the first application in the floating window. In this way, it is beneficial to improve user experience and improve the operability of device selection.
- the above method may further 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, and dragging force corresponding to the target operation.
- Duration and dragging speed Identify an operation corresponding to the target operation according to the pressing force, the dragging direction, the dragging duration, and the dragging speed.
- the first device may include a preset model, which can be set by the user or defaulted by the system, and is not limited here; the preset model can include a neural network model, and the user's operation can be controlled through the preset model. Specifically, relevant parameters such as the pressing force, dragging direction, dragging duration, and dragging speed can be input into the preset model to calculate each preset operation (for example, throwing out the floating window The evaluation value corresponding to the gesture on the display interface of the first device, the long press gesture, the long press and drag down gesture, and the drag gesture), compare multiple evaluation values, and select the operation corresponding to the maximum evaluation value as the The action corresponding to the target action.
- a preset model which can be set by the user or defaulted by the system, and is not limited here; the preset model can include a neural network model, and the user's operation can be controlled through the preset model. Specifically, relevant parameters such as the pressing force, dragging direction, dragging duration, and dragging speed can be input into the preset model to
- the first device can identify relevant parameters of the user's target operation on the first device (including at least one of the following: pressing force, dragging direction, dragging duration, dragging speed, etc., here not limited); and according to relevant parameters, determine the operation that the user wants to achieve, and the corresponding function of the operation, so as to adapt different response functions corresponding to different operations for the user (for example, projecting the function display interface of the first application to the second application)
- the second device displaying the screen projection device selection interface, only dragging the floating window of the first application to change the position of the floating window, etc., are not limited).
- the identifying the instruction corresponding to the target operation according to 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, then determine the target operation corresponding
- the instruction 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, it is determined that the target operation corresponds to A gesture of moving and displaying 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 , then determine that the target operation corresponds to the gesture that does not throw the floating window out of the display interface of the first device, and trigger the electronic device to display the screen projection device selection interface.
- the above-mentioned first preset strength and/or second preset strength and/or preset duration and/or preset speed can be set by the user or defaulted by the system, which is not limited here; the combination of the above-mentioned different parameters can trigger Different operations, the above-mentioned second preset strength is smaller than the first preset strength.
- the above-mentioned preset dragging direction can be determined according to the display position of the first application, and the preset dragging direction is the direction from the display position of the first application to the center of the screen.
- the default dragging direction is downward dragging
- the default dragging direction is rightward dragging
- the first device may respond to the gesture corresponding to the target operation, and adaptively move the first application on the display screen of the first device according to the user's dragging direction.
- Corresponding floating window when the pressing force of the user is greater than the first preset force, it indicates that the user wants to implement the device transfer function, and the corresponding gesture can be further determined according to other parameters of the target operation.
- the aforementioned preset speed may be greater than the speed when the user normally drags the floating window.
- the pressing force is greater than or equal to the 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 implement the device circulation function and wants to To select a screen projection device, it is determined that the operation corresponding to the target operation is a gesture that does not throw the floating window out of the display interface of the first device, and the first device may display the screen projection device selection interface, and in the At least one screen projection device to be selected that has successfully communicated with the first device is displayed on the screen projection device selection interface.
- 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 implement the device circulation function
- the dragging time is less than or equal to the preset duration
- the dragging speed is greater than
- the preset speed 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 throwing the floating window out of the first device display interface; 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 on the second device.
- the first device establishes a communication connection with the If there are multiple devices, multiple devices may be displayed in the screen projection device selection interface for the user to select a second device.
- the first device can further determine the functions that the user wants to achieve according to different parameters of the user's operation of the floating window, so as to provide the user with various display functions, which is conducive to improving user experience.
- FIG. 6 is a schematic flowchart of a content display method provided by 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.
- the above-mentioned first functional interface when displaying the above-mentioned first functional interface, it can be displayed through a floating window or in full screen or half screen, and can be set in advance by the user, which is not limited here.
- the above method further includes the following step: the second device may receive the display content sent by the first device, where the display content is the display content displayed on the first function interface.
- the above method further includes the following step: if the second device is running a second application, floating and displaying in a preset manner on the target function interface of the second application in the form of a floating window The display content corresponding to the first device; if the second device is not running any application, directly display the display content corresponding to the first device through the floating window, or start the application related to the first corresponding to the second application, and display the display content on the second function interface corresponding to the second application.
- the above-mentioned second application is a running application in the second device
- the above-mentioned target function interface is a page corresponding to the second application.
- the above method further includes the following steps: the second device starts a third application corresponding to the first application, and displays the displayed content in a third function interface corresponding to the third application , wherein the third application is used to realize the screen projection display requirement.
- the second device starts a third application corresponding to the first application, and displays the displayed content in a third function interface corresponding to the third application , wherein the third application is used to realize the screen projection display requirement.
- a third application having the same function as the first application may be started to display the display content of the first application.
- the above-mentioned third application can be used to implement screen projection, and the user can set the second device to implement the screen projection function of the first device through the third application.
- the style and operation of the third function interface in the third application And the function can be set by the user, and the display content corresponding to the first application can be displayed according to the layout such as the style of the third function interface, which is conducive to improving user experience.
- 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, so The first functional interface is suspended in the display interface of the first device in the form of a floating window.
- the second device can support the device content transfer function of the first device, so as to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application on its corresponding page.
- FIG. 7 is a schematic flowchart of a content display method provided by an embodiment of the present application. As shown in the figure, the content display method includes the following operations.
- the first device displays a first functional interface of a first application, where the first functional interface is displayed in 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.
- the first operation includes a gesture of throwing the floating window out of the display interface of the first device. If the communication with the first device is successful If the number of devices establishing communication connections is 1, the device successfully establishing communication is determined as the second device, and the display content of the first application on the first function interface is sent to the second device.
- the screen projection device selection interface displays successfully established communication connections with the first device.
- the display content is sent to the second device.
- the second device receives the display content sent by the first device, where the display content is the display content displayed on the first function interface of the first application in the first device.
- the second device displays the first functional interface sent by the first device, where the first functional interface corresponds to the first application in the first device, and the first functional interface is suspended in the form of a floating window on the on the display interface of the first device mentioned above.
- the first device displays the first functional interface of the first application, and the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window Above; the first device responds to the user's first operation on the floating window, the first operation includes a gesture of throwing the floating window out of the display interface of the first device, if the communication with the first device is successful If the number of devices establishing communication connections is 1, the device successfully establishing 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 have successfully established communication connections with the first device is greater than 1, a device displays a screen projection device selection interface, wherein the screen projection device selection interface displays that a communication connection with the first device has been successfully established The identifiers of at least two screen projection devices to be selected; based on the device identifiers, a second device is selected from the at least two screen projection devices to be selected, and the first application is
- the user can select different screen projection methods through the gesture corresponding to the first operation and the number of devices connected through communication, so as to realize the screen projection of the first application corresponding to the floating window to the second device, so as to realize the current big screen
- the applications corresponding to the small screens (floating windows) need to be used at the same time, the transfer of content between devices is conducive to convenient screen projection; according to the actual situation, users can perform screen projection through different operation gestures, which is conducive to improving user experience.
- FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the above one or A plurality of programs are stored in the above-mentioned memory.
- the above-mentioned electronic device includes a first device, and the above-mentioned one or more programs are configured to execute instructions of the following steps by the above-mentioned processor:
- the electronic device described in the embodiments of the present application can display the first functional interface of the first application, and the first functional 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, project the first functional interface to a second device, so as to display the first functional interface through the second device, and close the display on the second device.
- the floating window of a device 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
- the above program includes instructions for performing the following steps:
- the device connection request is used to request to establish a communication connection with the second device
- the first operation includes a gesture of throwing the floating window out of the display interface of the first device
- the above program includes instructions for performing the following steps:
- a screen projection device selection interface is displayed, wherein the screen projection device selection interface displays at least one device that has successfully established a communication connection with the first device.
- the identification of the two screen projection devices to be selected based on the device identification, select a second device from the at least two screen projection devices to be selected, and display the content of the first application in the first function interface sent to the second device.
- the first operation will not throw the floating window out of the display interface of the first device
- the above program includes instructions for performing the following steps:
- the screen projection device selection interface displays at least one candidate screen projection device identification that has successfully established a communication connection with the first device, and the floating window is suspended on the screen projection device On the device selection interface;
- the above program includes instructions for performing the following steps: the user's selection operation of the logo of the screen projection device to be selected includes the user dragging the floating window to the location where the logo of the screen projection device to be selected is located. After the position, the user's finger moves away from the touch display screen of the first device.
- the above program includes instructions for performing the following steps: the user's selection operation of the logo of the screen projection device to be selected includes the user dragging the floating window to the location where the logo of the screen projection device to be selected is located. position after the user's finger leaves the touchscreen display of the first device for operation
- the first operation includes at least a long press gesture operation.
- the above program includes instructions for performing the following steps:
- An operation corresponding to the target operation is identified according to the pressing force, the dragging direction, the dragging duration, and the dragging speed.
- the above program includes the following steps: instruction:
- the dragging time is less than or equal to a preset duration, and the dragging speed is greater than a preset speed, then determine the target operation Corresponding to the gesture of throwing the floating window out of the display interface of the first device;
- the target operation corresponds to a gesture of moving and displaying a floating window corresponding to the first application in the display interface in the dragging direction ;
- the pressing force is greater than the first preset force, and the dragging direction satisfies the preset dragging direction, it is determined that the command corresponding to the target operation is that the floating window will not be thrown out of the a gesture on the display interface of the first device, and trigger the first device to display the screen projection device selection interface.
- the above-mentioned electronic device includes a second device, and the above-mentioned one or more programs are configured to execute instructions of the following steps by the above-mentioned processor:
- Displaying a first functional interface sent by the first device wherein the first functional interface corresponds to a first application in the first device, and the first functional interface is suspended in the form of a floating window on the first device's display interface.
- 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 The first functional interface is suspended in the display interface of the first device in the form of a floating window.
- the second device can support the device content transfer function of the first device, so as to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application on its corresponding page.
- the above program further includes instructions for performing the following steps:
- the display content sent by the first device is received, wherein the display content is the display content displayed on the first function interface.
- the above program further includes instructions for performing the following steps:
- the second device is running a second application, floating and displaying the first functional interface in a preset manner on the second functional interface of the second application by means of a floating window;
- the first functional interface is directly displayed in a floating window or in a full screen.
- the above program further includes instructions for performing the following steps:
- a third application corresponding to the first application is started, and the display content is displayed on a third function interface corresponding to the third application, wherein the third application is used to realize a screen projection display requirement.
- the electronic device includes hardware structures and/or software modules corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
- the embodiment of the present application may divide the electronic device into functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
- the above-mentioned integrated units 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, and there may be another division manner in actual implementation.
- FIG. 9 shows a schematic diagram of a content display device.
- the device is applied to a first device, and the content display device 900 may include: a display unit 901 and screen projection unit 902, wherein,
- the display unit 901 may be used to support the terminal device to perform the above step S401 and/or other processes for the technologies described herein.
- the screen projection unit 902 may be used to support the terminal device to execute the above step S402, and/or other processes of the technologies described herein.
- the content display device displays the first functional interface of the first application, and the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window;
- the first operation is to project the first functional interface to the second device, so as to display the first functional interface through the second device, and close the floating window displayed on the first device.
- 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
- the screen projecting unit 902 is specifically configured to:
- the device connection request is used to request to establish a communication connection with the second device
- the first operation includes a gesture of throwing the floating window out of the display interface of the first device
- the screen projecting unit 902 is specifically used for:
- a screen projection device selection interface is displayed, wherein the screen projection device selection interface displays at least one device that has successfully established a communication connection with the first device.
- the identification of the two screen projection devices to be selected based on the device identification, select a second device from the at least two screen projection devices to be selected, and display the content of the first application in the first function interface sent to the second device.
- the first operation will not throw the floating window out of the display interface of the first device
- the screen projecting unit 902 is specifically used for:
- the screen projection device selection interface displays at least one candidate screen projection device identification that has successfully established a communication connection with the first device, and the floating window is suspended on the screen projection device On the device selection interface;
- FIG. 10A shows a schematic diagram of a content display apparatus. As shown in FIG. 10A, the apparatus is applied to a second device, and the content display apparatus 1000 may include: a display unit 1001, wherein,
- the display unit 1001 may be used to support the terminal device to execute the above step S601, and/or other processes of the technologies described herein.
- 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 The first functional interface is suspended in the display interface of the first device in the form of a floating window.
- the second device can support the device content transfer function of the first device, so as to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application on its corresponding page.
- FIG. 10B shows a schematic diagram of a content display device.
- the content display device 1000 shown in FIG. 10B may include: a receiving unit 1002 configured to receive the display content, wherein the display content is the display content displayed on the first functional interface.
- the above display unit 1001 is specifically used for:
- the second device is running a second application, floating and displaying the first functional interface in a preset manner on the second functional interface of the second application by means of a floating window;
- the first functional interface is directly displayed in a floating window or in a full screen.
- the above display unit 1001 is specifically used for:
- a third application corresponding to the first application is started, and the display content is displayed on a third function interface corresponding to the third application, wherein the third application is used to realize a screen projection display requirement.
- the electronic device provided in this embodiment is used to implement the above content display method, so the same effect as the above implementation method can be achieved.
- the electronic device may include a processing module, a memory module and a communication module.
- 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 steps performed by the display unit 901 and the screen projection unit 902, or the display unit 1001 and the receiving unit 1002.
- the memory module can be used to support electronic devices to execute stored program codes and data, and the like.
- the communication module can be used to support the communication between the electronic device and other devices.
- the processing module may be a processor or a controller. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- the processor can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like.
- the storage module may be a memory.
- the communication module may be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
- 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, and the computer program enables the computer to execute some or all of the steps of any method described in the above method embodiments , the above-mentioned computer includes electronic equipment.
- An 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, and the computer program is operable to enable the computer to execute any one of the methods described in the above method embodiments. Some or all steps of the method.
- the computer program product may be a software installation package, and the computer includes electronic equipment.
- the disclosed device can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the above units is only a logical function division.
- there may be other division methods for example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
- the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable memory.
- the technical solution of the present application is essentially or part of the contribution 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.
- a computer device which may be a personal computer, server or network device, etc.
- the aforementioned memory includes: various media that can store program codes such as U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Disclosed in the embodiments of the present application are a content display method and a related product. The method comprises: displaying a first function interface of a first application, wherein the first function interface is displayed on a display interface of a first device in a floating manner in the form of a floating window; and in response to a first operation of a user for the floating window, projecting the first function interface onto a second device, so as to display the first function interface by means of the second device, and closing the floating window which is displayed on the first device. By using the embodiments of the present application, data transfer between devices can be realized, thereby facilitating the implementation of convenient screen projection and the improvement in the user experience.
Description
本申请涉及多设备流转技术领域,具体涉及一种内容显示方法及相关产品。The present application relates to the technical field of multi-device transfer, in particular to a content display method and related products.
移动互联网时代下,数据更新的速度越来越快。一般情况下,设备间的数据资源共享是通过在应用程序中投屏以实现数据资源的共享,但是这种方式存在应用局限性,用户可操作性不强。因此,当前亟需一种内容显示方法,以实现跨端设备的数据资源协同共享。In the era of mobile Internet, the speed of data update is getting faster and faster. Generally, sharing of data resources between devices is achieved by projecting screens in applications, but this method has application limitations and is not very user-operable. Therefore, there is an urgent need for a content display method to realize collaborative sharing of data resources across terminal devices.
发明内容Contents of the invention
本申请实施例提供了一种内容显示方法及相关产品,实现设备间的数据流转,有利于实现便捷投屏,有利于提高用户体验。Embodiments of the present application provide a content display method and related products, which realize data transfer between devices, facilitate convenient screen projection, and improve user experience.
第一方面,本申请实施例提供一种内容显示方法,应用于第一设备,所述方法包括:In the first aspect, the embodiment of the present application provides a method for displaying content, which is applied to a first device, and the method includes:
显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上;displaying a first functional interface of the first application, where the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window;
响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭显示于所述第一设备的所述悬浮窗。In response to the user's first operation on the floating window, project the first functional interface to a second device, so as to display the first functional interface through the second device, and close the display on the second device. The floating window of a device.
第二方面,本申请实施例提供一种内容显示方法,应用于第二设备,所述方法包括:In a second aspect, the embodiment of the present application provides a method for displaying content, which is applied to a second device, and the method includes:
显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。Displaying a first functional interface sent by the first device, wherein the first functional interface corresponds to a first application in the first device, and the first functional interface is suspended in the form of a floating window on the first device's display interface.
第三方面,本申请实施例提供一种内容显示装置,所述装置应用于第一设备,所述装置包括:显示单元和投屏单元,其中,In a third aspect, an embodiment of the present application provides a content display device, the device is applied to a first device, and the device includes: a display unit and a screen projection unit, wherein,
所述显示单元,用于显示第一应用,所述第一应用的第一功能界面以悬浮窗的方式悬浮显示于所述第一设备的显示界面上;The display unit is configured to display a first application, and the first functional interface of the first application is suspended and displayed on the display interface of the first device in the form of a floating window;
所述投屏单元,用于响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭所述悬浮窗。The screen projection unit is configured to project the first functional interface to a second device in response to the user's first operation on the floating window, so as to display the first functional interface through the second device , and close the floating window.
第四方面,本申请实施例提供一种内容显示装置,所述装置应用于第二设备,显示单元,其中,In a fourth aspect, an embodiment of the present application provides a content display device, the device is applied to a second device, a display unit, wherein,
所述显示单元,用于显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一应用以悬浮窗的方式悬浮于所述第一设备的显示界面中。The display unit is configured to display a first functional interface sent by the first device, wherein the first functional interface corresponds to a first application in the first device, and the first application is suspended in the form of a floating window In the display interface of the first device.
第五方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面或第二方面任一方法中的步骤的指令。In a fifth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be processed by the above The above program includes instructions for executing the steps in any method of the first aspect or the second aspect of the embodiments of the present application.
第六方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面或第二方面任一方法中所描述的部分或全部步骤。In a sixth aspect, the embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables the computer to execute Part or all of the steps described in any method of the first aspect or the second aspect.
第七方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面或第二方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a seventh aspect, the 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 enable the computer to execute the program as implemented in the present application. For example, some or all of the steps described in any method of the first aspect or the second aspect. The computer program product may be a software installation package.
可以看出,本申请实施例中,显示第一应用的第一功能界面,第一功能界面以悬浮窗的形式悬浮显示于第一设备的显示界面上;响应于用户对悬浮窗的第一操作,将第一功能 界面投屏到第二设备中,以通过第二设备显示第一功能界面,并关闭显示于第一设备的悬浮窗。如此,用户可通过第一操作对应的操作将悬浮窗对应的第一应用投屏到第二设备中,以实现在当前大屏小屏(悬浮窗)分别对应的应用需要同时使用时,设备之间的内容的流转,有利于实现便捷投屏,有利于提高用户体验。It can be seen that in the embodiment of the present application, the first functional interface of the first application is displayed, and the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window; in response to the user's first operation on the floating window , projecting the first functional interface to the second device, so as to display the first functional interface through the second device, and close the floating window displayed on the first device. 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only for the present application For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without creative effort.
图1是本申请实施例提供的一种内容显示系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a content display system provided by an embodiment of the present application;
图2是本申请实施例提供的一种电子设备显示悬浮窗的场景示意图;FIG. 2 is a schematic diagram of an electronic device displaying a floating window provided by an embodiment of the present application;
图3是本申请实施例提供的一种内容显示方法的场景示意图;FIG. 3 is a schematic diagram of a scene of a content display method provided by an embodiment of the present application;
图4是本申请实施例提供的一种内容显示方法的流程示意图;FIG. 4 is a schematic flowchart of a content display method provided by an embodiment of the present application;
图5A是本申请实施例提供的一种内容显示方法的场景示意图;FIG. 5A is a schematic diagram of a scene of a content display method provided by an embodiment of the present application;
图5B是本申请实施例提供的一种内容显示方法的场景示意图;FIG. 5B is a schematic diagram of a scene of a content display method provided by an embodiment of the present application;
图6是本申请实施例提供的一种内容显示方法的流程示意图;FIG. 6 is a schematic flowchart of a content display method provided by an embodiment of the present application;
图7是本申请实施例提供的一种内容显示方法的流程示意图;FIG. 7 is a schematic flowchart of a content display method provided by an embodiment of the present application;
图8是本申请实施例提供的一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图9是本申请实施例提供的一种内容显示装置的功能单元组成框图;FIG. 9 is a block diagram of functional units of a content display device provided by an embodiment of the present application;
图10A是本申请实施例提供的一种内容显示装置的功能单元组成框图;FIG. 10A is a block diagram of functional units of a content display device provided by an embodiment of the present application;
图10B是本申请实施例提供的一种内容显示装置的功能单元组成框图。FIG. 10B is a block diagram of functional units of a content display device provided by an embodiment of the present application.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
1)电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表、智能假肢)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载IOS系统、Android系统、Microsoft系统或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机。在本申请实施例中,上述电子设备可包括第一设备、第二设备。1) The electronic device can be a portable electronic device that also includes other functions such as personal digital assistant and/or music player function, such as mobile phone, tablet computer, wearable electronic device with wireless communication function (such as smart watch, smart prosthesis), Vehicle equipment, etc. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices equipped with IOS systems, Android systems, Microsoft systems, or other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop). 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 the embodiment of the present application, the foregoing electronic device may include a first device and a second device.
2)悬浮窗是电脑或智能手机的系统工具,在其他应用的表面悬浮一可移动的窗口, 以便打开不同应用,手机使用悬浮窗需要系统授权。2) The floating window is a system tool of a computer or smart phone. It floats a movable window on the surface of other applications to open different applications. The mobile phone needs system authorization to use the floating window.
第一部分,本申请实施例所公开的示例应用场景介绍如下。In the first part, the example application scenarios disclosed in the embodiments of the present application are introduced as follows.
图1示出了本申请所适用的内容显示系统的网络架构示意图,其中,上述网络架构中可包括多个电子设备,该电子设备可以为智能手机、平板电脑、台式电脑、具备无线通讯功能的可穿戴电子设备等等,具体的在此不作限定。需要说明的是,在本申请中,多个可指两个或两个以上,后续不再赘述。Figure 1 shows a schematic diagram of the network architecture of the content display system applicable to the present application, wherein the above network architecture may include multiple electronic devices, and the electronic devices may be smartphones, tablet computers, desktop computers, wireless communication Wearable electronic devices and the like are not specifically limited here. It should be noted that, in this application, a plurality may refer to two or more, which will not be repeated hereafter.
其中,上述多个电子设备之间可通过2G、3G、4G或5G移动通信方式、无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)或蓝牙(blue tooth,BT)或超宽带(Ultra Wide Band,UWB)或近距离无线通信技术(near field communication,NFC)等无线通信方式建立通信连接,并实现内容数据之间的传输。Among them, the above-mentioned multiple electronic devices can be connected through 2G, 3G, 4G or 5G mobile communication methods, wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless fidelity, Wi-Fi) network) or Bluetooth ( Blue tooth, BT) or ultra-wideband (Ultra Wide Band, UWB) or near field communication (near field communication, NFC) and other wireless communication methods to establish communication connections and realize the transmission of content data.
示例性的,上述电子设备100b可与电子设备100a和/或电子设备100c之间建立通信连接,并通过电子设备100a和/或电子设备100c显示电子设备100b投屏到其中的应用对应的显示界面,当该应用为视频类应用时,可在电子设备100a和/或电子设备100c中播放上述应用对应的内容。Exemplarily, the above-mentioned electronic device 100b may establish a communication connection with the electronic device 100a and/or the electronic device 100c, and display the corresponding display interface of the application projected to 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 above application may be played on the electronic device 100a and/or the electronic device 100c.
目前,如图2所示,为一种电子设备显示悬浮窗的场景示意图,当电子设备100b中可显示有第一应用和电子设备当前的显示界面,其中第一应用包括以下至少一种:社交类应用、新闻类应用、购物类应用、娱乐类应用、金融类应用、生活类应用、工具类应用等等,在此不做限定。其中,第一应用的第一功能界面通过悬浮窗的方式悬浮显示于显示界面上。当电子设备100b与电子设备100a建立通信连接,并在设备协同使用时,可通过电子设备100a的显示屏显示电子设备100b正在使用的应用程序,但是在具体投屏时,用户无法在电子设备100b同时存在两个正在显示的应用中选择目标应用(第一应用或第二应用)去进行多屏协同,只能通过特定的逻辑实现内容的流转,用户可控性不强。At present, as shown in FIG. 2 , it is a schematic diagram of a scene where an electronic device displays a floating window. When the electronic device 100b can display the first application and the current display interface of the electronic device, the first application includes at least one of the following: social networking Applications, news applications, shopping applications, entertainment applications, financial applications, lifestyle applications, tool applications, etc., are not limited here. Wherein, the first functional interface of the first application is suspended and displayed on the display interface by means of a floating window. When the electronic device 100b establishes a communication connection with the electronic device 100a, and when the devices are used together, the display screen of the electronic device 100a can display the application program that the electronic device 100b is using, but when the screen is projected, the user cannot At the same time, there are two currently displayed applications to select the target application (the first application or the second application) for multi-screen collaboration, and the content flow can only be realized through specific logic, and the user's controllability is not strong.
因此,基于上述原因,本申请提出一种内容显示方法以实现多屏协同,具体的,如图3所示,为一种内容显示方法的场景示意图,第一设备显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上;响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭显示于所述第一设备的所述悬浮窗。如此,用户可通过第一操作对应的操作将悬浮窗对应的第一应用投屏到第二设备中,以实现在当前大屏小屏(悬浮窗)分别对应的应用需要同时使用时,设备之间的内容的流转,有利于实现便捷投屏,有利于提高用户体验。Therefore, based on the above reasons, the present application proposes a content display method to achieve multi-screen collaboration. Specifically, as shown in FIG. 3 , it is a schematic diagram of a scene of a content display method. interface, the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window; in response to the user’s first operation on the floating window, the first functional interface is projected to the second In the second device, 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
第二部分,本申请实施例所公开的权要保护范围介绍如下。In the second part, the protection scope of the claims disclosed in the embodiments of the present application is introduced as follows.
请参阅图4,图4是本申请实施例提供的一种内容显示方法的流程示意图,应用于第一设备,如图所示,本内容显示方法包括以下操作。Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a content display method provided by 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.
S401、显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上。S401. Display a first functional interface of a first application, where the first functional interface is floatingly displayed on a display interface of the first device in the form of a floating window.
其中,如图3所示,为第一应用显示于第一设备中的显示状态,其中,第一应用对应的第一功能界面悬浮显示于第一设备的显示界面上。Wherein, as shown in FIG. 3 , it is a display state in which the first application is displayed on the first device, wherein the first function interface corresponding to the first application is suspended and displayed on the display interface of the first device.
可选地,如果当前第一设备有其他显示运行的第二应用,该第一应用的悬浮窗可悬浮于该第二应用的功能界面上。例如,第一应用可为聊天类应用,第二应用可为视频类应用。Optionally, if the first device currently has other second applications displayed and running, the floating window of the first application may be suspended on the functional interface of the second application. For example, the first application may be a chat application, and the second application may be a video application.
S402、响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭显示于所述第一设备的所述悬浮窗。S402. In response to the user's first operation on the floating window, project the first functional interface to a second device, so as to display the first functional interface through the second device, and close the display on the floating window. The floating window of the first device.
其中,上述第一操作可为用户自行设置或者系统默认,在此不作限定。Wherein, the above-mentioned first operation may be set by the user or defaulted by the system, which is not limited herein.
示例的,所述第一操作对应的手势可包括以下至少一种:向上拖动并抛出、向右拖动并抛出、向下拖动并抛出、向左拖动并抛出;或长按操作与向上拖动操作、向左拖动操作、 向右拖动操作或向下拖动操作对应的组合操作等等,在此不作限定。其中,第一操作对应的具体的操作方式可由用户自行设置或者系统默认,在此不作限定。不同的操作可对应实现不同的功能。For example, the gesture corresponding to the first operation may include at least one of the following: drag and throw upward, drag and throw right, drag and throw downward, drag and throw left; or Combination operations corresponding to the long press operation and the upward drag operation, leftward drag operation, rightward drag operation, or downward drag operation, etc., are not limited herein. Wherein, the specific operation mode corresponding to the first operation may be set by the user or defaulted by the system, which is not limited herein. Different operations can correspond to different functions.
举例来说,用户可通过向上拖动悬浮窗并抛出第一设备的屏幕顶部的动作实现第一应用流转到第二设备对应显示界面中。For example, the user can realize that the flow of the first application is transferred to the corresponding display interface of the second device by dragging the floating window upward and throwing the top of the screen of the first device.
可选地,电子设备可根据用户的操作方向,以及第二设备与第一设备的位置关系,来选择对应的第二设备来实现第一设备中悬浮窗中第一应用对应的显示内容的流转,具体实现中,如果第一设备所处环境中包括多个第二设备,并且每一第二设备均与第一设备通信连接成功过,如果是通过WiFi进行通信连接,则第一设备可响应于用户的向上拖动并抛出动作的第一操作,确定处于第一设备上方的离第一设备最近的设备为本申请中的第二设备,并在该第二设备中显示第一应用的第一功能界面。Optionally, the electronic device can select the 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 the display content corresponding to the first application in the floating window in the first device , in a specific implementation, if the environment where the first device is located includes multiple second devices, and each second device has successfully communicated with the first device, if the communication connection is via WiFi, the first device can respond Based on the user's first operation of dragging up and throwing, determine the device above the first device closest to the first device as the second device in this application, and display the first application's content on the second device The first functional interface.
又例如,如果第一设备为手机,用户左手腕佩戴智能手表,左手边的书桌上同时放置有平板,智能手表手机通过蓝牙建立通信连接,平板与手机建立WiFi连接,当用户左手手持手机,并在该手机中对第一应用进行向左拖动并抛出的操作,则选择该智能手表作为第二设备,并在该智能手表的显示界面中显示第一应用对应的第一功能界面。如此,可不关注于第二设备与第一设备之间的通信连接方式,可通过两者之间的距离来决定投屏的设备,有利于提高用户体验。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 side, the smart watch mobile phone establishes a communication connection through Bluetooth, and the tablet establishes a WiFi connection with the mobile phone. If the first application is dragged to the left and thrown 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 on the display interface of the smart watch. In this way, it is not necessary to pay attention to the communication connection mode between the second device and the first device, and the device for screen projection can be determined according to the distance between the two, which is beneficial to improve user experience.
可以看出,本申请实施例所描述的内容显示方法,第一设备可显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上;响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭显示于所述第一设备的所述悬浮窗。如此,用户可通过第一操作对应的操作将悬浮窗对应的第一应用投屏到第二设备中,以实现在当前大屏小屏(悬浮窗)分别对应的应用需要同时使用时,设备之间的内容的流转,有利于实现便捷投屏,有利于提高用户体验。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 functional interface of the first application, and the first functional interface is suspended and displayed on the display of the first device in the form of a floating window. On the interface: in response to the user’s first operation on the floating window, project the first functional interface to the second device, so as to display the first functional interface through the second device, and close the display on the The floating window of the first device. 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
在一种可能的示例中,在所述响应于用户对所述第一应用的第一操作之后,所述将所述第一功能界面投屏到第二设备中,上述方法可包括如下步骤:触发设备连接请求,所述设备连接请求用于请求与所述第二设备建立通信连接;在建立通信连接成功以后,获取所述第一应用在所述第一功能界面中的显示内容,并将所述显示内容发送至所述第二设备。In a possible example, after responding to the user's first operation on the first application, the method of projecting the first functional interface to the second device may include the following steps: triggering a device connection request, where 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 the display content of the first application in the first function interface, and The display content is sent to the second device.
其中,如若第一设备与第二设备为同一用户(用户名、用户账户等)的设备,则可提前建立通信连接,并在触发第一操作以后,直接与第二设备建立通信连接。Wherein, if the first device and the second device belong to the same user (user name, user account, etc.), the communication connection can be established in advance, and the communication connection can be directly established with the second device after the first operation is triggered.
可见,在本申请中,可在第一设备接收用户的第一操作之后,自动触发建立与第二设备之前的通信连接,进而,在通信连接成功以后,可将第一功能界面投屏到第二设备中。如此,可提高通信效率,并在用户无感的情况下完成投屏任务,有利于提高用户体验。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 the second device. In this way, the communication efficiency can be improved, and the screen projection task can be completed without the user feeling, which is conducive to improving user experience.
在一种可能的示例中,所述第一操作包括将所述悬浮窗甩出所述第一设备的显示界面的手势;所述将所述显示内容发送至所述第二设备,可包括如下步骤:若与所述第一设备成功建立通信连接的设备的数量为1,则将成功建立通信的设备确定为第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备;若与所述第一设备成功建立通信连接的设备的数量大于1,则显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少两个待选投屏设备的标识;基于设备标识,从所述至少两个待选投屏设备中选择出第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。In a possible example, 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 may include the following Step: if the number of devices successfully establishing communication connections with the first device is 1, then determine the device successfully establishing communication as the second device, and display the first application in the first function interface The content is sent 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 screen-casting device selection interface is displayed, wherein the screen-casting device selection interface is displayed with the The identifiers of at least two screen projection devices to be selected for which the first device has successfully established a communication connection; based on the device identifiers, selecting a second device from the at least two screen projection devices to be selected, and applying the first application to the selected screen projection devices Send the display content in the first function interface to the second device.
其中,上述设备标识可包括设备名称、设备型号、设备编码、设备类型等等,在此不作限定。Wherein, the above-mentioned device identification may include a device name, a device model, a device code, a device type, etc., which are not limited herein.
其中,上述投屏设备选择界面可用于显示与第一设备建立通信连接的至少一个待选投屏设备,可在该待选投屏设备中选择第二设备。具体可显示该待选投屏设备的设备标识。 当与第一设备建立通信连接的设备大于1时,可在该投屏设备选择界面中显示多个待选投屏设备的设备标识,第一设备可响应于用户点击任意一个待选投屏设备的标识的操作,则确定该待选投屏设备为第二设备,进而,可将第一应用的第一功能界面的显示内容发送至该第二设备。Wherein, the above-mentioned screen projection device selection interface may be used to display at least one screen projection device to be selected that has established a communication connection with the first device, and a second device may be selected among the screen projection devices to be selected. Specifically, the device identification of the screen projection device to be selected may be displayed. When the number of devices establishing a communication connection with the first device is greater than 1, the device identifications of multiple screen projection devices to be selected may be displayed in the screen projection device selection interface, and the first device may respond to the user clicking any one of the screen projection devices to be selected The operation of the identification of the selected screen projection device is determined to be the second device, and then, the display content of the first function interface of the first application can be sent to the second device.
举例来说,如图5A所示,为一种内容显示方法的场景示意图,如图所示,当第一设备识别到用户的将悬浮窗甩出第一设备的显示界面的手势时,且与第一设备成功建立通信连接的设备的数量为2,则直接显示投屏设备选择界面,不显示第一应用对应的悬浮窗,其中,显示投屏设备选择界面中可包括两个待选投屏设备以及其对应的设备标识:平板电脑和电视机;进而,基于设备标识,用户可从至少两个待选投屏设备中选择出第二设备,如图5A所示,用户可点击平板电脑的图标位置,以完成对于第二设备的选择,并将第一应用在第一功能界面中的显示内容发送至所述第二设备,进而,可通过平板电脑显示第一应用的显示内容。For example, as shown in FIG. 5A , it is a schematic diagram of a scene 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 with which the first device has successfully established a communication connection is 2, and the screen projection device selection interface is displayed directly, and the floating window corresponding to the first application is not displayed, wherein, the display screen projection device selection interface may include two screen projections to be selected Devices and their corresponding device identifiers: a tablet computer and a TV set; furthermore, based on the device identifiers, the user can select a second device from at least two screen-casting devices to be selected, as shown in Figure 5A, the user can click on the tablet computer Icon position, 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 display the display content of the first application through the tablet computer.
可见,在本示例中,当第一操作包括将悬浮窗甩出第一设备的显示界面的手势时,可为用户提供投屏设备选择界面,并不显示第一应用的悬浮窗,用户可在该页面中自行选择想要投屏的应用,以实现对于悬浮窗内第一应用内容的投屏显示,如此,有利于提高用户体验,有利于提高设备选择的可操作性。It can be seen that in this example, when the first operation includes the gesture of throwing the floating window out of the display interface of the first device, the user can be provided with a screen projection device selection interface, and the floating window of the first application is not displayed. In this page, the application to be projected is selected by oneself, so as to realize the projected display of the content of the first application in the floating window. In this way, it is beneficial to improve the user experience and the operability of device selection.
在另一种可能的示例中,所述第一操作不会将所述悬浮窗甩出所述第一设备的显示界面;所述将所述显示内容发送至所述第二设备,包括:显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少一个待选投屏设备的标识,所述悬浮窗悬浮于所述投屏设备选择界面上;响应于用户对所述待选投屏设备的标识的选取操作,从所述至少一个待选投屏设备中选择第二设备;将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。In another possible example, the first operation does 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 Screen projection device selection interface, wherein the screen projection device selection interface displays at least one candidate screen projection device identification that has successfully established a communication connection with the first device, and the floating window is suspended on the screen projection device On the selection interface; in response to the user’s selection operation on the identification of the screen projection device to be selected, select a second device from the at least one screen projection device to be selected; apply the first application to the first function interface The displayed content in is sent to the second device.
示例的,用户对待选投屏设备的标识的选取操作包括用户将悬浮窗拖动至待选投屏设备的标识所在的位置之后用户手指离开第一设备的触摸显示屏的操作;也即用户将悬浮窗拖动到标识所在位置后松手的操作。As an example, the user's selection operation of the logo of the screen projection device to be selected includes the user's operation of leaving the touch screen of the first device after the user drags the floating window to the position where the logo of the screen projection device to be selected is located; The operation of letting go after dragging the floating window to the location of the logo.
示例的,上述第一操作至少包括长按手势操作、长按并向下(或左或右或上)拖动第一应用的手势操作、长按1.5s并松开的手势操作等等,在此不作限定。Exemplarily, the above-mentioned first operation includes at least a long press gesture operation, a gesture operation of long press and dragging down (or left or right or up) the first application, a gesture operation of long press for 1.5s and releasing, and so on. This is not limited.
其中,用户可通过长按或者拖拽的方式触发对于投屏设备选择界面的显示。Wherein, the user can trigger the display of the screen projection device selection interface by long pressing or dragging.
举例来说,如图5B所示,为一种内容显示方法的场景示意图,如图所示,当第一设备识别到用户不会将所述悬浮窗甩出所述第一设备的显示界面的手势操作时,且与第一设备成功建立通信连接的设备的数量为2,则显示投屏设备选择界面,保留第一应用对应的悬浮窗,其中,可包括两个待选投屏设备以及其对应的设备标识:平板电脑和电视机;进而,基于设备标识,用户可从至少两个待选投屏设备中选择出第二设备,具体实现中,如图5B所示,用户可拖动第一应用对应的悬浮窗向下拖动的手势拖动至平板电脑的图标位置,以完成对于第二设备的选择,并将第一应用在第一功能界面中的显示内容发送至所述第二设备,进而,可通过平板电脑显示第一应用的显示内容。For example, as shown in FIG. 5B , it is a schematic diagram of a scene 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 When the gesture is operated, and the number of devices that have successfully established a communication connection with the first device is 2, the screen projection device selection interface will be displayed, and the floating window corresponding to the first application will be reserved, which may include two screen projection devices to be selected and other Corresponding device identifiers: tablet computer and TV; furthermore, based on the device identifiers, the user can select a second device from at least two screen projection devices to be selected. In specific implementation, as shown in Figure 5B, the user can drag the second device The gesture of dragging the floating window corresponding to an application 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. The device can furthermore display the display content of the first application through the tablet computer.
可见,在本示例中,不会将所述悬浮窗甩出所述第一设备的显示界面时,可为用户提供投屏设备选择界面,并显示第一应用的悬浮窗,用户可在该页面中自行选择想要投屏的应用,以实现对于悬浮窗内第一应用内容的投屏显示,如此,有利于提高用户体验,有利于提高设备选择的可操作性。It can be seen that in this example, when the floating window is not thrown out of the display interface of the first device, the user can be provided with a screen projection device selection interface, and the floating window of the first application is displayed. Select the application that you want to cast a screen on your own, so as to realize the screen projection display of the content of the first application in the floating window. In this way, it is beneficial to improve user experience and improve the operability of device selection.
在一种可能的示例中,上述方法还可包括如下步骤:接收所述用户对所述第一应用对应悬浮窗的目标操作,并识别所述目标操作对应的按压力度、拖动方向、拖动时长和拖动速度;根据所述按压力度、所述拖动方向、所述拖动时长和所述拖动速度,识别所述目标操作对应的操作。In a possible example, the above method may further 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, and dragging force corresponding to the target operation. Duration and dragging speed: Identify an operation corresponding to the target operation according to the pressing force, the dragging direction, the dragging duration, and the dragging speed.
其中,第一设备中可包括预设模型,该预设模型可为用户自行设置或者系统默认,在 此不作限定;该预设模型可包括神经网络模型,可通过该预设模型对用户的操作行为进行识别,具体可将上述按压力度、拖动方向、拖动时长和拖动速度等等相关参数输入该预设模型,以计算出每一预设操作(例如,将所述悬浮窗甩出所述第一设备的显示界面的手势、长按手势、长按并向下拖动的手势和拖动手势)对应的评价值,并比较多个评价值,选取最大评价值对应的操作为该目标操作对应的操作。Wherein, the first device may include a preset model, which can be set by the user or defaulted by the system, and is not limited here; the preset model can include a neural network model, and the user's operation can be controlled through the preset model. Specifically, relevant parameters such as the pressing force, dragging direction, dragging duration, and dragging speed can be input into the preset model to calculate each preset operation (for example, throwing out the floating window The evaluation value corresponding to the gesture on the display interface of the first device, the long press gesture, the long press and drag down gesture, and the drag gesture), compare multiple evaluation values, and select the operation corresponding to the maximum evaluation value as the The action corresponding to the target action.
可见,本示例中,第一设备可识别出用户在第一设备中进行目标操作的相关参数(包括以下至少一种:按压力度、拖动方向、拖动时长和拖动速度等等,在此不作限定);并根据相关参数,确定用户想要实现的操作,以及该操作对应的功能,以为用户适配不同操作对应的不同响应功能(例如,将第一应用的功能显示界面投屏到第二设备、显示投屏设备选择界面、仅拖动第一应用悬浮窗以实现改变悬浮窗的位置等等,不作限定)。It can be seen that in this example, the first device can identify relevant parameters of the user's target operation on the first device (including at least one of the following: pressing force, dragging direction, dragging duration, dragging speed, etc., here not limited); and according to relevant parameters, determine the operation that the user wants to achieve, and the corresponding function of the operation, so as to adapt different response functions corresponding to different operations for the user (for example, projecting the function display interface of the first application to the second application) The second device, displaying the screen projection device selection interface, only dragging the floating window of the first application to change the position of the floating window, etc., are not limited).
在一种可能的示例中,所述根据所述按压力度、所述拖动方向、所述拖动时间和所述拖动速度,识别所述目标操作对应的指令,可包括如下步骤:在所述按压力度小于或等于第一预设力度且大于第二预设力度、所述拖动时间小于或等于预设时长且所述拖动速度大于预设速度时,则确定所述目标操作对应的指令为所述将所述悬浮窗甩出所述第一设备的显示界面的手势;在所述按压力度小于或等于所述第二预设力度时,则确定所述目标操作对应为在所述显示界面中以所述拖动方向移动显示所述第一应用对应的悬浮窗的手势;在所述按压力度大于所述第一预设力度,且所述拖动方向满足预设拖动方向时,则确定所述目标操作对应为所述不会将所述悬浮窗甩出所述第一设备的显示界面的手势,并触发所述电子设备显示所述投屏设备选择界面。In a possible example, the identifying the instruction corresponding to the target operation according to 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, then determine the target operation corresponding The instruction 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, it is determined that the target operation corresponds to A gesture of moving and displaying 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 , then determine that the target operation corresponds to the gesture that does not throw the floating window out of the display interface of the first device, and trigger the electronic device to display the screen projection device selection interface.
其中,上述第一预设力度和/或第二预设力度和/或预设时长和/或预设速度可为用户自行设置或者系统默认,在此不作限定;上述不同参数的组合,可触发不同的操作,上述第二预设力度小于第一预设力度。上述预设拖动方向可根据第一应用的显示位置而确定,该预设拖动方向为第一应用的显示位置到屏幕中心位置的方向,例如,可理解为,如果第一应用显示于第一设备的屏幕上方,则该预设拖动方向为向下拖动,如果第一应用显示于第一设备的屏幕的左侧,则该预设拖动方向为向右拖动。Wherein, the above-mentioned first preset strength and/or second preset strength and/or preset duration and/or preset speed can be set by the user or defaulted by the system, which is not limited here; the combination of the above-mentioned different parameters can trigger Different operations, the above-mentioned second preset strength is smaller than the first preset strength. The above-mentioned preset dragging direction can be determined according to the display position of the first application, and the preset dragging direction is the direction from the display position of the first application to the center of the screen. For example, it can be understood that if the first application is displayed on the If the screen of a device is above the screen, the default dragging direction is downward dragging, and if the first application is displayed on the left side of the screen of the first device, the default dragging direction is rightward dragging.
示例的,当用户的按压力度小于或等于第二预设力度时,第一设备可响应于目标操作对应的手势,并根据用户的拖动方向适应性在第一设备的显示屏中移动第一应用对应的悬浮窗;当用户的按压力度大于第一预设力度时,则表明该用户想要实现设备流转功能,则可进一步根据该目标操作的其他参数,确定其对应的手势。For example, when the user's pressing force is less than or equal to the second preset force, the first device may respond to the gesture corresponding to the target operation, and adaptively move the first application on the display screen of the first device according to the user's dragging direction. Corresponding floating window; when the pressing force of the user is greater than the first preset force, it indicates that the user wants to implement the device transfer function, and the corresponding gesture can be further determined according to other parameters of the target operation.
其中,上述预设速度可大于用户正常拖动悬浮窗时的速度。Wherein, the aforementioned preset speed may be greater than the speed when the user normally drags the floating window.
具体实现中,当按压力度大于或等于第一预设力度时,且拖动方向满足相对于第一应用的显示位置的预设拖动方向时,则表明用户想要实现设备流转功能,并想要选择投屏设备,则确定该目标操作对应的操作为不会将所述悬浮窗甩出所述第一设备的显示界面的手势,第一设备可显示该投屏设备选择界面,并在该投屏设备选择界面中显示与第一设备通信连接成功的至少一个待选投屏设备。In a specific implementation, when the pressing force is greater than or equal to the 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 implement the device circulation function and wants to To select a screen projection device, it is determined that the operation corresponding to the target operation is a gesture that does not throw the floating window out of the display interface of the first device, and the first device may display the screen projection device selection interface, and in the At least one screen projection device to be selected that has successfully communicated with the first device is displayed on the screen projection device selection interface.
进一步地,当按压力度小于或等于第一预设力度,且大于第二预设力度时,表明该用户想要实现设备流转功能,并且在拖动时间小于或等于预设时长,拖动速度大于预设速度,表明该用户想通过快速拖动悬浮窗,以甩出该悬浮窗直接实现设备流转功能,即,该目标操作对应的手势为所述将所述悬浮窗甩出所述第一设备的显示界面;若该第一设备建立通信连接的第二设备只有一个,可直接在该第二设备中显示第一应用对应的第一功能界面,当然,若该第一设备建立通信连接的设备为多个,可在投屏设备选择界面中显示多个设备,以供用户选择第二设备。Further, 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 implement the device circulation function, and when the dragging time is less than or equal to the preset duration, the dragging speed is greater than The preset speed 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 throwing the floating window out of the first device display interface; 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 on the second device. Of course, if the first device establishes a communication connection with the If there are multiple devices, multiple devices may be displayed in the screen projection device selection interface for the user to select a second device.
可见,本示例中,第一设备可根据用户操作悬浮窗的不同参数,进一步确定给用户想要实现的功能,从而为用户提供多种显示功能,有利于提高用户体验。It can be seen that in this example, the first device can further determine the functions that the user wants to achieve according to different parameters of the user's operation of the floating window, so as to provide the user with various display functions, which is conducive to improving user experience.
请参阅图6,图6是本申请实施例提供的一种内容显示方法的流程示意图,应用于第二设备,如图所示,本内容显示方法包括以下操作。Please refer to FIG. 6 . FIG. 6 is a schematic flowchart of a content display method provided by 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.
S601、显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。S601. Display 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 form of a floating window on the first in the display interface of the device.
其中,显示上述第一功能界面时,可通过悬浮窗或全屏或半屏显示,可由用户事先设置,在此不作限定。Wherein, when displaying the above-mentioned first functional interface, it can be displayed through a floating window or in full screen or half screen, and can be set in advance by the user, which is not limited here.
在一种可能的示例中,上述方法还包括如下步骤:第二设备可接收所述第一设备发送的显示内容,其中,所述显示内容为所述第一功能界面中显示的显示内容。In a possible example, the above method further includes the following step: the second device may receive the display content sent by the first device, where the display content is the display content displayed on the first function interface.
在一种可能的示例中,上述方法还包括如下步骤:若所述第二设备正在运行第二应用,则通过悬浮窗的形式在所述第二应用的目标功能界面上以预设方式悬浮显示所述第一设备对应的显示内容;若所述第二设备未运行任何应用,则直接通过所述悬浮窗的方式显示所述第一设备对应的显示内容,或者,启动与所述第一应用对应的第二应用,并在所述第二应用对应的第二功能界面中显示所述显示内容。In a possible example, the above method further includes the following step: if the second device is running a second application, floating and displaying in a preset manner on the target function interface of the second application in the form of a floating window The display content corresponding to the first device; if the second device is not running any application, directly display the display content corresponding to the first device through the floating window, or start the application related to the first corresponding to the second application, and display the display content on the second function interface corresponding to the second application.
其中,上述第二应用为第二设备中正在运动的应用,上述目标功能界面为第二应用对应的页面。Wherein, the above-mentioned second application is a running application in the second device, and the above-mentioned target function interface is a page corresponding to the second application.
在一种可能的示例中,上述方法还包括如下步骤:第二设备启动与所述第一应用对应的第三应用,并在所述第三应用对应的第三功能界面中显示所述显示内容,其中,所述第三应用用于实现投屏显示需求。比如,当第二设备中没有安装第一应用时,可以启动与第一应用具有同类功能的第三应用来显示第一应用的显示内容。In a possible example, the above method further includes the following steps: the second device starts a third application corresponding to the first application, and displays the displayed content in a third function interface corresponding to the third application , wherein the third application is used to realize the screen projection display requirement. For example, when the first application is not installed in the second device, a third application having the same function as the first application may be started to display the display content of the first application.
其中,上述第三应用可用于实现投屏,用户可设定由第二设备通过第三应用实现第一设备的投屏功能,当然,该第三应用中的第三功能界面中的样式、操作以及功能可由用户自行设置,可根据第三功能界面的样式等布局显示第一应用对应的显示内容,有利于提高用户体验。Among them, the above-mentioned third application can be used to implement screen projection, and the user can set the second device to implement the screen projection function of the first device through the third application. Of course, the style and operation of the third function interface in the third application And the function can be set by the user, and the display content corresponding to the first application can be displayed according to the layout such as the style of the third function interface, which is conducive to improving user experience.
可以看出,本申请实施例所描述的内容显示方法,第二设备显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。如此,第二设备可支持第一设备的设备内容流转功能,以实现应用投屏功能或者多屏协同功能,在其对应的页面中显示第一应用对应的显示内容。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, so 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 transfer function of the first device, so as to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application on its corresponding page.
请查阅图7,图7是本申请实施例提供的一种内容显示方法的流程示意图,如图所示,本内容显示方法包括以下操作。Please refer to FIG. 7 . FIG. 7 is a schematic flowchart of a content display method provided by an embodiment of the present application. As shown in the figure, the content display method includes the following operations.
S701、第一设备显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上。S701. The first device displays a first functional interface of a first application, where the first functional interface is displayed in a floating window on the display interface of the first device.
S702、第一设备响应于用户对所述悬浮窗的第一操作,所述第一操作包括将所述悬浮窗甩出所述第一设备的显示界面的手势,若与所述第一设备成功建立通信连接的设备的数量为1,则将成功建立通信的设备确定为第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。S702. The first device responds to the user's first operation on the floating window. The first operation includes a gesture of throwing the floating window out of the display interface of the first device. If the communication with the first device is successful If the number of devices establishing communication connections is 1, the device successfully establishing communication is determined as the second device, and the display content of the first application on the first function interface is sent to the second device.
S703、若与所述第一设备成功建立通信连接的设备的数量大于1,则显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少两个待选投屏设备的标识;基于设备标识,从所述至少两个待选投屏设备中选择出第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。S703. If the number of devices that have successfully established communication connections with the first device is greater than 1, display a screen projection device selection interface, wherein the screen projection device selection interface displays successfully established communication connections with the first device The identifiers of at least two screen projection devices to be selected; based on the device identifiers, a second device is selected from the at least two screen projection devices to be selected, and the first application is displayed in the first function interface The display content is sent to the second device.
S704、第二设备接收第一设备发送的显示内容,其中,所述显示内容为所述第一设备中第一应用的第一功能界面中显示的显示内容。S704. The second device receives the display content sent by the first device, where the display content is the display content displayed on the first function interface of the first application in the first device.
S705、第二设备显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示 界面中。S705. The second device displays the first functional interface sent by the first device, where the first functional interface corresponds to the first application in the first device, and the first functional interface is suspended in the form of a floating window on the on the display interface of the first device mentioned above.
其中,上述步骤S701-S703的相关描述与如图4中内容显示方法中相关描述一致,在此不再赘述;上述步骤S704-S705的相关描述与如图6中内容显示方法中相关描述一致,在此不再赘述。Wherein, the relevant descriptions of the above-mentioned steps S701-S703 are consistent with the relevant descriptions in the content display method as shown in FIG. I won't repeat them here.
可以看出,本申请实施例所描述的内容显示方法,第一设备显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上;第一设备响应于用户对所述悬浮窗的第一操作,所述第一操作包括将所述悬浮窗甩出所述第一设备的显示界面的手势,若与所述第一设备成功建立通信连接的设备的数量为1,则将成功建立通信的设备确定为第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备;第一设备若与所述第一设备成功建立通信连接的设备的数量大于1,则显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少两个待选投屏设备的标识;基于设备标识,从所述至少两个待选投屏设备中选择出第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备;第二设备接收第一设备发送的显示内容,其中,所述显示内容为所述第一设备中第一应用的第一功能界面中显示的显示内容;第二设备显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。如此,用户可通过第一操作对应的手势,以及通信连接的设备数量,选择不同的投屏方式,以实现将悬浮窗对应的第一应用投屏到第二设备中,以实现在当前大屏小屏(悬浮窗)分别对应的应用需要同时使用时,设备之间的内容的流转有利于实现便捷投屏;根据实际情况,用户可通过不同操作手势实现投屏,有利于提高用户体验。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 suspended and displayed on the display interface of the first device in the form of a floating window Above; the first device responds to the user's first operation on the floating window, the first operation includes a gesture of throwing the floating window out of the display interface of the first device, if the communication with the first device is successful If the number of devices establishing communication connections is 1, the device successfully establishing 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 have successfully established communication connections with the first device is greater than 1, a device displays a screen projection device selection interface, wherein the screen projection device selection interface displays that a communication connection with the first device has been successfully established The identifiers of at least two screen projection devices to be selected; based on the device identifiers, a second device is selected from the at least two screen projection devices to be selected, and the first application is displayed in the first function interface The display content 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 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 form of a floating window on the first in the display interface of the device. In this way, the user can select different screen projection methods through the gesture corresponding to the first operation and the number of devices connected through communication, so as to realize the screen projection of the first application corresponding to the floating window to the second device, so as to realize the current big screen When the applications corresponding to the small screens (floating windows) need to be used at the same time, the transfer of content between devices is conducive to convenient screen projection; according to the actual situation, users can perform screen projection through different operation gestures, which is conducive to improving user experience.
请参阅图8,图8是本申请实施例提供的一种电子设备的结构示意图,如图所示,该电子设备包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中。Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of an electronic device provided by 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 above one or A plurality of programs are stored in the above-mentioned memory.
在一种可能的示例中,上述电子设备包括第一设备,上述一个或多个程序被配置由上述处理器执行以下步骤的指令:In a possible example, the above-mentioned electronic device includes a first device, and the above-mentioned one or more programs are configured to execute instructions of the following steps by the above-mentioned processor:
显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上;displaying a first functional interface of the first application, where the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window;
响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭显示于所述第一设备的所述悬浮窗。In response to the user's first operation on the floating window, project the first functional interface to a second device, so as to display the first functional interface through the second device, and close the display on the second device. The floating window of a device.
可以看出,本申请实施例中所描述的电子设备,可显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上;响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭显示于所述第一设备的所述悬浮窗。如此,用户可通过第一操作对应的操作将悬浮窗对应的第一应用投屏到第二设备中,以实现在当前大屏小屏(悬浮窗)分别对应的应用需要同时使用时,设备之间的内容的流转,有利于实现便捷投屏,有利于提高用户体验。It can be seen that the electronic device described in the embodiments of the present application can display the first functional interface of the first application, and the first functional 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, project the first functional interface to a second device, so as to display the first functional interface through the second device, and close the display on the second device. The floating window of a device. 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
可选地,在所述将所述第一功能界面投屏到第二设备中方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of projecting the first functional interface to the second device, the above program includes instructions for performing the following steps:
触发设备连接请求,所述设备连接请求用于请求与所述第二设备建立通信连接;triggering a device connection request, where the device connection request is used to request to establish a communication connection with the second device;
在建立通信连接成功以后,After establishing the communication connection successfully,
获取所述第一应用在所述第一功能界面中的显示内容,并将所述显示内容发送至所述第二设备。Acquiring display content of the first application in the first function interface, and sending the display content to the second device.
可选地,所述第一操作包括将所述悬浮窗甩出所述第一设备的显示界面的手势;Optionally, the first operation includes a gesture of throwing the floating window out of the display interface of the first device;
在所述将所述第一功能界面投屏到第二设备中方面,上述程序包括用于执行以下步骤的指令:In terms of projecting the first functional interface to the second device, the above program includes instructions for performing the following steps:
若与所述第一设备成功建立通信连接的设备的数量为1,则将成功建立通信的设备确定为第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备;If the number of devices successfully establishing a communication connection with the first device is 1, determine the device successfully establishing communication as the second device, and send the display content of the first application in the first function interface to said second device;
若与所述第一设备成功建立通信连接的设备的数量大于1,则显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少两个待选投屏设备的标识;基于设备标识,从所述至少两个待选投屏设备中选择出第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。If the number of devices that have successfully established communication connections with the first device is greater than 1, a screen projection device selection interface is displayed, wherein the screen projection device selection interface displays at least one device that has successfully established a communication connection with the first device. The identification of the two screen projection devices to be selected; based on the device identification, select a second device from the at least two screen projection devices to be selected, and display the content of the first application in the first function interface sent to the second device.
可选地,所述第一操作不会将所述悬浮窗甩出所述第一设备的显示界面;Optionally, the first operation will not throw the floating window out of the display interface of the first device;
在所述将所述第一功能界面投屏到第二设备中方面,上述程序包括用于执行以下步骤的指令:In terms of projecting the first functional interface to the second device, the above program includes instructions for performing the following steps:
显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少一个待选投屏设备的标识,所述悬浮窗悬浮于所述投屏设备选择界面上;Displaying a screen projection device selection interface, wherein the screen projection device selection interface displays at least one candidate screen projection device identification that has successfully established a communication connection with the first device, and the floating window is suspended on the screen projection device On the device selection interface;
响应于用户对所述待选投屏设备的标识的选取操作,从所述至少一个待选投屏设备中选择第二设备;Selecting a second device from the at least one screen projection device to be selected in response to the user's selection operation on the identification of the screen projection device to be selected;
将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。Sending the display content of the first application in the first function interface to the second device.
可选地,上述程序包括用于执行以下步骤的指令:所述用户对所述待选投屏设备的标识的选取操作包括用户将所述悬浮窗拖动至待选投屏设备的标识所在的位置之后用户手指离开所述第一设备的触摸显示屏的操作。Optionally, the above program includes instructions for performing the following steps: the user's selection operation of the logo of the screen projection device to be selected includes the user dragging the floating window to the location where the logo of the screen projection device to be selected is located. After the position, the user's finger moves away from the touch display screen of the first device.
可选地,上述程序包括用于执行以下步骤的指令:所述用户对所述待选投屏设备的标识的选取操作包括用户将所述悬浮窗拖动至待选投屏设备的标识所在的位置之后用户手指离开所述第一设备的触摸显示屏的操作Optionally, the above program includes instructions for performing the following steps: the user's selection operation of the logo of the screen projection device to be selected includes the user dragging the floating window to the location where the logo of the screen projection device to be selected is located. position after the user's finger leaves the touchscreen display of the first device for operation
可选地,所述第一操作至少包括长按手势操作。Optionally, the first operation includes at least a long press gesture operation.
可选地,上述程序包括用于执行以下步骤的指令:Optionally, the above program includes instructions for performing the following steps:
接收所述用户对所述悬浮窗的目标操作,并识别所述目标操作对应的按压力度、拖动方向、拖动时长和拖动速度;receiving the user's target operation on the floating window, and identifying the pressing force, dragging direction, dragging duration, and 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.
可选地,在所述根据所述按压力度、所述拖动方向、所述拖动时间和所述拖动速度,识别所述目标操作对应的指令方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of identifying the instruction corresponding to the target operation according to the pressing force, the dragging direction, the dragging time, and the dragging speed, the above program includes the following steps: instruction:
在所述按压力度小于或等于第一预设力度且大于第二预设力度、所述拖动时间小于或等于预设时长且所述拖动速度大于预设速度时,则确定所述目标操作对应为所述将所述悬浮窗甩出所述第一设备的显示界面的手势;When the pressing force is less than or equal to a first preset force and greater than a second preset force, the dragging time is less than or equal to a preset duration, and the dragging speed is greater than a preset speed, then determine the target operation Corresponding 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, it is determined that the target operation corresponds to a gesture of moving and displaying 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, it is determined that the command corresponding to the target operation is that the floating window will not be thrown out of the a gesture on the display interface of the first device, and trigger the first device to display the screen projection device selection interface.
在一种可能的示例中,上述电子设备包括第二设备,上述一个或多个程序被配置由上述处理器执行以下步骤的指令:In a possible example, the above-mentioned electronic device includes a second device, and the above-mentioned one or more programs are configured to execute instructions of the following steps by the above-mentioned processor:
显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。Displaying a first functional interface sent by the first device, wherein the first functional interface corresponds to a first application in the first device, and the first functional interface is suspended in the form of a floating window on the first device's display interface.
可以看出,本申请实施例所描述的电子设备,第二设备显示第一设备发送的第一功能 界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。如此,第二设备可支持第一设备的设备内容流转功能,以实现应用投屏功能或者多屏协同功能,在其对应的页面中显示第一应用对应的显示内容。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 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 transfer function of the first device, so as to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application on its corresponding page.
可选地,上述程序还包括用于执行以下步骤的指令:Optionally, the above program further includes instructions for performing the following steps:
接收所述第一设备发送的显示内容,其中,所述显示内容为所述第一功能界面中显示的显示内容。The display content sent by the first device is received, wherein the display content is the display content displayed on the first function interface.
可选地,上述程序还包括用于执行以下步骤的指令:Optionally, the above program further includes instructions for performing the following steps:
若所述第二设备正在运行第二应用,则通过悬浮窗的方式在所述第二应用的第二功能界面上以预设方式悬浮显示所述第一功能界面;If the second device is running a second application, floating and displaying the first functional interface in a preset manner on the second functional interface of the second application by means of a floating window;
若所述第二设备未运行任何应用,则直接通过悬浮窗的方式或者全屏方式显示所述第一功能界面。If the second device is not running any application, the first functional interface is directly displayed in a floating window or in a full screen.
可选地,上述程序还包括用于执行以下步骤的指令:Optionally, the above program further includes instructions for performing the following steps:
启动与所述第一应用对应的第三应用,并在所述第三应用对应的第三功能界面中显示所述显示内容,其中,所述第三应用用于实现投屏显示需求。A third application corresponding to the first application is started, and the display content is displayed on a third function interface corresponding to the third application, wherein the third application is used to realize a screen projection display requirement.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of executing the process on the method side. It can be understood that, in order to realize the above functions, the electronic device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples 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 certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the electronic device into functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units 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, and there may be another division manner in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图9示出了内容显示装置的示意图,如图9所示,所述装置应用于第一设备,该内容显示装置900可以包括:显示单元901和投屏单元902,其中,In the case of dividing each functional module corresponding to each function, FIG. 9 shows a schematic diagram of a content display device. As shown in FIG. 9, the device is applied to a first device, and the content display device 900 may include: a display unit 901 and screen projection unit 902, wherein,
显示单元901可以用于支持终端设备执行上述步骤S401和/或用于本文所描述的技术的其他过程。The display unit 901 may be used to support the terminal device to perform the above step S401 and/or other processes for the technologies described herein.
投屏单元902可以用于支持终端设备执行上述步骤S402,和/或用于本文所描述的技术的其他过程。The screen projection unit 902 may be used to support the terminal device to execute the above step S402, and/or other processes of the technologies described herein.
可以看出,本申请实施例提供的内容显示装置,显示第一应用的第一功能界面,第一功能界面以悬浮窗的形式悬浮显示于第一设备的显示界面上;响应于用户对悬浮窗的第一操作,将第一功能界面投屏到第二设备中,以通过第二设备显示第一功能界面,并关闭显示于第一设备的悬浮窗。如此,用户可通过第一操作对应的操作将悬浮窗对应的第一应用投屏到第二设备中,以实现在当前大屏小屏(悬浮窗)分别对应的应用需要同时使用时,设备之间的内容的流转,有利于实现便捷投屏,有利于提高用户体验。It can be seen that the content display device provided by the embodiment of the present application displays the first functional interface of the first application, and the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window; The first operation is to project the first functional interface to the second device, so as to display the first functional interface through the second device, and close the floating window displayed on the first device. 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 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 the screens is conducive to the realization of convenient screen projection and the improvement of user experience.
可选地,在所述将所述第一功能界面投屏到第二设备中方面,上述投屏单元902具体用于:Optionally, in terms of projecting the first functional interface to the second device, the screen projecting unit 902 is specifically configured to:
触发设备连接请求,所述设备连接请求用于请求与所述第二设备建立通信连接;triggering a device connection request, where the device connection request is used to request to establish a communication connection with the second device;
在建立通信连接成功以后,After establishing the communication connection successfully,
获取所述第一应用在所述第一功能界面中的显示内容,并将所述显示内容发送至所述 第二设备。Obtaining the display content of the first application in the first function interface, and sending the display content to the second device.
可选地,所述第一操作包括将所述悬浮窗甩出所述第一设备的显示界面的手势;Optionally, the first operation includes a gesture of throwing the floating window out of the display interface of the first device;
在所述将所述第一功能界面投屏到第二设备中方面,上述投屏单元902具体用于:In terms of projecting the first functional interface to the second device, the screen projecting unit 902 is specifically used for:
若与所述第一设备成功建立通信连接的设备的数量为1,则将成功建立通信的设备确定为第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备;If the number of devices successfully establishing a communication connection with the first device is 1, determine the device successfully establishing communication as the second device, and send the display content of the first application in the first function interface to said second device;
若与所述第一设备成功建立通信连接的设备的数量大于1,则显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少两个待选投屏设备的标识;基于设备标识,从所述至少两个待选投屏设备中选择出第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。If the number of devices that have successfully established communication connections with the first device is greater than 1, a screen projection device selection interface is displayed, wherein the screen projection device selection interface displays at least one device that has successfully established a communication connection with the first device. The identification of the two screen projection devices to be selected; based on the device identification, select a second device from the at least two screen projection devices to be selected, and display the content of the first application in the first function interface sent to the second device.
可选地,所述第一操作不会将所述悬浮窗甩出所述第一设备的显示界面;Optionally, the first operation will not throw the floating window out of the display interface of the first device;
在所述将所述第一功能界面投屏到第二设备中方面,上述投屏单元902具体用于:In terms of projecting the first functional interface to the second device, the screen projecting unit 902 is specifically used for:
显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少一个待选投屏设备的标识,所述悬浮窗悬浮于所述投屏设备选择界面上;Displaying a screen projection device selection interface, wherein the screen projection device selection interface displays at least one candidate screen projection device identification that has successfully established a communication connection with the first device, and the floating window is suspended on the screen projection device On the device selection interface;
响应于用户对所述待选投屏设备的标识的选取操作,从所述至少一个待选投屏设备中选择第二设备;Selecting a second device from the at least one screen projection device to be selected in response to the user's selection operation on the identification of the screen projection device to be selected;
将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。Sending the display content of the first application in the first function interface to the second device.
图10A示出了内容显示装置的示意图,如图10A所示,所述装置应用于第二设备,该内容显示装置1000可以包括:显示单元1001,其中,FIG. 10A shows a schematic diagram of a content display apparatus. As shown in FIG. 10A, the apparatus is applied to a second device, and the content display apparatus 1000 may include: a display unit 1001, wherein,
显示单元1001可以用于支持终端设备执行上述步骤S601,和/或用于本文所描述的技术的其他过程。The display unit 1001 may be used to support the terminal device to execute the above step S601, and/or other processes of the technologies described herein.
可以看出,本申请实施例提供的内容显示装置,第二设备显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。如此,第二设备可支持第一设备的设备内容流转功能,以实现应用投屏功能或者多屏协同功能,在其对应的页面中显示第一应用对应的显示内容。It can be seen that in the content display apparatus 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 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 transfer function of the first device, so as to realize the application screen projection function or the multi-screen collaboration function, and display the display content corresponding to the first application on its corresponding page.
可选地,图10B示出了内容显示装置的示意图,与图10A中装置相比,如图10B所示上述内容显示装置1000可以包括:接收单元1002,用于接收所述第一设备发送的显示内容,其中,所述显示内容为所述第一功能界面中显示的显示内容。Optionally, FIG. 10B shows a schematic diagram of a content display device. Compared with the device in FIG. 10A , the content display device 1000 shown in FIG. 10B may include: a receiving unit 1002 configured to receive the display content, wherein the display content is the display content displayed on the first functional interface.
可选地,上述显示单元1001具体用于:Optionally, the above display unit 1001 is specifically used for:
若所述第二设备正在运行第二应用,则通过悬浮窗的方式在所述第二应用的第二功能界面上以预设方式悬浮显示所述第一功能界面;If the second device is running a second application, floating and displaying the first functional interface in a preset manner on the second functional interface of the second application by means of a floating window;
若所述第二设备未运行任何应用,则直接通过悬浮窗的方式或者全屏方式显示所述第一功能界面。If the second device is not running any application, the first functional interface is directly displayed in a floating window or in a full screen.
可选地,上述显示单元1001具体用于:Optionally, the above display unit 1001 is specifically used for:
启动与所述第一应用对应的第三应用,并在所述第三应用对应的第三功能界面中显示所述显示内容,其中,所述第三应用用于实现投屏显示需求。A third application corresponding to the first application is started, and the display content is displayed on a third function interface corresponding to the third application, wherein the third application is used to realize a screen projection display requirement.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述内容显示方法,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to implement the above content display method, so the same effect as the above implementation method can be achieved.
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述显示单元901和投屏单元902,或者,显示单元1001和接收单元1002执行的步骤。 存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。In the case of an integrated unit, the electronic device may include a processing module, a memory module and a communication module. Wherein, 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 steps performed by the display unit 901 and the screen projection unit 902, or the display unit 1001 and the receiving unit 1002. The memory module can be used to support electronic devices to execute stored program codes and data, and the like. The communication module can be used to support the communication between the electronic device and other devices.
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。Wherein, the processing module may be a processor or a controller. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like. The storage module may be a memory. Specifically, the communication module may be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。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, and the computer program enables the computer to execute some or all of the steps of any method described in the above method embodiments , the above-mentioned computer includes electronic equipment.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。An 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, and the computer program is operable to enable the computer to execute any one of the methods described in the above method embodiments. Some or all steps of the method. The computer program product may be a software installation package, and the computer includes electronic equipment.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or part of the contribution 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. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the above-mentioned methods in various embodiments of the present application. The aforementioned memory includes: various media that can store program codes such as U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned 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 disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disc, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for Those skilled in the art will have changes in specific implementation methods and application scopes based on the ideas of the present application. In summary, the contents of this specification should not be construed as limiting the present application.
Claims (20)
- 一种内容显示方法,应用于第一设备,其特征在于,所述方法包括:A content display method applied to a first device, characterized in that the method includes:显示第一应用的第一功能界面,所述第一功能界面以悬浮窗的形式悬浮显示于所述第一设备的显示界面上;displaying a first functional interface of the first application, where the first functional interface is suspended and displayed on the display interface of the first device in the form of a floating window;响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭显示于所述第一设备的所述悬浮窗。In response to the user's first operation on the floating window, project the first functional interface to a second device, so as to display the first functional interface through the second device, and close the display on the second device. The floating window of a device.
- 根据权利要求1所述的方法,其特征在于,所述将所述第一功能界面投屏到第二设备中,包括:The method according to claim 1, wherein the projecting the first functional interface to the second device comprises:触发设备连接请求,所述设备连接请求用于请求与所述第二设备建立通信连接;triggering a device connection request, where the device connection request is used to request to establish a communication connection with the second device;在建立通信连接成功以后,After establishing the communication connection successfully,获取所述第一应用在所述第一功能界面中的显示内容,并将所述显示内容发送至所述第二设备。Acquiring display content of the first application in the first function interface, and sending the display content to the second device.
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:若所述第一设备与所述第二设备为同一用户的设备,则在所述第一操作后,所述第一设备与所述第二设备直接建立通信连接;If the first device and the second device belong to the same user, after the first operation, the first device and the second device directly establish a communication connection;在建立通信连接成功以后,获取所述第一应用在所述第一功能界面中的显示内容,并将所述显示内容发送至所述第二设备。After the communication connection is established successfully, the display content of the first application in the first function interface is acquired, and the display content is sent to the second device.
- 根据权利要求2或3所述的方法,其特征在于,所述第一操作包括将所述悬浮窗甩出所述第一设备的显示界面的手势;The method according to claim 2 or 3, wherein 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:若与所述第一设备成功建立通信连接的设备的数量为1,则将成功建立通信的设备确定为第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备;If the number of devices successfully establishing a communication connection with the first device is 1, determine the device successfully establishing communication as the second device, and send the display content of the first application in the first function interface to said second device;若与所述第一设备成功建立通信连接的设备的数量大于1,则显示投屏设备选择界面,其中,所述投屏设备选择界面中显示有与所述第一设备成功建立通信连接的至少两个待选投屏设备的标识;基于设备标识,从所述至少两个待选投屏设备中选择出第二设备,并将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。If the number of devices that have successfully established communication connections with the first device is greater than 1, a screen projection device selection interface is displayed, wherein the screen projection device selection interface displays at least one device that has successfully established a communication connection with the first device. The identification of the two screen projection devices to be selected; based on the device identification, select a second device from the at least two screen projection devices to be selected, and display the content of the first application in the first function interface sent to the second device.
- 根据权利要求4所述的方法,其特征在于,所述设备标识包括以下一种或多种:设备名称、设备型号、设备编码、设备类型。The method according to claim 4, wherein the device identification includes one or more of the following: device name, device model, device code, and device type.
- 根据权利要求2或3所述的方法,其特征在于,所述第一操作不会将所述悬浮窗甩出所述第一设备的显示界面;The method according to claim 2 or 3, wherein the first operation does 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 at least one candidate screen projection device identification that has successfully established a communication connection with the first device, and the floating window is suspended on the screen projection device On the device selection interface;响应于用户对所述待选投屏设备的标识的选取操作,从所述至少一个待选投屏设备中选择第二设备;Selecting a second device from the at least one screen projection device to be selected in response to the user's selection operation on the identification of the screen projection device to be selected;将所述第一应用在所述第一功能界面中的显示内容发送至所述第二设备。Sending the display content of the first application in the first function interface to the second device.
- 根据权利要求6所述的方法,其特征在于,所述用户对所述待选投屏设备的标识的选取操作包括用户将所述悬浮窗拖动至待选投屏设备的标识所在的位置之后用户手指离开所述第一设备的触摸显示屏的操作。The method according to claim 6, wherein the user's selection operation of the logo of the screen projection device to be selected includes the user dragging the floating window to the position where the logo of the screen projection device to be selected is located An operation in which the user's finger leaves the touch display screen of the first device.
- 根据权利要求6所述的方法,其特征在于,所述第一操作至少包括长按手势操作。The method according to claim 6, wherein the first operation includes at least a long press gesture operation.
- 根据权利要求4-8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 4-8, wherein the method further comprises:接收所述用户对所述悬浮窗的目标操作,并识别所述目标操作对应的按压力度、拖动方向、拖动时长和拖动速度;receiving the user's target operation on the floating window, and identifying the pressing force, dragging direction, dragging duration, and 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.
- 根据权利要求9所述的方法,其特征在于,所述第一设备中包括预设模型,所述预设模型用于对所述目标操作进行识别;The method according to claim 9, wherein the first device includes a preset model, and the preset model is used to identify the target operation;所述识别所述目标操作对应的操作,包括:The identifying the operation corresponding to the target operation includes:分别将所述目标操作对应的所述按压力度、所述拖动方向、所述拖动时长和所述拖动速度的相关参数输入所述预设模型,得到至少一个所述第一操作对应的评价值,其中,所述第一操作包括以下至少一种:所述长按手势操作、向上拖动并抛出操作、向右拖动并抛出操作、向下拖动并抛出操作、向左拖动并抛出操作;Respectively input relevant parameters of the pressing force, the dragging direction, the dragging duration, and the dragging speed corresponding to the target operation into the preset model to obtain at least one corresponding to the first operation. Evaluation value, wherein the first operation includes at least one of the following: the long press gesture operation, dragging up and throwing, dragging to the right and throwing, dragging down and throwing, Left drag and throw operation;比较至少一个所述第一操作中每一第一操作对应的评价值,选择最大评价值对应的第一操作为所述目标操作对应的操作。Comparing evaluation values corresponding to each first operation in the at least one first operation, and selecting the first operation corresponding to the largest evaluation value as the operation corresponding to the target operation.
- 根据权利要求10所述的方法,其特征在于,所述根据所述按压力度、所述拖动方向、所述拖动时间和所述拖动速度,识别所述目标操作对应的指令,包括:The method according to claim 10, wherein the identifying the instruction corresponding to the target operation according to the pressing force, the dragging direction, the dragging time, and the dragging speed includes:在所述按压力度小于或等于第一预设力度且大于第二预设力度、所述拖动时间小于或等于预设时长且所述拖动速度大于预设速度时,则确定所述目标操作对应为所述将所述悬浮窗甩出所述第一设备的显示界面的手势;When the pressing force is less than or equal to a first preset force and greater than a second preset force, the dragging time is less than or equal to a preset duration, and the dragging speed is greater than a preset speed, then determine the target operation Corresponding 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, it is determined that the target operation corresponds to a gesture of moving and displaying 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, it is determined that the instruction corresponding to the target operation is that the floating window will not be thrown out of the a gesture on the display interface of the first device, and trigger the first device to display the screen projection device selection interface.
- 一种内容显示方法,应用于第二设备,其特征在于,所述方法包括:A content display method applied to a second device, characterized in that the method includes:显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一功能界面以悬浮窗的形式悬浮于所述第一设备的显示界面中。Displaying a first functional interface sent by the first device, wherein the first functional interface corresponds to a first application in the first device, and the first functional interface is suspended in the form of a floating window on the first device's display interface.
- 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method according to claim 12, characterized in that the method further comprises:接收所述第一设备发送的显示内容,其中,所述显示内容为所述第一功能界面中显示的显示内容。The display content sent by the first device is received, wherein the display content is the display content displayed on the first function interface.
- 根据权利要求12或13所述的方法,其特征在于,所述方法还包括:The method according to claim 12 or 13, wherein the method further comprises:若所述第二设备正在运行第二应用,则通过悬浮窗的方式在所述第二应用的第二功能界面上以预设方式悬浮显示所述第一功能界面;If the second device is running a second application, floating and displaying the first functional interface in a preset manner on the second functional interface of the second application by means of a floating window;若所述第二设备未运行任何应用,则直接通过悬浮窗的方式或者全屏方式显示所述第一功能界面。If the second device is not running any application, the first functional interface is directly displayed in a floating window or in a full screen.
- 根据权利要求12或13所述的方法,其特征在于,所述方法还包括:The method according to claim 12 or 13, wherein the method further comprises:启动与所述第一应用对应的第三应用,并在所述第三应用对应的第三功能界面中显示所述显示内容,其中,所述第三应用用于实现投屏显示需求。A third application corresponding to the first application is started, and the display content is displayed on a third function interface corresponding to the third application, wherein the third application is used to realize a screen projection display requirement.
- 一种内容显示装置,其特征在于,所述装置应用于第一设备,所述装置包括:显示单元和投屏单元,其中,A content display device, characterized in that the device is applied to a first device, and the device includes: a display unit and a screen projection unit, wherein,所述显示单元,用于显示第一应用,所述第一应用的第一功能界面以悬浮窗的方式悬浮显示于所述第一设备的显示界面上;The display unit is configured to display a first application, and the first functional interface of the first application is suspended and displayed on the display interface of the first device in the form of a floating window;所述投屏单元,用于响应于用户对所述悬浮窗的第一操作,将所述第一功能界面投屏到第二设备中,以通过所述第二设备显示所述第一功能界面,并关闭所述悬浮窗。The screen projection unit is configured to project the first functional interface to a second device in response to the user's first operation on the floating window, so as to display the first functional interface through the second device , and close the floating window.
- 一种内容显示装置,其特征在于,所述装置应用于第二设备,所述装置包括:显示单元,其中,A content display device, characterized in that the device is applied to a second device, and the device includes: a display unit, wherein,所述显示单元,用于显示第一设备发送的第一功能界面,其中,所述第一功能界面对应所述第一设备中的第一应用,所述第一应用以悬浮窗的方式悬浮于所述第一设备的显示界面中。The display unit is configured to display a first functional interface sent by the first device, wherein the first functional interface corresponds to a first application in the first device, and the first application is suspended in the form of a floating window In the display interface of the first device.
- 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-11任一项或权利要求12-15任一项所述的方法中的步骤的指令。An electronic device, characterized in that it includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, The program includes instructions for executing the steps in the method according to any one of claims 1-11 or any one of claims 12-15.
- 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-11任一项或权利要求12-15任一项所述的方法。A computer-readable storage medium, which is characterized by storing a computer program for electronic data exchange, wherein the computer program causes the computer to execute any one of claims 1-11 or any one of claims 12-15. described method.
- 一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如权利要求1-8任一项或权利要求9-12任一项所描述的方法。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 enable a computer to perform any one of claims 1-8 or claim 9 -12 any one of the methods described.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111681037.1A CN114356162B (en) | 2021-12-30 | 2021-12-30 | Content display method and related product |
CN202111681037.1 | 2021-12-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023125048A1 true WO2023125048A1 (en) | 2023-07-06 |
Family
ID=81105306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/139337 WO2023125048A1 (en) | 2021-12-30 | 2022-12-15 | Content display method and related product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114356162B (en) |
WO (1) | WO2023125048A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114356162B (en) * | 2021-12-30 | 2024-09-24 | Oppo广东移动通信有限公司 | Content display method and related product |
CN118819696A (en) * | 2023-04-21 | 2024-10-22 | 华为技术有限公司 | Display method and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111880757A (en) * | 2020-06-30 | 2020-11-03 | 北京小米移动软件有限公司 | Screen projection method, screen projection device and storage medium |
CN112654957A (en) * | 2018-11-15 | 2021-04-13 | 深圳市欢太科技有限公司 | Suspended window control method and related product |
WO2021212922A1 (en) * | 2020-04-24 | 2021-10-28 | 华为技术有限公司 | Object dragging method and device |
CN114356162A (en) * | 2021-12-30 | 2022-04-15 | Oppo广东移动通信有限公司 | Content display method and related product |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279953B (en) * | 2016-12-30 | 2021-01-19 | 法法汽车(中国)有限公司 | Screen projection method and screen projection device |
CN118363553A (en) * | 2019-08-28 | 2024-07-19 | 北京小米移动软件有限公司 | Screen projection method, device, terminal and storage medium |
CN112558825A (en) * | 2019-09-26 | 2021-03-26 | 华为技术有限公司 | Information processing method and electronic equipment |
CN114764298B (en) * | 2020-07-29 | 2023-03-03 | 华为技术有限公司 | Cross-device object dragging method and device |
CN112988102B (en) * | 2021-05-11 | 2021-09-14 | 荣耀终端有限公司 | Screen projection method and device |
-
2021
- 2021-12-30 CN CN202111681037.1A patent/CN114356162B/en active Active
-
2022
- 2022-12-15 WO PCT/CN2022/139337 patent/WO2023125048A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112654957A (en) * | 2018-11-15 | 2021-04-13 | 深圳市欢太科技有限公司 | Suspended window control method and related product |
WO2021212922A1 (en) * | 2020-04-24 | 2021-10-28 | 华为技术有限公司 | Object dragging method and device |
CN111880757A (en) * | 2020-06-30 | 2020-11-03 | 北京小米移动软件有限公司 | Screen projection method, screen projection device and storage medium |
CN114356162A (en) * | 2021-12-30 | 2022-04-15 | Oppo广东移动通信有限公司 | Content display method and related product |
Also Published As
Publication number | Publication date |
---|---|
CN114356162A (en) | 2022-04-15 |
CN114356162B (en) | 2024-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023125048A1 (en) | Content display method and related product | |
WO2021036594A1 (en) | Control method applied to screen projection scenario and related device | |
US10786733B2 (en) | Information processing method, terminal, and computer storage medium for releasing virtual skill object based on user gesture | |
EP3285156B1 (en) | Information processing method and terminal, and computer storage medium | |
US12124692B2 (en) | File processing method, electronic device, system, and storage medium | |
CN107463518B (en) | Automatic multi-host switching for input devices | |
RU2672714C2 (en) | Multi-input control method and system and electronic device supporting same | |
EP2854428B1 (en) | Terminal for providing instant messaging service | |
EP2868065B1 (en) | Apparatus and method for selection of a device for content sharing operations | |
US10776069B2 (en) | Multi-user display collaboration system | |
CN105138228A (en) | Display device and display method thereof | |
US20150067536A1 (en) | Gesture-based Content Sharing Between Devices | |
WO2022105425A1 (en) | Display method, electronic device, and readable storage medium | |
KR20170058996A (en) | Partitioned application presentation across devices | |
KR20140123076A (en) | A device control method and apparatus | |
WO2021022720A1 (en) | Bluetooth-based data transmission method, storage medium and terminal | |
WO2023020149A1 (en) | Object dragging method, device and storage medium | |
US10419545B2 (en) | Profiled wireless docking system | |
WO2024045985A1 (en) | Screen control method, screen control apparatus, electronic device, program, and medium | |
US20210084136A1 (en) | Information processing method, file transmission method, electronic apparatus, and computing apparatus | |
US10779148B2 (en) | Data transmission method and first electronic device | |
WO2017211260A1 (en) | Data access method and related device | |
EP4345592A1 (en) | Processing method, processing device, and readable storage medium | |
US11487559B2 (en) | Dynamically switching between pointer modes | |
KR20170103378A (en) | Display control method for mobile game application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22914303 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |