Display equipment and focus falling method of focus

By generating and processing focus selection events in the display device, recording and displaying focus coordinates, and generating focus switching animations, the problems of low efficiency in the display device configuration media pages and not present in the focus switching process, achieving more efficient page processing and Better user experience.

CN119421003AActive Publication Date: 2025-02-11JUHAOKAN TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410170570.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-06
Publication Date
2025-02-11
Estimated Expiration
2044-02-06

AI Technical Summary

Technical Problem

The display device is inefficient in configuring media pages, and only renders the current focus without displaying the focus switch, resulting in poor user visual experience.

Method used

The operating system generates focus selection events in the media page, and use auxiliary processes to receive and send these events to the background service application, record the coordinates of the last focus and obtain the coordinates of the current focus in real time, generate focus switching animations and display them on the monitor , realizes the animation presentation of focus switching.

Benefits of technology

It improves the processing efficiency of media pages, improves the user's visual experience, and uses animation to present the focus switching process, solving the problem of low efficiency in configuring media pages of display devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119421003A_ABST
    Figure CN119421003A_ABST
Patent Text Reader

Abstract

The invention provides a display device and a focus falling method, and the method comprises the steps: generating a second focus selection event based on an operation system when a focus of a recommendation position is switched in a media asset page; receiving a second focus selection event based on an auxiliary process of the operating system, and sending the second focus selection event to the background service application through the auxiliary process; obtaining a first focus coordinate before the focus is switched, and obtaining a second focus coordinate after the focus is switched; and generating a focus switching animation according to the first focus coordinate and the second focus coordinate, and controlling the display to display the focus switching animation in the media asset page. According to the method, the coordinate position of the last focus can be recorded, the coordinate position of the current focus, namely the target focus, is obtained in real time, the switching process of the last focus and the target focus is presented in an animation mode, and the dynamic effect of jumping focus falling is achieved in a Bezier curve mode. The method can be applied to all audio and video application programs, and the media asset page processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display devices, and in particular to a display device and a method for defocusing a focus. Background Art

[0002] A display device is an intelligent device that can present a user interface and support user interaction. Taking smart TV as an example, a smart TV is a display device based on Internet application technology, with an open operating system and chip, an open application platform, and can realize two-way human-computer interaction. Smart TV can integrate multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users. For example, users can watch various movies, TV series, variety shows, etc. through smart TV.

[0003] In some embodiments, a plurality of recommendation positions may be set in a media asset page, and media assets such as pictures, movies, or TV series may be associated in the recommendation positions. When a user clicks on each recommendation position, the corresponding media asset content can be viewed. When a recommendation position in a media asset page is selected, that is, when the focus is positioned on a recommendation position, the selected recommendation position can be rendered. For example, a white bold border may be arranged around the recommendation position, and an animation effect may be set for the image to enhance the user's visual experience.

[0004] However, in the above rendering method, if there are multiple recommendation positions in the media resource page, all recommendation positions in the media resource page need to execute the same rendering process. Moreover, there may be multiple application APPs in the display device, and different application APPs also need to execute the same rendering process. This will cause a large workload for the display device to configure the media resource page, and the processing efficiency of the media resource page is low. In addition, in the above rendering method, only the current focus is rendered, and the process of display focus switching is not displayed. Summary of the invention

[0005] Some embodiments of the present application provide a display device and a focus defocusing method to solve the problem of low efficiency in configuring media resource pages of the display device. At the same time, the focus switching process can be presented in the form of animation to enhance the user's visual experience.

[0006] In a first aspect, some embodiments of the present application provide a display device, including:

[0007] a display configured to display a user interface;

[0008] The controller is configured as:

[0009] Generate a first focus selection event of a recommended position in a media resource page based on an operating system; the media resource page is a page presented after starting an audio and video application;

[0010] Receiving the first focus selection event through an auxiliary process in the operating system, and sending the first focus selection event to a background service application through the auxiliary process; the background service application is an application that has registered the auxiliary process;

[0011] When the execution number of the first focus selection event is equal to a preset number, controlling the display to display a first reminder icon at a preset position of the recommendation position;

[0012] When switching the focus of the recommendation position in the media resource page, generating a second focus selection event based on the operating system;

[0013] receiving the second focus selection event based on an auxiliary process in the operating system, and sending the second focus selection event to the background service application through the auxiliary process;

[0014] Obtaining the first focus coordinates before switching the focus, and obtaining the second focus coordinates after switching the focus;

[0015] A focus switching animation is generated according to the first focus coordinates and the second focus coordinates, and the display is controlled to display the focus switching animation in the media resource page.

[0016] In a second aspect, some embodiments of the present application provide a method for defocusing a focus, which can be applied to the display device of the first aspect, wherein the display device includes a display and a controller, and the method for defocusing a focus includes:

[0017] Generate a first focus selection event of a recommended position in a media resource page based on an operating system; the media resource page is a page presented after starting an audio and video application;

[0018] Receiving the first focus selection event through an auxiliary process in the operating system, and sending the first focus selection event to a background service application through the auxiliary process; the background service application is an application that has registered the auxiliary process;

[0019] When the execution number of the first focus selection event is equal to a preset number, controlling the display to display a first reminder icon at a preset position of the recommendation position;

[0020] When switching the focus of the recommendation position in the media resource page, generating a second focus selection event based on the operating system;

[0021] receiving the second focus selection event based on an auxiliary process in the operating system, and sending the second focus selection event to the background service application through the auxiliary process;

[0022] Obtaining the first focus coordinates before switching the focus, and obtaining the second focus coordinates after switching the focus;

[0023] A focus switching animation is generated according to the first focus coordinates and the second focus coordinates, and the display is controlled to display the focus switching animation in the media resource page.

[0024] It can be seen from the above technical scheme that some embodiments of the present application provide a display device and a focus defocusing method, the method comprising: generating a first focus selection event for a recommended position in a media resource page based on an operating system; receiving the first focus selection event through an auxiliary process in the operating system, and sending the first focus selection event to a background service application through the auxiliary process; when the number of executions of the first focus selection event is equal to a preset number of times, controlling the display to display a first reminder icon at a preset position of the recommended position; when switching the focus of the recommended position in the media resource page, generating a second focus selection event based on the operating system; receiving the second focus selection event based on the auxiliary process in the operating system, and sending the second focus selection event to the background service application through the auxiliary process; obtaining the first focus coordinates before switching the focus, and obtaining the second focus coordinates after switching the focus; generating a focus switching animation according to the first focus coordinates and the second focus coordinates, and controlling the display to display the focus switching animation in the media resource page. The display device 200 can record the coordinate position of the last focus, and obtain the coordinate position of the current focus, i.e., the target focus, in real time, and present the switching process between the last focus and the target focus in the form of animation, and realize the jumping and defocusing effect in the form of Bezier curve, which can improve the processing efficiency of the media resource page and solve the problem of low efficiency in configuring the media resource page of the display device. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate some embodiments of the present application or technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;

[0027] Figure 2 A hardware configuration block diagram of a display device provided in some embodiments of the present application;

[0028] Figure 3 A hardware configuration block diagram of a control device provided in some embodiments of the present application;

[0029] Figure 4A schematic diagram of software configuration in a display device provided in some embodiments of the present application;

[0030] Figure 5 This is a schematic diagram showing the effect of displaying media resources through a media resource page in some embodiments of the present application;

