A display method, apparatus and electronic device
Patent Information
- Application Number
- CN202410571733.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2044-05-09
AI Technical Summary
随着版本迭代和需求的增加,终端配合开发实现成本越来越高,维护成本也越来越大
[0017]本公开提供的技术方案与现有技术相比具有如下优点:
Smart Images

Figure CN119420985B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more particularly to a display method, apparatus, and electronic device. Background Technology
[0002] At the consumer electronics terminal product level, in order to seize the user market, operations / design will design different list media asset styles to meet the needs of displaying different media asset data, in order to attract users to click / browse the corresponding list media asset information, thereby achieving the effect of driving traffic to the media assets.
[0003] Under the existing technological framework, most internet companies bypassing the over-the-top (OTT) telecom operator (OTT) domain update and launch their interfaces through iterative new version development. The typical workflow involves operations / product personnel informing developers of the new interface version via a user experience (UX) prototype. Developers then code the interface based on the UX prototype and release / hot-update it to the user. Users then need to download and install the app to experience the new version, achieving the objectives of operations / product personnel. However, with increasing version iterations and growing requirements, the cost of developing and implementing this solution in conjunction with terminal development is rising, as are maintenance costs.
[0004] Therefore, how to improve the presentation style of media assets while reducing maintenance costs has become an urgent problem to be solved. Summary of the Invention
[0005] To address the aforementioned technical problems, this disclosure provides a display method, apparatus, and electronic device.
[0006] The technical solution disclosed herein is as follows: In a first aspect, this disclosure provides a display device, comprising: a processor configured to control a communicator to send acquisition information for acquiring homepage data in response to a power-on operation; the communicator configured to receive homepage data; wherein the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to a theoretical template identifier and a media asset information; the processor is further configured to acquire, based on the homepage data received by the communicator, a theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media asset information corresponding to the theoretical template identifier; the processor is further configured to render the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media asset information corresponding to the theoretical template identifier, to generate homepage display data.
[0007] Secondly, this disclosure provides a media asset server, including: a communicator configured to receive acquisition information for acquiring homepage data; and a processor configured to control the communicator to send homepage data after receiving the acquisition information; wherein the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information.
[0008] Thirdly, this disclosure provides a display method, comprising: in response to a power-on operation, sending acquisition information for acquiring homepage data; receiving homepage data; wherein the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information; based on the homepage data, acquiring a theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, and the media asset information corresponding to the theoretical template identifier; rendering the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, and the media asset information corresponding to the theoretical template identifier, to generate homepage display data.
[0009] Fourthly, this disclosure provides a display method, including: receiving acquisition information for acquiring homepage data; sending homepage data; wherein the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information.
[0010] Fifthly, the present invention provides a computer-readable storage medium comprising: storing a computer program on the computer-readable storage medium, the computer program being executed by a processor as a display method as described in the third aspect or any of the provided embodiments.
[0011] In a sixth aspect, the present invention provides a computer program product that, when run on a computer, causes the computer to perform a display method as provided in either the third or fourth aspect.
[0012] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on the first computer-readable storage medium. The first computer-readable storage medium may be packaged together with the processor of the electronic device, or it may be packaged separately from the processor of the electronic device; this disclosure does not impose any limitations on this.
[0013] The descriptions of the third, fifth, and sixth aspects in this disclosure can be referenced to the detailed description of the first aspect; and the beneficial effects of the descriptions of the third, fifth, and sixth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0014] The descriptions of the fourth, fifth, and sixth aspects in this disclosure can be referenced to the detailed description of the first aspect; and the beneficial effects of the descriptions of the fourth, fifth, and sixth aspects can be referenced to the analysis of the beneficial effects of the second aspect, which will not be repeated here.
[0015] In this disclosure, the names of the aforementioned display devices or media asset servers do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of this disclosure, they fall within the scope of the claims of this disclosure and their equivalents.
[0016] These or other aspects of this disclosure will become more readily apparent in the following description.
[0017] The technical solution provided in this disclosure has the following advantages compared with the prior art: The display method disclosed herein, in response to a power-on operation, sends acquisition information for obtaining homepage data and receives homepage data. Since the homepage data includes template information and media asset information corresponding to different device models, with each template information corresponding to a theoretical template identifier and a media asset information, it is possible to obtain, based on the homepage data, the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, and the corresponding media asset information. Therefore, each display device can select its own displayable actual template identifier, filter the homepage data for the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, and the corresponding media asset information, updating the media asset display style without software upgrades. Then, the theoretical template identifier that is the same as the currently displayable actual template identifier, and the corresponding media asset information, are rendered to generate homepage display data. Thus, when a user needs to display the homepage, the homepage can be displayed based on the homepage display data. Since only the template information and media assets in the homepage data need to be updated, different devices can update the corresponding media asset display style. This is a solution that can be compared with software version updates to update the media asset display style, which can reduce maintenance costs and improve the media asset display style at the same time. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A schematic diagram of a scenario for the display method provided in an embodiment of this application; Figure 2 This is one of the structural schematic diagrams of the display device provided in the embodiments of this application; Figure 3 This is a second schematic diagram of the structure of the display device provided in the embodiments of this application; Figure 4 One of the flowcharts of the display method provided in the embodiments of this application; Figure 5 A schematic diagram of a scenario for the display method provided in an embodiment of this application; Figure 6 A second schematic flowchart illustrating the display method provided in an embodiment of this application; Figure 7 The third schematic flowchart of the display method provided in the embodiments of this application; Figure 8 The fourth schematic flowchart of the display method provided in the embodiments of this application; Figure 9 Fifth schematic flowchart of the display method provided in the embodiments of this application; Figure 10 This is the sixth flowchart illustrating the display method provided in the embodiments of this application. Detailed Implementation
[0021] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0022] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0023] The display device provided in this application can have various implementation forms, such as a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is one specific embodiment of the display device of this application.
[0024] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0025] Figure 1 This is a schematic diagram illustrating an operational scenario between a home appliance and a control device according to one or more embodiments of this application, such as... Figure 1 As shown, a user can operate the display device 200 via a mobile terminal 300 and / or a control device 100. The control device 100 can be a remote control, and communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless, or other wired methods to control the display device 200. The user can input user commands through buttons on the remote control, voice input, control panel input, etc., to control the display device 200. In some embodiments, a mobile terminal, tablet computer, computer, laptop computer, and other smart devices can also be used to control the display device 200.
[0026] In some embodiments, the electronic device provided in this application can be the display device 200 described above. After the display device 200 is powered on, it responds to the power-on operation by sending acquisition information to the media asset server 400 for obtaining homepage data. This acquisition information includes the device identifier of the display device 200, such as a device identification code. After receiving the acquisition information sent by the display device 200, the media asset server 400 sends homepage data to the display device 200 corresponding to the device identifier. The display device 200 receives the homepage data sent by the media asset server 400; the homepage data includes template information and media asset information corresponding to different device models, with one template information corresponding to one theoretical template identifier and one media asset information. Based on the homepage data, the display device 200 acquires a theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, and the media asset information corresponding to the theoretical template identifier. The display device 200 renders the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, and the media asset information corresponding to the theoretical template identifier, to generate homepage display data.
[0027] Figure 2 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown. For example... Figure 2 The display device 200 shown includes at least one of the following: a tuner / demodulator 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 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to nth interface for input / output. The display 260 may be a touch-enabled display, such as a touch screen display. The detector 230 is used to acquire signals from the external environment or for interaction with the external environment.
[0028] 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 memory. The controller 250 controls the overall operation of the display device 200.
[0029] In some examples, the display device 200 of one or more embodiments is a television set 1, and the operating system of the television set 1 is the Android system, for example... Figure 3 As shown, TV 1 can be logically divided into an application layer (referred to as "application layer") 21, an application framework layer (referred to as "framework layer") 22, an Android runtime and system library layer (referred to as "system runtime library layer") 23, and a kernel layer 24.
[0030] The application layer 21 includes one or more applications. These applications can be system applications or third-party applications. For example, application layer 21 may include a first application that provides multimedia resource playback functionality. The framework layer 22 provides application programming interfaces (APIs) and programming frameworks for the applications in application layer 21. The system runtime library layer 23 provides support for the upper layer, namely the framework layer 22. When the framework layer 22 is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer 23 to implement the functions required by the framework layer 22. The kernel layer 24 acts as software middleware between the hardware layer and application layer 21, managing and controlling hardware and software resources.
[0031] In some examples, after TV 1 is powered on, its intermediate processing unit 201 responds to the power-on operation by controlling the transceiver unit 202 to send acquisition information for obtaining homepage data to the media asset server 400. This acquisition information includes the device identifier of TV 1, such as a device identification code. After receiving the acquisition information from the display device 200, the transceiver unit 301 of the media asset server 400 sends homepage data to the TV 1 corresponding to that device identifier. The transceiver unit 202 of TV 1 receives the homepage data sent by the media asset server 400; this homepage data includes template information and media asset information corresponding to different device models, with one template information corresponding to one theoretical template identifier and one media asset information. Based on the homepage data received by the transceiver unit 202, the processing unit 201 of TV 1 acquires the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, as well as the media asset information corresponding to the theoretical template identifier. The processing unit 201 of TV 1 renders the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media asset information corresponding to the theoretical template identifier, generating homepage display data. Subsequently, when the user needs to view the homepage, the processing unit of the TV 1 responds to the selection operation of the homepage and controls the display unit 203 to display the homepage according to the homepage display data.
[0032] Specifically, when the executing entity of the display method provided in this embodiment is a television set 1, the storage unit 204 of the television set 1 is used to store data such as program code of the display method provided in this embodiment.
[0033] In the following embodiments, the television set 1 described above is used as the execution subject for the display method provided in the embodiments of this disclosure to illustrate the method of this application.
[0034] This application provides a display method applied to a television set 1, such as... Figure 4 As shown, the display method may include S11-S14.
[0035] S11. In response to the power-on operation, send a retrieval message for obtaining homepage data.
[0036] In some examples, TV 1 (home screen) requests dynamic layout configuration information from the system upon startup and saves it locally.
[0037] In some examples, after TV 1 is powered on, it requests homepage data from the media asset server to ensure that TV 1 can display the homepage correctly. The media asset server sends template information / media asset information configured for different TV models to the terminal. The template information data structure includes "template ID", "template width and template height", and the media asset information data structure includes "template ID", "template width and height", "number of multimedia files", "width and height of multimedia files", "media asset ID corresponding to the multimedia file", "media asset index", "absolute coordinates x of the multimedia file", and "absolute coordinates y of the multimedia file", etc.
[0038] In some examples, operations and maintenance personnel can edit template configuration files through the OP visualization platform to generate template information and media asset information corresponding to the model information. Then, the OP visualization platform sends the updated template information and corresponding media asset information to the media asset server. The media asset server updates the homepage data with the template information and corresponding media asset information sent by the OP visualization platform, thus updating the homepage data stored on the media asset server.
[0039] For example, the process of generating template information is as follows: Figure 5 As shown.
[0040] S12. Receive homepage data; wherein, the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information.
[0041] In some examples, a template information contains at least one recommendation slot, and the number of recommendation slots varies between different template information; a media asset information contains at least one multimedia file that needs to be recommended; a recommendation slot can display one multimedia file.
[0042] S13. Based on the homepage data, obtain the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, as well as the media asset information corresponding to the theoretical template identifier.
[0043] In some examples, different TV models display different template information on the homepage, meaning that different TV models have different numbers of featured slots on the homepage.
[0044] For example, suppose the homepage data contains three template information items: Template Information 1, Template Information 2, and Template Information 3. The theoretical template identifier corresponding to Template Information 1 is Identifier 1, the theoretical template identifier corresponding to Template Information 2 is Identifier 2, and the theoretical template identifier corresponding to Template Information 3 is Identifier 3. Template Information 1 contains one recommendation slot, Template Information 2 contains two recommendation slots, and Template Information 3 contains three recommendation slots. The media asset information corresponding to Template Information 1 contains Multimedia File 1, Multimedia File 2, and Multimedia File 3; the media asset information corresponding to Template Information 2 contains Multimedia File 4, Multimedia File 5, Multimedia File 6, and Multimedia File 7; and the media asset information corresponding to Template Information 3 contains Multimedia File 8, Multimedia File 9, Multimedia File 10, Multimedia File 11, and Multimedia File 12.
[0045] When the actual template identifier corresponding to the template information displayed on the homepage of TV 1 is identifier 1, TV 1 can obtain the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device based on the homepage data. If the theoretical template identifier corresponding to template information 1 is the same as the actual template identifier corresponding to the template information displayed on the homepage of TV 1, then rendering can be performed based on template information 1 and the media asset information corresponding to template information 1 to generate homepage display data.
[0046] In some examples, when rendering and generating homepage display data based on template information 1 and its corresponding media asset information, TV 1 first determines the multimedia file to be displayed in the recommended slot in template information 1. For example, template information 1 contains one recommended slot, and the media asset information corresponding to template information 1 includes multimedia file 1, multimedia file 2, and multimedia file 3. At this point, TV 1 can randomly select one multimedia file from multimedia file 1, multimedia file 2, and multimedia file 3 as the multimedia file to be displayed in the recommended slot in template information 1. If the randomly selected multimedia file is multimedia file 1, then multimedia file 1 is bound to the recommended slot in template information 1. Afterwards, TV 1 renders and generates homepage display data based on the width, height, absolute x-coordinate, and absolute y-coordinate of the multimedia file corresponding to multimedia file 1.
[0047] In some examples, when rendering homepage display data based on template information 1 and its corresponding media asset information, TV 1 first determines the multimedia files to be displayed in the recommended slots of template information 1. For example, template information 1 contains one recommended slot, and the media asset information corresponding to template information 1 includes multimedia file 1, multimedia file 2, and multimedia file 3. Then, TV 1 scores the multimedia files included in the media asset information corresponding to the template information based on a scoring model, obtaining a score for each multimedia file. Afterwards, the scores are sorted, and the top N multimedia files are sequentially bound to the recommended slots of the template information. Rendering is then performed based on the width, height, absolute x-coordinate, and absolute y-coordinate of each of the top N multimedia files to generate the homepage display data.
[0048] The training process of the scoring model includes: Obtain training sample data and the labeling results of the training sample data. The training sample data includes the playback duration of multimedia files viewed by the user in the past, and the labeling results include the scores of the multimedia files viewed by the user in the past, where the score is equal to the playback duration.
[0049] The training sample data is input into the neural network model for learning, and the prediction results of the neural network model on the training sample data are obtained.
[0050] Based on the prediction and labeling results, the network parameters of the neural network model are adjusted until the neural network model converges, resulting in a scoring model.
[0051] When the template information contains only one recommendation slot and multiple multimedia files with the same score, the multimedia file with the smallest difference between the release date and the current date can be used as the recommended multimedia file for display.
[0052] S14. Render the theoretical template identifier that is the same as the currently displayable actual template identifier, as well as the media asset information corresponding to the theoretical template identifier, to generate homepage display data.
[0053] In some examples, TV 1 binds the recommended positions and media asset information in the template information corresponding to the theoretical template identifier that is the same as the actual template identifier that can be displayed one by one, dynamically creates a template list TemplateList[], generates a dynamic component dynamicLayout, and adds it to the homepage.
[0054] TV 1 uses a template framework to draw the required template information (media asset information) and transforms it into the drawing of recommendation positions (media asset posters) and the click logic of related businesses, drawing the relevant logic of the framework. For example, TV 1's template framework obtains homepage data (e.g., parser data) through the homepage framework. The template framework converts the parser data into template information and filters it, such as parsing the homepage data to determine the actual template identifier corresponding to each template information contained in the parser data. Then, based on the homepage data, the template framework obtains the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, thus completing the adaptive template process, i.e., filtering the template information in the parser data. Then, the template information corresponding to the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device is stored in the template map. Then, the template framework sends the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device to the homepage framework. Based on the theoretical template identifier sent by the template framework, the homepage framework determines the media asset information corresponding to the theoretical template identifier (e.g., querying the parser data based on the theoretical template identifier to obtain the template information that is the same as the theoretical template identifier). Next, the homepage framework binds the template information corresponding to the theoretical template identifier sent by the template framework with the media asset information corresponding to the theoretical template identifier, obtaining a binding list. The homepage framework then sends this binding list to the template framework. Based on the binding list, the template framework combines the theoretical template identifier in the binding list with the multimedia file displayed in each recommendation slot of the template information corresponding to that theoretical template identifier into a target identifier, and asynchronously and dynamically creates a template container for rendering the multimedia file displayed in each recommendation slot corresponding to that target identifier.
[0055] In some examples, the template framework of TV 1 is mainly divided into two modules: a parsing module and a rendering module. The parsing module is mainly responsible for obtaining the absolute position pos (including the absolute coordinates x and y of the recommendation position) and the index of the recommendation position in the template information of each dynamic template information according to the protocol agreed upon by the TV and the media asset server (such as JSON protocol). It converts these into a class structure and saves it to temporary memory. At the same time, it saves the array ItemplateList.class corresponding to at least one template information supported by the parsed template framework to the factory class TemplateFactory to wait for data matching and activation. After matching the theoretical template identifier that is the same as the actual template identifier in the home page data, the rendering module renders the theoretical template identifier that is the same as the currently displayable actual template identifier, as well as the media asset information corresponding to the theoretical template identifier, to generate the home page display data.
[0056] The rendering module is responsible for binding the relationships between dynamically loaded page layouts and drawing elements (e.g., binding multimedia files with recommended positions in template information), adding drawing elements and components to the host container (TemplateView), creating corresponding Views and adding them to the homepage display list RecyclerView, and using the RecyclerView's ability to display ItemViews through lifecycle callbacks and behaviors such as onBind / onCreate / reUse / updateView to complete the dynamic updating and display of media asset information.
[0057] In some examples, the network architecture of the display method provided in this disclosure includes a terminal (such as a television set), a system (such as a media asset server), and an OP (used to orchestrate the media asset information corresponding to each template information, as well as the number of recommendation slots contained in each template information, etc.).
[0058] The terminal includes a template parsing module, a template rendering module, a template display module, and a template management module. The template parsing module primarily parses and constructs the template information sent from the system. It loads the compiled binary template information into memory using a JsonParser loader, extracts the necessary resources through its binary parsing module, and extracts objects (such as...) through its drawing element parsing module, preparing them for the rendering module. The rendering module dynamically loads the correspondence between page layouts and drawing elements (e.g., the binding relationship between multimedia files and template information recommendations), adding drawing elements and components to the host container (TemplateView). This module needs built-in native components such as text, images, and shapes; native layouts such as linear layout and absolute layout; and a series of canvas and layout supports for constructing native layouts using Canvas / Layout. The basic implementation is completed, and finally, the template construction factory loads and constructs the template components. It selects and parses the obtained resources and objects, mounts the business components into the host container, and then the host container enters the template display module. The template display module mainly relies on the capabilities of ItemView in RecyclerView to provide implementations and behaviors such as onBind / onCreate / reUse / updateView for templates, thereby completing the dynamic update and display of the host container. The template management mainly manages the events, components, and drawing elements within the template in a unified manner. It mainly registers external events, such as Click, EventCode, and event tracking, into the template management system, and then the template management system distributes them layer by layer to the corresponding components / drawing elements for callback processing. It also performs reuse and recycling processing on the components / containers within the template. When the page shows a template or the scrolling template disappears, it dynamically manages the template contents / components to reduce performance consumption.
[0059] The system's functions include: 1. Store and dynamically update template information of different types; 2. Based on the field content configured in the OP, the template information and media asset data are uniformly distributed to the terminal for processing; 3. When template information is updated, distinguish the version number of different template information, and support OP to report binary compilation templates to be stored on the system and the version number is incremented by 1; 4. The open template information reporting interface and the feature of distinguishing and obtaining corresponding version data support version compatibility in template information.
[0060] The functions of OP include: 1. Generate dynamic user interface (UI) component templates from visual templates using Extensible Markup Language (XML); 2. Convert the XML into binary JSON configuration data; 3. After being reported to the system, the data is dynamically stored and type-bound.
[0061] In some examples, the television provided in this embodiment of the invention mainly performs the following three processes: I. System-side template list data caching and updating (including adding, deleting, and modifying) 1. The terminal preloads dynamic layout configuration files (such as homepage data) obtained from the system.
[0062] 2. During the terminal boot / initialization phase, a JSON file is read and saved to temporary memory. For example, if the terminal's operating system is Android, the terminal's Android Studio Gradle retrieves a list of JSON templates stored at a fixed URL. The terminal then caches this JSON template list in the assets directory / buildconfig. Later, during the boot / plugin installation phase, the homepage initialization uses I / O to read and parse the JSON template list. If the terminal determines that no theoretical template identifier in the JSON template list matches the currently displayable template identifier, templates that do not support dynamic layouts are not displayed. The terminal then requests the latest homepage data from the system. This ensures that when the terminal re-initiates a request to refresh the JSON file after a delay of M minutes (e.g., 2 minutes), it needs to confirm whether a data refresh is triggered (if a refresh is needed, the homepage data will be reloaded on the next boot; otherwise, it will not). Alternatively, if the terminal determines that a theoretical template identifier in the JSON template list matches the currently displayable template identifier, it saves a map of the template information to temporary memory.
[0063] 3. After a delay of M minutes (e.g., 2 minutes), the terminal re-sends a request to the system to refresh the JSON file to update the homepage data to the latest version. This ensures that the homepage data configured by the operator (OP) is synchronized with the latest version. At the same time, it compares the original dynamic layout configuration file. If the timestamp is updated, it is saved to the terminal's cache. On the next boot, the latest cached configuration information is read first to prevent repeated readings. For example, when the terminal re-sends a request to the system to refresh the JSON template list after a delay of M minutes (e.g., 2 minutes), if it is confirmed that the homepage has triggered a data refresh, the homepage data will be reloaded on the next boot; if it is confirmed that the homepage has not triggered a data refresh, the homepage data will not be reloaded on the next boot.
[0064] II. Data Parsing and Matching 1. The terminal adds the configuration file saved during the first boot to the parsing and management class through the template framework; 2. The parsing management class retrieves the absolute position (pos) and index of the recommendation slot in each template according to the JSON parsing protocol and saves them to temporary memory; 3. Save the parsed array to the factory class for the next matching activation. After the homepage data in the operation configuration matches the corresponding template ID, execute the template (media asset list) rendering and display. For example, the terminal adds the JSON template list in temporary memory to the parsing management class via MdExtend, and in the parsing management class, parses each template information according to the protocol to obtain the absolute position pos and index of each recommendation position contained in the template information. Then, store the interest-calculated collection in the Factory, and initialize DEFALUT_CREATOR to determine whether dynamic layout type is needed. If dynamic layout type is not needed, no operation is required; if dynamic layout type is needed, enter the template (media asset list) rendering and display process. Here, type is a field that identifies the fixed static layout of the terminal and the dynamic layout issued by the system, used to distinguish whether parsing is required.
[0065] III. Template (Media Asset List) Rendering and Display 1. The terminal loads and creates the required media asset view through the LayoutInflator layout loader provided by Android, and completes the dynamic layout creation and media asset (recommendation slot) initialization during the home page initialization phase; 2. After the homepage initializes and creates the list RecyclerView, the parsing of the homepage data and the filling of template (media asset list) information are completed in the onBindViewHolder lifecycle method of creating the bound View; 3. The homepage displays configured media asset information and a list of templates on the terminal screen according to operational needs. For example, when dynamic layout types are required, the terminal asynchronously loads and creates the necessary template information views via LayoutInflator. The map layout creation and recommendation slot initialization are completed in the onCreateViewHolder stage, followed by rendering. Similarly, the homepage data parsing, template title, width and height settings, and recommendation slot Info population are completed in the onBindViewHolder stage. Afterwards, the homepage is constructed, and when the TemplateRecyclerView displays the corresponding count data, the corresponding template information is loaded sequentially and displayed on the terminal screen.
[0066] As described above, the display device provided in this embodiment responds to a power-on operation by sending acquisition information for obtaining homepage data; the display device then receives the homepage data. Since the homepage data includes template information and media asset information corresponding to different device models, with one template information corresponding to one theoretical template identifier and one media asset information, it is possible to obtain, based on the homepage data, the theoretical template identifier that is the same as the actual template identifier that the current device can display, and the media asset information corresponding to the theoretical template identifier. Therefore, each display device can identify its own displayable actual template identifier, filter the homepage data for the theoretical template identifier that is the same as the actual template identifier that the current device can display, and the media asset information corresponding to the theoretical template identifier, updating the display style of the media assets without software upgrades. Afterwards, the display device renders the theoretical template identifier that is the same as the currently displayable actual template identifier, and the media asset information corresponding to the theoretical template identifier, generating homepage display data. Thus, when a user needs to display the homepage, the homepage can be displayed based on the homepage display data. Since only the template information and media assets in the homepage data need to be updated, different devices can update the corresponding media asset display style. This reduces maintenance costs compared to updating the media asset display style by updating the software version.
[0067] In some feasible examples, combining Figure 4 ,like Figure 6 As shown, the display method provided in this embodiment further includes S15.
[0068] S15. In response to the selection of the homepage, display the homepage according to the homepage display data.
[0069] In some examples, users can view the latest media assets by turning on their TV and checking the homepage, thus generating views and clicks for the media assets.
[0070] In some feasible examples, combining Figure 4 ,like Figure 7As shown, the above S13 can be implemented by the following S130-S132.
[0071] S130. Parse the homepage data according to the preset protocol to obtain the template information and media asset information contained in the homepage data; S131. Perform class structure conversion on the model information and media asset information to obtain the type structure data corresponding to the model information and media asset information, and save the class structure data to temporary memory; S132. Filter the temporary memory according to the actual template identifier that can be displayed by the current device to obtain the theoretical template identifier that is the same as the actual template identifier, as well as the media asset information corresponding to the theoretical template identifier.
[0072] In some feasible examples, combining Figure 4 ,like Figure 8 As shown, the above S14 can be implemented by the following S140-S142.
[0073] S140. Obtain template information corresponding to the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device.
[0074] S141. Perform the following operations on each template information: Based on the media asset information corresponding to the theoretical template identifier that is the same as the currently displayable actual template identifier, bind the recommendation in the template information to determine the media asset information displayed in each recommendation position; render the media asset information displayed in each recommendation position to generate the actual display data corresponding to the template information.
[0075] S142. Generate homepage display data based on actual display data.
[0076] This application provides a display method applied to a television set 1, such as... Figure 9 As shown, the display method may include S20 and S21.
[0077] S20. Receive acquisition information for obtaining homepage data; S21. Send homepage data; the homepage data includes template information and media asset information corresponding to different device models. One template information corresponds to one theoretical template identifier and one media asset information.
[0078] In some feasible examples, combining Figure 9 ,like Figure 10 As shown, the display method provided in this embodiment of the present disclosure further includes: S22 and S23.
[0079] S22. Obtain template information and the corresponding media asset information; wherein, the media asset information is configured based on current trends or user preferences; S23. Save the template information and the corresponding media asset information to the local machine.
[0080] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0081] This application embodiment can divide the display device or media asset server into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing unit. The integrated modules can be implemented in hardware or as software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0082] An embodiment of this application provides a schematic diagram of the structure of a display device 200, including a processor 101, a communicator 102, and a display 103.
[0083] Processor 101 is configured to control communicator 102 to send acquisition information for acquiring homepage data in response to a power-on operation; communicator 102 is configured to receive homepage data; wherein, the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information; processor 101 is also configured to acquire, based on the homepage data received by communicator 102, a theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media asset information corresponding to the theoretical template identifier; processor 101 is also configured to render the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media asset information corresponding to the theoretical template identifier, to generate homepage display data.
[0084] In some feasible examples, processor 101 is also configured to control display 103 to display the homepage according to the homepage display data in response to a selection operation on the homepage.
[0085] In some implementable examples, processor 101 is further configured to acquire template information corresponding to a theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device; processor 101 is further configured to perform the following operations on each template information: based on the media asset information corresponding to the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, bind the recommendation in the template information to determine the media asset information displayed in each recommendation position; render the media asset information displayed in each recommendation position to generate actual display data corresponding to the template information; processor 101 is further configured to generate homepage display data based on the actual display data.
[0086] In some feasible examples, processor 101 is further configured to parse the homepage data according to a preset protocol to obtain the template information and media asset information contained in the homepage data; processor 101 is further configured to perform class structure conversion on the model information and media asset information to obtain the type structure data corresponding to the model information and media asset information, and save the class structure data to temporary memory; processor 101 is further configured to filter in the temporary memory according to the actual template identifier that can be displayed by the current device to obtain the theoretical template identifier that is the same as the actual template identifier, and the media asset information corresponding to the theoretical template identifier.
[0087] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and their functions will not be repeated here.
[0088] Of course, the display device 200 provided in this application embodiment includes, but is not limited to, the modules described above. For example, the display device 200 may also include a memory 104. The memory 104 may be used to store the program code of the display device 200, and may also be used to store data generated by the display device 200 during operation, such as data in write requests.
[0089] As an example, combined Figure 4 The acquisition unit 202 in the display device 200 performs the same function as the communicator 102, the processing unit 201 performs the same function as the processor 101, the display unit 203 performs the same function as the display 103, and the storage unit 204 performs the same function as the memory 104.
[0090] This application also provides a chip system that can be applied to the display device 200 in the foregoing embodiments. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 may be the processor in the display device 200. The processor 1501 and the interface circuit 1502 are interconnected via a circuit. The processor 1501 can receive and execute computer instructions from the memory of the display device 200 through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the display device 200 can perform the various steps performed by the display device 200 in the foregoing embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.
[0091] This application also provides a computer-readable storage medium for storing computer instructions executed by the display device 200.
[0092] This application provides a schematic diagram of the structure of a media asset server 400, including a communicator 201 and a processor 202.
[0093] Communicator 201 is configured to receive acquisition information for acquiring homepage data; The processor 202 is configured to control the communicator 201 to send home page data after the communicator 201 receives the acquisition information; wherein, the home page data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information.
[0094] In some implementable examples, the communicator 201 is also configured to acquire template information and media asset information corresponding to the template information; wherein the media asset information is configured based on current popularity or user preferences; the processor 202 is also configured to save the template information and media asset information corresponding to the template information received by the communicator 201 to the local machine.
[0095] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and their functions will not be repeated here.
[0096] Of course, the media asset server 400 provided in this application embodiment includes, but is not limited to, the modules described above. For example, the media asset server 400 may also include a memory 203. The memory 203 may be used to store the program code of the media asset server 400, and may also be used to store data generated by the media asset server 400 during operation, such as data in write requests.
[0097] As an example, combined Figure 4The transceiver unit 302 in the media asset server 400 performs the same function as the communicator 202, the processing unit 301 performs the same function as the processor 201, and the storage unit 303 performs the same function as the memory 203.
[0098] This application also provides a chip system that can be applied to the media asset server 400 in the foregoing embodiments. The chip system includes at least one processor 2501 and at least one interface circuit 2502. The processor 2501 can be the processor in the media asset server 400. The processor 2501 and the interface circuit 2502 can be interconnected via a line. The processor 2501 can receive and execute computer instructions from the memory of the media asset server 400 through the interface circuit 2502. When the computer instructions are executed by the processor 2501, the media asset server 400 can perform the various steps performed by the media asset server 400 in the foregoing embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.
[0099] This application also provides a computer-readable storage medium for storing computer instructions executed by the media asset server 400.
[0100] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A display device, characterized in that, include: The processor is configured to control the communicator to send acquisition information for retrieving homepage data in response to a power-on operation; The communicator is configured to receive homepage data; wherein, the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information; The processor is further configured to, based on the homepage data received by the communicator, obtain a theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and media asset information corresponding to the theoretical template identifier; The processor is also configured to render a theoretical template identifier that is the same as the currently displayable actual template identifier, and the media asset information corresponding to the theoretical template identifier, to generate homepage display data; The processor is further configured to parse the homepage data according to a preset protocol to obtain the template information and media asset information contained in the homepage data; The processor is further configured to perform class structure conversion on the model information and the media asset information to obtain type structure data corresponding to the model information and the media asset information, and save the class structure data to temporary memory; wherein, the media asset information is generated based on template information and model information; The processor is further configured to filter the temporary memory according to the actual template identifier that can be displayed by the current device, to obtain a theoretical template identifier that is the same as the actual template identifier, and media asset information corresponding to the theoretical template identifier.
2. The display device according to claim 1, characterized in that, include: The processor is also configured to control the display to show the homepage according to the homepage display data in response to a selection operation on the homepage.
3. The display device according to claim 1, characterized in that, The processor is further configured to acquire template information corresponding to a theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device; The processor is further configured to perform the following operation on each template information: based on the media asset information corresponding to the theoretical template identifier that is the same as the currently displayable actual template identifier, bind the recommendation position in the template information to determine the media asset information displayed in each recommendation position; Render the media asset information displayed in each of the recommended positions to generate the actual display data corresponding to the template information; The processor is further configured to generate homepage display data based on the actual display data.
4. A media asset server, characterized in that, include: The communicator is configured to receive acquisition information for retrieving homepage data; The processor is configured to control the communicator to send homepage data after the communicator receives the acquisition information; wherein the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information; wherein the acquisition process of the media asset information includes: The homepage data is parsed according to a preset protocol to obtain the template information and media asset information contained in the homepage data; The processor is further configured to perform class structure conversion on the model information and the media asset information to obtain type structure data corresponding to the model information and the media asset information, and save the class structure data to temporary memory; wherein, the media asset information is generated based on template information and model information; The processor is further configured to filter the temporary memory according to the actual template identifier that can be displayed by the current device, to obtain a theoretical template identifier that is the same as the actual template identifier, and media asset information corresponding to the theoretical template identifier.
5. The media asset server according to claim 4, characterized in that, The communicator is further configured to acquire template information and media asset information corresponding to the template information; wherein the media asset information is configured based on current trends or user preferences. The processor is further configured to save the template information received by the communicator and the media asset information corresponding to the template information to a local device.
6. A display method, characterized in that, include: In response to the power-on operation, a retrieval message is sent to obtain homepage data; Receive homepage data; wherein, the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information; Based on the homepage data, obtain the theoretical template identifier that is the same as the actual template identifier that can be displayed on the current device, and the media asset information corresponding to the theoretical template identifier; Render the theoretical template identifier that is identical to the currently displayable actual template identifier, and the media asset information corresponding to the theoretical template identifier, to generate homepage display data; wherein, the process of obtaining the media asset information includes: The homepage data is parsed according to a preset protocol to obtain the template information and media asset information contained in the homepage data; The model information and the media asset information are transformed into class structures to obtain type structure data corresponding to the model information and the media asset information, and the class structure data is saved to temporary memory; wherein, the media asset information is generated based on template information and model information; The temporary memory is filtered according to the actual template identifiers that can be displayed by the current device to obtain theoretical template identifiers that are the same as the actual template identifiers, as well as the media asset information corresponding to the theoretical template identifiers.
7. The display method according to claim 6, characterized in that, include: In response to the selection of the homepage, the homepage is displayed according to the homepage display data.
8. A display method, characterized in that, include: Receive the information used to retrieve homepage data; Send homepage data; wherein, the homepage data includes template information and media asset information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media asset information; wherein, the process of obtaining the media asset information includes: The homepage data is parsed according to a preset protocol to obtain the template information and media asset information contained in the homepage data; The model information and the media asset information are transformed into class structures to obtain type structure data corresponding to the model information and the media asset information, and the class structure data is saved to temporary memory; wherein, the media asset information is generated based on template information and model information; The temporary memory is filtered according to the actual template identifiers that can be displayed by the current device to obtain theoretical template identifiers that are the same as the actual template identifiers, as well as the media asset information corresponding to the theoretical template identifiers.
9. A computer-readable storage medium, characterized in that, include: The computer-readable storage medium stores a computer program that, when executed by a computing device, causes the computing device to implement the display method of claim 6 or 7, or to implement the display method of claim 8.
Citation Information
Patent Citations
Set-top box desktop program upgrading method and apparatus
CN108363584A
Server, display device and media asset filtering method
CN114173176A