A display device and a picture switching method for applying a split screen display
By switching application levels and establishing data communication relationships within the display device, the problem of low response efficiency in simultaneous display is solved, enabling rapid response to user input switching commands and improving the user experience.
Patent Information
- Application Number
- CN202211610603.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-12-14
AI Technical Summary
When displaying applications on the same screen via native interfaces, the application interfaces cannot communicate with each other, making it impossible for users to operate and control the application interfaces using remote controls or other control devices. This results in low response efficiency and a reduced user experience.
By receiving instructions to switch the display position of applications, the hierarchy of the first and second applications can be switched to establish a data communication relationship. It also supports floating display, reads the screen size to plan the floating window, and controls the display to display in full screen or as a floating window.
It enables rapid response to user input switching commands on display devices, improving the response efficiency and user experience of application display on the same screen.
Smart Images

Figure CN117608441B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display device technology, and in particular to a display device and a method for switching screens when displaying applications on the same screen. Background Technology
[0002] Display devices refer to electronic devices capable of outputting specific display images, such as smart TVs, communication terminals, smart advertising screens, and projectors. Taking smart TVs as an example, smart TVs are television products based on Internet application technology, possessing open operating systems and chips, and having open application platforms. They enable two-way human-computer interaction and integrate multiple functions such as audio-visual, entertainment, and data to meet diverse and personalized user needs.
[0003] Display devices can also enable application interface floating via native interfaces, allowing multiple application interfaces to be displayed simultaneously on the device's screen. For example, when a user wants to watch two applications at the same time, the display device can use a native interface to float and split-screen the two application interfaces, allowing the user to view both applications' screens simultaneously. However, when displaying different application interfaces via native interfaces, data communication between the application interfaces is impossible. Therefore, during application simultaneous display, users cannot operate or control the application interfaces using remote controls or other control devices, resulting in low display device response efficiency and a degraded user experience. Summary of the Invention
[0004] This application provides a screen switching method for displaying a display device and an application on the same screen, in order to solve the problem of low response efficiency of the display device during application display on the same screen.
[0005] In a first aspect, some embodiments of this application provide a display device, including a display and a controller. The display is configured to display a user interface of a first application, and a user interface of a second application on top of the first application; the controller is configured to execute the following program steps:
[0006] Receive switching instructions for changing the application display position;
[0007] In response to the switching command, the hierarchy of the first application and the second application is switched to control the display to display the user interface of the second application in full screen; the first application and the second application are applications that have established data communication relationship with each other and both support floating display.
[0008] Read the screen size of the first application, and plan a floating window on top of the second application based on the screen size;
[0009] Control the display to show the user interface of the first application through the floating window.
[0010] Secondly, some embodiments of this application also provide a method for switching screens in a simultaneous display, including:
[0011] Receive switching instructions for changing the application display position;
[0012] In response to the switching command, the hierarchy of the first application and the second application is switched to control the display to show the user interface of the second application in full screen; the first application and the second application are applications that have established data communication relationship with each other and both support floating display.
[0013] Read the screen size of the first application, and plan a floating window on top of the second application based on the screen size;
[0014] Control the display to show the user interface of the first application through the floating window.
[0015] As can be seen from the above technical solutions, the screen switching method for displaying devices and applications on the same screen provided in some embodiments of this application can switch the hierarchy of the first application and the second application in response to a switching command for switching the display position of the application, so as to control the display to display the user interface of the second application in full screen. The first application and the second application are mutually interconnected and both support floating display. The method reads the screen size of the first application and plans a floating window on top of the second application based on the screen size. Then, it controls the display to display the user interface of the first application through the floating window, so as to quickly respond to the user's input switching command when the display device is displaying applications on the same screen, thereby improving the user experience. Attached Figure Description
[0016] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application;
[0018] Figure 2 This is a schematic diagram of the hardware configuration of a display device provided in some embodiments of this application;
[0019] Figure 3 This is a schematic diagram of the hardware configuration of the control device provided in some embodiments of this application;
[0020] Figure 4This is a schematic diagram of the software configuration of a display device provided in some embodiments of this application;
[0021] Figure 5 A schematic diagram of the icon control interface of a display device application provided in some embodiments of this application;
[0022] Figure 6 A flowchart illustrating a screen switching method for application display on the same screen provided in some embodiments of this application;
[0023] Figure 7 This is a schematic diagram illustrating the effect of the initial user interface for simultaneous display of applications provided in some embodiments of this application;
[0024] Figure 8 This application provides a schematic diagram illustrating the effect of an operation prompt page according to some embodiments.
[0025] Figure 9 This is a schematic diagram illustrating the effect of another operation prompt page provided in some embodiments of this application;
[0026] Figure 10 A schematic diagram illustrating the process of establishing data communication between a first application and a second application as provided in some embodiments of this application;
[0027] Figure 11 Examples of the application's screen-sharing effect provided in some embodiments of this application;
[0028] Figure 12 A schematic diagram illustrating the effect of application display on the same screen after switching, provided in some embodiments of this application;
[0029] Figure 13 This is a schematic diagram illustrating the effect of disabling lower-level applications provided in some embodiments of this application;
[0030] Figure 14 This is a schematic diagram illustrating the effect of the shutdown reason prompt information provided in some embodiments of this application;
[0031] Figure 15 This is a schematic diagram of the structure of a display device provided in some embodiments of this application. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of the exemplary embodiments of this application clearer, the technical solutions in the exemplary embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.
[0033] Based on the exemplary embodiments shown in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application. Furthermore, although the disclosures in this application are presented by way of one or more exemplary examples, it should be understood that each aspect of these disclosures can constitute a complete technical solution on its own.
[0034] It should be understood that the terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate, for example, to allow implementation in orders other than those given in the embodiments illustrated or described in this application.
[0035] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that includes a series of components is not necessarily limited to those that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.
[0036] The display device provided in this application can have various implementation forms, such as a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is one specific embodiment of the display device of this application.
[0037] Figure 1 This is a schematic diagram illustrating the operational scenario between the display device and the control unit according to the embodiment. Figure 1 As shown, the user can operate the display device 200 through the terminal device 300 or the control device 100.
[0038] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
[0039] In some embodiments, a terminal device 300 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on a smart device may be used to control the display device 200.
[0040] In some embodiments, the display device may receive instructions not through the aforementioned smart devices or control devices, but through touch or gestures.
[0041] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the terminal device 300. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.
[0042] In some embodiments, the display device 200 also communicates with the server 400. The display device 200 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
[0043] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2 As shown, the control device 100 includes a control processor 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input operation commands and convert the operation commands into commands that the display device 200 can recognize and respond to, thus acting as an intermediary for interaction between the user and the display device 200.
[0044] like Figure 3 As shown, the display device 200 includes at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0045] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first interface to an nth interface for input / output.
[0046] The display 260 includes a display screen assembly for presenting images, a driving assembly for driving image display, a component for receiving image signals from the controller output, and a user control UI interface for displaying video content, image content, menu control interface, and user control UI interface.
[0047] The display 260 can be an LCD display, an OLED display, or a projection display, and can also be a projection device and a projection screen.
[0048] The communicator 220 is a component used to communicate with external devices or servers according to various communication protocol types. For example, the communicator may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The display device 200 can establish the transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.
[0049] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote control).
[0050] Detector 230 is used to collect signals from the external environment or to interact with the external environment. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0051] The external device interface 240 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.
[0052] The tuner / demodulator 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals.
[0053] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0054] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command to select a UI object to display on the monitor 260, the controller 250 can execute operations related to the object selected by the user command.
[0055] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM (Random Access Memory), ROM (Read-Only Memory), a first to an nth interface for input / output, a communication bus, etc.
[0056] Users can input commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, users can input commands by entering specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.
[0057] A "user interface" is the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form that the user can accept. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0058] like Figure 4 In some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android Runtime and System Library layer (referred to as the "System Runtime Layer"), and the kernel layer.
[0059] In some embodiments, at least one application runs in the application layer. These applications may be Windows programs, system settings programs, or clock programs that come with the operating system; they may also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0060] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Applications can access system resources and obtain system services during execution through the API interface.
[0061] like Figure 4 As shown, the application framework layer in this embodiment includes managers, content providers, etc., wherein the managers include at least one of the following modules: ActivityManager, which interacts with all activities running in the system; LocationManager, which provides access to system location services for system services or applications; PackageManager, which retrieves various information related to application packages currently installed on the device; NotificationManager, which controls the display and clearing of notification messages; and WindowManager, which manages icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0062] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling display window changes (e.g., shrinking the display window, shaking the display, distorting the display, etc.).
[0063] In some embodiments, the system runtime library layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer to implement the functions that the framework layer needs to perform.
[0064] In some embodiments, the kernel layer is a layer between hardware and software. For example... Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver.
[0065] like Figure 5As shown, the application layer of the display device 200 may contain at least one application that can display corresponding icon controls on the display, such as: live TV application icon control, video-on-demand application icon control, media center application icon control, application center icon control, game application icon control, etc.
[0066] In some embodiments, a live TV application can provide live TV from different signal sources. For example, the live TV application can provide a TV signal using input from cable television, terrestrial broadcasting, satellite services, or other types of live TV services. Furthermore, the live TV application can display the video of the live TV signal on display device 200.
[0067] In some embodiments, a video-on-demand application may provide video from different storage sources. Unlike live TV applications, video-on-demand provides video display from certain storage sources. For example, video-on-demand may come from a cloud storage server or from local hard drive storage containing pre-stored video programs.
[0068] In some embodiments, a media center application may be an application that provides playback of various multimedia content. For example, a media center may provide services that, unlike live TV or video-on-demand, allow users to access various images or audio through the media center application.
[0069] In some embodiments, the application center may provide a storage for various applications. An application may be a game, an application, or other applications related to a computer system or other device but capable of running on a smart TV. The application center may obtain these applications from various sources, store them in local storage, and then run them on the display device 200.
[0070] Display device 200 can use the aforementioned application to retrieve target media assets from the corresponding media asset library via server 400 and play the target media assets online. That is, in some embodiments, during the playback of a media asset item, server 400 can retrieve media asset data from the corresponding media asset library in real time and continuously form media asset images through decoding, rendering, and other processing.
[0071] Furthermore, the display device 200 can also establish a screen mirroring connection with other terminal devices, enabling it to display the screen content from those devices. In some embodiments, a user can send a screen mirroring connection request through the terminal device 300 and transmit it to the display device 200 via a WiFi network. The display device 200 then configures the transmission protocol according to the connection request, thereby establishing a screen mirroring data transmission channel with the terminal device 300. For example, for system applications or screen mirroring at the system level, the terminal device 300 can use Miracast, AirPlay, or WiDi screen mirroring protocols to establish a screen mirroring data transmission channel with the display device 200. The display device 200 receives the screen mirroring data from the terminal device 300 through the transmission channel, thus displaying the user interface of the application on the terminal device 300 on the monitor 260.
[0072] In some embodiments, the display device 200 can also establish a projection connection with the terminal device 300 through different connection methods. For example, when the display device 200 and the terminal device 300 are connected to the same wireless local area network, a projection connection can be established based on the WiFi network. As another example, when both the display device 200 and the terminal device 300 are equipped with NFC (Near Field Communication) components, a projection connection can be established through the NFC components. Obviously, the display device 200 and the terminal device 300 can also use other wired or wireless connection methods to establish a projection connection, such as RF radio frequency connection, infrared connection, cellular network, etc.
[0073] Display device 200 can display and play the user interface of any application based on any of the methods described in the above embodiments. However, in some scenarios, users may need to display multiple applications simultaneously. Therefore, in some embodiments, display device 200 can implement application interface floating through a native interface, and then display the application interfaces of multiple applications on the display 260 simultaneously through floating split-screen. For example, display device 200 can play the lower-level application in full screen, and at the same time set a floating window based on the native interface of display device 200 to float the upper-level application above the lower-level application, so as to achieve the simultaneous display of multiple applications.
[0074] However, using a native interface to set up a floating window does not allow data communication between the various display windows. Therefore, during simultaneous display on screen, the user cannot control the application interface displayed on the display device 200 using a remote control or other control device 100. This results in low response efficiency of the display device 200 during application simultaneous display, reducing the user experience. To achieve data communication between the various display windows, the SDKs (Software Development Kits) of each application need to be integrated into a single application. However, integrating multiple application SDKs into a single application leads to complex interactivity and poor scalability during maintenance, also affecting the operating efficiency of the display device 200.
[0075] Based on the above application scenarios, in order to improve user experience and alleviate the problem of low response efficiency of the display device 200 during application screen-sharing, some embodiments of this application provide a screen switching method for application screen-sharing. For example... Figure 6 As shown, the method specifically includes the following steps:
[0076] S100: Receives a switching command for switching the application display position.
[0077] The display device 200 can acquire various control commands input by the user. Among these, some control commands used to switch the application display position are switching commands. In some embodiments, the switching command can be issued through a terminal device 300, such as a mobile phone; it can also be issued by a remote control associated with the display device 200; or it can be issued by an external touch component of the display device 200. However, this application does not impose specific limitations.
[0078] Clearly, when the user inputs the switching command, the display device 200 is already in a state of displaying the application on the same screen. However, since floating display is a special display state, when displaying an application in a floating state, the display device 200 can only display the application's user interface through a floating window after the application has entered a floating state and is ready.
[0079] Therefore, in some embodiments, the display device 200 receives a startup command for displaying an application screen, and in response to the startup command, obtains the preparation status of a first application and starts a second application. For example... Figure 7As shown, if the preparation state is complete, the display device 200 controls the display 260 to display the second application floating above the first application, so that the display device 200 can display the user interfaces of multiple applications on the same screen. If the preparation state is incomplete, the display device 200 controls the display 260 to display the second application in full screen, so that the user can view the user interface of the second application on a large screen.
[0080] For example, if the user interface of a first application is being displayed on display device 200, and the user sends a start command to display device 200 to display the screen of a second application, display device 200 will detect the preparation status of the first application and find that it is not yet ready. Since the first application is not yet ready, it means that the current state does not support displaying both the first and second application user interfaces on display device 200 simultaneously. Therefore, display device 200 will control monitor 260 to display the user interface of the second application in full screen for the user to view.
[0081] Furthermore, in order to facilitate the display device 200 in obtaining the status of the first application, in some embodiments, the display device 200 also receives the status message of the first application and parses the identifier contained in the status message to determine the current preparation status of the application.
[0082] For example, the preparation status indicators for the first application include IDLE (preparing), PREPARE (preparation complete), FOCUS (preparation complete), FINISH (exit interface), and ERROR (error). The display device 200 can parse the indicators contained in the status message to determine the application's preparation status. When the first application's preparation status is PREPARE or FOCUS, it means the first application is ready and can be displayed. At this time, the display device 200 can control the display 260 to display the second application floating above the first application.
[0083] In some embodiments, the display device 200 can also set a corresponding identifier to represent the preparation status of the first application according to the type of the first application. Since background service applications are inherently configured with background running and floating functions, if the first application is a background service application, such as a screen mirroring application that relies on wireless network communication technology, the identifier can directly represent the preparation status of the first application. If the first application is not a background service application and requires a startup interface to start, the floating function switch needs to be controlled, and the preparation status of the first application needs to be represented by the floating function switch.
[0084] For example, background service applications can use the PREPARED status to indicate that they are ready; non-background service applications can control their function on / off via FOCUS and notify the current application that it can support floating interface display via FOCUS.
[0085] For applications that can only be launched from the startup screen, the user needs to perform corresponding operations on the startup screen before the display device 200 can display the application's user interface. Therefore, in some embodiments, if the second application is a non-background service application, the display device 200 controls the display 260 to display an operation prompt interface when the second application is launched. After the display 260 displays the operation prompt interface, the display device 200 also monitors the startup status of the second application. If the second application has finished launching, the display 260 is controlled to close the operation prompt interface.
[0086] Furthermore, while the display device 200 is displaying the operation prompt interface, the user can also input operation commands into the display device 200 to change the corresponding operation prompt interface, thereby selecting the application's launch method. That is, in some embodiments, the display device 200 receives operation commands input by the user for changing the operation interface, and responds to the operation commands by changing the corresponding operation prompt interface to switch the launch method.
[0087] For example, taking screen mirroring applications as an example, after the user activates the screen mirroring function on display device 200, display device 200 will display something like this: Figure 8 The screen mirroring connection operation prompt page is shown. After the user clicks the designated button on the remote control, the display device 200 responds to the user's operation and switches to the display 260 as shown. Figure 9 The operation prompt page is shown. Users can perform corresponding operations on the projection device according to the operation prompt page to establish a projection relationship with the display device 200. After the projection device and display device 200 establish a projection connection, the display device 200 closes the operation prompt page.
[0088] It is understood that the first application and the second application in this application embodiment are applications that establish data communication relationships with each other and both support floating display.
[0089] Therefore, in order to establish a data communication relationship between the first application and the second application, in some embodiments, the display device 200 further traverses the applications in the display device 200 and filters out applications that support the floating function to serve as either the first application or the second application. Then, client services in the first application and the second application are bound together to establish a data communication relationship between the first application and the second application. That is, as follows... Figure 10As shown, display device 200 iterates through all its deployed applications and filters out those that support the floating function. After filtering out the applications that support the floating function, it binds the client services between the applications, thus establishing a data communication relationship between the first application and the second application, enabling them to communicate with each other.
[0090] For example, the first application is a background service application. After the second application starts, the display device 200 can traverse the current applications on the entire device through metadata information to determine if there is an application that supports floating. If there is an application that supports floating, it will bind the agreed client services in sequence, thereby completing the data communication between the applications that support floating on the display device 200. It receives the status information of the first application and parses the preparation status of the first application as PREPARE, such as... Figure 7 As shown, the display device 200 displays the user interface of the second application through a floating window on top of the first application.
[0091] Obviously, if the display device 200 displays the first application in full screen, the user interface of the first application can be scaled according to the preset ratio based on the size of the monitor 260. However, when the display device 200 displays the second application through a floating window, the size of the floating window needs to be planned according to the screen state of the second application before a suitable screen size can be displayed on the monitor 260.
[0092] Therefore, to facilitate the planning of the floating window size, in some embodiments, the display device 200 acquires the media asset data of the second application and parses the screen size in the media asset data to obtain the screen state of the second application. The screen state includes landscape and portrait modes. If the screen state is landscape, the floating window width is determined to be the default width, and the aspect ratio of the screen size is acquired; the window height is then calculated based on the default width and aspect ratio. If the screen state is portrait, the window height is determined to be the default height, and the aspect ratio of the screen size is acquired; the window width is then calculated based on the default height and aspect ratio.
[0093] For example, taking the second application as a screen mirroring application, the media asset data of the screen mirroring application, i.e., the video stream of the screen mirroring application, is obtained. The width of the video stream is denoted as VideoWidth, and the height of the video stream is denoted as VideoHeight. When the display device 200 plans a floating window on top of the first application, it obtains the width and height of the current parent layout, denoting the width of the parent layout as ViewWidth and the height of the parent layout as ViewHeight. The width and height of the floating window are then calculated according to the following formula:
[0094] If VideoWidth ≥ VideoHeight, determine that the width of the parent layout is a fixed width, denoted as X, then the height of the parent layout is X*VideoHeight / VideoWidth, and the width and height of the floating window are the same as those of the parent layout; if VideoWidth < VideoHeight, determine that the height of the parent layout is a fixed height, denoted as Y, then the height of the parent layout is Y*VideoWidth / VideoHeight, and the width and height of the floating window are the same as those of the parent layout. The display device 200 may set the floating window according to the planned width and height dimensions, so as to display the user screen of the screen casting application through the floating window.
[0095] S200: In response to the switching instruction, switch the hierarchy of the first application and the second application, so as to control the display to full-screen display the user interface of the second application.
[0096] After the display device 200 displays the second application through the planned floating window, the user interface of the second application is displayed on the upper layer of the first application. In addition, since the first application and the second application establish a data intercommunication relationship with each other, and both support floating display applications. Therefore, after receiving the switching instruction, the display device 200 may exchange the hierarchy of the first application and the second application, so that the user interface of the second application is displayed in full screen, and the user interface of the first application is displayed in a floating manner.
[0097] For example: taking the first application as the fitness mirror application of the display device 200 and the second application as the screen casting application as an example. As Figure 11 shown, the display 260 displays the screen of the fitness mirror application in full screen and displays the screen of the screen casting application in a floating manner. That is, the fitness mirror application is Figure 11 the lower-layer application in, and the screen casting application is Figure 11 the upper-layer application in. At this time, if the user wants to enlarge the screen in the screen casting application, the user sends a switching instruction to the display device 200 through the remote controller. After receiving the switching instruction, the display device 200 exchanges the hierarchy of the fitness mirror application and the screen casting application, switches the screen casting application to the lower-layer application, and switches the fitness mirror application to the upper-layer application.
[0098] In addition, in order to facilitate the first application and the second application to perform the operation corresponding to the switching instruction, in some embodiments, the display device 200 also monitors the focus event of the first application, and encapsulates the event for switching the screen position into a switching instruction. Then control the first application to execute the switching instruction, and forward the switching instruction to the second application, so that the second application executes the switching instruction. That is, since the first application and the second application are in a data intercommunication relationship, the display device 200 may capture the focus event only through the lower-layer application. After capturing the focus event of switching the screen position, the lower-layer application may notify the upper-layer application to exchange the hierarchy and the display position.
[0099] Furthermore, in some embodiments, after detecting a focus event, the display device 200 also parses the focus event. Simultaneously, based on the parsing result, the focus event is encapsulated into a corresponding control command. For example, an event for rotating the screen orientation is encapsulated as a rotation command. The display device 200 can parse the application targeted by the control command, execute the control command through a first application, and / or control the first application to forward the control command to a second application, so that the application corresponding to the control command performs the corresponding operation.
[0100] For example, let's take a fitness mirror application as the first application and a screen mirroring application as the second. First, the user launches the fitness mirror application on display device 200. The fitness mirror application launches a window, named W1, sets its type to X, captures focus events, and binds to a client service for communication. At this point, the fitness mirror application is a lower-level application of display device 200. Then, after display device 200 receives a screen mirroring message, the screen mirroring application also launches a window, named W2, sets its type to Y, does not capture focus events, and Y > X. At this point, as... Figure 11 As shown, the screen mirroring application is an upper-layer application of the display device 200. The display device 200 captures focus events through the lower-layer W1. When W1 captures a focus event, it notifies W2 to switch between portrait and landscape modes or swap positions, and simultaneously adjusts the UI.
[0101] S300: Reads the screen size of the first application and plans a floating window on top of the second application based on the screen size.
[0102] After the display device 200 switches the level of the first application and the second application in response to the switching command, since the user interfaces of the first application and the second application may have different screen ratios, it is also necessary to re-plan the floating window according to the screen size of the first application so as to display the first application through a floating window of appropriate size.
[0103] To facilitate the planning of the floating window size, in some embodiments, the display device 200 also obtains the window size of the first application. If the window width of the first application is greater than or equal to the window height, the window height is obtained, and a floating window is planned on top of the second application according to the window height and screen size; if the window width of the first application is less than the window height, the window width is obtained, and a floating window is planned on top of the second application according to the window width and screen size, so as to display the user interface of the first application in the floating window at an appropriate size.
[0104] For example: Obtain the media asset data of the first application, i.e., the video stream in the first application. Denote the width of the video stream as VideoWidth, and the height of the video stream as VideoHeight. When planning a floating window on the upper layer of the second application, obtain the width and height of the current parent layout, denote the width of the parent layout as ViewWidth, and the height of the parent layout as ViewHeight. Calculate the width and height of the floating window according to the following formula:
[0105] If ViewWidth≥ViewHeight and VideoWidth≥VideoHeight, determine the height of the parent layout as a fixed height, denoted as Y. Then the width of the parent layout is Y*VideoHeight / VideoWidth, the width of the floating window is Y*VideoHeight / VideoWidth, and the height of the floating window is Y*VideoHeight*VideoHeight / Video Width / VideoWidth; If ViewWidth≥ViewHeight and VideoWidth<VideoHeight, determine the height of the parent layout as a fixed height, denoted as Y. Then the height of the parent layout is Y*VideoWidth / VideoHeight, and the width and height of the floating window are the same as those of the parent layout.
[0106] If ViewWidth<ViewHeight and VideoWidth≥VideoHeight, determine the width of the parent layout as a fixed width, denoted as X. Then the height of the parent layout is X*VideoHeight / VideoWidth, and the width and height of the floating window are the same as those of the parent layout; If ViewWidth<ViewHeight and VideoWidth<VideoHeight, determine the width of the parent layout as a fixed width, denoted as X. Then the height of the parent layout is X*VideoWidth / VideoHeight, the width of the SurfaceView is X*VideoWidth*VideoWidth / VideoHeight / VideoHeight, and the height of the floating window is X*Vid eoWidth / VideoHeight. After planning the floating window of the first application, the display device 200 sets the floating window according to the planned size, so as to display the user interface of the first application through the floating window.
[0107] Before switching layers, display device 200 detects focus events through the lower-level first application. Similarly, to facilitate interaction within display device 200, after switching layers between the first and second applications, the first application becomes the upper-level application. At this time, display device 200 still monitors the focus events of the first application and encapsulates these focus events into corresponding control commands. It then controls the first application to execute the control commands or forwards the control commands to the second application to execute them. In other words, display device 200 always captures focus events through the first application.
[0108] Therefore, in some embodiments, the display device 200 also detects the hierarchical position of the first application and marks the window of the first application as the target window according to the hierarchical position. It then monitors the focus events of the target window and encapsulates the focus events into corresponding control commands. In this way, regardless of how the hierarchical relationship between the first and second applications changes, the display device 200 can always capture focus events through the first application and then forward them through the first application, thereby simplifying the interaction process within the display device 200.
[0109] S400: Controls the display to show the user interface of the first application via a floating window.
[0110] After the display device 200 plans the size of the floating window, it displays the user interface of the first application floating on top of the second application.
[0111] In some embodiments, after the display device 200 plans the size of the floating window, it displays the floating window in a preset display area, such as the upper right corner or upper left corner of the second application, so as to reasonably display the user interfaces of the first application and the second application simultaneously on the display 260.
[0112] For example, taking screen mirroring as an example, the first application is a fitness mirror app, and the second application is a screen mirroring app. Figure 11 As shown, monitor 260 displays the fitness mirror application in full screen, while the screen mirroring application is displayed in a floating window. If the user wants to zoom in on the screen mirroring application, they send a switching command to display device 200 via remote control. Upon receiving the switching command, display device 200 switches the hierarchy between the fitness mirror application and the screen mirroring application and re-plans the floating window of the fitness mirror application. After the floating window of the fitness mirror application is planned, display device 200 controls monitor 260 to display the screen mirroring application as shown below. Figure 12 The user interface shown.
[0113] Furthermore, as can be seen from the above embodiments, the display device 200 can capture focus events through the underlying application, thereby allowing the user to input rotation commands for the screen orientation to the display device 200, thus changing the screen orientation of the image in the floating window. However, in some scenarios, the application's user interface may also automatically switch between screen orientation based on the device's placement.
[0114] Therefore, in some embodiments, the display device 200 also acquires media asset data of a target application, which is either a first application or a second application. The screen size in the media asset data is then parsed to obtain the screen state of the target application, including landscape and portrait modes. If the screen state of the target application changes, a screen rotation command is generated to cause the target application to execute the rotation command. That is, the display device 200 can monitor whether the landscape or portrait mode of the application screen changes based on the application's media asset data, and synchronously adjust the landscape or portrait mode of the screen displayed in each display window of the display 260 when the landscape or portrait mode of the application screen changes.
[0115] Obviously, when rotating the screen between portrait and landscape orientations, the display device 200 needs to resize the window. Therefore, in some embodiments, if the screen state of the target application changes, the display device 200 obtains the window size of the target application. If the window width of the target application is greater than or equal to the window height, the window height is obtained, and a floating window is planned on top of the second application according to the window height and the screen size; if the window width of the target application is less than the window height, the window width is obtained, and a floating window is planned on top of the second application according to the window width and the screen size.
[0116] For example, taking the second application as a screen mirroring application, the display device 200 acquires the media asset data of the second application, i.e., the video stream of the second application. The width of the video stream is denoted as VideoWidth, and the height as VideoHeight. The placement of the screen mirroring device changes, so its displayed screen state also changes. When a change in the screen mirroring application's screen state is detected, the width and height of the current parent layout are acquired, with the width denoted as ViewWidth and the height as ViewHeight. The window's width and height are calculated using the following formula:
[0117] If ViewWidth ≥ ViewHeight and VideoWidth ≥ VideoHeight, the height of the parent layout is determined as a fixed height denoted as Y, then the width of the parent layout is Y*VideoHeight / VideoWidth, the width of the floating window is Y*VideoHeight / VideoWidth, and the height of the floating window is Y*VideoHeight*VideoHeight / VideoWidth / VideoWidth. If ViewWidth ≥ ViewHeight and VideoWidth < VideoHeight, the height of the parent layout is determined as a fixed height denoted as Y, then the height of the parent layout is Y*VideoWidth / VideoHeight, and the width and height of the window are the same as those of the parent layout.
[0118] If ViewWidth < ViewHeight and VideoWidth ≥ VideoHeight, the width of the parent layout is determined as a fixed width denoted as X, then the height of the parent layout is X*VideoHeight / VideoWidth, and the width and height of the floating window are the same as those of the parent layout. If ViewWidth < ViewHeight and VideoWidth < VideoHeight, the width of the parent layout is determined as a fixed width denoted as X, then the height of the parent layout is X*VideoWidth / VideoHeight, the width of the SurfaceView is X*VideoWidth*VideoWidth / VideoHeight / VideoHeight, and the height of the window is X*VideoWidth / VideoHeight. After re-planning the floating window of the second application, the display device 200 sets the floating window according to the planned size, so as to display the user interface of the second application through the floating window.
[0119] It should be noted that the calculation process involved in the above embodiments is only illustrative, and does not represent the actual calculation process. There may also be other calculation methods or calculation steps, etc., which are not limited in this application, and the above calculation methods do not limit this application.
[0120] Furthermore, during the application screen mirroring process, the user can close any application at any time to close its corresponding display window. Specifically, in some embodiments, the display device 200 receives a close command and sends it to the first application. The first application executes the close command, and / or controls the first application to forward the close command to the second application, thereby controlling the second application to execute the close command. Since the first application becomes the parent application after the display device 200 switches layers, the display device 200 captures the focus event through the parent application and encapsulates the event for closing the application within the focus event into a close command, which is then sent to the display device 200. If the close command is a close event of the first application, it is executed through the first application; if the close command is a close command of the second application, it is forwarded through the first application to the second application, causing the second application to execute the close command.
[0121] Obviously, once an application is closed, its user interface will no longer be displayed on the monitor 260. Therefore, if the user closes the second application, the monitor 260 will only display the user interface of the first application. Since the first application is in a floating display state, closing only the second application will cause the monitor 260 to still display the first application through a floating window, resulting in a significant waste of display area on the monitor 260 and a degraded user experience.
[0122] Therefore, in some embodiments, the display device 200 also detects the closed state of the first application and the second application. If the second application is closed and the first application is not closed, the display 260 is controlled to display the user interface of the first application in full screen.
[0123] For example, taking screen mirroring as an example, the first application is a fitness mirror application, and the second application is a screen mirroring application. Display device 200 displays, for example... Figure 12 When the user closes the screen mirroring application on display device 200, as shown in the user interface, display device 200 destroys the screen mirroring application's display window. Simultaneously, as... Figure 13 As shown, the display device 200 also displays the user interface of the fitness mirror application in full screen.
[0124] It is understandable that the shutdown command is not limited to the user input method; other reasons, such as network disconnection or conflict-related disconnection, may cause the application to be closed. Therefore, in some embodiments, the display device 200 automatically generates a shutdown command after detecting an abnormal connection between the application and the display device 200, so that the display device 200 closes the application.
[0125] For situations where the application is not actively closed by the user, in order to help the user understand the reason for the application's closure, in some embodiments, the closure command also carries the reason for the application's closure. When encapsulating the closure command, the display device 200 also encapsulates the closure reason into the closure command. In this way, when the display device 200 executes the closure command, it can also parse the closure reason and control the display 260 to display the corresponding prompt information based on the closure reason.
[0126] For example, taking screen mirroring as an example, the first application is a fitness mirror application, and the second application is a screen mirroring application. The display device 200 displays as follows: Figure 11 When the user interface shown is accessed, a shutdown command is received from the screen mirroring application due to network issues. The display device 200 then parses the shutdown reason from the shutdown command and notifies other applications on the display device 200 of the shutdown reason and shutdown command through the underlying screen mirroring application. This allows the display device 200 to display the following on the monitor 260 based on the shutdown reason: Figure 14 The message shown is as follows.
[0127] Based on the above-mentioned screen switching method for application-side display, some embodiments of this application also provide a display device 200, such as... Figure 15 As shown, it includes: a display 260 and a controller 250. The display 260 is configured to display the user interface of a first application, and to display the user interface of a second application on top of the first application; as shown... Figure 6 As shown, the controller 250 is configured to perform the following program steps:
[0128] S100: Receives a switching command for switching the application display position;
[0129] S200: In response to the switching command, switch the hierarchy of the first application and the second application to control the display to display the user interface of the second application in full screen; the first application and the second application are applications that have established data communication relationship with each other and both support floating display;
[0130] S300: Read the screen size of the first application, and plan a floating window on top of the second application according to the screen size;
[0131] S400: Control the display to show the user interface of the first application through the floating window.
[0132] As can be seen from the above technical solutions, the screen switching method for displaying devices and applications on the same screen provided in some embodiments of this application can switch the hierarchy of the first application and the second application in response to a switching command for switching the display position of the application, so as to control the display 260 to display the user interface of the second application in full screen. The first application and the second application are mutually interconnected and both support floating display. The method reads the screen size of the first application and plans a floating window on top of the second application based on the screen size. Then, it controls the display 260 to display the user interface of the first application through the floating window, so as to quickly respond to the user's input switching command when the display device is displaying applications on the same screen, thereby improving the user experience.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0134] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that, include: The display is configured to display the user interface of a first application and, on top of the first application, display the user interface of a second application. The controller is configured as follows: Monitor the focus events of the first application and encapsulate the focus events used to switch screen positions into switching instructions; Control the first application to execute the switching instruction, and forward the switching instruction to the second application, so that the second application executes the switching instruction; In response to the switching command, the hierarchy of the first application and the second application is switched to control the display to display the user interface of the second application in full screen; The first application and the second application are mutually connected and both support floating display. Read the screen size of the first application, and plan a floating window on top of the second application based on the screen size; Control the display to show the user interface of the first application through the floating window.
2. The display device according to claim 1, characterized in that, The controller is configured to: Iterate through the applications in the display device; Filter out applications that support the floating function to be used as the first application or the second application; Bind the client services in the first application and the second application to establish a data communication relationship between the first application and the second application.
3. The display device according to claim 1, characterized in that, The controller is configured to: Receive the launch command used to display the application screen; In response to the launch command, the preparation status of the first application is obtained, and the second application is launched; the preparation status is determined based on the status message of the first application, the status message includes a preparation indicator, a preparation completed indicator, an interface exit indicator or an error indicator, the preparation completed indicator represents the state of preparation completed, and the preparation indicator, the interface exit indicator and the error indicator represent the state of preparation not being completed. If the preparation state is a completed state, control the display to float the second application on top of the first application; If the preparation state is not yet complete, control the display to show the second application in full screen.
4. The display device according to claim 1, characterized in that, After the controller performs the switching between the first application and the second application at different levels, it is configured as follows: Detect the hierarchical position of the first application; The window of the first application is marked as the target window according to the hierarchical position; Monitor the focus events of the target window and encapsulate the focus events into corresponding control commands.
5. The display device according to claim 4, characterized in that, After encapsulating the focus event into a corresponding control command, the controller is further configured as follows: Analyze the application targeted by the control commands; Depending on the application to which the control instruction is targeted, the control instruction is executed by the first application, and / or the first application is controlled to forward the control instruction to the second application, so that the application corresponding to the control instruction performs the corresponding operation.
6. The display device according to claim 1, characterized in that, The controller is configured to: Obtain media asset data of a target application, wherein the target application is a first application or a second application; The screen size in the media asset data is analyzed to obtain the screen state of the target application screen, which includes landscape mode and portrait mode. If the screen state of the target application changes, a rotation command for the landscape / portrait screen is generated so that the target application executes the rotation command.
7. The display device according to claim 6, characterized in that, When the target application displays its user interface via a floating window, if the screen state of the target application changes, the controller is configured to: Obtain the window size of the target application; If the window width of the target application is greater than or equal to the window height, then obtain the window height and plan the floating window corresponding to the target application according to the window height and the screen size; If the window width of the target application is less than the window height, then the window width is obtained, and a floating window corresponding to the target application is planned according to the window width and the screen size.
8. The display device according to claim 1, characterized in that, The controller is configured to: Receive shutdown command; Send the shutdown command to the first application; The first application executes the shutdown command, and / or controls the first application to forward the shutdown command to the second application, so as to control the second application to execute the shutdown command.
9. The display device according to claim 8, characterized in that, The controller is configured to: Detect the closed status of the first application and the second application; If the second application is closed and the first application is not closed, control the display to display the user interface of the first application in full screen.
10. A method for switching screens in a simultaneous display application, characterized in that, include: Monitor the focus events of the first application and encapsulate the focus events used to switch screen positions into switching instructions; The system controls the first application to execute the switching instruction and forwards the switching instruction to the second application, causing the second application to execute the switching instruction; the first application and the second application are applications that have established a data communication relationship with each other and both support floating display. In response to the switching command, the hierarchy of the first application and the second application is switched to control the display to show the user interface of the second application in full screen; Read the screen size of the first application, and plan a floating window on top of the second application based on the screen size; Control the display to show the user interface of the first application through the floating window.
Citation Information
Patent Citations
Method and appress for controlling multitasking operations of a mobile terminal having a touchscreen
CN101676853A
Window display processing method in split-screen mode and electronic device
CN105335044A
User interface rendering method and device of application program, medium and electronic equipment
CN110347464A
Method and device for displaying application interface, equipment and storage medium
CN112346639A