[0031] Figure 6 A schematic flow chart of a method for performing defocusing of a display device provided in some embodiments of the present application;

[0032] Figure 7 A timing diagram of a method for defocusing a display device according to some embodiments of the present application;

[0033] Figure 8 A schematic diagram of a process of displaying a first reminder icon at a preset position of a recommended position by a display device provided in some embodiments of the present application;

[0034] Fig. 9 A schematic diagram of the effect of displaying a first reminder icon on a display device provided in some embodiments of the present application;

[0035] Fig.10 A comparative schematic diagram of displaying a first reminder icon to change a layer provided in some embodiments of the present application;

[0036] Fig.11 A schematic diagram of the first-order Bezier curve effect provided in some embodiments of the present application;

[0037] Fig.12 A schematic diagram of the effect of a second-order Bezier curve provided in some embodiments of the present application;

[0038] Fig.13 A schematic diagram of a third-order Bezier curve effect provided in some embodiments of the present application;

[0039] Fig.14 A schematic diagram of a first dynamic demonstration scene of a dynamic target control provided in some embodiments of the present application;

[0040] Fig.15 A schematic diagram of a second dynamic demonstration scene of a dynamic target control provided in some embodiments of the present application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of some embodiments of the present application clearer, the technical solutions of some embodiments of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0042] It should be noted that the brief description of terms in some embodiments of the present application is only for the convenience of understanding the implementation methods described below, and is not intended to limit the implementation methods of some embodiments of the present application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0043] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0044] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0045] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through the mobile terminal 300 and the control device 100 .

[0046] In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.

[0047] like Figure 1 As also shown in FIG. 4 , the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0048] In addition to providing the broadcast receiving television function, the display device 200 may also provide an intelligent network television function with computer support functions, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.

[0049] Figure 2 A hardware configuration block diagram of a display device 200 provided for some embodiments of the present application.

[0050] In some embodiments, the display apparatus 200 includes at least one of 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.

[0051] In some embodiments, the detector 230 is used to collect signals from the external environment or from interaction with the external environment.

[0052] In some embodiments, the display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from a controller, display video content, image content, and a menu control interface component and a user control UI interface, etc.

[0053] In some embodiments, the communicator 220 is a component for communicating with an external device or a server 400 according to various communication protocol types.

[0054] In some embodiments, 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.

[0055] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).

[0056] In some embodiments, the user interface 280 is an interface that can be used to receive control input.

[0057] Figure 3 This is a hardware configuration block diagram of a control device provided in some embodiments of the present application. Figure 3 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface, a memory, and a power supply.

[0058] The control device 100 is configured to control the display device 200 , and can receive user input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200 .

[0059] In some embodiments, the control device 100 may be a smart device, for example, the control device 100 may be installed with various applications for controlling the display device 200 according to user needs.

[0060] In some embodiments, Figure 1 As shown, the mobile terminal 300 or other intelligent electronic devices can play a similar function as the control device 100 after installing the application for controlling the display device 200 .

[0061] The controller 110 includes a processor 112, a RAM 113, a ROM 114, a communication interface 130, and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, as well as the communication and cooperation between the internal components and the external and internal data processing functions.

[0062] The communication interface 130 implements communication of control signals and data signals with the display device 200 under the control of the controller 110. The communication interface 130 may include at least one of other near field communication modules such as a WiFi chip 131, a Bluetooth module 132, and an NFC module 133.

[0063] The user input / output interface 140 , wherein the input interface includes at least one of other input interfaces such as a microphone 141 , a touch panel 142 , a sensor 143 , and a button 144 .

[0064] In some embodiments, the control device 100 includes at least one of a communication interface 130 and an input / output interface 140. The control device 100 is configured with a communication interface 130, such as a WiFi, Bluetooth, NFC or other module, and can encode the user input command through the WiFi protocol, Bluetooth protocol, or NFC protocol and send it to the display device 200.

[0065] The memory 190 is used to store various operating programs, data and applications for driving and controlling the control device 100 under the control of the controller. The memory 190 can store various control signal instructions input by the user.

[0066] The power supply 180 is used to provide operating power support for each component of the control device 100 under the control of the controller.

[0067] Figure 4 A schematic diagram of the software configuration in a display device provided for some embodiments of the present application. In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as the "application layer"), the application framework layer (Application Framework) layer (referred to as the "framework layer"), the Android runtime (Android runtime) and the system library layer (referred to as the "system runtime library layer"), and the kernel layer.

[0068] In some embodiments, at least one application is running in the application layer. These applications may be window programs, system settings programs, clock programs, camera applications, etc. that come with the operating system; or they may be applications developed by third-party developers.

[0069] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take.

[0070] like Figure 4 As shown, in some embodiments of the present application, the application framework layer includes managers (Managers), content providers (Content Provider) and a view system (View System) and the like.

[0071] In some embodiments, the activity manager is used to manage the life cycle of each application and the general navigation back function.

[0072] In some embodiments, a window manager is used to manage all window programs.

[0073] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is accessed, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.

[0074] In some embodiments, the kernel layer is a layer between hardware and software. 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, touch sensor, pressure sensor, etc.), etc.

[0075] In some embodiments, the core layer further includes a power driver module for performing power management.

[0076] In some embodiments, Figure 4 The software programs and / or modules corresponding to the software architecture in Figure 2 or Figure 3 in the first memory or the second memory shown.

[0077] The above embodiments illustrate the hardware / software architecture and functional implementation of a display device 200. The display device 200 is an intelligent device that can present a user interface and support user interaction. Taking a smart TV as an example, a smart TV is a display device based on Internet application technology, equipped with an open operating system and chip, an open application platform, and can realize a two-way human-computer interaction function. A smart TV can integrate multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users. For example, users can watch various movies, TV series, variety shows, etc. through a smart TV.

[0078] Figure 5 This is a schematic diagram showing the effect of displaying media resources through a media resource page in some embodiments of the present application, such as Figure 5 As shown, in some embodiments, a plurality of recommendation positions may be set in a media resource page, and the recommendation positions may be associated with media resources such as pictures, movies or TV series. When a user clicks on each recommendation position, the corresponding media resource content can be viewed.

[0079] In some embodiments, when the Figure 5 When a recommended position in a media resource page is selected, that is, when the focus is positioned on a recommended position, the selected recommended position can be rendered. Figure 5 As shown, a white bold border can be placed around the recommended position to remind the user of the currently selected recommended position. An animation effect can also be set for the image. For example, when a recommended position is selected or switched to a new recommended position, a transition halo from the upper left corner to the lower right corner can be added to the recommended position to enhance the user's visual experience.

[0080] However, in the above rendering method, if there are multiple recommendation positions in the media resource page, all recommendation positions in the media resource page need to execute the same rendering process. Moreover, there may be multiple application APPs in the display device 200, and different application APPs also need to execute the same rendering process. This will cause a large workload for the display device 200 and low processing efficiency of the media resource page.

[0081] Exemplarily, a media resource page may be configured with a JUUI template and multiple recommendation positions of different styles. Among them, the JUUI template is a front-end template library for creating user interfaces. It can contain many predefined components and styles, which can assist developers in quickly building beautiful and easy-to-use user interfaces. For example, the JUUI template may include layout templates such as home pages, list pages, and detail pages, and may also include components such as buttons, forms, and navigation bars. It may also include styles such as colors, fonts, and spacing, and provide rich icon resources, etc. Then, when the focus movement is triggered in the media resource page, if a jumping focus-out animation from position A to position B is implemented, all recommendation position styles need to be adapted, reducing the processing efficiency of the display device 200 for the media resource page.

