Electronic program guide display page adaptation method and device, computer equipment, readable storage medium and program product
By identifying the characteristics of the terminal device, displaying page data in a classified manner and generating adaptation rules, the problem of inefficient adaptation of traditional electronic program guide systems is solved, and accurate adaptation of different terminal devices and high-definition page support is achieved.
Patent Information
- Application Number
- CN202510518261.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-06-24
AI Technical Summary
Traditional electronic program guide systems are inefficient when adapted to different set-top boxes and display devices, making it difficult to meet users' needs for high-definition pages.
By determining the characteristics of the terminal device, classifying the historical display page data, determining the adaptation rules, converting the data into data adapted to different terminals, and generating adaptation data based on the characteristics of the terminal device.
It improves the adaptation efficiency of the page data of the electronic program guide display, and can accurately adapt to different terminal devices to meet users' needs for high-definition pages.
Smart Images

Figure CN120201216A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing, and in particular, to an electronic program guide display page adaptation method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art
[0002] With the rapid development of digital TV and Internet TV services, the Electronic Program Guide (EPG) has become an important tool for providing user interaction and program information. Traditional electronic program guide systems need to perform specific adaptation work for different set-top boxes and display devices, which often consumes a large amount of human resources. In addition, with the development of IPTV services, users' demand for high-definition electronic program guide pages is increasing day by day. Traditional methods are difficult to flexibly adapt to set-top boxes with different resolutions, and the adaptation efficiency of the display page data of the electronic program guide is low. Summary of the Invention
[0003] Based on this, it is necessary to provide an electronic program guide display page adaptation method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the adaptation efficiency of the display page data of the electronic program guide for the above technical problems.
[0004] In a first aspect, the present application provides an electronic program guide display page adaptation method, including:
[0005] Determine the terminal device characteristics corresponding to the terminal to which the historical display page data of the electronic program guide is adapted;
[0006] Classify the historical display page data of the electronic program guide according to the terminal device characteristics to obtain the historical display page data of the electronic program guide under multiple categories;
[0007] Determine the adaptation rules corresponding to the historical display page data of the electronic program guide under each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device characteristics associated with the category;
[0008] When receiving the display page data of the electronic program guide to be adapted sent by the terminal, determine the target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories;
[0009] Generate adaptation data according to the adaptation rules corresponding to the target category and send it to the terminal.
[0010] In one embodiment, before the adaptation data is sent to the terminal, it further includes:
[0011] Determine the target data format of the adaptation data;
[0012] According to the target data format, perform format conversion on the adaptation data in the original data format to convert it into adaptation data in the target data format; the original data format is the data format inherited by the adaptation data from the display page data of the electronic program guide to be adapted.
[0013] In one embodiment, after generating the adaptation data according to the adaptation rule corresponding to the target category and sending it to the terminal, it further includes:
[0014] If the adaptation data is wrongly adapted at the terminal, determine the error adaptation information of the adaptation data; the error adaptation information indicates the terminal device characteristics corresponding to the terminal for which the adaptation data fails to be adapted.
[0015] According to the terminal device characteristics in the error adaptation information and the historical display page data of the electronic program guide, update the adaptation rule to obtain an updated adaptation rule;
[0016] According to the updated adaptation rule, update the adaptation data corresponding to the display page data of the electronic program guide to be adapted, and send the re-determined adaptation data to the terminal.
[0017] In one embodiment, the adaptation data includes an adaptation page description file and a display page data description file of the electronic program guide;
[0018] The generating the adaptation data according to the adaptation rule corresponding to the target category and sending it to the terminal includes:
[0019] Send the adaptation page description file and the display page data description file of the electronic program guide to the terminal, so that the terminal generates a display page corresponding to the display page data of the electronic program guide according to the page description file and the display page data description file of the electronic program guide.
[0020] In one embodiment, the method further includes:
[0021] According to the adaptation rule, determine an adaptation page description file for which the display page data of the electronic program guide is adapted to the terminal device characteristics of the terminal;
[0022] Combine the display page data of the electronic program guide and the page layout information in the page description file to obtain a display page data description file of the electronic program guide;
[0023] Parse the adaptation page description file and the display page data description file of the electronic program guide to obtain page rendering data, and send the page rendering data to the terminal so that the terminal generates a display page corresponding to the display page data of the electronic program guide according to the page rendering data.
[0024] In one embodiment, after generating adaptation data according to the adaptation rules corresponding to the target category and sending the adaptation data to the terminal, the method further includes:
[0025] Adjust the adaptation rules according to a preset period, and update the adaptation data according to the adjusted adaptation rules;
[0026] In response to an adaptation data update request from the terminal, send the updated adaptation data to the terminal.
[0027] In a second aspect, the present application further provides an electronic program guide display page adaptation device, including:
[0028] A terminal device feature determination module, configured to determine the terminal device features corresponding to the terminal adapted to the historical display page data of the electronic program guide;
[0029] A data classification module, configured to classify the historical display page data of the electronic program guide according to the terminal device features to obtain the historical display page data of the electronic program guide under multiple categories;
[0030] An adaptation rule determination module, configured to determine the adaptation rules corresponding to the historical display page data of the electronic program guide under each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device features associated with the category;
[0031] A category determination module, configured to determine the target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories when receiving the display page data of the electronic program guide to be adapted sent by the terminal;
[0032] An adaptation data generation and sending module, configured to generate adaptation data according to the adaptation rules corresponding to the target category and send the adaptation data to the terminal.
[0033] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0034] Determine the terminal device features corresponding to the terminal adapted to the historical display page data of the electronic program guide;
[0035] Classify the historical display page data of the electronic program guide according to the terminal device characteristics to obtain the historical display page data of the electronic program guide under multiple categories;
[0036] Determine the adaptation rules corresponding to the historical display page data of the electronic program guide under each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device characteristics associated with the category;
[0037] When receiving the display page data of the electronic program guide to be adapted sent by the terminal, determine the target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories;
[0038] Generate adaptation data according to the adaptation rules corresponding to the target category and send it to the terminal.
[0039] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0040] Determine the terminal device characteristics corresponding to the terminal to which the historical display page data of the electronic program guide is adapted;
[0041] Classify the historical display page data of the electronic program guide according to the terminal device characteristics to obtain the historical display page data of the electronic program guide under multiple categories;
[0042] Determine the adaptation rules corresponding to the historical display page data of the electronic program guide under each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device characteristics associated with the category;
[0043] When receiving the display page data of the electronic program guide to be adapted sent by the terminal, determine the target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories;
[0044] Generate adaptation data according to the adaptation rules corresponding to the target category and send it to the terminal.
[0045] In a fifth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0046] Determine the terminal device characteristics corresponding to the terminal to which the historical display page data of the electronic program guide is adapted;
[0047] Classify the historical display page data of the electronic program guide according to the terminal device characteristics to obtain the historical display page data of the electronic program guide under multiple categories;
[0048] Determine the adaptation rules corresponding to the historical display page data of the electronic program guide under each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device characteristics associated with the category;
[0049] When receiving the display page data of the electronic program guide to be adapted sent by the terminal, determine the target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories;
[0050] Generate adaptation data according to the adaptation rules corresponding to the target category and send it to the terminal.
[0051] The above electronic program guide display page adaptation method, device, computer device, computer-readable storage medium, and computer program product determine the terminal device characteristics corresponding to the terminal to which the historical display page data of the electronic program guide is adapted; classify the historical display page data of the electronic program guide according to the terminal device characteristics to obtain the historical display page data of the electronic program guide under multiple categories; determine the adaptation rules corresponding to the historical display page data of the electronic program guide under each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device characteristics associated with the category; when receiving the display page data of the electronic program guide to be adapted sent by the terminal, determine the target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories; generate adaptation data according to the adaptation rules corresponding to the target category and send it to the terminal. In this application, by classifying the historical display page data of the electronic program guide according to terminal characteristics, further determining the adaptation rules of the electronic program guide corresponding to each category, and automatically generating the adaptation rules, the need for manual intervention is reduced. At the same time, match the category of the display page data of the electronic program guide to be adapted, and determine the adaptation rules of the display page data of the electronic program guide based on this category to generate adaptation data. Since the category is determined by the terminal device characteristics, the generated adaptation rules also meet the characteristics of each terminal device, so that the adaptation data can accurately adapt to different terminals and improve the adaptation efficiency of the display page data of the electronic program guide. Brief Description of the Drawings
[0052] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the accompanying drawings required for the description in the embodiments of the present application or related technologies. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0053] Figure 1 It is an application environment diagram of the electronic program guide display page adaptation method in an embodiment;
[0054] Figure 2 It is a flowchart of the electronic program guide display page adaptation method in an embodiment;
[0055] Figure 3 It is a structural block diagram of the electronic program guide display page adaptation device in an embodiment;
[0056] Figure 4 It is a flowchart of the electronic program guide display page adaptation method in an embodiment;
[0057] Figure 5 It is an internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0058] In order to make the objectives, technical solutions, and advantages of the present application clearer and more understandable, the following further details the present application in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] The electronic program guide display page adaptation method provided by the embodiments of the present application can be applied to an application environment as Figure 1 shown. Among them, the terminal communicates with the server through the network. The data storage system can store the data that the server needs to process. The data storage system can be integrated on the server, or placed in the cloud or other network servers. Among them, the terminal can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0060] In an exemplary embodiment, as Figure 2 shown, a method for adapting an electronic program guide display page is provided. Taking the server in Figure 1 as an example, the method includes the following steps S202 to S210. Among them:
[0061] Step S202: Determine the terminal device characteristics corresponding to the terminal adapted to the historical display page data of the electronic program guide.
[0062] Among them, the electronic program guide is a display tool for interactive TV programs and radio channels, usually used in services such as digital TV, Internet Protocol Television (IPTV), and Over-the-top media services (OTT), to help users browse TV program schedules. The display page data of the electronic program guide can be channel information, program time, program detailed description, etc., used to indicate column information, page addresses, etc. The historical display page data of the electronic program guide can be the display page data of the electronic program guide that has been collected and stored. The stored display page data of the electronic program guide comes from TV program providers or content providers in different provinces, and is the display page data of the electronic program guide that has been adapted to the terminal, and is used to display the content of the electronic program guide at different times and on different devices.
[0063] The terminal device characteristics can be various characteristics or parameters related to device hardware and software, and can include, but are not limited to, one or more of the following: the screen resolution of the device (such as 1080p, 4K), the operating system version (such as Android, Apple), the display screen size (such as small screen devices, large screen devices), memory, and processor capabilities. Through these characteristics, the server can understand the display and performance capabilities of the terminal device, so as to make accurate decisions for subsequent electronic program guide adaptation work.
[0064] Exemplarily, the server obtains the historical display page data of the electronic program guide through the API interface, analyzes and processes these data, and further determines the terminal device characteristics of the adapted terminal.
[0065] Step S204: Classify the historical display page data of the electronic program guide according to the terminal device characteristics to obtain the historical display page data of the electronic program guide under multiple categories.
[0066] Exemplarily, the server classifies according to the terminal device characteristics determined from the historical display page data of the electronic program guide, such as information on the device's resolution, display screen size, memory size, operating system version, etc., and classifies according to the corresponding terminal device characteristics. In an alternative embodiment, devices can be classified as low resolution (such as 480p, 720p), high definition resolution (such as 4K, 1080p); there may be differences in the interface presentation methods between Android devices and Apple devices, and the server determines the category according to the operating system version.
[0067] After classification, the server distributes the historical display page data of the electronic program guide into different categories. Optionally, one category is the display page data of the electronic program guide for high-resolution terminal devices, and this type of data includes high-resolution images, video previews, etc.; another category is the display page data of the electronic program guide for low-resolution terminal devices, and this type of data may only include simplified text information to adapt to the display and processing capabilities of low-performance devices.
[0068] Step S206, determine the adaptation rules corresponding to the historical display page data of the electronic program guide for each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device characteristics associated with the category.
[0069] Among them, the adaptation rules are specifications for adjusting the historical display page data of the electronic program guide according to the characteristics of the terminal device to adapt to the display capabilities, operating systems, and performances of different devices. The adaptation data refers to the final display page data of the electronic program guide generated for different terminal devices after applying the adaptation rules. This data has been adjusted to be compatible with the display and interaction requirements of the target device.
[0070] Exemplarily, the server defines adaptation rules for each category according to the previous classification of device characteristics (such as resolution, operating system, device performance, etc.). These rules will include layout adjustments to the content of the electronic program guide, scaling of images and text, simplification of graphic elements, etc., to ensure that the data can be correctly displayed on different devices. For example, for high-resolution devices (such as 4K TVs), the adaptation rules may include: selecting larger pictures and fine graphic elements to adapt to the large screen and high pixel display for rich graphic effects, supporting video previews, animations, or more complex page layouts; considering higher network bandwidth and device processing capabilities to allow the transmission of more graphic and video content. For low-resolution devices (such as old TVs or low-end smartphones), the adaptation rules may include: simplifying the page layout, reducing image and video content, and giving priority to displaying text information; using smaller fonts and simplified icons to adapt to the smaller display screen and lower image resolution; reducing the amount of content to be loaded to ensure that the electronic program guide can still be smoothly displayed even under low-bandwidth conditions.
[0071] Step S208: When receiving the display page data of the electronic program guide to be adapted sent by the terminal, determine the target category to which the display page data of the electronic program guide to be adapted belongs from multiple categories.
[0072] Among them, the display page data of the electronic program guide to be adapted may be the display page data of the electronic program guide sent by the terminal device to the server and not yet processed by adaptation. The data to be adapted needs to be adjusted and converted according to the characteristics of the terminal device so that it can be correctly displayed on the terminal device.
[0073] Exemplarily, the server first obtains the device characteristic information through the identifier of the terminal device or the device request, and classifies the display page data of the electronic program guide according to the classification of the display page data of the electronic program guide and the device characteristics in the display page data of the electronic program guide to be adapted. For example, for a large-screen device with a resolution of 1080p, the server will classify it into the determined high-resolution device category; for a small-screen low-resolution device, the server will classify it into the determined low-resolution device category.
[0074] Step S210: Generate adaptation data according to the adaptation rules corresponding to the target category and send it to the terminal.
[0075] Exemplarily, the server generates adaptation data according to the adaptation rules corresponding to the target category and sends it to the terminal device. First, the server analyzes and determines the target category of the terminal device through the previous steps, then matches the adaptation rules determined by the analysis of the historical display page data of the electronic program guide according to this category, and stores the adaptation rules in the database of the server.
[0076] In one embodiment, the adaptation rules may include: adjusting the size and arrangement of text and icons on the page to adapt to the display screen size of different devices; for devices supporting touch screens, it may be necessary to adjust the interaction method of the electronic program guide page (such as the design of buttons and sliders) to optimize the user experience. These adaptation rules are optimized for the device characteristics of specific categories to ensure that the historical display page data of the electronic program guide can be correctly and clearly displayed on this device.
[0077] The server will adjust the content of the historical display page data of the electronic program guide according to the adaptation rules to generate adaptation data. After the adaptation data is generated, the server will send the adaptation data to the terminal device through the network. According to different device types, the adaptation data can be transmitted in different ways. For example: the server sends the adaptation data to the terminal device through a standardized API interface; if the terminal device supports web browsing, the server may send the adapted data to the terminal device as a JSON or XML file through the HTTP / HTTPS protocol, and the terminal parses the data through the corresponding engine and displays it.
[0078] In this embodiment, by classifying the historical display page data of the electronic program guide according to the terminal characteristics, further determining the adaptation rules of the electronic program guide corresponding to each category, and automatically generating the adaptation rules, the need for manual intervention is reduced. At the same time, the category of the display page data of the electronic program guide to be adapted is matched, and the adaptation rules of the display page data of the electronic program guide are determined based on this category to generate the adaptation data. Since the category is determined by the terminal device characteristics, the generated adaptation rules also meet the characteristics of each terminal device, so that the adaptation data can accurately adapt to different terminals and improve the adaptation efficiency of the display page data of the electronic program guide.
[0079] In an exemplary embodiment, before the adaptation data is sent to the terminal, it further includes:
[0080] Determine the target data format of the adaptation data; according to the target data format, convert the adaptation data in the original data format into the adaptation data in the target data format; the original data format is the data format inherited by the adaptation data from the display page data of the electronic program guide to be adapted.
[0081] Among them, the original data format refers to the data format inherited from the display page data of the electronic program guide to be adapted. Usually, when receiving the display page data of the electronic program guide, the server first obtains the data in this format. The original data format contains the basic information of the program and can be in formats such as JSON, XML, TXT, etc.
[0082] Exemplarily, the server determines the target data format of the adaptation data according to the device characteristics of the terminal. For example, for web-based devices, the target data format may be HTML or JSON; for other traditional devices, XML or other simplified formats may be used. The choice of the target data format is determined according to the capabilities and display requirements of the device, with the aim of enabling the content of the electronic program guide to be displayed in the best way.
[0083] The server will identify the original data format of the display page data of the electronic program guide to be adapted. The data to be adapted can be obtained through an external interface and retain its original format (such as JSON, XML, etc.), but they have not been optimized according to the device characteristics. Therefore, the server will identify this format and prepare to convert it.
[0084] Optionally, according to the requirements of the target data format, the server will adjust the data structure of the adapted data. For example, if the target data format is JSON, the server may convert the adapted data in XML format that inherits the display page data of the electronic program guide to be adapted into the adapted data in JSON object format. According to the requirements of the target data format, the server will adjust the content arrangement of the adapted data. For example, during the format conversion process, the server can optimize the display order of the content of the display page data of the electronic program guide, or add or delete certain fields according to the specific requirements of the target data format.
[0085] After completing the format conversion, the server will generate the adapted data that conforms to the target data format. These adapted data will be used for the display of the terminal device.
[0086] In this embodiment, by converting the adapted data in the original data format into the adapted data in the target data format, the server can ensure that the content of the electronic program guide can be correctly displayed on various devices. Whether the target device supports HTML, JSON or XML, the server can generate the adapted format, so that the display page data of the electronic program guide can be adapted to different platforms and devices, improving the compatibility and adaptation ability of the display page data of the electronic program guide.
[0087] In an exemplary embodiment, after generating the adapted data according to the adaptation rules corresponding to the target category and sending it to the terminal, it further includes:
[0088] If the adapted data is adapted incorrectly at the terminal, determine the incorrect adaptation information of the adapted data; the incorrect adaptation information indicates the terminal device characteristics corresponding to the terminal where the adapted data fails to be adapted; according to the terminal device characteristics in the incorrect adaptation information and the historical display page data of the electronic program guide, update the adaptation rules to obtain the updated adaptation rules; according to the updated adaptation rules, update the adapted data corresponding to the display page data of the electronic program guide to be adapted, and send the re-determined adapted data to the terminal.
[0089] Among them, the incorrect adaptation information may be the error information detected by the server during the adaptation process that the adapted data cannot be correctly displayed on the terminal device. The incorrect adaptation information can indicate the specific reasons for the device characteristic mismatch, such as too high or too low resolution, inappropriate font size for the screen, problems with incorrect loading of images or videos, etc.
[0090] Specifically, when the terminal device receives the adaptation data and attempts to display the electronic program guide content, an adaptation error may occur. The server detects whether the terminal device has successfully displayed the adaptation data through a feedback mechanism (such as device error reporting or adaptation status feedback). If an adaptation error occurs, the terminal device will send error adaptation information to the server, indicating the specific terminal device characteristics that caused the adaptation problem.
[0091] The error adaptation information will include the terminal device characteristics and the display page data part of the electronic program guide that fails to be correctly displayed. The server extracts the device characteristics that fail to be adapted from the error adaptation information, combines them with the historical display page data of the electronic program guide, reclassifies them, and determines the adaptation rules for the display page data of the reclassified electronic program guide, and updates the existing adaptation rules. After updating the adaptation rules, the server will regenerate the adaptation data. Finally, the server sends the generated updated adaptation data back to the terminal device through the network. After receiving the new adaptation data, the terminal device re-renders the electronic program guide page and displays the optimized content.
[0092] In this embodiment, by detecting the adaptation error and updating the adaptation rules according to the error adaptation information, the need for manual intervention is reduced, the automation degree of the adaptation process is improved, and the server can accurately solve the adaptation problems on different devices, ensuring compatibility and consistency between devices.
[0093] In an exemplary embodiment, the adaptation data includes an adaptation page description file and a display page data description file of the electronic program guide; generating adaptation data according to the adaptation rules corresponding to the target category and sending it to the terminal includes: sending the adaptation page description file and the display page data description file of the electronic program guide to the terminal, so that the terminal generates a display page corresponding to the display page data of the electronic program guide according to the page description file and the display page data description file of the electronic program guide.
[0094] Among them, the adaptation page description file can be a file generated by the server, which defines the layout and style of the electronic program guide page, including but not limited to the page structure, element positions, display formats, etc., to help the terminal device correctly render the electronic program guide page according to the device characteristics. The display page data description file of the electronic program guide can be a file containing specific data related to the content of the electronic program guide (such as program name, time, channel, etc.). After these data are formatted, they will be displayed on the terminal device. This file describes the mapping from the original display page data of the electronic program guide to the content displayed on the terminal device.
[0095] Specifically, the server determines the layout format of the page according to the device characteristics, defines the overall structure of the page (such as column layout, positions of text and images), and generates an adapted page description file accordingly to ensure that page elements are adjusted according to the device characteristics. At the same time, the server generates a description file based on the display page data of the original electronic program guide, which defines the display manner of the program content, to ensure that the display page data of the electronic program guide can be correctly displayed on the terminal device in a predetermined form. For example, the server can present information such as program time and channel in a table format or a list manner to adapt to the display capabilities of different devices.
[0096] The server sends the adapted page description file to the terminal through an API interface or other communication protocols. After receiving the file, the terminal device renders the electronic program guide page according to the layout and electronic program guide information in the file.
[0097] In this embodiment, the server can ensure that different terminal devices can receive adapted data conforming to their characteristics, and enables the terminal to generate the final electronic program guide display page through the adapted page description file and the data description file. This process not only improves the automation and flexibility of the system, but also optimizes the user experience on different devices.
[0098] In an exemplary embodiment, the electronic program guide adaptation method of the present application further includes: determining an adapted page description file in which the display page data of the electronic program guide is adapted to the terminal device characteristics according to the adaptation rules; combining the display page data of the electronic program guide with the page layout information in the page description file to obtain a display page data description file of the electronic program guide; parsing the adapted page description file and the display page data description file of the electronic program guide to obtain page rendering data, and sending the page rendering data to the terminal so that the terminal generates a display page corresponding to the display page data of the electronic program guide according to the page rendering data.
[0099] Among them, the page rendering data is data parsed by the server device from the adapted page description file and the display page data description file of the electronic program guide, and contains information for page rendering, such as text, images, page layout, etc.
[0100] Specifically, after receiving the display page data of the electronic program guide, the server first generates an adaptation page description file according to the terminal characteristics and adaptation rules of the device. Next, the server combines the display page data of the electronic program guide with the page layout information in the generated adaptation page description file to generate a display page data description file of the electronic program guide. In this process, the server combines the basic data of the electronic program guide (such as program name, time, channel, etc.) with the page layout information in the adaptation page description file (such as the position occupied by each program, font size, etc.) to ensure that the data is displayed on the page in an appropriate format. When the page description file and the display page data description file of the electronic program guide are generated, the server parses these two files to further generate page rendering data adapted to the terminal and sends the page rendering data to the terminal device. The terminal device generates a display page of the electronic program guide according to the received page rendering data according to the described layout and content. In an optional embodiment, before each display of the electronic program guide page, the terminal preferentially selects to process and parse the display page data of the electronic program guide to be adapted from the server and obtain the page rendering data. If the corresponding page rendering data cannot be obtained, the local webview platform is used to parse the display page data of the electronic program guide to be adapted according to the adaptation rules to generate a display interface of the electronic program guide.
[0101] In this embodiment, by parsing the adaptation file through the server, all adaptation work can be centrally processed, ensuring unified adaptation rules and content generation, so that each terminal device always loads a consistent adaptation solution, reducing the pressure on the terminal device for parsing and calculation, and centrally processing the data in the adaptation of the electronic program guide to improve the adaptation efficiency and accuracy.
[0102] In an exemplary embodiment, after generating and sending the adaptation data to the terminal according to the adaptation rules corresponding to the target category, it further includes: adjusting the adaptation rules according to a preset period, and updating the adaptation data according to the adjusted adaptation rules; in response to the adaptation data update request of the terminal, sending the updated adaptation data to the terminal.
[0103] Specifically, after generating and sending the adaptation data to the terminal, the server also needs to adjust the adaptation rules according to a preset period. This period may be based on time or based on specific conditions (such as changes in device characteristics, network environment changes, etc.). When each preset period arrives, the server checks the current adaptation rules and evaluates whether adjustments are needed. For example, for a certain type of terminal device, the original font size, picture resolution, etc. settings no longer adapt to the new display requirements, and the server will adjust the rules according to these feedbacks to ensure that the device can normally display the content of the electronic program guide.
[0104] After the adaptation rules are adjusted, the server will regenerate the adaptation data based on the updated adaptation rules. The new adaptation data will reflect the optimized content after the adaptation rules are adjusted, including the adjusted page layout, font size, image resolution, etc. For example, if the new adaptation rules require the use of simpler images and layouts for low-resolution devices, the server will apply these rules in the new data to generate content that better meets the device requirements.
[0105] Before each startup, the terminal device will request to update the adaptation data according to the actual situation. For example, when the hardware configuration of the device changes (such as upgrading the operating system or changing the resolution), the terminal device needs to obtain the latest adaptation data to ensure that the electronic program guide page can be displayed correctly. The terminal device sends an adaptation data update request to the server to request new adaptation data.
[0106] After the server generates and verifies the new adaptation data based on the adaptation data update request, it sends it to the terminal device through the network. After receiving the new adaptation data, the terminal device will re-render the electronic program guide page according to the updated content to ensure that the terminal device can display the program content with the latest adaptation solution.
[0107] In this embodiment, the server regularly adjusts the adaptation rules according to the characteristics of different terminal devices, and timely adjusts the adaptation data according to the update requests of different devices, thereby improving the flexibility of the system and ensuring that the electronic program guide content is continuously adapted on various terminal devices.
[0108] In one embodiment, Figure 3 As shown, in steps S301 to S305, the server is responsible for ensuring that the EPG (Electronic Program Guide) content can be adapted to different terminal devices and displayed correctly by generating adaptation data including an adaptation page description file and an EPG display page data description file according to the characteristics of the terminal device. Specifically, it includes:
[0109] Step S301: Classify the historical display page data of each electronic program guide according to the terminal device characteristics corresponding to the terminal adapted to the historical display page data of the electronic program guide, and determine the adaptation rules corresponding to the classified historical display page data of the electronic program guide. For example, the server obtains the historical display page data of the electronic program guide through the API interface, analyzes and processes these data, and further determines the terminal device characteristics of the adapted terminal. The server receives the characteristic information of the terminal device, which includes the device's resolution, screen size, operating system version, memory size, etc. Based on this information, the server classifies the terminal devices and generates adaptation rules according to each device category. For example, for high-resolution devices, the server may generate complex page layouts, high-definition images, and video content, while for low-resolution devices, it generates simplified page layouts and gives priority to displaying text information.
[0110] Step S302: Determine the target category to which the display page data of the electronic program guide to be adapted sent by the terminal belongs from the multiple classified categories, and determine the adaptation rules according to the target category to generate adaptation data. Obtain the display page data of the electronic program guide to be adapted, and determine the category to which the display page data of the electronic program guide to be adapted belongs. Then, according to the category, determine the corresponding adaptation rules. According to the adaptation rules, the server generates adaptation data including an adapted page description file and a display page data description file of the electronic program guide. The adapted page description file defines the structure of the electronic program guide page, the arrangement of elements, font size, image resolution, etc., to ensure the best display effect on different devices. The display page data description file of the electronic program guide contains the specific content of the display page data of the electronic program guide, such as program name, time, channel, etc. information, and combines these data with the page layout to ensure that the terminal device can display the program content in a predetermined manner.
[0111] Step S303: The server sends the adaptation data to the terminal in the target data format, and the terminal device will parse and render the display page of the electronic program guide according to the received adaptation file. The server will identify the original data format of the adaptation data and convert the adaptation data in the original data format into the adaptation data in the target data format according to the target data format. In the adaptation file, the adapted page description file provides the position and display method of the page elements for the terminal device, while the display page data description file of the electronic program guide provides the detailed information of the actual program content. After the terminal device receives and parses these files, it will generate the final display page of the electronic program guide, and the user can view the program schedule on the device.
[0112] Step S304, the server adjusts the adaptation rules according to a preset period. Such periodic updates are usually based on time intervals or changes in the characteristics of the terminal device. For example, when the resolution of the terminal device changes, or the operating system is updated, the server will promptly adjust the adaptation rules and generate updated adaptation data. These new adaptation data will be sent to the terminal device in the next period to ensure that the terminal always displays the latest and most adapted electronic program guide content. In addition, when an adaptation error occurs in the terminal device, the server will receive the error adaptation information, and then adjust the adaptation rules according to this information, regenerate the adaptation data and send it back to the terminal to ensure the correct display of the electronic program guide page on the device.
[0113] Step S305, the server can respond to the adaptation data update request of the terminal device, update the adaptation data and return it to the terminal. When the terminal device detects a hardware change or the user modifies the settings, it will send a request to the server to obtain the updated adaptation data. The server generates new adaptation data according to the latest characteristics of the device or the user's preferences and returns it to the terminal to ensure that each adaptation is the latest and conforms to the characteristics of the terminal device. Through this mechanism of dynamic adaptation and periodic update, the electronic program guide content can continuously provide the best display effect and meet the changing device requirements.
[0114] It should be understood that although each step in the flowchart involved in the above embodiments is displayed in sequence according to the indication of the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowchart involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0115] Based on the same inventive concept, the embodiments of the present application also provide an electronic program guide display page adaptation device for implementing the electronic program guide display page adaptation method involved above. The implementation solutions provided by this device to solve problems are similar to those recorded in the above method. Therefore, the specific limitations in one or more embodiments of the electronic program guide display page adaptation device provided below can refer to the limitations on the electronic program guide display page adaptation method in the above text, and will not be repeated here.
[0116] In an exemplary embodiment, as Figure 4As shown, an electronic program guide display page adaptation device is provided, including: a terminal device feature determination module 410, a data classification module 420, an adaptation rule determination module 430, a category determination module 440, and an adaptation data generation and sending module 450, where:
[0117] The terminal device feature determination module 410 is used to determine the terminal device features corresponding to the terminal to which the historical display page data of the electronic program guide is adapted;
[0118] The data classification module 420 is used to classify the historical display page data of the electronic program guide according to the terminal device features, and obtain the historical display page data of the electronic program guide under multiple categories;
[0119] The adaptation rule determination module 430 is used to determine the adaptation rules corresponding to the historical display page data of the electronic program guide under each category; the adaptation rules are used to convert the historical display page data of the electronic program guide into adaptation data adapted to the terminal device features associated with the category;
[0120] The category determination module 440 is used to determine the target category to which the display page data of the electronic program guide to be adapted belongs from multiple categories when receiving the display page data of the electronic program guide to be adapted sent by the terminal;
[0121] The adaptation data generation and sending module 450 is used to generate adaptation data according to the adaptation rules corresponding to the target category and send it to the terminal.
[0122] In one embodiment, the adaptation data generation and sending module 450 is further used to determine the target data format of the adaptation data; according to the target data format, perform format conversion on the adaptation data in the original data format to convert it into adaptation data in the target data format; the original data format is the data format inherited by the adaptation data from the display page data of the electronic program guide to be adapted.
[0123] In one embodiment, the adaptation data generation and sending module 450 is further used to, if the adaptation data is wrongly adapted at the terminal, determine the wrong adaptation information of the adaptation data; the wrong adaptation information indicates the terminal device features corresponding to the terminal to which the adaptation data fails to be adapted; according to the terminal device features in the wrong adaptation information and the historical display page data of the electronic program guide, update the adaptation rules to obtain the updated adaptation rules; according to the updated adaptation rules, update the adaptation data corresponding to the display page data of the electronic program guide to be adapted, and send the re-determined adaptation data to the terminal.
[0124] In one embodiment, the adaptation data includes an adapted page description file and a display page data description file of an electronic program guide; the adaptation data generation and sending module 450 is further configured to send the adapted page description file and the display page data description file of the electronic program guide to the terminal, so that the terminal generates a display page corresponding to the display page data of the electronic program guide according to the page description file and the display page data description file of the electronic program guide.
[0125] In one embodiment, the adaptation data generation and sending module 450 is further configured to determine an adapted page description file in which the display page data of the electronic program guide is adapted to the terminal device characteristics according to an adaptation rule; combine the display page data of the electronic program guide with the page layout information in the page description file to obtain a display page data description file of the electronic program guide; parse the adapted page description file and the display page data description file of the electronic program guide to obtain page rendering data, and send the page rendering data to the terminal, so that the terminal generates a display page corresponding to the display page data of the electronic program guide according to the page rendering data.
[0126] In one embodiment, the adaptation data generation and sending module 450 is further configured to adjust the adaptation rule according to a preset period, and update the adaptation data according to the adjusted adaptation rule; in response to an adaptation data update request of the terminal, send the updated adaptation data to the terminal.
[0127] Each module in the above electronic program guide display page adaptation device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or independent of the processor, or stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0128] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as Figure 5As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store adaptation data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements an electronic program guide display page adaptation method.
[0129] Those skilled in the art can understand that Figure 5 the structure shown in is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0130] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps in the above method embodiments are implemented.
[0131] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0132] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0134] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0135] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this application.
[0136] The above embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for adapting an electronic program guide display page, characterized in that: The method comprises: Determine the terminal device characteristics corresponding to the terminal to which the history display page data of the electronic program guide is adapted; Classifying the historical display page data of the electronic program guide according to the terminal device characteristics to obtain the historical display page data of the electronic program guide in multiple categories; Determining an adaptation rule corresponding to the historical display page data of the electronic program guide under each of the categories; the adaptation rule is used to convert the historical display page data of the electronic program guide into adaptation data adapted to the characteristics of the terminal device associated with the category; When receiving the display page data of the electronic program guide to be adapted sent by the terminal, determining the target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories; According to the adaptation rule corresponding to the target category, adaptation data is generated and sent to the terminal.
2. The method according to claim 1, characterized in that Before the adaptation data is sent to the terminal, the method further comprises: determining a target data format of the adaptation data; According to the target data format, the adaptation data in the original data format is converted into the adaptation data in the target data format; the original data format is a data format inherited by the adaptation data from the display page data of the electronic program guide to be adapted.
3. The method according to claim 1, characterized in that After generating the adaptation data according to the adaptation rule corresponding to the target category and sending it to the terminal, the method further includes: If the adaptation data is incorrectly adapted at the terminal, determining incorrect adaptation information of the adaptation data; the incorrect adaptation information indicates a terminal device feature corresponding to the terminal to which the adaptation data fails to adapt; updating the adaptation rule according to the terminal device characteristics in the erroneous adaptation information and the historical display page data of the electronic program guide to obtain an updated adaptation rule; According to the updated adaptation rule, the adaptation data corresponding to the display page data of the electronic program guide to be adapted is updated, and the re-determined adaptation data is sent to the terminal.
4. The method according to claim 1, characterized in that: The adaptation data includes an adaptation page description file and an electronic program guide display page data description file; The step of generating adaptation data according to the adaptation rule corresponding to the target category and sending the adaptation data to the terminal includes: The adaptation page description file and the electronic program guide display page data description file are sent to the terminal, so that the terminal generates a display page corresponding to the electronic program guide display page data according to the page description file and the electronic program guide display page data description file.
5. The method according to claim 4, characterized in that The method further comprises: Determining, according to the adaptation rule, an adaptation page description file for adapting the display page data of the electronic program guide to the terminal device characteristics of the terminal; Combining the display page data of the electronic program guide with the page layout information in the page description file to obtain the display page data description file of the electronic program guide; The adaptation page description file and the display page data description file of the electronic program guide are parsed to obtain page rendering data, and the page rendering data is sent to the terminal so that the terminal generates a display page corresponding to the display page data of the electronic program guide according to the page rendering data.
6. The method according to any one of claims 1 to 5, characterized in that: After generating the adaptation data according to the adaptation rule corresponding to the target category and sending it to the terminal, the method further includes: Adjusting the adaptation rule according to a preset period, and updating the adaptation data according to the adjusted adaptation rule; In response to the adaptation data update request of the terminal, the updated adaptation data is sent to the terminal.
7. An electronic program guide display page adaptation device, characterized in that: The device comprises: A terminal device feature determination module, used to determine the terminal device feature corresponding to the terminal to which the history display page data of the electronic program guide is adapted; A data classification module, used for classifying the historical display page data of the electronic program guide according to the characteristics of the terminal device, and obtaining the historical display page data of the electronic program guide under multiple categories; An adaptation rule determination module, used for determining the adaptation rule corresponding to the historical display page data of the electronic program guide under each of the categories; the adaptation rule is used for converting the historical display page data of the electronic program guide into adaptation data adapted to the characteristics of the terminal device associated with the category; a category determination module, configured to determine, when receiving the display page data of the electronic program guide to be adapted sent by the terminal, a target category to which the display page data of the electronic program guide to be adapted belongs from the multiple categories; The adaptation data generating and sending module is used to generate adaptation data according to the adaptation rule corresponding to the target category and send the adaptation data to the terminal.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.