Display method and device and electronic equipment
By a method of obtaining and rendering home page data in the display device and media server, the problem of high maintenance cost of media display style updates in the prior art is solved, and efficient style updates and reduced maintenance costs are achieved.
Patent Information
- Application Number
- CN202410571733.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-05-09
AI Technical Summary
When the existing technology updates the media display style, maintenance costs are high, and terminal equipment can be increased in cooperation with development.
By a method of obtaining and rendering home page data in the display device and media server, including template information and media information corresponding to different device models, the display device allows the media display style to be updated without software upgrade.
It reduces maintenance costs, improves the efficiency of style updates for media displays, and avoids the high cost and complexity brought about by software version updates.
Smart Images

Figure CN119420985A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a display method, device and electronic device. Background Art
[0002] At the level of consumer electronics terminal products, in order to seize the user market, operations / design will design different list media styles to meet the needs of displaying different media data, to attract users to click / browse the corresponding list media information, thereby achieving the effect of attracting media traffic.
[0003] Under the existing technical framework, most Internet companies in the Over The Top (OTT) field update and launch interfaces by developing new versions of iterations. In general, the link is that the operation / product staff informs the R&D staff of the new version of the interface through the user experience (UX) prototype. The R&D staff codes the interface based on the UX prototype and releases / hot updates it to the user side. Users also need to download and install the new version to see the effect, so as to achieve the purpose of the operation / product staff. With the increase of version iterations and demands, the cost of terminal development and implementation is getting higher and higher, and the maintenance cost is also increasing.
[0004] Therefore, how to improve the display style of media assets while reducing maintenance costs has become an urgent problem to be solved. Summary of the invention
[0005] In order to solve the above technical problems, the present disclosure provides a display method, device and electronic device.
[0006] The technical solution of the present disclosure is as follows:
[0007] In a first aspect, the present disclosure provides a display device, comprising: a processor, configured to control a communicator to send acquisition information for acquiring home page data in response to a power-on operation; a communicator, configured to receive the home page data; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to a theoretical template identifier and a media information; the processor is also configured to acquire a theoretical template identifier that is identical to an actual template identifier that can be displayed by the current device, and media information corresponding to the theoretical template identifier, based on the home page data received by the communicator; the processor is also configured to render the theoretical template identifier that is identical to the actual template identifier that can be currently displayed, and the media information corresponding to the theoretical template identifier, to generate home page display data.
[0008] In a second aspect, the present disclosure provides a media resource server, comprising: a communicator, configured to receive acquisition information for acquiring home page data; a processor, configured to control the communicator to send the home page data after the communicator receives the acquisition information; wherein the home page data includes template information and media resource information corresponding to different device models, and one template information corresponds to a theoretical template identifier and one media resource information.
[0009] In a third aspect, the present disclosure provides a display method, comprising: in response to a power-on operation, sending acquisition information for acquiring home page data; receiving home page data; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to a theoretical template identifier and a media information; based on the home page data, acquiring a theoretical template identifier that is identical to an actual template identifier that can be displayed by the current device, and media information corresponding to the theoretical template identifier; rendering the theoretical template identifier that is identical to the actual template identifier that can be currently displayed, and the media information corresponding to the theoretical template identifier, to generate home page display data.
[0010] In a fourth aspect, the present disclosure provides a display method, including: receiving acquisition information for acquiring home page data; sending home page data; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to a theoretical template identifier and one media information.
[0011] In a fifth aspect, the present invention provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor such as the display method of the third aspect, or any one of the items provided.
[0012] In a sixth aspect, the present invention provides a computer program product, which, when executed on a computer, enables the computer to execute any one of the display methods provided in the third aspect or the fourth aspect.
[0013] It should be noted that the above computer instructions may be stored in whole or in part on a first computer-readable storage medium, wherein the first computer-readable storage medium may be packaged together with the processor of the electronic device, or may be packaged separately from the processor of the electronic device, which is not limited in the present disclosure.
[0014] The description of the third, fifth and sixth aspects in the present disclosure can refer to the detailed description of the first aspect; and the beneficial effects of the description of the third, fifth and sixth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0015] The description of the fourth, fifth and sixth aspects of the present disclosure may refer to the detailed description of the first aspect; and the beneficial effects of the description of the fourth, fifth and sixth aspects may refer to the beneficial effects analysis of the second aspect, which will not be repeated here.
[0016] In the present disclosure, the names of the above-mentioned display devices or media resource servers do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0017] These and other aspects of the present disclosure will become more apparent from the following description.
[0018] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0019] The display method provided by the present disclosure sends acquisition information for acquiring home page data in response to a power-on operation; and receives home page data. Since the home page data includes template information and media information corresponding to different device models, one template information corresponds to a theoretical template identifier and a media information; in this way, the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media information corresponding to the theoretical template identifier can be obtained based on the home page data. Thus, each display device can identify the actual template that it can display, and filter the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media information corresponding to the theoretical template identifier in the home page data, and the display style of the media can be updated without software upgrades. Afterwards, the theoretical template identifier that is the same as the actual template identifier that can be displayed currently, and the media information corresponding to the theoretical template identifier are rendered to generate home page display data. Thus, when the user needs to display the home page, the home page can be displayed based on the home page 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 styles, which can reduce maintenance costs compared to the solution of updating the media asset display style by updating the software version, thus solving the problem of improving the media asset display style while reducing maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 A schematic diagram of a scene of a display method provided in an embodiment of the present application;
[0023] Figure 2 One of the structural schematic diagrams of the display device provided in the embodiment of the present application;
[0024] Figure 3 A second structural schematic diagram of a display device provided in an embodiment of the present application;
[0025] Figure 4 One of the flow charts of the display method provided in the embodiment of the present application;
[0026] Figure 5 A schematic diagram of a scene of a display method provided in an embodiment of the present application;
[0027] Figure 6 The second flowchart of the display method provided in the embodiment of the present application;
[0028] Figure 7 The third flowchart of the display method provided in the embodiment of the present application;
[0029] Figure 8 A fourth flowchart of the display method provided in an embodiment of the present application;
[0030] Fig. 9 A fifth flow chart of the display method provided in the embodiment of the present application;
[0031] Fig.10 This is a sixth flow chart of the display method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0034] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart TV, a laser projection device, a monitor, an electronic whiteboard, an electronic table, etc. Figure 1 and Figure 2 This is a specific implementation of the display device of the present application.
[0035] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0036] Figure 1 is a schematic diagram of an operation scenario between a household appliance and a control device according to one or more embodiments of the present application, such as Figure 1 As shown, the user can operate the display device 200 through the mobile terminal 300 and / or the control device 100. The control device 100 can be a remote controller, and the communication between the remote controller 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 instructions through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, a mobile terminal, a tablet computer, a computer, a laptop computer, and other smart devices can also be used to control the display device 200.
[0037] In some embodiments, the electronic device provided in the embodiment of the present application may be the above-mentioned display device 200. After the display device 200 is turned on, the display device 200 responds to the power-on operation and sends acquisition information for acquiring home page data to the media resource server 400. The acquisition information includes the device identification of the display device 200, such as the device identification code. After receiving the acquisition information sent by the display device 200, the media resource server 400 sends the home page data to the display device 200 corresponding to the device identification. The display device 200 receives the home page data sent by the media resource server 400; wherein the home page data includes template information and media resource information corresponding to different device models, and one template information corresponds to one theoretical template identification and one media resource information; based on the home page data, the display device 200 acquires the theoretical template identification that is the same as the actual template identification that can be displayed by the current device, and the media resource information corresponding to the theoretical template identification; the display device 200 renders the theoretical template identification that is the same as the actual template identification that can be displayed currently, and the media resource information corresponding to the theoretical template identification, and generates home page display data.
[0038] Figure 2 FIG. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. Figure 2 The display device 200 shown 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 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The display 260 can be a display with a touch function, such as a touch display. The detector 230 is used to collect signals of the external environment or interaction with the outside.
[0039] 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.
[0040] In some examples, the display device 200 of one or more embodiments is a TV set 1, and the operating system of the TV set 1 is an Android system. Figure 3 As shown, the television 1 can be logically divided into an application layer (Applications) (referred to as "application layer") 21, an application framework layer (Application Framework) (referred to as "framework layer") 22, an Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer") 23, and a kernel layer 24.
[0041] Among them, the application layer 21 includes one or more applications. The application can be a system application or a third-party application. For example, the application layer 21 includes a first application, which is used to provide a playback function for multimedia resources. The framework layer 22 provides an application programming interface (API) and a programming framework for the application program of the application layer 21. The system runtime layer 23 provides support for the upper layer, namely the framework layer 22. When the framework layer 22 is used, the Android operating system will run the C / C++ library contained in the system runtime layer 23 to implement the functions to be implemented by the framework layer 22. The kernel layer 24 serves as a software middleware between the hardware layer and the application layer 21, and is used to manage and control hardware and software resources.
[0042] In some examples, after the TV set 1 is turned on, the processing unit 201 of the TV set 1 controls the transceiver unit 202 to send acquisition information for acquiring home page data to the media server 400 in response to the power-on operation. The acquisition information includes the device identification of the TV set 1, such as the device identification code. After receiving the acquisition information sent by the display device 200, the transceiver unit 301 of the media server 400 sends the home page data to the TV set 1 corresponding to the device identification. The transceiver unit 202 of the TV set 1 receives the home page data sent by the media server 400; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to one theoretical template identification and one media information; the processing unit 201 of the TV set 1 receives 202 home page data of the transceiver unit, obtains the theoretical template identification that is the same as the actual template identification that can be displayed by the current device, and the media information corresponding to the theoretical template identification; the processing unit 201 of the TV set 1 renders the theoretical template identification that is the same as the actual template identification that can be displayed currently, and the media information corresponding to the theoretical template identification, and generates home page display data. Afterwards, when the user needs to view the home page, the processing unit of the television 1 controls the display unit 203 to display the home page according to the home page display data in response to the selection operation of the home page.
[0043] Specifically, when the subject that executes the display method provided by the embodiment of the present disclosure is the television 1, the storage unit 204 of the television 1 is used to store data such as the program code of the display method provided by the embodiment of the present disclosure.
[0044] In the following embodiments, the method of the embodiment of the present application is described by taking the television 1 as an example of an execution subject of the display method provided by the embodiment of the present disclosure.
[0045] The present application embodiment provides a display method, which is applied to a television set 1, such as Figure 4 As shown, the display method may include S11-S14.
[0046] S11. In response to a power-on operation, sending acquisition information for acquiring home page data.
[0047] In some examples, when TV 1 (home page) is turned on, it requests dynamic layout configuration information from the system and saves it locally.
[0048] In some examples, after the TV 1 is turned on, it requests the home page data of the home page from the media server to ensure that the TV 1 can display the home page normally. The media server sends the template information / media information of different models to the terminal; the data structure of the template information will include "template ID", "template width and template height", and the data structure of the media information will include "template ID", "template width and height", "number of multimedia files", "width of multimedia files and height of multimedia files", "media ID corresponding to multimedia files", "media index", "absolute coordinate x of multimedia files", "absolute coordinate y of multimedia files", etc.
[0049] In some examples, the operation and maintenance personnel can edit the template configuration file through the OP visualization platform to generate the template information and the media asset information corresponding to the model information. After that, the updated template information and the media asset information corresponding to the model information are sent to the media asset server through the OP visualization platform. The media asset server updates the media asset information corresponding to the template information and the model information sent by the OP visualization platform to the home page data, thereby realizing the update of the home page data stored in the media asset server.
[0050] Exemplarily, the template information generation process is as follows: Figure 5 shown.
[0051] S12. Receive home page data; 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.
[0052] In some examples, a template information includes at least one recommendation position, and different template information includes different numbers of recommendation positions; a media resource information includes at least one multimedia file to be recommended; and a recommendation position can display a multimedia file. S13. Based on the homepage data, obtain a theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media resource information corresponding to the theoretical template identifier.
[0053] In some examples, different device models of televisions display different template information on the homepage, that is, different device models of televisions display different numbers of recommendation positions on the homepage.
[0054] Exemplarily, it is assumed that the homepage data contains three template information, namely 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 position, template information 2 contains two recommendation positions, and template information 3 contains three recommendation positions. The media asset information corresponding to template information 1 contains multimedia files 1, multimedia files 2 and multimedia files 3, the media asset information corresponding to template information 2 contains multimedia files 4, multimedia files 5, multimedia files 6 and multimedia files 7, and the media asset information corresponding to template information 3 contains multimedia files 8, multimedia files 9, multimedia files 10, multimedia files 11 and multimedia files 12.
[0055] 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, rendering can be performed based on template information 1 and the media resource information corresponding to template information 1 to generate homepage display data.
[0056] In some examples, when rendering based on template information 1 and the media resource information corresponding to template information 1 to generate home page display data, TV set 1 first determines the multimedia file displayed in the recommended position in template information 1 based on template information 1 and the media resource information corresponding to template information 1, such as: template information 1 includes 1 recommended position, and the media resource information corresponding to template information 1 includes multimedia file 1, multimedia file 2, and multimedia file 3. At this time, TV set 1 can randomly select a multimedia file from multimedia file 1, multimedia file 2, and multimedia file 3 as the multimedia file displayed in the recommended position in template information 1. If the randomly selected multimedia file is multimedia file 1, multimedia file 1 is bound to the recommended position in template information 1. Then, TV set 1 renders based on the width of the multimedia file corresponding to multimedia file 1, the height of the multimedia file, the absolute coordinate x of the multimedia file, and the absolute coordinate y of the multimedia file to generate home page display data.
[0057] In some examples, when rendering based on template information 1 and the media resource information corresponding to template information 1 to generate home page display data, TV 1 first determines the multimedia files displayed in the recommended position in template information 1 based on template information 1 and the media resource information corresponding to template information 1, such as: template information 1 includes 1 recommended position, and the media resource information corresponding to template information 1 includes multimedia file 1, multimedia file 2, and multimedia file 3. At this time, TV 1 scores the multimedia files included in the media resource information corresponding to the template information based on the scoring model to obtain the score of each multimedia file. Afterwards, the multimedia files are sorted according to the scores, and the top N multimedia files are sequentially bound to the recommended position of the template information, and the rendering is performed based on the width of the multimedia file, the height of the multimedia file, the absolute coordinate x of the multimedia file, and the absolute coordinate y of the multimedia file corresponding to the top N multimedia files, respectively, to generate home page display data.
[0058] The training process of the scoring model includes:
[0059] The training sample data and the marking result of the training sample data are obtained, wherein the training sample data includes the playing time of the multimedia files that the user has watched in the past, and the marking result includes the score of the multimedia files that the user has watched in the past, and the score is equal to the playing time.
[0060] The training sample data is input into the neural network model for learning, and the prediction results of the neural network model for the training sample data are obtained.
[0061] Based on the prediction results and labeling results, the network parameters of the neural network model are adjusted until the neural network model converges to obtain a scoring model.
[0062] When the template information contains only one recommendation position and contains 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 multimedia file recommended for display.
[0063] S14: Render the theoretical template identifier that is the same as the actual template identifier that can be currently displayed, and the media resource information corresponding to the theoretical template identifier to generate home page display data.
[0064] In some examples, the TV 1 binds the recommendation position and media resource information in the template information corresponding to the theoretical template identifier that is the same as the actual template identifier that can be displayed currently, dynamically creates a template list TemplateList[], generates a dynamic component dynamicLayout and adds it to the homepage.
[0065] The TV 1 converts the template information (media information) required for drawing through the template framework into the drawing of the recommendation position (media poster) and the click logic of the related business, and draws the related logic of the framework. For example, the template framework of the TV 1 obtains the home page data (such as parser data) through the home page framework. The template framework converts the parser data into template information and filters it, such as parsing the home page data to determine the actual template identifier corresponding to each template information contained in the parser data. After that, the template framework obtains the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device based on the home page data, thereby completing the process of adaptive template, that is, filtering the template information in the parser data. After that, the 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 is stored in the template map. After that, the template framework sends the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device to the home page framework. The home page framework determines the media information corresponding to the theoretical template identifier based on the theoretical template identifier sent by the template framework (such as querying the parser data based on the theoretical template identifier to obtain the template information that is the same as the theoretical template identifier). Afterwards, the homepage framework binds the template information corresponding to the theoretical template identifier sent by the template framework with the media resource information corresponding to the theoretical template identifier to obtain a binding list. Afterwards, the homepage framework sends the 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 files displayed in each recommendation position in the template information corresponding to the theoretical template identifier into a target identifier, and asynchronously and dynamically creates a template container for rendering the multimedia files displayed in each recommendation position corresponding to the target identifier.
[0066] In some examples, the template framework of the TV 1 is mainly divided into two modules: a parsing module and a rendering module; wherein, the parsing module is mainly responsible for obtaining the absolute position pos (including the absolute coordinates x and y of the recommended position) and the number index of the recommended position in each dynamic template information in accordance with the protocol agreed upon by the TV and the media server (such as the Json protocol), and converting such information into a class structure and saving it to temporary memory. At the same time, the array ItemplateList.class corresponding to at least one template information supported by the parsed template framework is saved in the factory class TemplateFactory and waits for data matching and activation. After matching the theoretical template identifier identical to the actual template identifier in the home page data, the rendering module renders the theoretical template identifier identical to the actual template identifier that can be currently displayed, and the media information corresponding to the theoretical template identifier, to generate home page display data.
[0067] The rendering module is responsible for binding the relationship between the dynamically loaded page layout and the drawing elements (such as binding the multimedia file to the recommended position of the template information), adding the drawing elements and components to the host container (TemplateView), and creating the corresponding View view to add it to the home page display list RecyclerView. The RecyclerView's ability to display ItemView is completed through life cycle callbacks and performances such as onBind / onCreate / reUse / updateView, so as to complete the dynamic update and display of media information.
[0068] In some examples, the network architecture of the display method application provided by the embodiments of the present disclosure includes a terminal (such as a TV), a system end (such as a media server) and an OP (used to arrange the media information corresponding to each template information, and the number of recommended positions contained in each template information, etc.).
[0069] Among them, the terminal includes a template parsing module, a template rendering module, a template display module and a template management module. The template parsing module mainly parses and constructs the template information sent by the system end, loads the compiled binary template information into the memory through the JsonParser loader, extracts the required resources through the binary parsing module of the template parsing module, and extracts the objects (such as) through the drawing element parsing module of the template parsing module to prepare to enter the rendering module; the rendering module needs to dynamically load the correspondence between the page layout and the drawing elements (such as: the binding relationship between the recommended position of the multimedia file and the template information), and realizes the addition of drawing elements and components to the host container (TemplateView). The module needs to have built-in native components: such as text, images, shapes, etc., native layouts: such as linear layout, absolute layout, etc., as well as a series of canvases and layouts implemented through Canvas / Layout to support the construction of native layouts The basic implementation is finally loaded and constructed by the template construction factory, and the parsed resources and objects are selected to mount the business component data into the host container, and then the host container enters the template display module; the template display module mainly relies on the ItemView capabilities in RecyclerView to provide template onBind / onCreate / reUse / updateView and other implementations and performances to complete the dynamic update and display of the host container; template management is mainly to uniformly manage scenarios such as events, components, and drawing elements in the template, mainly to register external events such as Click, EventCode, and embedding events in the template management, and then the template management hierarchy sends them to the corresponding components / drawing elements for callback processing, and reuses and recycles the components / containers in the template. When the template appears on the page / the scrolling template disappears, the containers / components in the template are dynamically managed to reduce performance consumption.
[0070] System-side functions include:
[0071] 1. Store and dynamically update different types of template information;
[0072] 2. According to the field content configured by the OP, the template information and media data are uniformly sent to the terminal for processing;
[0073] 3. When the template information is updated, the version numbers of different template information are distinguished, and the OP is supported to report the binary compiled template to be stored in the system and the version number +1;
[0074] 4. Open the template information reporting interface and the corresponding version data distinction acquisition features to support version compatibility in template information.
[0075] OP's features include:
[0076] 1. Generate dynamic user interface (UI) component template extensible markup language (XML) based on visual template;
[0077] 2. Convert XML to binary JSON configuration data;
[0078] 3. After reporting to the system, dynamic storage and type binding are performed.
[0079] In some examples, the television provided by the embodiments of the present invention mainly performs the following three processes:
[0080] 1. System-side template list data cache and update (including addition, deletion and modification)
[0081] 1. The terminal preloads the dynamic layout configuration file (such as home page data) obtained from the system.
[0082] 2. The terminal reads the json file during the startup / initialization phase and saves it to temporary memory. For example, when the terminal's operating system is Android, the terminal's android studio gradle obtains the json template list stored in the fixed path URL. Afterwards, the terminal caches the json template list to the assets directory / buildconfig. Afterwards, when the terminal enters the startup / plug-in installation phase, the homepage frame is initialized to read and parse the json template list through IO. Afterwards, when the terminal determines that there is no theoretical template identifier in the json template list that is the same as the actual template identifier that can be displayed currently, the template information that does not support dynamic layout will not be displayed first, and the system side will be requested to pull the latest homepage data, so that when the terminal delays M minutes (such as 2 minutes) and re-initiates a request to refresh the json file to the system side, it is necessary to confirm whether the homepage triggers the refresh data (if the data needs to be refreshed, the homepage data will be reloaded the next time the machine is powered on; if the data does not need to be refreshed, the homepage data will not be reloaded the next time the machine is powered on). Alternatively, when the terminal determines that there is a theoretical template identifier in the json template list that is the same as the actual template identifier that can be displayed currently, the map of the template information is saved to temporary memory (such as temporary memory).
[0083] 3. After a delay of M minutes (such as 2 minutes), the terminal re-initiates a request to refresh the json file to the system to update the homepage data to the latest, ensure that the homepage data configured by the op will be synchronized to the latest, and compare the original dynamic layout configuration file. If the timestamp is updated, it will be saved in the terminal's cache. The latest cached configuration information will be read first at the next startup to prevent repeated reading. For example: when the terminal re-initiates a request to refresh the json template list to the system after a delay of M minutes (such as 2 minutes), if it is confirmed that the homepage triggers a refresh of the data, the homepage data will be reloaded at the next startup; if it is confirmed that the homepage does not trigger a refresh of the data, the homepage data will not be reloaded at the next startup.
[0084] 2. Data parsing and matching
[0085] 1. The terminal adds the configuration file saved at the first startup to the parsing management class through the template framework;
[0086] 2. The parsing management class obtains the absolute position pos and index of the recommended position in each template information according to the JSON parsing protocol and saves it into temporary memory;
[0087] 3. Save the parsed array to the factory class and wait for the next matching activation. After the data on the operation configuration homepage matches the corresponding template ID, execute the template (media asset list) rendering and display. For example, the terminal adds the json template list in the temporary memory to the parsing management class through MdExtend, and parses each template information in the parsing management class according to the protocol to obtain the absolute position pos and index of each recommended position contained in the template information; then, store the interest-calculated collection in the Factory, and initialize DEFALUT_CREATOR to determine whether the layout type is dynamic. When the dynamic layout type is not required, no operation is required; when the dynamic layout type is required, enter the template (media asset list) rendering and display process. Among them, type is a field that identifies the fixed static layout of the terminal and the dynamic layout issued by the system, which is used to distinguish whether parsing is required.
[0088] 3. Template (media list) rendering and display
[0089] 1. The terminal uses the LayoutInflator layout loader provided by Android to load and create the required media asset view, and completes the dynamic layout creation and media asset (recommended position) initialization during the homepage initialization phase;
[0090] 2. After the homepage is initialized to create the list RecyclerView, the parsing of the data sent from the homepage and the filling of the template (media asset list) information are completed in the onBindViewHolder life cycle of the created bound View;
[0091] 3. The homepage displays the configured media information and template list on the terminal screen according to operational needs. For example, when a dynamic layout type is required, the terminal asynchronously loads and creates the required template information view through LayoutInflator, completes the map layout creation and recommendation position initialization in the onCreateViewHolder stage, and performs rendering. For example, the homepage data is parsed, the template title, width and height are set, and the recommendation position Info is filled in the onBindViewHolder stage. After that, the homepage is constructed, and the corresponding template information is loaded in sequence and displayed on the terminal screen when TemplateRecyclerView displays the corresponding count data.
[0092] As can be seen from the above, the display device provided by the embodiment of the present disclosure sends acquisition information for acquiring home page data in response to the power-on operation; the display device receives the home page data. Since the home page data includes template information and media information corresponding to different device models, one template information corresponds to a theoretical template identifier and a media information; in this way, the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media information corresponding to the theoretical template identifier can be obtained based on the home page data. Thus, each display device can perform the actual template identification that can be displayed by itself, and filter the theoretical template identifier that is the same as the actual template identifier that can be displayed by the current device, and the media information corresponding to the theoretical template identifier in the home page data, and the display style of the media can be updated without software upgrade. Afterwards, the display device renders the theoretical template identifier that is the same as the actual template identifier that can be displayed currently, and the media information corresponding to the theoretical template identifier, and generates home page display data. Thus, when the user needs to display the home page, the home page can be displayed based on the home page display data. Since only the template information and media resources in the homepage data need to be updated, different devices can update the corresponding media resource display styles, thereby reducing maintenance costs compared to the solution of updating the media resource display style by updating the software version.
[0093] In some possible implementation examples, combined with Figure 4 ,like Figure 6 As shown, the display method provided by the embodiment of the present disclosure also includes S15.
[0094] S15. In response to the selection operation on the home page, the home page is displayed according to the home page display data.
[0095] In some examples, a user can browse the latest dynamic media information by turning on a terminal TV and viewing the homepage, and the media information thus obtains browsing and click-through rates.
[0096] In some possible implementation examples, combined with Figure 4 ,like Figure 7 As shown, the above S13 can be specifically implemented through the following S130-S132.
[0097] S130, parsing the home page data according to a preset protocol to obtain template information and media resource information contained in the home page data;
[0098] S131, performing 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 saving the class structure data into a temporary memory;
[0099] S132: Screening is performed in the temporary memory according to the actual template identifiers 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 resource information corresponding to the theoretical template identifier.
[0100] In some possible implementation examples, combined with Figure 4 ,like Figure 8 As shown, the above S14 can be specifically implemented through the following S140-S142.
[0101] S140: Acquire 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.
[0102] S141. Perform the following operations on each template information: bind the recommendations in the template information based on the media information corresponding to the theoretical template identifier that is the same as the actual template identifier that can be displayed currently, and determine the media information displayed in each recommendation position; render the media information displayed in each recommendation position, and generate actual display data corresponding to the template information.
[0103] S142: Generate home page display data based on the actual display data.
[0104] The present application embodiment provides a display method, which is applied to a television set 1, such as Fig. 9 As shown, the display method may include S20 and S21.
[0105] S20, receiving acquisition information for acquiring home page data;
[0106] S21. Send home page data; wherein the home page data includes template information and media resource information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media resource information.
[0107] In some possible implementation examples, combined with Fig. 9 ,like Fig.10 As shown, the display method provided by the embodiment of the present disclosure also includes: S22 and S23.
[0108] S22, obtaining 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;
[0109] S23: Save the template information and the media resource information corresponding to the template information locally.
[0110] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0111] The embodiment of the present application can divide the functional modules of the display device or the media resource server according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0112] The embodiment of the present application provides a schematic diagram of the structure of a display device 200 , which includes a processor 101 , a communicator 102 , and a display 103 .
[0113] Processor 101 is configured to control communicator 102 to send acquisition information for acquiring home page data in response to a power-on operation; communicator 102 is configured to receive home page data; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to a theoretical template identifier and a media information; processor 101 is also configured to acquire a theoretical template identifier that is identical to an actual template identifier that can be displayed by the current device, and media information corresponding to the theoretical template identifier, based on the home page data received by communicator 102; processor 101 is also configured to render the theoretical template identifier that is identical to the actual template identifier that can be currently displayed, and media information corresponding to the theoretical template identifier, to generate home page display data.
[0114] In some feasible examples, the processor 101 is further configured to control the display 103 to display the home page according to the home page display data in response to a selection operation on the home page.
[0115] In some implementable examples, processor 101 is further configured to obtain template information corresponding to a theoretical template identifier that is identical to an actual template identifier that can be displayed on the current device; processor 101 is further configured to perform the following operations on each template information: based on the media information corresponding to the theoretical template identifier that is identical to the actual template identifier that can be currently displayed, the recommendations in the template information are bound to determine the media information displayed in each recommendation position; the media information displayed in each recommendation position is rendered 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.
[0116] In some implementable examples, processor 101 is further configured to parse the home page data according to a preset protocol to obtain the template information and media information contained in the home page data; processor 101 is further configured to perform class structure conversion on the model information and media information to obtain type structure data corresponding to the model information and the media information, and save the class structure data into a 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 a theoretical template identifier that is the same as the actual template identifier, and the media information corresponding to the theoretical template identifier.
[0117] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and its role will not be repeated here.
[0118] Of course, the display device 200 provided in the embodiment of the present application includes but is not limited to the above modules, 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 a write request.
[0119] As an example, combining Figure 4 The function implemented by the acquisition unit 202 in the display device 200 is the same as that of the communicator 102, the function implemented by the processing unit 201 is the same as that of the processor 101, the function implemented by the display unit 203 is the same as that of the display 103, and the function implemented by the storage unit 204 is the same as that of the memory 104.
[0120] The embodiment of the present application also provides a chip system, which can be applied to the display device 200 in the aforementioned embodiment. The chip system includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 can be the processor in the above-mentioned display device 200. The processor 1501 and the interface circuit 1502 can be interconnected through a line. The processor 1501 can receive and execute computer instructions from the memory of the above-mentioned display device 200 through the interface circuit 1502. When the computer instructions are executed by the processor 1501, the display device 200 can execute the various steps performed by the display device 200 in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
[0121] The embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by the above-mentioned display device 200.
[0122] The embodiment of the present application provides a structural diagram of a media asset server 400 , which includes a communicator 201 and a processor 202 .
[0123] The communicator 201 is configured to receive acquisition information for acquiring home page data;
[0124] 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 information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media information.
[0125] In some feasible examples, the communicator 201 is further configured to obtain template information and media information corresponding to the template information; wherein the media information is configured based on current popularity or user preferences; the processor 202 is further configured to save the template information received by the communicator 201 and the media information corresponding to the template information locally.
[0126] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and its role will not be repeated here.
[0127] Of course, the media resource server 400 provided in the embodiment of the present application includes but is not limited to the above modules, for example, the media resource server 400 may also include a memory 203. The memory 203 may be used to store the program code of the media resource server 400, and may also be used to store data generated by the media resource server 400 during operation, such as data in a write request, etc.
[0128] As an example, combining Figure 4The function implemented by the transceiver unit 302 in the media asset server 400 is the same as that of the communicator 202 , the function implemented by the processing unit 301 is the same as that of the processor 201 , and the function implemented by the storage unit 303 is the same as that of the memory 203 .
[0129] The embodiment of the present application also provides a chip system, which can be applied to the media resource server 400 in the aforementioned embodiment. 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 above-mentioned media resource server 400. The processor 2501 and the interface circuit 2502 can be interconnected through a line. The processor 2501 can receive and execute computer instructions from the memory of the above-mentioned media resource server 400 through the interface circuit 2502. When the computer instructions are executed by the processor 2501, the media resource server 400 can execute the various steps executed by the media resource server 400 in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
[0130] The embodiment of the present application further provides a computer-readable storage medium for storing computer instructions executed by the above-mentioned media asset server 400.
[0131] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be 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 the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to 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 acquiring home page data in response to a power-on operation; The communicator is configured to receive home page data; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media information; The processor is further configured to obtain, based on the homepage data received by the communicator, a theoretical template identifier that is the same as an actual template identifier that can be displayed by the current device, and media resource information corresponding to the theoretical template identifier; The processor is further configured to render a theoretical template identifier that is the same as the actual template identifier that can be currently displayed, and media resource information corresponding to the theoretical template identifier, to generate home page display data.
2. The display device according to claim 1, characterized in that include: The processor is further configured to control the display to display the home page according to the home page display data in response to a selection operation on the home page.
3. The display device according to claim 1, characterized in that The processor is further configured to obtain template information corresponding to a theoretical template identifier that is the same as an actual template identifier that can be displayed by the current device; The processor is further configured to perform the following operations on each of the 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 currently, bind the recommendations in the template information to determine the media asset information displayed in each recommendation position; Rendering the media asset information displayed in each of the recommendation positions to generate actual display data corresponding to the template information; The processor is further configured to generate home page display data based on the actual display data.
4. The display device according to claim 1, characterized in that The processor is further configured to parse the home page data according to a preset protocol to obtain template information and media resource information contained in the home page data; The processor is further configured to perform class structure conversion on the model information and the media asset information, obtain type structure data corresponding to the model information and the media asset information, and save the class structure data into a temporary memory; The processor is further configured to filter in the temporary memory according to the actual template identifiers 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 resource information corresponding to the theoretical template identifier.
5. A media resource server, characterized in that: include: A communicator configured to receive acquisition information for acquiring home page data; The processor is configured to control the communicator to send home page data after the communicator receives the acquisition information; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to a theoretical template identifier and one media information.
6. The media asset server according to claim 5, characterized in that: The communicator is further configured to obtain 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 is further configured to locally store the template information received by the communicator and the media asset information corresponding to the template information.
7. A display method, characterized in that: include: In response to the power-on operation, sending acquisition information for acquiring home page data; Receive home page data; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media information; Based on the homepage data, a theoretical template identifier that is the same as an actual template identifier that can be displayed by the current device is obtained, as well as media resource information corresponding to the theoretical template identifier; The theoretical template identifier that is the same as the actual template identifier that can be displayed currently and the media resource information corresponding to the theoretical template identifier are rendered to generate home page display data.
8. The display method according to claim 7, characterized in that: include: In response to a selection operation on the home page, the home page is displayed according to the home page display data.
9. A display method, characterized in that: include: Receive acquisition information for acquiring home page data; Sending home page data; wherein the home page data includes template information and media information corresponding to different device models, and one template information corresponds to one theoretical template identifier and one media information.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the display method described in claim 7 or 8, or the computing device implements the display method described in claim 9.
Citation Information
Patent Citations
Set-top box desktop program upgrading method and apparatus
CN108363584A
Virtual gift display method and device, equipment and storage medium
CN112118477A
Internet television media asset generation and management method, device and system
CN112307224A
Server, display device and media asset filtering method
CN114173176A
Front-end equipment template instant release method independent of client version
CN114911476A