[0082] Moreover, there are multiple application APPs deployed in the display device 200. If you want to configure a unified defocusing effect for all application APPs, all application APPs need to be adapted and modified, which is labor-intensive and inefficient. In addition, in the above rendering method, only the current focus is rendered, and the process of displaying focus switching is not displayed.

[0083] In order to solve the problem of low efficiency in configuring media resource pages on display devices, some embodiments of the present application provide a display device 200, wherein the display device 200 includes a display 260 and a controller 250. Among them, the display 260 is configured to display an audio and video application interface, and the controller 250 is configured to execute a focus defocusing method. When the focus switches, the display device 200 can record the coordinate position of the previous focus, and obtain the coordinate position of the current focus, i.e., the target focus, in real time, and present the switching process between the previous focus and the target focus in the form of animation, and realize the dynamic effect of jumping focus defocusing in the form of a Bezier curve.

[0084] For example, the coordinate position of the previous focus is position A, and the coordinate position of the target focus is position B. The animation can start from position A and move to position B through a Bezier curve to present the dynamic process of switching from the previous focus to the target focus, thereby enhancing the user's visual experience.

[0085] In order to facilitate the understanding of the technical solutions in some embodiments of the present application, each step is described in detail below in conjunction with some specific embodiments and drawings. Figure 6 A flowchart of a method for performing a focus defocusing operation on a display device provided in some embodiments of the present application is shown in FIG. Figure 6 As shown, in some embodiments, when the display device 200 performs the focus defocusing method, the following steps S1-S7 may be included, and the specific contents are as follows:

[0086] Step S1: the display device 200 generates a first focus selection event of a recommended position in a media resource page based on an operating system.

[0087] In some embodiments, the operating system may be an Android system, and the Android system may be provided with an Android auxiliary process such as AccessibilityService, which is an accessibility service provided by the Android system, and which may obtain information on the user interface through the underlying accessibility framework of Android. For example, it may monitor the focus, window changes, button clicks, etc. on the user interface, and may also monitor some state transitions in the user interface, such as page switching, focus changes, notifications on the page, etc.

[0088] In some embodiments, the media resource page is a page presented after the audio and video application is started. The display device 200 may include multiple audio and video applications, each of which corresponds to a different media resource page.

[0089] In some embodiments, a plurality of recommendation positions may be provided in a media resource page, and the recommendation positions may be set to different sizes and shapes according to requirements, such as square, rectangle or other custom shapes. When a user selects a recommendation position in a media resource page through a remote control or a touch screen, the recommendation position will become focused. The focused recommendation position may be highlighted, for example, a highlighted border, a transition halo, etc. may be set for the focused recommendation position.

[0090] Figure 7 A timing diagram of a method for performing a focus defocusing operation on a display device provided in some embodiments of the present application, such as Figure 7 As shown, in some embodiments, in response to a power-on instruction of the display device 200, the display device 200 can create a preset service through a background service application, the preset service is used to execute an auxiliary process of the operating system, and then monitor the interface operation events generated in the operating system through the preset service.

[0091] Exemplarily, the audio and video application may be an application APP in the display device 200, the auxiliary process of the operating system may be an Android auxiliary function, and the background service application may be an advertising terminal background service. In some embodiments, the advertising terminal background service may be a background service application without a UI interface, and the user cannot visually perceive the existence of this service. Then, when the display device 200 is turned on, the advertising terminal background service may start the process of the advertising terminal background service after receiving the power-on broadcast, and may create a preset service such as a Service service for executing Android auxiliary functions. The execution here may be understood as inheriting the AccessibilityService of the Android system through the Service service. The Accessibility service of the display device may also be based on other operating systems, such as the IOS system.

[0092] In order to enable the background service application to execute the auxiliary process of the operating system, in some embodiments, the display device 200 can generate interface operation events of the media resource page based on the operating system, receive the interface operation events through the auxiliary process, and then register the auxiliary process through the preset service, and send the interface operation events to the background service application through the auxiliary process.

[0093] Exemplarily, during the interaction of the user interface, the Android system can monitor changes in the user interface such as a media resource page. In some embodiments, the Android system can be provided with a module for monitoring events in the media resource page, such as an event management module. The event management module can be configured with an object-oriented processing mechanism, and the interactive operations on the media resource page can be monitored and fed back through the event management module.

[0094] In some embodiments, the event management module may involve the following processing objects: event source processing object, event generation processing object and event monitoring processing object. Among them, the event source processing object is the source of the event, and the event source processing object can be various components, for example, it can be a button component, a window component, etc. The event generation processing object can encapsulate the relevant information of the interactive event occurring on the user interface component, and some interactive events can also be received through the event generation processing object. The event monitoring processing object is responsible for monitoring the interactive events occurring at the event source, and can perform corresponding processing on different interactive events.

[0095] In some embodiments, a series of possible interactive events may be defined in the event management module, such as click events, long press events, etc. Each event may be associated with a specific function or response. For example, clicking a button may trigger the playback of a video in a recommended position, and sliding may switch to a video in the next recommended position.

[0096] In order to facilitate event management, an event list can be created through the event management module, and these interactive events can be registered in the event list. Once the events are registered, the event management module will start to monitor these events, that is, the event management module can continuously monitor the user's operations through monitoring to determine whether any registered events are triggered. Therefore, the event management module can generate page operation events for the media asset page based on the monitoring of interactive events.

[0097] In some embodiments, when a user interface such as a media resource page is displayed, a user may input key values ​​for interaction in the media resource page through a remote control or other input device. For example, a user may use a direction key to select or switch the focus in the media resource page, or use a play or pause key to control the playback of a video in the media resource page. These key values ​​may be predefined and may correspond to specific operations or commands. For example, the "Enter" key may correspond to selection or play, while the "Esc" key may be used to return or cancel, etc.

[0098] After the user enters the key value, the audio and video application can receive and process these key values. For example, taking the audio and video application as service A, when service A receives a key value, it will parse the key value and perform the corresponding action. For example, if service A receives the value of the "Enter" key, it may trigger the playback of the currently selected video. If it receives the value of the "Esc" key, it may perform a back operation and return to the previous menu.

[0099] When a user performs a corresponding interactive operation on a media asset page, the event management module detects the operation and identifies the corresponding event type. For example, the event management module is responsible for monitoring user operations on a media asset page, and converts these operations into event objects, which contain all relevant information about the operation, such as type, time, target element, etc. The event management module is also responsible for passing the interactive event to the corresponding handler or service, for example, it can be passed to service A so that service A can perform the relevant processing flow.

[0100] In some embodiments, when a user interacts, AccessibilityService can identify the specific event type, for example, it can distinguish whether the user clicks a button or double-clicks the screen. AccessibilityService can also read the content on the media resource page or perform other auxiliary functions to ensure that these interaction events are accessible and understandable to all users.

[0101] In some embodiments, the page operation event may be an AccessibilityEvent event, which is a class in the Android system that is used to describe various operations and state changes in a user interface such as a media asset page. In the Android system, when a user interacts with the interface, the event management module in the Android system may convert the corresponding event into an AccessibilityEvent event, and the event management module may generate different types of AccessibilityEvent events, which may include various operations and state changes on the user interface, such as focus switching, control state changes, page scrolling, etc.

