Display device and multi-application on-screen display method
By planning floating windows on the upper layer of the display device and establishing data communication relationships, the problem of display devices being unable to display multiple application interfaces simultaneously is solved, realizing dynamic layout and interactive operation of multiple applications displayed on the same screen, and improving the interactivity and scalability of the device.
Patent Information
- Application Number
- CN202211612586.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-12-14
AI Technical Summary
Existing display devices cannot display the application interfaces of multiple applications simultaneously, and the native interface implementation has poor interactivity and scalability when the application interface is floating, resulting in high maintenance costs and significant limitations in control of non-touch devices.
By planning a floating window on top of the basic application, a data communication relationship between the floating application and the basic application is established, the display layout of multiple application interfaces is dynamically adjusted, and interactive operations are achieved through cross-process message passing.
It enables the simultaneous display of multiple application interfaces on the same display device, dynamically adjusts the display layout, improves interactivity and scalability, reduces maintenance costs, and supports comprehensive control of non-touch devices.
Smart Images

Figure CN117608426B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and in particular to a display device and a method for displaying multiple applications on the same screen. Background Technology
[0002] Display devices refer to terminal 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 technologies, 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 install various applications on smart terminals according to user needs, such as traditional video applications, short video and other social applications, as well as reading applications such as comics and books. Different types of applications can support different display methods; for example, some applications can be displayed in landscape and portrait modes. However, display devices do not have the logic to display multiple applications for video playback simultaneously; the same display device usually cannot display the application interfaces of multiple applications at the same time. While it is possible to achieve application interface floating through the device's native interface, it cannot communicate data with the applications below, requiring modifications to the underlying code based on the system version, which has significant limitations. Summary of the Invention
[0004] This application provides a display device and a method for displaying multiple applications on the same screen to solve the problem that the same display device cannot display the application interfaces of multiple applications at the same time.
[0005] In a first aspect, this application provides a display device, including a display and a controller. The display is configured to display a user interface; the controller is configured to execute the following program steps:
[0006] In response to a control command for simultaneous display of multiple applications, the system receives media data in the control command indicating the floating application to be displayed.
[0007] Read the display screen from the media asset data;
[0008] Get the current number of running floating applications, including the number of floating applications that have been displayed and the number of floating applications that are yet to be displayed;
[0009] A floating window is planned on top of the basic application. The basic application is an application that establishes data communication with the floating application and supports floating display. The display area of the floating window is determined according to the number of running applications and the screen orientation. The window size of the floating window is calculated based on the screen orientation and the default layout size.
[0010] The media asset data is displayed in the floating window corresponding to the floating application to be displayed.
[0011] Secondly, this application also provides a method for displaying multiple applications on the same screen, including:
[0012] In response to a control command for simultaneous display of multiple applications, the system receives media data in the control command indicating the floating application to be displayed.
[0013] Read the display screen from the media asset data;
[0014] Get the current number of running floating applications, including the number of floating applications that have been displayed and the number of floating applications that are yet to be displayed;
[0015] A floating window is planned on top of the basic application. The basic application is an application that establishes data communication with the floating application and supports floating display. The display area of the floating window is determined according to the number of running applications and the screen orientation. The window size of the floating window is calculated based on the screen orientation and the default layout size.
[0016] The media asset data is displayed in the floating window corresponding to the floating application to be displayed.
[0017] As can be seen from the above technical solutions, the display device and multi-application simultaneous display method provided in this application can respond to control commands for multi-application simultaneous display, receive media asset data of the floating application to be displayed in the control commands, read the display orientation from the media asset data, obtain the number of currently running floating applications, and display the media asset data in the floating window corresponding to the floating application to be displayed by planning a floating window on top of the basic application. The basic application is an application that establishes a data communication relationship with the floating application and supports floating display. The display area of the floating window is determined based on the number of running applications and the display orientation, and the window size of the floating window is calculated based on the display orientation and the default layout size. This method allows the display device to simultaneously display the application interfaces of multiple applications and dynamically adjust the display layout of multiple application interfaces. Simultaneously, multiple applications can perform interactive operations through cross-process message passing. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1This is a schematic diagram illustrating the operational scenario between the display device and the control device in an embodiment of this application;
[0020] Figure 2 This is a hardware configuration block diagram of the display device in the embodiments of this application;
[0021] Figure 3 This is a hardware configuration block diagram of the control device in the embodiments of this application;
[0022] Figure 4 This is a schematic diagram of the software configuration of the display device in the embodiments of this application;
[0023] Figure 5 A schematic diagram of the icon control interface of a display device application provided in some embodiments of this application;
[0024] Figure 6 This is a flowchart illustrating the method for displaying multiple applications on the same screen in this application embodiment;
[0025] Figure 7 This is a schematic diagram of the interface for multiple applications to be displayed on the same screen in an embodiment of this application;
[0026] Figure 8 This is a schematic diagram illustrating the process of establishing data communication relationships in an embodiment of this application;
[0027] Figure 9 This is a flowchart illustrating the process of detecting the interface state of a basic application in an embodiment of this application.
[0028] Figure 10 This is a schematic diagram showing three floating applications in an embodiment of this application;
[0029] Figure 11 This is a schematic diagram showing two floating applications in an embodiment of this application;
[0030] Figure 12 This is a schematic diagram showing four floating applications in an embodiment of this application;
[0031] Figure 13 This is a schematic diagram of the process for calculating the window size in an embodiment 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 smart 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 smart 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 the 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 smart 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 controller 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 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. Through the API, applications can access system resources and obtain system services during execution.
[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] The display device 200 described above can display specific images, such as playback screens, control interfaces, and other application interfaces. Depending on the application's developer or operator, the applications installed on the display device 200 can include various forms, such as system applications and third-party applications. Furthermore, applications installed on the display device can be categorized according to their functionality, such as video applications, reading applications, and game applications.
[0066] like Figure 5 As 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] In some embodiments, the application center may provide a storage for various applications. An application may be a game 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.
[0071] In some embodiments, the display device 200 can also establish a screen mirroring connection with other terminal devices, enabling the display device 200 to play content from the terminal devices. For example, through certain applications with screen mirroring capabilities, videos of interest can be projected onto the display device 200 for large-screen playback.
[0072] The display device 200 can obtain target media assets from the corresponding media asset library through the server 400 via any of the methods described in the above embodiments, and play the target media assets online. That is, in some embodiments, during the playback of a media asset item, the server 400 can obtain media asset data from the corresponding media asset library in real time, and continuously form media asset images through decoding, rendering, and other processing.
[0073] However, the display device 200 lacks the logic for simultaneously displaying multiple applications for video playback. In other words, the same display device 200 typically cannot display the application interfaces of multiple applications simultaneously, failing to meet the user's need for simultaneous playback of multiple applications on the same screen. In some embodiments, the display device 200 can implement application interface floating via a native interface, thereby achieving the goal of displaying multiple applications on the same screen. That is, when a user wants to display multiple applications on the same screen, a movable window can be floating on the surface of other applications to open different applications. For example, if a user wants to watch two applications simultaneously, the lower-level application can play in full screen, and the upper-level application can play in a window floating above the lower-level application.
[0074] For example, consider a scenario where a display device 200 assists in fitness. To achieve the goal of learning and practicing simultaneously, the display device 200 needs to simultaneously display a preview of its own movements—that is, the camera captures the user's own fitness movements, and the display shows a fitness video. The display device 200 can integrate a screen mirroring software development kit (SDK) into its fitness application. This fitness application, which can be understood as an application that supports the user displaying their fitness movements, can be combined with the camera of the display device 200. When the user stands in front of the display device 200, the camera captures the user's movements, and the fitness application displays the user's workout footage. After receiving a screen mirroring command, the lower-level fitness application displays the user's fitness preview, while the upper-level application can float above the lower-level application to display the fitness video.
[0075] The above implementation scheme achieves simultaneous display of multiple applications through the device's native interface. However, since these applications are integrated, issues such as poor interactivity and scalability may arise during maintenance. The solution of using native interfaces to implement floating application interfaces relies on these interfaces, requiring modifications to the underlying code when application versions change, such as system upgrades, resulting in high application maintenance costs. Furthermore, for non-touch display devices, when different application interfaces are displayed for upper and lower layer applications, the application interfaces cannot be controlled via remote control or other buttons, leading to significant limitations.
[0076] To address the issue that a single display device cannot simultaneously display the application interfaces of multiple applications, some embodiments of this application also provide a method for displaying multiple applications on the same screen, applied to a display device 200, to achieve simultaneous display of multiple applications and dynamically adjust the display layout of multiple application interfaces. The display device 200, capable of applying the multi-application simultaneous display method, includes a display 260 and a controller 250. The display 260 is configured to display a user interface. The controller 250 is configured to execute the aforementioned multi-application simultaneous display method, such as... Figure 6 As shown, it specifically includes the following:
[0077] Si00, in response to a control command for simultaneous display of multiple applications, receives media data in the control command indicating the floating application to be displayed.
[0078] Display device 200 can present an application interface for displaying applications installed on display device 200. During operation of display device 200, users can input control commands to select any application to launch in the application interface, causing the current display screen to jump to the launched application interface. Depending on the display device, users can input control commands through control device 100 or touch screen.
[0079] Since the display device 200 hosts multiple applications and can play media data provided by different applications, to meet the user's need for simultaneous playback of multiple applications, it can receive user-input control commands for simultaneous display of multiple applications and activate the simultaneous display function. This involves displaying a floating application on top of the base application. The base application is the application that supports floating, which can be understood as the application displayed at the bottom layer of the display device 200. The floating application can be understood as the application above the base application, and the floating application to be displayed is the application not yet displayed by the display device 200. For example... Figure 7 As shown, when a user launches application A, the display device 200 displays the application interface of application A in full screen. At the same time, when the user launches application B, the display device 200 displays the application interface of application B floating on top of the application interface of application A. In the above implementation scheme, application A is the basic application, and application B is the floating application.
[0080] Display device 200 can overlay the application interfaces of multiple applications on the same screen. To enable interaction between the base application and the floating application, a data communication relationship needs to be established between them. This allows multiple applications to perform cross-process message passing and execute related interactive operations, such as UI state switching. Therefore, upon receiving the user's control command for displaying multiple applications on the same screen, a data communication relationship is established between the floating application to be displayed and the base application. For example... Figure 8As shown, controller 250 is also configured to perform the following steps:
[0081] Iterate through the application list of the display device. The application list consists of all applications deployed on the display device 200.
[0082] By traversing the application list of the display device 200, applications that support the floating function are selected from the application list to be displayed as the floating application and the base application. In some embodiments, metadata information in the database of the display device 200 can be retrieved, and all applications of the current device can be traversed using the metadata information to select applications that support the floating function.
[0083] It is understandable that there can be one or more floating applications to be displayed. When there is only one floating application to be displayed, it means that two applications can be displayed simultaneously in the same window of the display device 200. When there are multiple floating applications to be displayed, it means that multiple applications can be displayed simultaneously in the same window of the display device 200.
[0084] After filtering out the floating applications to be displayed and the basic applications, the client services in the floating applications to be displayed and the basic applications are bound together to establish a data communication relationship between the floating applications to be displayed and the basic applications.
[0085] In some embodiments, when establishing data communication between the floating application and the base application, the base application can also bind to client services of other applications after startup, thus establishing data communication between the base application and other applications. After the data communication relationship is successfully established, the base application can perform cross-process message passing with other applications.
[0086] For example, the current interface state of the base application can be notified to other applications. The interface state indicates whether the base application currently supports floating. After receiving the notification message from the first application, other applications can execute subsequent processes based on the notification message. For example, it is also possible to monitor the connection status (started) and disconnection status (not started) of other applications, record the number of currently floating applications, and notify other applications of the number of currently floating applications and the display screen of the currently floating applications.
[0087] In some embodiments, the interface state may include a state that supports floating and a state that does not support floating. After receiving a control command from the user to display multiple applications on the same screen, it is also necessary to detect the interface state of the base application, that is, to detect whether the base application supports floating display, such as... Figure 9As shown, if the interface of the base application supports floating, and it is determined that the base application currently supports floating display, the controller 250 can create a floating window of the application to be displayed on top of the base application, and display the media asset data of the application to be displayed in the floating window. If the interface of the base application does not support floating, the controller 250 can control the display 260 to display the media asset data of the application to be displayed in full screen.
[0088] In some embodiments, the interface state of the basic application can be represented by different state identifiers. For example, the state identifiers of the basic application and the content they represent may include: "IDLE" indicates preparation, currently not supported by hover; "PREPARED" indicates preparation complete, currently supported by hover; "FOCUS" indicates preparation complete, currently supported by hover; "FINISH" indicates interface exit, currently not supported by hover; "ERROR" indicates an error, currently not supported by hover.
[0089] It is understandable that the status indicators for the interface may differ for different applications. For example, for background service applications, such as screen mirroring applications that rely on wireless network communication technology, the "PREPARED" status indicator can be used to indicate that floating is supported. For non-background service applications, such as offline screen mirroring applications that rely on the startup screen, which can only be used on specific pages, the "FOCUS" status indicator can be used to indicate that floating is supported. It should be noted that the above status indicators are for illustrative purposes only and do not constitute a limitation on the content of the status indicators.
[0090] In some embodiments, before the floating application is displayed on top of the base application, the display device 200 may display an operation prompt interface above the base application to prompt and guide the user on how to perform multi-application simultaneous display. Correspondingly, after the floating application is displayed on top of the base application, a floating receipt notification may be sent to the base application to indicate that the floating operation has been initiated. The floating receipt can be understood as confirmation that the floating application has successfully achieved floating display. Upon receiving the floating receipt, the base application can exit the operation prompt interface based on the receipt.
[0091] Display device 200 enables simultaneous display of multiple applications on a single screen by floating the application interfaces of multiple applications on top of a basic interface. Different applications can present different interface layouts and display different content on display device 200. For example, when display device 200 runs applications such as short video apps, the application interfaces of these apps are in a vertical layout, meaning the screen orientation of the short video app is portrait. Conversely, when display device 200 runs applications such as games, the application interfaces of these apps are in a horizontal layout, meaning the screen orientation of the games app is portrait. For example, display device 200 can establish a screen mirroring connection with a terminal device to display media data projected by the terminal device. Depending on the media data projected by the terminal device, the interface layout presented on display device 200 will also differ. To fully utilize the display area, display device 200 can dynamically adjust the display layout of multiple application interfaces based on the screen orientation and number of applications.
[0092] S200, read the media data from the display screen.
[0093] In order to plan the display layout of multiple application interfaces, in response to the control command of multi-application simultaneous display input by the user, the system receives the media data of the floating application to be displayed in the control command, and determines the display orientation based on the media data, wherein the display orientation includes landscape and portrait.
[0094] In some embodiments, in order to determine the display orientation of the application, the controller 250 is also configured to perform the following steps:
[0095] Extract the image frames from the media asset data.
[0096] Detect the height and width of the image frame.
[0097] If the width is greater than or equal to the height, the display screen is determined to be in landscape orientation.
[0098] If the width is less than the height, the display screen is determined to be in portrait orientation.
[0099] For example, taking screen mirroring as an example, the display device 200 establishes a screen mirroring connection with the terminal device. The display device 200 receives media data sent by the terminal device, extracts screen frame images from the media data, detects the size of the screen frame images, and identifies the display orientation based on the size of the screen frame images. When the width of the screen frame image is greater than or equal to the height of the screen frame image (i.e., the aspect ratio is greater than or equal to 1), the display orientation is determined to be landscape; when the width of the screen frame image is less than the height of the screen frame image (i.e., the aspect ratio is less than 1), the display orientation is determined to be portrait. Based on the identification of the display orientation based on the media data, a floating window can be created on top of the basic application according to the display orientation, ensuring that the floating window maintains the same aspect ratio and display orientation as the corresponding floating application.
[0100] It should be noted that the aforementioned media asset data can have multiple data sources in different application environments. For example, during the screen mirroring process, the display device 200 can directly obtain media asset data from the terminal device according to the screen mirroring protocol; that is, the media asset data is generated by the terminal device converting its own display content into a video stream and sending it to the display device 200. The display device 200 can also obtain media asset data from a network media asset playback link shared by the terminal device according to the screen mirroring protocol; that is, the media asset data is a video stream obtained by the display device 200 from a network server.
[0101] S300: Get the number of currently running floating applications.
[0102] The running count includes the number of displayed floating applications and the number of floating applications to be displayed. To determine the display screen of the floating applications to be displayed, it is necessary to obtain the current running count of the floating applications. The display device 200 can periodically detect the current running count of the floating applications during operation. The display device 200 can also perform the detection of the current running count of the floating applications when it determines that the current floating window layout needs to be changed. For example, the display device 200 can monitor the running status of each application in real time. When it detects that any floating application has been newly launched or exited, the display device 200 can perform the step of detecting the current running count of the floating applications.
[0103] In some embodiments, obtaining the number of currently running floating applications requires determining whether the number of currently displayed floating applications has reached the maximum number of floating applications allowed by the display device 200. Therefore, the controller 250 is also configured to perform the following steps:
[0104] A floating application threshold is obtained, which is the maximum number of floating applications allowed on the display device 200. For different types of display devices 200, the screen size information of their displays 260 is different, therefore the number of floating applications that the display 260 can display also varies. For example, for a smart TV with a standard aspect ratio, to ensure display quality, the maximum number of floating applications allowed is 4, meaning it can support 5 applications displayed simultaneously.
[0105] If the number of displayed floating applications is equal to the floating application threshold, it is determined that the number of currently displayed floating applications has reached the maximum number of floating applications allowed by the display device 200. The display 260 is then controlled to display a prompt message to the user indicating that floating display is currently not allowed.
[0106] If the number of displayed floating applications is less than the floating application threshold, it is determined that the number of currently displayed floating applications has not reached the maximum number of floating applications allowed by the display device 200. A floating window can be planned on the upper layer of the basic application according to the display direction of the floating application to be displayed and the number of currently running floating applications.
[0107] S400 plans floating windows on top of basic applications.
[0108] After obtaining the number of currently running floating applications and the display orientation of the floating applications to be displayed, floating windows can be further planned on top of the base applications. The base applications are those that establish data communication relationships with the floating applications and support floating display.
[0109] Display device 200, after obtaining the number of currently running floating applications and the display screen orientation, can plan the layout based on the number of running applications and the display screen orientation by adding floating windows on top of the basic applications. For example, Figure 10 As shown, when the number of currently running floating applications on the display device 200 is 3, 3 floating windows can be planned on top of the basic application to display the application interfaces of the 3 floating applications respectively. Each floating window can have a fixed shape and proportion according to its display screen orientation. In order to improve the aesthetics of the display interface, the distance between each floating window and the edge of the window on the display screen 260 can be fixed, and the vertical spacing between the floating windows can also be fixed.
[0110] In some embodiments, the display device 200 may plan a floating window according to the display screen. For example, such as Figure 11 As shown, when the number of currently running floating applications on display device 200 is 2, if the floating application's screen orientation is landscape, the floating window can float on the upper right corner above the base application. If the floating application's screen orientation is portrait, the floating window can float on the left side above the base application.
[0111] In some embodiments, if the display device 200 displays a large number of floating windows, the display area of the floating windows can be set according to the startup order of the floating applications. For example, the floating windows can be set in an order from left to right and from top to bottom. Figure 10 As shown, if display device 200 currently displays four applications simultaneously: application A, application B, application C, and application D, where application A is the base application, and applications B, C, and D are floating applications on top of the base application, and application E is launched, then... Figure 12 As shown, the floating window of application E is displayed below application D.
[0112] In some embodiments, the display area of the floating window is determined based on the number of running programs and the display screen orientation. The window size of the floating window is calculated based on the display screen orientation and the default layout size. Figure 13 As shown, controller 250 is also configured to perform the following steps:
[0113] Based on the number of operations and the orientation of the display screen, multiple display areas are planned on top of the basic application.
[0114] Obtain the default layout size corresponding to the display area.
[0115] The window size is calculated based on the display screen size and the default layout size.
[0116] Create a floating window according to the stated window size.
[0117] In this embodiment, the display device 200 can plan the display area according to the number of floating applications running and the display screen orientation. By obtaining the default layout size corresponding to the display area, the window size of the floating window is adjusted according to the display screen orientation and the default layout size. The floating window is created in the planned display area so that the floating window has the same aspect ratio and display screen orientation as the corresponding floating application.
[0118] In some embodiments, the window size includes the window height and the window width, the default layout size includes the default height and the default width, and the controller 250 is further configured to perform the following steps:
[0119] If the display screen is in landscape orientation, determine the window width as the default width, obtain the aspect ratio of the display screen, and calculate the window height according to the default width and the aspect ratio.
[0120] If the display screen is in portrait orientation, determine the window height as the default height, obtain the aspect ratio of the display screen orientation, and calculate the window width according to the default height and the aspect ratio.
[0121] For example, if the display is landscape orientation, i.e., the current video stream is landscape, the display area for the landscape orientation is planned, the default layout size corresponding to the display area for the landscape orientation is obtained, the default width is used as a fixed width, the video stream is scaled proportionally according to the fixed width, and the size of the floating window is dynamically set using setLayoutParams; if the display is portrait orientation, i.e., the current video stream is portrait, the display area for the portrait orientation is planned, the default layout size corresponding to the display area for the portrait orientation is obtained, the default height is used as a fixed height, the video stream is scaled proportionally according to the fixed height, and the size of the floating window is dynamically set using setLayoutParams.
[0122] The window size of a floating window can be calculated as follows:
[0123] Let the width of the video stream be denoted as VideoWidth, and the height of the video stream as VideoHeight. If VideoWidth ≥ VideoHeight, then the width of the parent layout is fixed, denoted as X, and the height of the parent layout is X * VideoHeight / VideoWidth. If VideoWidth < VideoHeight, then the height of the parent layout is fixed, denoted as Y, and the width of the parent layout is Y * VideoWidth / VideoHeight. The width and height of the floating window are the width and height of the parent layout.
[0124] In some embodiments, when the display device 200 displays the projection data sent by the terminal device, the window size of the floating window also needs to be adjusted when the terminal device switches between portrait and landscape modes or when the remote control menu button is switched. The calculation method for the window size of the floating window can also be as follows:
[0125] Get the width and height of the current parent layout, which is the width and height of the current floating window, denoted as ViewWidth and ViewHeight respectively.
[0126] Get the width and height of the current video stream, denoted as VideoWidth and VideoHeight, respectively.
[0127] If ViewWidth ≥ ViewHeight, then the width and height of the video stream are determined. If VideoWidth ≥ VideoHeight, then the height of the parent layout is fixed, denoted as Y. 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 VideoWidth < VideoHeight, then the height of the parent layout is fixed, denoted as Y. The height of the parent layout is Y * VideoWidth / VideoHeight, and the width and height of the floating window are the width and height of the parent layout.
[0128] If ViewWidth < ViewHeight, then the width and height of the video stream are determined. If VideoWidth ≥ VideoHeight, then the width of the parent layout is fixed, denoted as X, and the height of the parent layout is X * VideoHeight / VideoWidth. The width and height of the floating window are the width and height of the parent layout. If VideoWidth < VideoHeight, then the width of the parent layout is fixed, denoted as X, and the height of the parent layout is X * VideoWidth / VideoHeight. The width of the floating window is X * VideoWidth * VideoWidth / VideoHeight / VideoHeight, and the height of the floating window is X * VideoWidth / VideoHeight.
[0129] S500, the media asset data is displayed in the floating window corresponding to the floating application to be displayed.
[0130] After creating a floating window, media asset data can be displayed in the floating window corresponding to the application to be displayed, enabling multiple applications to be displayed on the same screen.
[0131] In some embodiments, since multiple applications are displayed on different layers, when a user inputs a focus command, lower-layer applications may not be able to capture the focus command. The focus command can be a command issued by the user via the remote control accompanying the display device 200. To ensure that all applications can obtain the focus command, the topmost floating application is set as the focus application. That is, the topmost floating application is used to capture the focus command. Because a data communication relationship is established between the base application and the floating applications, after the topmost floating application captures the focus command, it can send the focus command to the base application, which in turn sends it to other floating applications. This allows all applications to obtain the focus command and perform related operations based on it, such as adjusting screen contrast.
[0132] Therefore, after the floating application to be displayed is displayed on top of the base application, i.e., the floating application to be displayed is the topmost floating application, it is determined to be the focus application. The focus application is used to capture focus commands in the user interface. When the focus application captures a focus command in the user interface, it is controlled to send the focus command to the base application. When the base application receives the focus command, it is controlled to send the focus command to other floating applications, so that all applications execute the focus command.
[0133] In some embodiments, the display device 200 can respond to a disconnect command to exit the application interface corresponding to the floating application indicated in the disconnect command, i.e., to cancel the floating window corresponding to the floating application. The disconnect command can be a user-input disconnect command or a user-initiated disconnect screen mirroring operation via a terminal device. The display device 200 receives the disconnect command from the target floating application. The top-level floating application captures the disconnect command and, through the data communication relationship between the floating application and the base application, can send the disconnect command to the base application. After receiving the disconnect command, the base application can send it to other applications, causing the target floating application to execute the disconnect command upon receiving it. After the target floating application exits, the number of currently running floating applications is updated, and the floating window above the base application is replanned according to the updated number of running applications. In other words, the display device 200 cancels the floating window corresponding to the target floating application and replans the floating window above the base application.
[0134] In some embodiments, the shutdown command is not limited to user input and may be caused by other reasons, such as network disconnection or conflict-related disconnection, leading to application shutdown. Therefore, after detecting an abnormal connection between the application and the display device 200, the display device 200 can automatically generate a disconnect command to shut down the application.
[0135] In cases 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 disconnection command may also carry the disconnection reason. When the display device 200 executes the disconnection command, it parses the disconnection reason from the disconnection command and controls the display 260 to display the corresponding prompt information according to the disconnection reason.
[0136] Based on the aforementioned display device 200, some embodiments of this application also provide a method for displaying multiple applications on the same screen. This includes:
[0137] S100, in response to a control command for displaying multiple applications on the same screen, receives media data in the control command indicating the floating application to be displayed.
[0138] S200, read the media data from the display screen.
[0139] S300: Get the number of currently running floating applications.
[0140] The number of running applications includes the number of floating applications that have been displayed and the number of floating applications that are yet to be displayed.
[0141] S400 plans floating windows on top of basic applications.
[0142] The basic application is an application that establishes data communication with the floating application and supports floating display; the display area of the floating window is determined according to the number of running applications and the screen orientation, and the window size of the floating window is calculated based on the screen orientation and the default layout size.
[0143] S500, the media asset data is displayed in the floating window corresponding to the floating application to be displayed.
[0144] As can be seen from the above technical solutions, the display device and multi-application simultaneous display method provided in the above embodiments can respond to the control command for multi-application simultaneous display, receive media asset data of the floating application to be displayed in the control command, read the display orientation from the media asset data, obtain the number of currently running floating applications, and display the media asset data in the floating window corresponding to the floating application to be displayed by planning a floating window on the upper layer of the basic application. The basic application is an application that establishes a data communication relationship with the floating application and supports floating display. The display area of the floating window is determined according to the number of running applications and the display orientation, and the window size of the floating window is calculated based on the display orientation and the default layout size. This method allows the display device to simultaneously display the application interfaces of multiple applications and dynamically adjust the display layout of multiple application interfaces. Simultaneously, multiple applications can interact through cross-process message passing.
[0145] 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.
[0146] 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 monitor is configured to display the user interface; The controller is configured as follows: In response to a control command for simultaneous display of multiple applications, the system receives media data in the control command indicating the floating application to be displayed. Extract the image frames from the media asset data; Detect the height and width of the image frame; The orientation of the display screen is determined based on the height and width of the image frame. Get the current number of running floating applications, including the number of floating applications that have been displayed and the number of floating applications that are yet to be displayed; Based on the number of operations and the orientation of the display screen, multiple display areas are planned on top of the basic application. The basic application is an application that establishes data communication with the floating application and supports floating display; Obtain the default layout size corresponding to the display area; Calculate the window size based on the display screen orientation and the default layout size; Create a floating window corresponding to the floating application to be displayed according to the stated window size; The media asset data is displayed in the floating window corresponding to the floating application to be displayed. The floating application to be displayed is identified as the focus application, and the focus application is used to capture focus commands in the user interface; When the focus application captures a focus command in the user interface, the focus application is controlled to send the focus command to the base application; The base application is controlled to send the focus command to other floating applications so that all applications can receive the focus command.
2. The display device according to claim 1, characterized in that, The controller determines the orientation of the display screen based on the height and width of the image frame, and is further configured as follows: If the width is greater than or equal to the height, the display screen is determined to be in landscape orientation; If the width is less than the height, the display screen is determined to be in portrait orientation.
3. The display device according to claim 1, characterized in that, The controller is further configured to: Detect the interface state of the basic application, including a state that supports floating and a state that does not support floating; If the interface state supports floating, execute the step of obtaining the number of currently running floating applications; If the interface state does not support floating, control the display to display the media asset data of the floating application to be displayed in full screen.
4. The display device according to claim 1, characterized in that, The controller is further configured to: Iterate through the application list of the display device; Select applications that support the floating function from the application list to be displayed as the floating application and the base application; Bind the floating application to be displayed to the client service in the base application to establish a data communication relationship between the floating application to be displayed and the base application.
5. The display device according to claim 1, characterized in that, The controller is configured to obtain the number of currently running floating applications, and is further configured to: Get the threshold for floating applications; If the number of displayed floating applications equals the floating application threshold, control the display to show a prompt message; If the number of displayed floating applications is less than the floating application threshold, a floating window is planned on top of the basic application.
6. The display device according to claim 1, characterized in that, The window size includes the window height and window width, the default layout size includes the default height and default width, and the controller is further configured to: If the display screen is in landscape orientation, determine the window width as the default width, and obtain the aspect ratio of the display screen orientation, and calculate the window height according to the default width and the aspect ratio; If the display screen is in portrait orientation, determine the window height as the default height, obtain the aspect ratio of the display screen orientation, and calculate the window width according to the default height and the aspect ratio.
7. The display device according to claim 1, characterized in that, The controller is further configured to: Receive disconnect command from the target floating application; Exit the target floating application according to the disconnect command, and send the disconnect command to the base application; Update the number of currently running floating applications, and plan the floating window on top of the base application according to the updated number of running applications.
8. A method for displaying multiple applications on the same screen, characterized in that, include In response to a control command for simultaneous display of multiple applications, the system receives media data in the control command indicating the floating application to be displayed. Extract the image frames from the media asset data; Detect the height and width of the image frame; The orientation of the display screen is determined based on the height and width of the image frame. Get the current number of running floating applications, including the number of floating applications that have been displayed and the number of floating applications that are yet to be displayed; Based on the number of operations and the orientation of the display screen, multiple display areas are planned on top of the basic application. The basic application is an application that establishes data communication with the floating application and supports floating display; Obtain the default layout size corresponding to the display area; Calculate the window size based on the display screen orientation and the default layout size; Create a floating window corresponding to the floating application to be displayed according to the stated window size; The media asset data is displayed in the floating window corresponding to the floating application to be displayed. The floating application to be displayed is identified as the focus application, which is used to capture focus commands in the user interface; When the focus application captures a focus command in the user interface, the focus application is controlled to send the focus command to the base application; The base application is controlled to send the focus command to other floating applications so that all applications can receive the focus command.
Citation Information
Patent Citations
Electronic equipment, display method applied by electronic equipment and medium
CN114879880A