[0102] In some embodiments, an AccessibilityEvent event may include event type information, trigger event source information, event occurrence time information, and additional information. Among them, event type information is used to describe the type of event, such as focus change event, control state change event, scroll event, etc. Trigger event source information is used to describe the source View that triggers the event, and the source View information can be obtained through the getSource() method. Event occurrence time information is used to describe the specific time point when the event occurs. Additional information is used to describe related information of different types of events, such as text content information, status information, etc.

[0103] In some embodiments, the AccessibilityEvent event is a component of the accessibility framework. By monitoring the AccessibilityEvent event, an accessibility service such as AccessibilityService can obtain information and state changes of the user interface, thereby implementing auxiliary operations on the user interface.

[0104] In some embodiments, AccessibilityEvent events can be distributed to AccessibilityService through the accessibility framework. After receiving these events, AccessibilityService can perform corresponding processing according to the event type information and the triggering event source information. In other words, by listening to AccessibilityEvent events, AccessibilityService can obtain information and state changes in the media resource page, such as focus switching events, page scrolling events, etc. These functions are all implemented based on the accessibility framework of the Android system.

[0105] When a user interacts with a media resource page, the event management module can generate a first focus selection event for a recommended position in the media resource page based on the operating system. Figure 7 For example, when a user opens any application APP, the background will start the media resource page corresponding to the application APP and display the specific content contained in the media resource page. There will be a focus corresponding to the media resource page, which can be the default focus when the user enters the media resource page. The first focus selection event can be the selection event of the default focus, that is, the event corresponding to the user not switching the focus. After step S1 is executed, the following step S2 can be executed.

[0106] Step S2: receiving a first focus selection event through an auxiliary process in the operating system, and sending the first focus selection event to a background service application through the auxiliary process; the background service application is an application that has registered an auxiliary process.

[0107] Continue to see Figure 7 After the event management module generates the first focus selection event of the recommended position in the media resource page based on the operating system, the event management module in the Android system will convert the first focus selection event into an AccessibilityEvent event, the type of which is a focus selection event.

[0108] In some embodiments, the background service application is an application independent of the audio and video application to which the current interface belongs.

[0109] In some embodiments, the first focus selection event can be received through an auxiliary process of the Android system, and the first focus selection event can be sent to a background service application, such as an advertising terminal background service, through the auxiliary process. Since the advertising terminal background service has registered an auxiliary process such as AccessibilityService, after AccessibilityService receives the AccessibilityEvent event, AccessibilityService can distribute the AccessibilityEvent event to the advertising terminal background service. Therefore, the advertising terminal background service will receive the focus selection event AccessibilityEvent transmitted by AccessibilityService. After step S2 is executed, the following step S3 can be executed.

[0110] Step S3: When the number of executions of the first focus selected event is equal to the preset number of executions, the background service application controls the display 260 to display the first reminder icon at the preset position of the recommendation position.

[0111] In order to be applicable to the first focus selection event in any usage scenario, in some embodiments, the execution of the first focus selection event can be counted by a unified event processing function or by using a timer mechanism, without distinguishing whether it is the first processing or not.

[0112] Exemplarily, a unified event handling function is designed to handle all first focus selected events, regardless of whether they are triggered for the first time or not. A counter can also be used to track the number of times the first focus selected event is triggered. Each time the event occurs, the counter is incremented without setting a special state or flag to distinguish between the first trigger and the non-first trigger.

[0113] After receiving the first focus selection event, it can be determined whether the first focus selection event is the first focus selection event after power-on. If it is the first focus selection event after power-on, it means that the focus has not switched. At this time, only a static icon can be displayed at the preset position of the recommended position where the focus is located, and there is no dynamic switching process of the focus.

[0114] To this end, the following function may be executed: when the execution times of the first focus selected event are equal to the preset times, the background service application controls the display 260 to display the first reminder icon at the preset position of the recommendation position. The recommendation position may be the recommendation position at the default focus position.

[0115] In some embodiments, the preset number of times may be 1, and if there is only one first focus selection event, it indicates that the first focus selection event should be the default focus selection event in the media asset page. At this time, the first reminder icon may be displayed at the preset position of the recommendation position.

[0116] Figure 8 A schematic diagram of a process of displaying a first reminder icon at a preset position of a recommended position provided by a display device in some embodiments of the present application, such as Figure 8 As shown, first, a first focus selection event can be obtained, and then the focus information and control information contained in the first focus selection event can be extracted, and the recommended position selected by the first focus selection event can be obtained based on the focus information and control information, and then the preset corner point coordinates can be obtained based on the recommended position, and the display 260 can be controlled to display the first reminder icon at the position of the preset corner point coordinates.

[0117] Exemplarily, the focus information and control information contained in the first focus selection event can be extracted, and then the recommended position selected by the first focus selection event can be obtained based on the focus information and control information. For example, the recommended position corresponding to the first focus selection event can be obtained through the getSource() method of AccessibilityEvent. After obtaining the recommended position, the coordinates of each corner point of the recommended position can be obtained.

[0118] Fig. 9 A schematic diagram of the effect of displaying a first reminder icon on a display device provided in some embodiments of the present application, such as Fig. 9 As shown, taking the preset corner point as the upper left corner as an example, the background service application can obtain the coordinates of the upper left corner of the recommendation position, and the coordinates of the upper left corner of the recommendation position, i.e., the upper left corner coordinates, can be marked as (x1, y1). After the advertising terminal background service determines that the recommendation position is the first selected event where the focus is located after powering on, since there is no previous focus coordinate, the advertising terminal background service can display the first reminder icon at the upper left corner of the recommendation position according to the obtained coordinates.

[0119] It should be noted that, in some embodiments, while the advertising terminal background service displays the first reminder icon at the preset corner point of the recommendation position, the audio and video application is also executing the original focus logic. For example, the audio and video application performs the rendering process of the selected recommendation position, and performs effects such as magnification or highlight display on the outer frame of the recommendation position. In other words, the original rendering process of the audio and video application for the focus and the display of the first reminder icon at the preset corner point of the advertising terminal background service coexist, and the two do not conflict.

[0120] From the perspective of layer control and layer change, when the advertising terminal background service displays the first reminder icon at the preset corner point of the recommendation position, since the audio and video application is also executing the original focus logic, both have their own presentation effects on the layer. Fig.10 A comparative schematic diagram of displaying a first reminder icon to change a layer provided in some embodiments of the present application, such as Fig.10 As shown, the upper figure is a schematic diagram of the advertising terminal background service not displaying the first reminder icon, and the media resource page only has the focus logic processing flow of the audio and video application. The lower figure is a schematic diagram of the advertising terminal background service displaying the first reminder icon. At this time, the media resource page will add the first reminder icon on the basis of the original one in the upper figure. For example, the first reminder icon can be superimposed and displayed to remind the user of the current focus location through the first reminder icon, which is more intuitive.

[0121] After step S3 is completed, the following step S4 may be executed.

[0122] Step S4: when the focus of the recommendation position is switched in the media resource page, a second focus selection event is generated based on the operating system.

[0123] Continue to see Figure 7 When the focus of the recommendation position is switched in the media resource page, the event management module in the Android system will generate a second focus selection event based on the focus switching.

[0124] Exemplarily, when a user switches the focus of a media asset page through a remote control or the like, before the focus switch is executed, the media asset page has an initial focus, i.e., the focus before the switch. After the corner switch is executed, it will change to a new focus, i.e., the focus after the switch. When the focus in the media asset page changes, the event management module can generate a second focus selection event and convert the second focus selection event into an AccessibilityEvent event. After the conversion is completed, the AccessibilityEvent event can be distributed to auxiliary processes of the Android system such as AccessibilityService. After the AccessibilityService receives the AccessibilityEvent event, since the advertising terminal background service has registered to listen to the events of the AccessibilityService, the advertising terminal background service can receive the second focus selection event AccessibilityEvent event transmitted by the AccessibilityService.

[0125] In some embodiments, the advertising terminal background service can also obtain the recommended position where the focus is after switching through the getSource() method of AccessibilityEvent, thereby obtaining the preset focus coordinates of the recommended position where the focus is after switching, such as the upper left corner coordinates.

[0126] That is to say, in the focus switching event corresponding to the second focus selection event, the recommendation position where the first focus is located is switched to the recommendation position where the second focus is located. Among them, the coordinates of the upper left corner of the recommendation position where the first focus is located, such as the coordinates of the upper left corner point P0, are (x1, y1), and the coordinates of the upper left corner point P2 of the recommendation position where the second focus is located, that is, the upper left corner coordinates are (x2, y2). After step S4 is executed, the following step S5 can be executed.

[0127] Step S5: receiving the second focus selection event based on the auxiliary process in the operating system, and sending the second focus selection event to the background service application through the auxiliary process.

[0128] In order to enable the background service application to receive the second focus selection event, in some embodiments, after the second focus selection event is generated based on the operating system, the second focus selection event can be received based on an auxiliary process such as AccessibilityService, and then AccessibilityService sends the second focus selection event to the background service application, so that the background service application can obtain the second focus selection event and thus obtain the specific focus switching situation. After step S5 is executed, the following step S6 can be executed.

[0129] Step S6: the background service application obtains the first focus coordinates before switching the focus, and obtains the second focus coordinates after switching the focus.

[0130] The above steps have calculated the first focus coordinates before switching focus and the second focus coordinates after switching focus. For example, the coordinates of the upper left corner point P0 of the recommended position before the focus switching are (x1, y1), that is, the first focus coordinates are (x1, y1), and the coordinates of the upper left corner P2 of the recommended position after switching focus are (x2, y2), that is, the second focus coordinates are (x2, y2). The advertising terminal background service can directly obtain (x1, y1) and (x2, y2) as the data basis for the subsequent focus switching animation.

[0131] In order to provide more accurate advertising, the advertising terminal backend service can identify user behavior and the location of the recommended focus in a variety of ways.

[0132] In some embodiments, the second focus coordinates (x2, y2) may be obtained through the audio and video application, that is, the second focus coordinate data after the user switches the focus. Still taking the audio and video application as service A as an example, when the user switches the focus in the media resource page corresponding to service A, the advertising terminal background service may obtain the new position of the focus after switching in real time through API calls or event monitoring. This can be achieved through a synchronous transmission mechanism, that is, when the user switches the focus in the media resource page, the position information of the focus after switching is also transmitted to the advertising terminal background service.

[0133] In some embodiments, the second focus coordinates can also be obtained by asynchronous transmission. When the user switches the focus in the media resource page corresponding to service A, service A can first send a synchronization instruction to the advertising terminal background service to inform the advertising terminal background service that a new page is loaded or a focus switch occurs through the synchronization instruction. After that, the advertising terminal background service requests and obtains the position information of the switched focus from service A, that is, the second focus coordinates (x2, y2).

[0134] In some embodiments, after the user opens the media resource page corresponding to the audio and video application, the advertising terminal background service can pre-acquire the control position of the recommended position where the current focus is located in the background. In this way, when the user interacts with the media resource page, for example, when the user moves the focus up, down, left, and right using the direction keys of the remote control, the advertising terminal background service has pre-stored the control position, and the pre-stored control position can be called to help the advertising terminal background service respond to the user's interactive events more quickly. Because there is no need to wait for the acquisition of position information during the interaction, but it is called directly from the cache, the synchronization of focus and animation in the audio and video application can be improved.

[0135] After step S6 is completed, the following step S7 may be executed.

[0136] Step S7: the background service application generates a focus switching animation according to the first focus coordinate and the second focus coordinate, and controls the display 260 to display the focus switching animation in the media resource page.

[0137] In order to generate the focus switching animation, the advertising terminal background service can first obtain the first focus coordinate and the second focus coordinate, then obtain the curve order of the Bezier curve of the focus switching animation, and then determine the number of transition points contained in the Bezier curve according to the curve order. Then, a curve animation track can be generated according to the first focus coordinate, the second focus coordinate and the number of points, and then the motion frame of the focus mark screen can be set according to the curve animation track to generate the focus switching animation.

[0138] It should be noted that, in some embodiments, when the advertising terminal background service generates the focus switching animation, there are still two processing logics at the same time. One is the original focus logic of the audio and video application, and the other is the logic of the advertising terminal background service to generate and display the focus switching animation. From the perspective of layer control and layer change, the above two processing logics reflect the actions performed by different layers. One layer is the application control of the rendering of the recommended position where the focus is located by the audio and video application such as the A service layer, and the other layer is the application control of the animation effect by the advertising terminal background service, and the two exist at the same time.

[0139] For example, see Figure 7 After receiving the AccessibilityEvent event distributed by the Android accessibility function, the background service application can obtain the focus coordinates before and after the switch, and display the focus switching animation according to the two coordinates. For example, the above steps have calculated that the first focus coordinates are the coordinates (x1, y1) of the upper left corner point P0, and the second focus coordinates are the coordinates (x2, y2) of the upper left corner point P2. After the first focus coordinates and the second focus coordinates are determined, the curve order of the Bezier curve of the focus switching animation can be obtained. The following is a detailed introduction to the Bezier curve and its curve order.

[0140] The Bezier curve is a parametric curve used in computer graphics and related fields. The shape of the curve is defined by discrete control points, making the design and adjustment of the curve more intuitive. The Bezier curve can ensure the smoothness of the curve. By adjusting the position of the control points, the shape of the Bezier curve can be changed, thereby controlling the shape of the curve.

[0141] In some embodiments, the Bezier curve can be defined by a starting point, a control point, and an end point. Exemplarily, the starting point is the initial point for realizing the animation effect through the Bezier curve, and its number is 1, the end point is the last point of the animation effect, and its number is also 1, and the control point is the transition point between the starting point and the end point, and its number can be 1 or more, and the specific number can be set according to actual needs, and this application does not make specific restrictions on this.

[0142] It should be noted that this application only uses the Bezier curve as an example to illustrate the process of implementing the focus switching animation. It can also be implemented in other forms, and this application does not specifically limit this. For example, it can be implemented using algorithms such as arc paths, as long as the animation effect is smooth. For example, when implemented using algorithms such as arc paths, the focus switching animation formed should be smooth without stuttering.

[0143] In some embodiments, the Bezier curve can be implemented as follows: First, there must be a starting point and an ending point, and the upper left corner point P0 of the recommended position before switching the focus can be used as the starting point, and the upper left corner P2 of the recommended position after switching the focus can be used as the ending point. Fig.11 A schematic diagram of the first-order Bezier curve effect provided in some embodiments of the present application, such as Fig.11 As shown, it can be understood that when there is no transition point between P0 and P2, a straight line is formed by the two points P0 and P2, and a curve cannot be formed at this time, that is, the number of transition points is 0, which can be called a first-order Bezier curve.

[0144] Fig.12 A schematic diagram of the effect of a second-order Bezier curve provided in some embodiments of the present application, such as Fig.12 As shown, in some embodiments, the second-order Bezier curve can also be called a quadratic Bezier curve, which is composed of three points, taking the starting point as P0 and the ending point as P2 as an example, P1 is the middle transition point, that is, the number of transition points included in the second-order Bezier curve is 1. The implementation principle of the second-order Bezier curve is to make the curve approximate the triangle formed by the control points P0, P1 and P2.

[0145] Fig.13 A schematic diagram of the effect of a third-order Bezier curve provided in some embodiments of the present application, such as Fig.13 As shown, in some embodiments, the third-order Bezier curve can also be called a cubic Bezier curve, which is composed of four points. Taking the starting point as P0 and the end point as P3 as an example, P1 and P2 are the intermediate transition points, that is, the number of transition points included in the third-order Bezier curve is 2. The implementation principle of the third-order Bezier curve is to make the curve approach the quadrilateral formed by the control points P0, P1, P2 and P3.

[0146] By analogy, the fourth-order Bezier curve can also be called the fourth-power Bezier curve, which consists of five points, including a starting point, an end point, and three transition points. The fifth-order Bezier curve can also be called the fifth-power Bezier curve, which consists of six points, including a starting point, an end point, and four transition points.

[0147] That is to say, in the embodiment of the present application, the number of transition points contained in the Bezier curve can be determined by the curve order of the Bezier curve. For example, the number of transition points in the first-order Bezier curve is 0, the number of transition points in the second-order Bezier curve is 1, the number of transition points in the third-order Bezier curve is 2, the number of transition points in the fourth-order Bezier curve is 3, etc. After the number of starting points, transition points, and end points of the Bezier curve are determined, the curve animation trajectory can be generated according to the first focus coordinates, the second focus coordinates, and the number of points.

[0148] In some embodiments, the position of the transition point can be set according to actual needs, and this application does not make specific limitations on this. After the curve animation trajectory is generated, the motion frame of the focus mark screen can be set according to the curve animation trajectory to generate a focus switching animation.

[0149] Exemplarily, first you need to determine the starting point coordinates and the ending point coordinates. For example, the starting point coordinates can be the first focus coordinates, and the ending point coordinates can be the second focus coordinates. After that, you can determine the number of transition points and their specific coordinate positions. The starting point coordinates, the ending point coordinates, and the transition point coordinates will serve as control points of the Bezier curve, affecting the shape of the curve and the motion path of the animation. When generating a curve animation trajectory, you can use the mathematical formula of the Bezier curve to calculate each point on the curve based on the determined control points and number of points, thereby generating a complete curve trajectory. This trajectory will be used to guide the movement path of the focus in the animation. After the curve trajectory is determined, you can set the position of each frame in the animation according to this trajectory. The duration, speed, etc. of the animation can be set according to actual needs.

[0150] For example, a Bezier curve has a certain slope, and the slope of the curve represents the speed of the animation. The steeper the curve, the faster the speed, and the flatter the curve, the slower the speed. By setting the motion frame of the focus mark screen according to the curve animation track, a focus switching animation can be generated.

[0151] In order to display the dynamic process of focus switching, after the focus switching animation is generated, the background service application can control the display 260 to display the focus switching animation in the media resource page. First, the background service application can obtain the dynamic target control displayed in the media resource page, wherein the dynamic target control includes the initial size and the target size in the focus switching process, the target size is the same as the initial size along the first direction, the target size along the second direction is the preset ratio of the initial size along the second direction, and the first direction is perpendicular to the second direction. Then, the initial size is set as the default value of the dynamic target control. When the focus of the recommendation position is switched in the media resource page, the first recommendation position selected by the first focus selection event is obtained and the dynamic target control is displayed at the preset focus position of the first recommendation position, and then the dynamic target control is controlled to move along the curve animation track. Among them, the size of the dynamic target control at the first focus coordinate and the second focus coordinate of the curve animation track is the initial size, and the size outside the first focus coordinate and the second focus coordinate of the curve animation track is the target size.

[0152] In actual usage scenarios, when a user uses the direction buttons of a remote control to switch recommended positions on a media resource page, when the focus switches between recommended positions, a dynamic switching effect can be presented on the media resource page. For example, the focus switch can be presented in an arc-shaped jump.

[0153] In the focus switching animation, the jumping direction of the dynamic target control can be defined. In some embodiments, the distance of the X-axis or Y-axis of each jump can be compared. If the distance in the X-axis direction is greater than the distance in the Y-axis direction, it means that the dynamic target control jumps left and right. If the distance in the Y-axis direction is greater than the distance in the X-axis direction, it means that the dynamic target control jumps up and down, so that the jumping direction of the dynamic target control can be obtained.

[0154] In some embodiments, taking the dynamic target control as the control View as an example, scaleY is used to describe the scaling ratio of the control View in the vertical direction. By modifying the scaleY attribute of the control View, the scaling of the control View in the vertical direction can be achieved.

[0155] Exemplarily, the control View has an initial size and a target size during the focus switching process. In some embodiments, the first direction may be the X-axis direction, and the second direction may be the Y-axis direction. The initial size and the target size are the same in the X-axis direction, and the two are in a certain ratio in the Y-axis direction. The initial size is the default value of the dynamic target control. When the value of scale Y is 1.0, it means that the control View does not scale in the vertical direction; when the value of scale Y is greater than 1.0, it means that the control View is enlarged in the vertical direction, and when the value of scale Y is less than 1.0, it means that the control View is reduced in the vertical direction. For example, when the value of scale Y is scaled from 1.0 to 0.5, the dynamic target control will change from the initial size to half the size of the initial size in the vertical direction. Therefore, the scaling effect of the control View in the vertical direction can be controlled by scale Y to achieve the dynamic change process of the dynamic target control.

[0156] Fig.14 A schematic diagram of a first dynamic demonstration scene of a dynamic target control provided in some embodiments of the present application, such as Fig.14 As shown, taking the second-order Bezier curve as an example, the specific process of the focus switching animation is explained. The user wants to switch from TV series A to TV series B. Assuming that the coordinates of the starting point are still P0 (x1, y1) and the end point is P2 (x2, y2), then in some embodiments, the coordinates of the transition point P1 can be (x1 + (x2-x1) / 2, y1 + (y2-y1) / 2). In the initial stage of the focus switching animation, the size of the dynamic target control is the initial size, and when it starts to jump, the size changes. For example, scale Y can be 0.5, then the dynamic target control that jumps and loses focus is reduced from the initial size to half of the initial size in the vertical direction, similar to the dynamic target control simulating the action of squatting. It can be understood that before reaching the preset corner point of the recommended position after switching, the dynamic target control always presents a state of half the size of the initial value.

[0157] Fig.15 A second dynamic demonstration scene schematic diagram of a dynamic target control provided in some embodiments of the present application, such as Fig.15 As shown in the figure, when the focus switching animation is about to end, when it reaches the upper left corner of the TV series B recommendation position, it will be restored from half of the initial size to the initial size, that is, scale Y returns to 1.0, similar to the effect of the dynamic target control simulating standing. Figure 14 to Figure 15 The changing process of the focus switching animation is presented.

[0158] In some embodiments, the user does not only switch the focus of the recommendation position on the current page, but also scrolls the media resource page. For example, the scrolling state of the media resource page may include a vertical scrolling state, that is, scrolling in the up and down direction, and a horizontal scrolling state, that is, scrolling in the horizontal direction.

[0159] In order to be compatible with the scenario of scrolling of the media asset page, in some embodiments, the scrolling state of the media asset page can be monitored while presenting the focus switching animation, so as to perform different operation processes according to different scrolling states.

[0160] In some embodiments, the background service application can monitor the scrolling state of the media resource page, and when the vertical scrolling state is not monitored, the step of controlling the display 260 to display the focus switching animation in the media resource page is executed, and after the vertical scrolling state is monitored, the display 260 is controlled to stop playing the focus switching animation and cancel the display of the dynamic target control at the first focus coordinate. And, after no page scrolling event is received within a preset time interval, the second focus coordinate after the focus is switched is obtained, and the icon corresponding to the dynamic target control is displayed at the preset corner point of the second recommendation position selected by the second focus selection event.

[0161] For example, if the user triggers the up and down scrolling events of the media resource page through the remote control, the event management module in the Android system can generate an AccessibilityEvent event, and the event type can be a page scrolling event. Since the advertising terminal background service has registered to listen to the events of AccessibilityService, the advertising terminal background service can receive the page scrolling events transmitted by AccessibilityService. At this time, if the focus switching animation of jumping and falling focus is being executed, the focus switching animation should be stopped immediately, and the icon of the dynamic target control should be cancelled to avoid deviations due to vertical movement during the focus jumping process.

[0162] In some embodiments, the preset time interval can be 100 milliseconds. When no page scrolling event is received within 100 milliseconds, the switched recommendation position and the corresponding focus coordinates and the preset corner point coordinates of the recommendation position can be obtained through the advertising terminal background service, and a static LOGO icon that is jumping and out of focus can be displayed.

[0163] In order to obtain the coordinates of the recommendation position after the vertical scrolling state, in some embodiments, the advertising terminal background service can obtain the AccessibilityNodeInfo object through the auxiliary function of the Android system, such as the getRootInActiveWindow() method of AccessibilityService, and then obtain the switched recommendation position through the findFocus method of the AccessibilityNodeInfo object, such as AccessibilityNodeInfo.FOCUS_INPUT. After obtaining the recommendation position, the coordinates of the recommendation position, the corresponding focus coordinates, and the preset corner coordinates of the recommendation position can be obtained.

[0164] Among them, AccessibilityNodeInfo is a class used in the Android system to describe an accessible element on the user interface. It can provide access interfaces for information and operations of various UI elements on the interface, and can assist AccessibilityService in obtaining and operating the user interface. In some embodiments, AccessibilityNodeInfo may include the following content, for example, it may include attribute information of UI elements, accessibility information of UI elements, parent-child relationships of UI elements, and operations on UI elements. The attribute information of UI elements may include text content, description, ID, class name, etc. The accessibility information of UI elements may include accessibility labels, focus status, etc. The parent node, child node and other information of UI elements may be obtained through the parent-child relationship of UI elements. Operations on UI elements may include clicking, setting text, etc. Through AccessibilityNodeInfo, the accessibility service can obtain various UI elements on the user interface, thereby obtaining user interface information and performing related operations, etc., thereby realizing the execution of operations on the user interface.

[0165] In some embodiments, when the scrolling state is a horizontal scrolling state, the following process can be executed: when the horizontal scrolling state is not detected, the step of controlling the display 260 to display the focus switching animation in the media resource page is executed, after the horizontal scrolling state is detected, the dynamic target control is canceled at the start of the scrolling, and after no page scrolling event is received within a preset time interval, the second focus coordinates are obtained, and the icon corresponding to the dynamic target control is displayed at the preset corner point of the second recommendation position.

[0166] Exemplarily, when there is no horizontal scrolling in the media resource page, the animation is displayed normally. When there is horizontal scrolling, the animation is immediately cancelled when it is determined that there is horizontal scrolling, and the corresponding icon is displayed after the focus is lost and the media resource page stops scrolling. Among them, the delay time can be set according to actual needs, and this application does not make specific limitations. In this way, it is possible to be compatible with the scrolling scenes of the media resource page, and execute different processes in different scrolling states to avoid the situation where the focus is lost due to scrolling.

[0167] It should be noted that in the embodiment of the present application, there is no requirement for which audio and video application the media resource page belongs to, that is, it can be applied to all application APPs. When implementing the focus switching animation, the focus-related processes can be executed by the background service application, without the need for each audio and video application and each recommendation position to be processed separately, and there is no restriction on the type of specific recommendation position, nor on the use of templates in the media resource page. Compared with the traditional method in which all rendering is done by the recommendation position, the processing efficiency of the media resource page can be improved, and it is compatible with all audio and video application types and has strong scalability.

[0168] In order to unify the styles of audio and video applications, in some embodiments, a unified focus style is set by a background service application, and the focus style is sent to the audio and video applications. In response to the first focus selection event or the second focus selection event, the background service application is controlled to add a focus style to the recommended position selected by the first focus selection event or the recommended position selected by the second focus selection event, so as to unify the focus styles of the audio and video applications through the background service application.

[0169] For example, after the background service application has formulated a unified focus style, it can send it to all application APPs. The background service application can monitor the specific situation of focus selection or focus switching, so a unified focus style can be set for all recommended positions in the application APP. After the focus style is determined, a unified focus switching animation can be formulated based on the unified focus style. In this way, a set of jumping and defocusing animation effects can be shared in the display device 200 to achieve a unified style and enhance the user's visual experience.

[0170] In some embodiments, the event management module in the Android system can also perform the following process. After generating events such as focus selection events or focus switching events, the event management module can also synchronously send the above events to the audio and video application and the background service application. In this way, the audio and video application can obtain the change of focus, and the audio and video application can execute the corresponding process according to the change of focus, so as to better achieve the synchronization of focus and animation in the audio and video application.

[0171] It can be seen from the above technical solution that the above embodiment provides a display device 200, which generates a first focus selection event for a recommended position in a media resource page based on an operating system; receives the first focus selection event through an auxiliary process in the operating system, and sends the first focus selection event to a background service application through the auxiliary process; when the number of executions of the first focus selection event is equal to a preset number of times, controls the display to display a first reminder icon at a preset position of the recommended position; when switching the focus of the recommended position in the media resource page, generates a second focus selection event based on the operating system; receives the second focus selection event based on the auxiliary process in the operating system, and sends the second focus selection event to the background service application through the auxiliary process; obtains the first focus coordinates before switching the focus, and obtains the second focus coordinates after switching the focus; generates a focus switching animation according to the first focus coordinates and the second focus coordinates, and controls the display to display the focus switching animation in the media resource page. The display device 200 can record the coordinate position of the last focus, and obtain the coordinate position of the current focus, i.e., the target focus, in real time, and present the switching process between the last focus and the target focus in the form of animation, and realize the jumping and defocusing effect in the form of Bezier curve, which can improve the processing efficiency of the media resource page and solve the problem of low efficiency in configuring the media resource page of the display device.

[0172] Based on the above display device 200, some embodiments of the present application further provide a method for defocusing a focus, which can be applied to the above display device 200. In some embodiments, the method for defocusing a focus may include the following contents:

[0173] Generate a first focus selection event of a recommended position in a media resource page based on the operating system; the media resource page is a page presented after the audio and video application is started;

[0174] Receiving the first focus selection event through an auxiliary process in the operating system, and sending the first focus selection event to a background service application through the auxiliary process; the background service application is an application that has registered the auxiliary process;

[0175] When the execution times of the first focus selected event are equal to the preset times, controlling the display to display the first reminder icon at the preset position of the recommendation position;

[0176] When switching the focus of the recommendation position in the media resource page, a second focus selection event is generated based on the operating system;

[0177] Receiving the second focus selection event based on the auxiliary process in the operating system, and sending the second focus selection event to the background service application through the auxiliary process;

[0178] Obtaining the first focus coordinates before switching the focus, and obtaining the second focus coordinates after switching the focus;

[0179] A focus switching animation is generated according to the first focus coordinate and the second focus coordinate, and the display is controlled to display the focus switching animation in the media resource page.

[0180] It can be seen from the above technical solution that the above embodiment provides a method for defocusing the focus, which can record the coordinate position of the last focus, and obtain the coordinate position of the current focus, i.e., the target focus, in real time, and present the switching process between the last focus and the target focus in the form of animation. The jumping defocusing effect is realized in the form of a Bezier curve, which can improve the processing efficiency of the media resource page to solve the problem of low efficiency in configuring the media resource page of the display device.

[0181] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.

[0182] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.

[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0184] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that: include: a display configured to display an audio and video application program interface; The controller is configured as: Generate the first focus selection event of the recommended position in the media resource page based on the operating system; The media resource page is a page presented after starting the audio and video application; Receiving the first focus selection event through an auxiliary process in the operating system, and sending the first focus selection event to a background service application through the auxiliary process; The background service application is an application that has registered the auxiliary process; When the execution number of the first focus selection event is equal to a preset number, controlling the display to display a first reminder icon at a preset position of the recommendation position; When switching the focus of the recommendation position in the media resource page, generating a second focus selection event based on the operating system; receiving the second focus selection event based on an auxiliary process in the operating system, and sending the second focus selection event to the background service application through the auxiliary process; Obtaining the first focus coordinates before switching the focus, and obtaining the second focus coordinates after switching the focus; A focus switching animation is generated according to the first focus coordinates and the second focus coordinates, and the display is controlled to display the focus switching animation in the media resource page.

2. The display device according to claim 1, characterized in that The controller is further configured to: In response to a power-on instruction of the display device, creating a preset service through the background service application, wherein the preset service is used to execute an auxiliary process of the operating system; The interface operation events generated in the operating system are monitored through the preset service.

3. The display device according to claim 2, characterized in that The controller is further configured to: Generate the interface operation event of the media resource page based on the operating system; Receiving the interface operation event through the auxiliary process; Registering the auxiliary process through the preset service; The interface operation event is sent to the background service application through the auxiliary process.

4. The display device according to claim 2, characterized in that The controller controls the display to display a first reminder icon at a preset position of the recommended position, and is further configured to: Get the first focus selection event; Extracting the focus information and control information included in the first focus selection event; Acquire the recommended position selected by the first focus selection event according to the focus information and the control information; Acquire the preset corner point coordinates according to the recommended position; The display is controlled to display the first reminder icon at the position of the preset corner point coordinates.

5. The display device according to claim 4, characterized in that The controller generates a focus switching animation according to the first focus coordinate and the second focus coordinate, and is further configured to: Acquire the first focus coordinates and the second focus coordinates; Get the curve order of the Bezier curve of the focus switching animation; Determining the number of transition points included in the Bezier curve according to the curve order; Generate a curve animation trajectory according to the first focal point coordinates, the second focal point coordinates and the number of points; The motion frames of the focus mark picture are set according to the curve animation track to generate a focus switching animation.

6. The display device according to claim 5, characterized in that The controller controls the display to display the focus switching animation in the media resource page, and is further configured to: Acquire a dynamic target control displayed in the media resource page; the dynamic target control includes an initial size and a target size during a focus switching process; The target size is the same as the initial size in the first direction, and the target size in the second direction is a preset ratio of the initial size in the second direction; the first direction is perpendicular to the second direction; Setting the initial size to a default value of the dynamic target control; When the focus of the recommendation position is switched in the media resource page, the first recommendation position selected by the first focus selection event is obtained and the dynamic target control is displayed at a preset focus position of the first recommendation position; Control the dynamic target control to move along the curve animation trajectory; wherein the size of the dynamic target control at the first focus coordinate and the second focus coordinate of the curve animation trajectory is the initial size, and the size outside the first focus coordinate and the second focus coordinate of the curve animation trajectory is the target size.

7. The display device according to claim 6, characterized in that The controller is further configured to: Monitoring the scrolling state of the media resource page; the scrolling state includes a vertical scrolling state; When the vertical scrolling state is not detected, executing the step of controlling the display to display the focus switching animation in the media resource page; After monitoring the vertical scrolling state, controlling the display to stop playing the focus switching animation; canceling display of the dynamic target control at the first focus coordinates; After no page scrolling event is received within a preset time interval, the second focus coordinates after switching the focus are obtained, and the icon corresponding to the dynamic target control is displayed at a preset corner point of the second recommendation position selected by the second focus selection event.

8. The display device according to claim 7, characterized in that The scrolling state also includes a horizontal scrolling state, and the controller is further configured to: When the horizontal scrolling state is not detected, executing the step of controlling the display to display the focus switching animation in the media resource page; After monitoring the horizontal scrolling state, canceling the display of the dynamic target control at the start of scrolling; After no page scrolling event is received within a preset time interval, the second focus coordinates are acquired, and an icon corresponding to the dynamic target control is displayed at a preset corner point of the second recommendation position.

9. The display device according to claim 1, characterized in that The controller is further configured to: Setting a unified focus style through the background service application; sending the focus style to the audio and video application; In response to the first focus selection event or the second focus selection event, the background service application is controlled to add the focus style to the recommendation position selected by the first focus selection event or the recommendation position selected by the second focus selection event, so as to unify the focus style of the audio and video application through the background service application.

10. A method for defocusing a focus, characterized in that: The display device according to any one of claims 1 to 9, wherein the display device comprises a display and a controller, and the method for defocusing the focus comprises: Generate a first focus selection event of a recommended position in a media resource page based on an operating system; the media resource page is a page presented after starting an audio and video application; receiving the first focus selection event through an auxiliary process in the operating system, and sending the first focus selection event to a background service application through the auxiliary process; the background service application is an application that has registered the auxiliary process; When the execution number of the first focus selection event is equal to a preset number, controlling the display to display a first reminder icon at a preset position of the recommendation position; When switching the focus of the recommendation position in the media resource page, generating a second focus selection event based on the operating system; receiving the second focus selection event based on an auxiliary process in the operating system, and sending the second focus selection event to the background service application through the auxiliary process; Obtaining the first focus coordinates before switching the focus, and obtaining the second focus coordinates after switching the focus; A focus switching animation is generated according to the first focus coordinates and the second focus coordinates, and the display is controlled to display the focus switching animation in the media resource page.

Citation Information

Patent Citations

  • Animation display method, terminal and computer readable storage medium

    CN107329649A

  • Focus control method of smart television, smart television and storage medium

    CN111010601A

  • Method of acquiring and moving focus in IPTV

    CN111586462A

  • Systems, methods, and user interfaces for interacting with multiple application windows

    CN112346802A

  • Screen focus moving display method, display equipment and storage medium

    CN112351347A