IPTV browser of large-screen terminal and implementation method of IPTV browser

By designing a large-screen terminal IPTV browser with a multi-layer architecture, the problem of poor user experience of existing browsers on large-screen terminals has been solved, and performance improvement, user experience improvement and customization capabilities have been achieved.

CN119576325APending Publication Date: 2025-03-07E-SURFING DIGITAL LIFE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411631598.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The poor user experience of existing browsers on large-screen terminals is reflected in poor interface adaptation, insufficient performance, poor customization capabilities and low integration.

Method used

A large-screen terminal IPTV browser is designed, adopting a multi-layer architecture including kernel layer, standard interface layer, JS extension layer and application adaptation layer. The kernel layer improves performance through multi-threaded rendering and GPU acceleration. The standard interface layer provides security mechanisms. The JS extension layer supports expansion functions. The application adaptation layer is used for interface and resolution adaptation.

Benefits of technology

It significantly improves the browser's performance, user experience and customization capabilities on large-screen terminals, and solves the problems of interface inappropriate interface, insufficient performance, poor customization capabilities and low integration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576325A_ABST
    Figure CN119576325A_ABST
Patent Text Reader

Abstract

The invention discloses an IPTV (Internet Protocol Television) browser of a large-screen terminal and an implementation method of the IPTV browser. The implementation method comprises the following steps: performing multi-thread rendering processing on webpage grammar based on a preset rendering engine through a kernel layer; abstracting and packaging the kernel layer through the standard interface layer, and constructing to obtain a browser standard interface; responding to a preset extension script through the JS extension layer to provide an extension function for the IPTV browser; and performing provincial adaptation through the application adaptation layer according to the parameters of the large-screen terminal. Through multi-thread processing, an expansion function provided by an expansion script and a video of an IPTV system based on a large-screen terminal, the performance, the user experience and the customization capability of a browser applied to the large-screen terminal can be remarkably improved, and the method can be widely applied to the technical field of data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an IPTV browser of a large-screen terminal and an implementation method thereof. Background Art

[0002] With the rapid development of Internet technology, IPTV has become an important way to watch TV. It transmits TV programs through the Internet protocol, providing users with a richer and more interactive content experience. IPTV can not only provide traditional live TV programs, but also support multiple functions such as on-demand, playback, and time shift, which greatly improves the user's viewing experience. With the popularity of IPTV, users' demand for browsing online content on large-screen terminals (such as smart TVs, smart projectors, etc.) is also growing.

[0003] However, most browsers on the market are designed for PCs or mobile devices. The user experience of these browsers on large-screen terminals is not ideal, mainly manifested in the following aspects:

[0004] Interface mismatch: The user interfaces of existing browsers are usually optimized for PCs or mobile devices. The size and layout of buttons and controls are not suitable for large-screen terminals, making it inconvenient for users to operate.

[0005] Insufficient performance: Large-screen terminals usually need to process high-resolution video and image content. Existing browsers are insufficient in rendering performance and resource usage, resulting in problems such as playback jams and slow responses.

[0006] Poor customization capabilities: Different IPTV regions have different business needs. Existing browsers cannot be flexibly customized to meet the requirements of specific functions and services.

[0007] Low integration: The integration between existing browsers and IPTV systems is not high, making it difficult to achieve deep functional integration such as seamless channel switching, program reservations, and content recommendations. Summary of the invention

[0008] The present invention provides an IPTV browser for a large-screen terminal and an implementation method thereof, aiming to solve one of the technical problems in the related art at least to a certain extent.

[0009] On the one hand, an embodiment of the present invention provides an IPTV browser for a large-screen terminal, the system comprising a kernel layer, a standard interface layer, a JS extension layer and an application adaptation layer;

[0010] The kernel layer is used to perform multi-threaded rendering processing on the web page syntax based on the preset rendering engine;

[0011] The standard interface layer is used to abstract and encapsulate the kernel layer and build a standard browser interface.

[0012] The JS extension layer is used to provide an extension function for the IPTV browser in response to a preset extension script;

[0013] The application adaptation layer is used to perform province-by-province adaptation based on the parameters of large-screen terminals.

[0014] Optionally, the kernel layer includes:

[0015] A rendering engine, used for rendering hypertext markup language, cascading style sheets and / or scripting language;

[0016] The multi-thread processing unit is used to split each processing task of the rendering process into different processing threads for multi-thread processing when the rendering process includes multiple processing tasks.

[0017] Optionally, the kernel layer also includes:

[0018] The GPU acceleration unit is used to call the GPU-assisted rendering processing of the large-screen terminal to accelerate the image.

[0019] Optionally, a security mechanism is preset in the standard interface layer;

[0020] The standardized interface layer is also used to identify and intercept security threats based on preset security mechanisms;

[0021] Among them, security threats include cross-site scripting attacks and cross-site request forgery.

[0022] Optionally, the JS extension layer includes:

[0023] A custom extension API unit is used to obtain an extension script according to a preset custom extension API interface;

[0024] Among them, the API interface is used to realize two-way communication between the extension script and the IPTV browser;

[0025] A script injection unit, used for injecting an extended script into a predetermined process of loading a web page in an IPTV browser;

[0026] The debugging tool is used to develop and debug the extension script in response to the debugging instruction of the development object.

[0027] Optionally, the parameters include interface size and page display requirements; the application adaptation layer includes:

[0028] A user interface optimization unit, used to adapt the layout of the rendered web page according to the interface size;

[0029] The resolution adaptation unit is used to dynamically adapt the resolution of the web page according to the page display requirements of different web pages.

[0030] Optionally, the application adaptation layer also includes:

[0031] A key adaptation unit is used to adapt and transmit key events to the large-screen terminal by intercepting and processing key events;

[0032] The syntax error adaptation unit is used to modify and adapt the page error syntax of the specified error page based on the pre-injected script data.

[0033] On the other hand, an embodiment of the present invention provides a method for implementing an IPTV browser of a large-screen terminal, which is applied to the aforementioned IPTV browser of a large-screen terminal, and the method comprises the following steps:

[0034] Perform multi-threaded rendering of web page syntax based on a preset rendering engine through the kernel layer;

[0035] The kernel layer is abstracted and encapsulated through the standard interface layer to construct a browser standard interface;

[0036] Providing extended functions for IPTV browsers in response to preset extended scripts through the JS extension layer;

[0037] The application adaptation layer is used to perform province-by-province adaptation based on the parameters of large-screen terminals.

[0038] Optionally, performing multi-threaded rendering processing on the webpage syntax based on a preset rendering engine through the kernel layer includes the following steps:

[0039] Rendering the hypertext markup language, cascading style sheet and / or scripting language through a rendering engine;

[0040] When the rendering process includes multiple processing tasks, the multi-thread processing unit divides each processing task of the rendering process into different processing threads for multi-thread processing.

[0041] Optionally, the kernel layer further includes a GPU acceleration unit, and the method further includes:

[0042] The GPU acceleration unit calls the GPU-assisted rendering processing of the large-screen terminal to accelerate the image.

[0043] Optionally, a security mechanism is preset in the standard interface layer; the method further includes:

[0044] Identify, intercept and process security threats based on preset security mechanisms through standardized interface layers;

[0045] Among them, security threats include cross-site scripting attacks and cross-site request forgery.

[0046] Optionally, providing an extended function for an IPTV browser in response to a preset extended script through a JS extended layer includes the following steps:

[0047] Obtain the extension script according to the preset custom extension API interface through the custom extension API unit;

[0048] Among them, the API interface is used to realize two-way communication between the extension script and the IPTV browser;

[0049] Injecting an extended script into a predetermined process of loading a web page in an IPTV browser through a script injection unit;

[0050] The debugging tool responds to the debugging instruction of the development object to develop and debug the extension script.

[0051] Optionally, the parameters include interface size and page display requirements; performing province-by-province adaptation according to the parameters of the large-screen terminal through the application adaptation layer includes the following steps:

[0052] The layout of the rendered web page is adapted according to the interface size by the user interface optimization unit;

[0053] The resolution adaptation unit dynamically adapts the resolution of the web page according to the page display requirements of different web pages.

[0054] Optionally, the application adaptation layer further includes a key adaptation unit and a grammatical error adaptation unit; the method further includes the following steps:

[0055] The key event is intercepted and processed by the key adaptation unit, and the key event is adapted and transmitted to the large-screen terminal;

[0056] The syntax error adaptation unit is used to modify and adapt the page error syntax of the designated error page based on the pre-injected script data.

[0057] On the other hand, an embodiment of the present invention provides an electronic device, including: a processor and a memory; the memory is used to store programs; the processor executes the program to implement the above-mentioned method for implementing the IPTV browser of the large-screen terminal.

[0058] On the other hand, an embodiment of the present invention provides a computer storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to implement the implementation method of the IPTV browser of the large-screen terminal.

[0059] The embodiment of the present invention performs multi-threaded rendering processing on the syntax of a web page through the kernel layer based on a preset rendering engine; abstracts and encapsulates the kernel layer through the standard interface layer to construct a browser standard interface; provides extended functions for the IPTV browser in response to a preset extended script through the JS extension layer; and performs province-by-province adaptation according to the parameters of the large-screen terminal through the application adaptation layer. The present invention can significantly improve the performance, user experience and customization capability of the browser in large-screen terminal applications through multi-threaded processing, extended functions provided by the extended script, and video based on the IPTV system of the large-screen terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0061] Figure 1 A schematic diagram of the hierarchical composition of an IPTV browser for a large-screen terminal provided by an embodiment of the present invention;

[0062] Figure 2 A schematic diagram of a specific architecture example of an IPTV browser for a large-screen terminal provided by an embodiment of the present invention;

[0063] Figure 3 A schematic diagram of an implementation environment for a method for implementing an IPTV browser on a large-screen terminal provided by an embodiment of the present invention;

[0064] Figure 4 A schematic flow chart of a method for implementing an IPTV browser of a large-screen terminal provided by an embodiment of the present invention;

[0065] Figure 5 A schematic diagram of the expansion process of step S100 provided in an embodiment of the present invention;

[0066] Figure 6 A schematic diagram of an extended process based on the kernel layer for implementing an IPTV browser of a large-screen terminal provided by an embodiment of the present invention;

[0067] Figure 7 A schematic diagram of the expanded flow of step S300 provided in an embodiment of the present invention;

[0068] Figure 8 A schematic diagram of the expanded flow of step S400 provided in an embodiment of the present invention;

[0069] Fig. 9 A schematic diagram of an extended process of an IPTV browser for a large-screen terminal provided by an embodiment of the present invention based on an application adaptation layer;

[0070] Fig.10A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0072] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0073] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0074] On the one hand, if Figure 1 As shown, the embodiment of the present invention provides an IPTV browser 100 for a large-screen terminal, which may include a kernel layer 110, a standard interface layer 120, a JS extension layer 130 and an application adaptation layer 140; specifically:

[0075] The kernel layer is used to perform multi-threaded rendering processing on the web page syntax based on the preset rendering engine;

[0076] It should be noted that, in some embodiments, the kernel layer may include: a rendering engine for rendering hypertext markup language, cascading style sheets and / or scripting language; a multi-threaded processing unit for splitting the various processing tasks of the rendering processing into different processing threads for multi-threaded processing when the rendering processing includes multiple processing tasks.

[0077] In some optional embodiments, the kernel layer may further include: a GPU acceleration unit, which is used to call the GPU-assisted rendering processing of the large-screen terminal to perform image acceleration.

[0078] For example, in some specific implementations, the rendering engine is a core component of the kernel layer, which is responsible for parsing and rendering Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), and scripting languages ​​(such as JavaScript). These languages ​​together constitute the main content and structure of a web page. The rendering engine builds a DOM tree by parsing HTML documents; builds a rendering tree by parsing CSS and applies styles; and implements dynamic interaction and updates of web pages by executing JavaScript.

[0079] In the kernel layer, the optimization of the rendering engine is crucial to improving browser performance and user experience. It can adopt various optimization strategies, such as lazy loading, asynchronous rendering, smart scrolling, etc., to reduce rendering delays and increase page loading speed.

[0080] The multi-threaded processing unit is another important component of the kernel layer. It is responsible for splitting multiple processing tasks in the rendering process into different processing threads for parallel processing. This can fully utilize the multi-core advantages of modern processors and improve the efficiency and speed of rendering processing.

[0081] The multithreaded processing unit may include components such as a task scheduler and a thread pool. The task scheduler is responsible for assigning rendering tasks to different threads to ensure load balancing and efficient execution between tasks. The thread pool is responsible for managing a group of available threads, reducing the overhead of thread creation and destruction, and improving thread utilization.

[0082] The GPU acceleration unit is a component in the kernel layer that is used to call the GPU of the large-screen terminal for image acceleration. In the rendering process, some complex image operations (such as 3D rendering, video decoding, etc.) may require a large amount of computing resources. By utilizing the parallel computing capabilities of the GPU, the execution efficiency of these operations can be significantly improved.

[0083] The GPU acceleration unit works closely with the rendering engine and multi-threaded processing unit to ensure that GPU resources can be efficiently called when needed. It may include components such as the GPU driver interface and image acceleration algorithm to achieve data exchange and image acceleration processing between the GPU and the CPU.

[0084] Some examples of specific application scenarios are described below:

[0085] Suppose there is a large-screen terminal browser that needs to load and render a web page containing a large number of images and animations in a short time. The HTML document of this web page is very large and contains multiple CSS style sheets and JavaScript scripts.

[0086] The role of the rendering engine:

[0087] The browser first uses the rendering engine to parse the HTML document and build the DOM tree.

[0088] Next, the rendering engine parses the CSS style sheet, builds a rendering tree, and applies the style to the DOM tree.

[0089] Finally, the rendering engine executes JavaScript scripts to update the DOM tree and rendering tree to achieve dynamic interaction and updates of web pages.

[0090] The role of the multi-threaded processing unit:

[0091] During the rendering process, the multi-threaded processing unit splits the rendering task into multiple subtasks, such as parsing HTML, parsing CSS, executing JavaScript, etc.

[0092] These subtasks are assigned to different processing threads for parallel processing to improve rendering efficiency.

[0093] For example, one thread is responsible for parsing HTML documents, another thread is responsible for parsing CSS style sheets, and another thread is responsible for executing JavaScript scripts.

[0094] The role of GPU acceleration unit:

[0095] When a web page contains complex image operations (such as 3D animation, video decoding, etc.), the GPU acceleration unit is called.

[0096] It uses the GPU resources of large-screen terminals to accelerate these image operations.

[0097] For example, when a 3D animation in a web page needs to be rendered, the GPU acceleration unit passes the animation data to the GPU for parallel calculation, and then returns the calculation results to the rendering engine for rendering.

[0098] Through the collaboration of these components, large-screen terminal browsers can load and render web pages containing large numbers of images and animations in a short time, providing a smooth user experience.

[0099] The standard interface layer is used to abstract and encapsulate the kernel layer and build a standard browser interface.

[0100] It should be noted that in some embodiments, a security mechanism is preset in the standard interface layer; the standardized interface layer is also used to identify, intercept and process security threats based on the preset security mechanism; among them, security threats include cross-site scripting attacks and cross-site request forgery.

[0101] For example, in some specific implementations, the standard interface layer is a key component of the browser architecture, which is located above the kernel layer and is mainly responsible for abstracting and encapsulating the functions of the kernel layer, thereby building a set of standardized browser interfaces. These interfaces provide a unified way for upper-layer applications (such as web developers, browser extensions, etc.) to access the kernel layer functions, ensuring the stability and consistency of browser functions.

[0102] The design of the standard interface layer follows the principles of modularity, scalability, and security. Through modular design, the standard interface layer divides different functions into independent modules, reduces the coupling between modules, and improves the maintainability of the system. At the same time, the standard interface layer also provides scalability, allowing developers to add new interfaces and functions according to needs.

[0103] In the standard interface layer, security mechanisms can be preset to cope with increasingly complex network security threats. These security mechanisms include but are not limited to:

[0104] Input validation: Strictly validate and filter the data entered by users to prevent security issues caused by malicious input.

[0105] Permission control: Based on the user's identity and role, fine-grained control is provided over access rights to ensure that only authorized users can access sensitive resources and perform sensitive operations.

[0106] Data encryption: Encrypt the transmitted data to prevent it from being stolen or tampered with during transmission.

[0107] Full audit: record and analyze system operation logs to promptly detect and respond to abnormal behaviors.

[0108] As part of the security mechanism, the standard interface layer also has the ability to identify and intercept common security threats such as cross-site scripting attacks (XSS) and cross-site request forgery (CSRF).

[0109] XSS identification and interception: By filtering and encoding input data, malicious scripts are prevented from being injected into web pages and executed. At the same time, the standard interface layer can also dynamically monitor web page content to promptly detect and block the execution of malicious scripts.

[0110] SRF identification interception: By checking the source and legitimacy of the request, it prevents attackers from using the user's identity to send malicious requests to the server. For example, the standard interface layer can require that all sensitive operations must contain a valid authentication token (such as a CSRF token) and be verified on the server side.

[0111] Some examples of specific application scenarios are described below:

[0112] Assume that there is a web application based on the above browser architecture, which needs to process the form data submitted by the user and save the data on the server. In order to ensure the security of the application, the security mechanism in the standard interface layer plays an important role.

[0113] Input validation: When a user submits a form, the standard interface layer first validates and filters the input data. For example, for the text content entered by the user, the standard interface layer checks whether it contains malicious scripts or special characters, and escapes or deletes these contents.

[0114] CSRF protection: Before the form is submitted, the standard interface layer generates a unique CSRF token and embeds it in a hidden field of the form. When the user submits the form, the server checks whether the request contains a valid CSRF token and verifies the legitimacy of the token. If the token is invalid or expired, the server will refuse to process the request.

[0115] Data encryption: During data transmission, the standard interface layer will encrypt sensitive data. For example, when a user submits a form, the standard interface layer will use the HTTPS protocol to encrypt the data for transmission, ensuring that the data is not stolen or tampered with during transmission.

[0116] Through the combined effect of these security mechanisms, the standard interface layer provides strong security protection for web applications, effectively preventing security threats such as cross-site scripting attacks and cross-site request forgery.

[0117] The JS extension layer is used to provide an extension function for the IPTV browser in response to a preset extension script;

[0118] It should be noted that, in some embodiments, the JS extension layer may include: a custom extension API unit, used to obtain an extension script according to a preset custom extension API interface; wherein the API interface is used to realize two-way communication between the extension script and the IPTV browser; a script injection unit, used to inject the extension script into a predetermined process of loading a web page in the IPTV browser; and a debugging tool, used to develop and debug the extension script in response to the debugging instructions of the development object.

[0119] For example, in some specific implementations, the JS extension layer is an important component of the IPTV browser architecture, which allows developers to add additional functions to the IPTV browser by writing JavaScript extension scripts. This mechanism not only enhances the flexibility of the browser, but also enables the browser to better adapt to different application scenarios and user needs.

[0120] The custom extension API unit is one of the core components of the JS extension layer. It provides a set of preset API interfaces that allow the extension script to communicate with the IPTV browser in a two-way manner. Through these API interfaces, the extension script can access the core functions of the browser, such as DOM operations, network requests, storage management, etc., and can also send events or data to the browser to achieve interaction with the browser.

[0121] The design of the custom extension API unit follows the principles of openness and extensibility. Developers can define new API interfaces according to their own needs and add them to the custom extension API unit. In this way, as IPTV browsers develop and application scenarios continue to change, the JS extension layer can flexibly adapt to new needs and add more functions to the browser.

[0122] The script injection unit is responsible for injecting the extension script into the predetermined process of loading the web page in the IPTV browser. This process usually occurs at a certain stage of web page loading, such as when DOM loading is completed, page rendering is completed, etc. By precisely controlling the timing of script injection, it is possible to ensure that the extension script runs in the correct environment and avoid conflicts with other scripts in the web page.

[0123] The script injection unit also provides management functions for injected scripts. Developers can enable or disable a certain extension script when needed, or adjust the injection order and priority of the script as needed. These functions make the JS extension layer more flexible and controllable.

[0124] The debugging tool is an indispensable part of the JS extension layer. It allows developers to debug and test extension scripts in real time during the development process. Through the debugging tool, developers can view the script's running status, variable values, function call stack and other information, so as to quickly locate and solve problems in the script.

[0125] The debugging tool also supports advanced features such as breakpoint debugging, single-step execution, and variable monitoring, allowing developers to have a deeper understanding of the script's execution process and behavior. In addition, the debugging tool can also be integrated with the browser's developer tools to provide developers with a more comprehensive debugging experience.

[0126] Some examples of specific application scenarios are described below:

[0127] Suppose there is an IPTV browser that needs to implement a custom bullet screen function through the JS extension layer. To implement this function, you can follow the steps below:

[0128] Define a custom extension API: First, you need to define an API interface in the custom extension API unit to implement the barrage function. This interface should provide functions such as sending barrage, receiving barrage, and setting barrage style.

[0129] Write an extension script: Next, write a JavaScript extension script to implement the bullet screen function. This script will use the custom extension API interface to communicate with the IPTV browser to send and receive bullet screens.

[0130] Configure the script injection unit: Then, you need to configure the injection timing and order of the extension script in the script injection unit. In this example, you can choose to inject the extension script immediately after the web page is loaded to ensure that the barrage function can work properly.

[0131] Debugging with debugging tools: Finally, use debugging tools to debug and test the extension script. Through the debugging tools, you can view the running status of the barrage function, the barrage information sent and received, and other information to ensure that the barrage function can work properly and meet user needs.

[0132] Through the above steps, you can use the JS extension layer to implement a customized bullet screen function for the IPTV browser to enhance the browser's functions and user experience.

[0133] The application adaptation layer is used to perform province-by-province adaptation based on the parameters of large-screen terminals;

[0134] It should be noted that, in some embodiments, the parameters include interface size and page display requirements; the application adaptation layer may include: a user interface optimization unit, used to adapt the layout of the rendered web page according to the interface size; a resolution adaptation unit, used to dynamically adapt the resolution of the web page according to the page display requirements of different web pages.

[0135] For example, in some specific implementations, the application adaptation layer is a crucial part of large-screen terminal application development. It is responsible for targeted adaptation and optimization of applications based on the specific parameters of large-screen terminals, such as screen size, resolution, display capabilities, etc., to ensure that applications can present the best visual effects and user experience on large-screen terminals. The core goal of this layer is to achieve cross-device and cross-platform compatibility while maximizing the display advantages of large-screen terminals.

[0136] The parameters are explained in detail as follows:

[0137] Interface size: The interface size of large-screen terminals is usually much larger than that of traditional mobile devices. Therefore, the application adaptation layer needs to make corresponding adjustments to the application layout, font size, image size, etc. to ensure that the content can be displayed clearly and beautifully on the large screen.

[0138] Page display requirements: Different web pages may have different display requirements, such as video pages need to support high-definition playback and full-screen display, news pages need to optimize text layout and image display, etc. The application adaptation layer needs to dynamically adjust the resolution, loading speed, and interaction mode of the web page based on these requirements.

[0139] The application adaptation layer components are described as follows:

[0140] User interface optimization unit: This unit is mainly responsible for adapting the layout of rendered web pages according to the interface size of large-screen terminals. By adjusting the layout structure, element spacing, font size, etc. of the page, the page content is made more coordinated and beautiful on the large screen. In addition, the unit can also optimize the interaction mode of the page according to the user's operating habits to improve the user experience.

[0141] Resolution Adaptation Unit: This unit focuses on the resolution adaptation of web pages. It can dynamically adjust the resolution of the page according to the display requirements of different web pages to ensure that the content can maintain clarity and readability at different resolutions. For example, on the video playback page, the unit can automatically adjust the video resolution to adapt to the high-definition display requirements of large-screen terminals; on the news reading page, it can optimize the resolution and loading method of the image to reduce loading time and improve the reading experience.

[0142] Some examples of specific application scenarios are described below:

[0143] Assume that there is a large-screen terminal with a screen size of 100 inches and a resolution of 4K (3840x2160). Now, a web application containing news list and video playback functions needs to be displayed on the large-screen terminal.

[0144] Application of the User Interface Optimization Unit:

[0145] For the news list page, the user interface optimization unit can adjust the news title font size, summary length and image size, so that each news can be clearly displayed on the large screen while keeping the page neat and beautiful.

[0146] For the video playback page, the unit can optimize the layout of the video player so that it occupies most of the area of ​​the large-screen terminal to provide an immersive viewing experience. At the same time, the size and position of the player's control buttons can be adjusted to facilitate user operation on the large screen.

[0147] Application of resolution adaptation unit:

[0148] On the news list page, the resolution adaptation unit can dynamically adjust the overall resolution and image quality of the page according to the content density of the page and the user's reading habits. For example, in areas with dense content, the image resolution can be appropriately reduced to speed up loading; while in areas with sparse content, the image resolution can be increased to improve the reading experience.

[0149] For video playback pages, the unit can automatically detect and adjust the video resolution to ensure that the video can be played clearly on large-screen terminals. If the resolution of the video source is lower than the resolution of the large-screen terminal, the unit can also try to use super-resolution technology to improve the clarity of the video.

[0150] By applying these components and functions of the adaptation layer, we can ensure that web applications can present the best visual effects and user experience on large-screen terminals.

[0151] In some optional embodiments, the application adaptation layer may also include: a key adaptation unit, which is used to adapt and transmit key events to the large-screen terminal by intercepting and processing key events; a syntax error adaptation unit, which is used to correct and adapt the page error syntax of the specified error page based on pre-injected script data.

[0152] For example, in some specific implementations, the key adaptation unit plays a vital role in the application adaptation layer of the large-screen terminal. Since the physical keys or touch areas of the large-screen terminal may be significantly different from those of conventional mobile devices, the key adaptation unit is responsible for intercepting and processing key events from the user to ensure that these events can be correctly and efficiently transmitted to the application layer for processing.

[0153] The main functions of the key adapter unit include:

[0154] Key event interception: This unit can monitor and intercept all key events from the user, including pressing and releasing physical keys, touching and sliding the touch area, etc.

[0155] Event adaptation and delivery: After intercepting a key event, the unit will adapt the event according to the characteristics of the large-screen terminal and the needs of the application. This may include adjusting the triggering conditions of the event, modifying the parameter value of the event, or converting the type of the event. Then, the unit will pass the adapted key event to the application layer so that the application can process it accordingly.

[0156] Custom key mapping: In order to meet the specific needs of large-screen terminals, the key adapter unit also supports custom key mapping. This means that users or developers can map a physical key or touch area to a specific function or operation in the application as needed, thereby providing a more convenient and personalized operating experience.

[0157] The syntax error adaptation unit is another important component of the application adaptation layer. It is mainly responsible for detecting and correcting syntax errors in web pages to ensure that the page can be displayed correctly and smoothly on large-screen terminals.

[0158] The main functions of the syntax error adaptation unit include:

[0159] Error Detection: This unit can perform real-time syntax checking on web pages based on pre-injected script data. It will identify and mark syntax errors in the page, such as missing HTML tags, incorrect writing of CSS attributes, etc.

[0160] Error correction: After detecting a syntax error, the unit will try to correct the error. This may include automatically completing missing tags, modifying incorrect attribute names or values, deleting redundant code, etc. The corrected page will be able to more accurately reflect the developer's intentions and present a better display effect on large-screen terminals.

[0161] Error log recording: To facilitate subsequent troubleshooting and optimization, the syntax error adaptation unit will also record all detected syntax errors and their corrections. These log information can help developers understand potential problems in the page and take corresponding measures to improve them.

[0162] Some examples of specific application scenarios are described below:

[0163] Suppose there is a large-screen terminal and the user is using a web application that includes video playback and online shopping functions.

[0164] Application of key adapter unit:

[0165] On the video playback page, users may want to use physical buttons to control the playback and pause of the video. The button adaptation unit can intercept these button events and map them to corresponding functions in the application. For example, when a user presses a specific physical button, the button adaptation unit will recognize it as a "play / pause" operation and pass the operation to the video playback component for processing.

[0166] On an online shopping page, users may want to use the touch area to browse product lists and select products. The key adaptation unit can monitor touch and slide events in the touch area and adapt these events according to the user's operating habits and application requirements. For example, when the user slides the touch area, the key adaptation unit can adjust the sliding speed and distance so that the user can browse the product list more easily.

[0167] Application of syntax error adaptation unit:

[0168] On the video playback page, if there are syntax errors in the web page code (such as missing HTML tags), this may cause the video to not play properly or the page to display abnormally. The syntax error adaptation unit can detect these errors and try to automatically complete the missing tags or correct the incorrect attributes. The corrected page will be able to display the video content normally and provide a better user experience.

[0169] On an online shopping page, if there are syntax errors in the HTML code of the product list (such as incorrect writing of CSS attributes), this may cause the display style of the product list to be abnormal. The syntax error adaptation unit can detect these errors and automatically modify the incorrect attribute name or value. The corrected page will be able to correctly display the style and layout of the product list, thereby improving the user's shopping experience.

[0170] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.

[0171] First of all, it should be noted that in view of the limitations and shortcomings of existing technologies, the market urgently needs an IPTV custom browser designed specifically for large-screen terminals. The browser needs to have the following features:

[0172] User interface optimization: The user interface is designed specifically for large-screen terminals, supports remote control operation and voice control, and has buttons and controls of moderate size, reasonable layout, and convenient operation.

[0173] High-performance rendering: Multi-threaded processing and GPU acceleration technology are used to improve rendering and loading performance, ensuring smooth playback of high-resolution videos and images.

[0174] Powerful customization capabilities: Provides flexible extension APIs and script injection functions to support customization based on business needs to meet the requirements of specific functions and services.

[0175] Deeply integrated with IPTV functions: Deeply integrated with the IPTV system, it supports functions such as channel switching, program reservation, playback on demand and intelligent content recommendation to enhance users' viewing experience.

[0176] In order to solve the problems in the prior art and meet market demand, the present invention aims to provide an IPTV browser for running on a large-screen smart terminal to solve the problems of poor user experience and insufficient customization capabilities in the prior art. Figure 2 As shown, the main technical solutions of the present invention can be implemented as follows:

[0177] Kernel layer:

[0178] Rendering engine: Based on the open source WebKit or Blink engine, it optimizes rendering performance and supports standards such as HTML5, CSS3 and JavaScript.

[0179] Multi-threaded processing: supports multi-threaded rendering and loading to improve browser response speed and stability.

[0180] GPU acceleration: Use the GPU of large-screen terminals to accelerate graphics and improve video playback and animation rendering performance.

[0181] Standard interface layer:

[0182] Standardized API: Provides abstraction and encapsulation of the kernel layer, defines standard browser interfaces for upper layer calls. The standard interface layer ensures the consistency and ease of use of browser functions, and shields the API differences between different Android versions.

[0183] Security mechanism: Built-in security mechanism to prevent common web security issues such as cross-site scripting (XSS) and cross-site request forgery (CSRF).

[0184] JS extension layer:

[0185] Custom extension API: Provides a custom extension API interface, supports the implementation of specific functions and business logic, realizes two-way communication between JavaScript and browsers, allows web pages to call browser functions, and also allows browsers to call JavaScript codes in web pages, implementing specifications based on China Telecom CTC.

[0186] Script injection: supports injecting custom JavaScript scripts before or after the page is loaded, flexibly realizing personalized needs.

[0187] Debugging tools: Built-in JavaScript debugging tools make it easy to develop and debug custom scripts.

[0188] Application Adaptation Layer:

[0189] User interface optimization: In view of the characteristics of large-screen terminals, the user interface layout and interaction method are optimized to support remote control operation and voice control.

[0190] Application integration: Deeply integrated with IPTV applications, supporting functions such as channel switching, program reservation, and playback on demand.

[0191] Resolution: By intercepting different pages at the application adaptation layer, dynamic adaptation of resolutions such as 720p and 1080p can be achieved.

[0192] Key events: By intercepting and processing js key events, it is adapted to the key event transmission on different TVs.

[0193] Syntax error: Adapt the page error js syntax by intercepting data on the specified error page, injecting js, etc.

[0194] In summary, the present invention provides a browser compatibility method and system for integrating IPTV in a large-screen smart terminal. By optimizing the user interface, improving rendering performance, enhancing customization capabilities, improving security mechanisms, and deeply integrating IPTV functions, the IPTV browser of the present invention will significantly improve the user's viewing experience and provide a more flexible customization solution for IPTV services.

[0195] Through the above technical solution, the IPTV custom browser provided by the present invention has the following advantages:

[0196] 1. Improve user experience: Optimize the browsing and operation experience on large-screen terminals and support remote control and voice control.

[0197] 2. Improve rendering performance: Utilize multi-threading and GPU acceleration technology to improve the browser's rendering performance and response speed.

[0198] 3. Enhanced customization capabilities: Meet the personalized needs of different provinces by providing custom extension APIs and script injection functions.

[0199] 4. Ensure security: Built-in multiple security mechanisms to effectively prevent common Web security issues.

[0200] 5. Deeply integrated IPTV functions: Supports multiple functions of IPTV applications, provides intelligent content services, and enhances users' viewing experience.

[0201] Compared with the prior art, the present invention has at least the following beneficial effects:

[0202] 1. Key points of multi-threaded processing and GPU acceleration technology:

[0203] Multi-threaded processing: implement multi-threaded resource loading and rendering to improve the browser's response speed and stability.

[0204] GPU acceleration: Use the GPU of large-screen terminals to accelerate graphics, significantly improve video playback and animation rendering performance, and reduce CPU burden.

[0205] advantage:

[0206] Improve rendering performance: Through multi-threaded processing, the browser can load and render resources in parallel, significantly improving page loading speed and response time, and avoiding freezes and delays caused by single-thread blocking.

[0207] Smooth playback: GPU acceleration technology fully utilizes the graphics processing capabilities of large-screen terminals to ensure smooth playback of high-resolution videos and images, reducing freezes and screen tearing during playback.

[0208] Compared with existing technologies:

[0209] Multi-threaded processing: Existing single-threaded browsers are prone to performance bottlenecks when processing complex web pages and multimedia content. The present invention uses multi-threaded processing technology to achieve parallel loading and rendering of resources, greatly improving the performance and stability of the browser.

[0210] GPU acceleration: Most browsers in the prior art do not fully utilize the graphics processing capabilities of the GPU. However, the present invention uses GPU acceleration technology to significantly improve the rendering performance of videos and animations, providing a smoother and higher-quality visual experience.

[0211] 2. Key points of user interface optimization technology:

[0212] User interface optimization for large-screen terminals: Optimize the user interface layout and interaction method, and support remote control operation and voice control.

[0213] advantage:

[0214] Improve user experience: In view of the characteristics of large-screen terminals, the user interface is optimized to make the buttons and controls of moderate size, reasonable layout, and convenient operation, which improves the user's operating experience and satisfaction.

[0215] Easy to operate: Supports remote control and voice control, users can operate more conveniently, improving user efficiency and convenience.

[0216] Compared with existing technologies:

[0217] Interface optimization: The existing browser interface design is mainly aimed at PCs and mobile devices, and fails to fully consider the characteristics of large-screen terminals. The present invention provides a browsing experience that is more suitable for large-screen terminals by optimizing the interface layout and interaction method.

[0218] Remote control and voice control: In the prior art, browsers have limited support for remote control and voice control. The present invention improves the accuracy and convenience of remote control operation and voice control through special optimization.

[0219] 3. Custom extension API and script injection:

[0220] Technical points:

[0221] Custom extension API: Provides custom extension API interfaces for provinces across the country, supporting the implementation of specific functions and business logic.

[0222] Script injection: supports injecting custom JavaScript scripts before or after page loading to meet business needs and personalized customization.

[0223] advantage:

[0224] Enhanced customization capabilities: By providing flexible extension APIs and script injection functions, service providers can customize the service according to their business needs to meet the requirements of specific functions and services.

[0225] Flexible implementation of business needs: Supports injection of custom scripts before or after page loading. Service providers can flexibly implement business logic and personalized functions to improve user experience and business capabilities.

[0226] Compared with existing technologies:

[0227] Expansion capability: Existing browsers have limited expansion and customization capabilities and cannot flexibly add or modify functions. The present invention greatly enhances the customization capability and flexibility of the browser through custom expansion APIs and script injection.

[0228] Implementation of business requirements: In the prior art, it is difficult to customize according to specific business requirements, but the present invention provides a flexible script injection mechanism, making the implementation of business requirements more convenient and efficient.

[0229] 4. Key technical points of deep integration with IPTV system:

[0230] Deeply integrated IPTV functions: Deeply integrated with the IPTV system, supporting functions such as channel switching, program reservation, playback on demand and intelligent content recommendation.

[0231] advantage:

[0232] Seamless integration: Through deep integration with the IPTV system, the browser can seamlessly support functions such as channel switching, program reservation and playback on demand, providing integrated content services.

[0233] Compared with existing technologies:

[0234] Integration: The integration between existing browsers and IPTV systems is not high, and the functions are not convenient enough. The present invention realizes seamless support and convenient operation of IPTV functions through deep integration technology.

[0235] In summary, the present invention significantly improves the performance, user experience, customization capability and security of the browser through key technical points such as multi-threaded processing and GPU acceleration, user interface optimization, custom extension API and script injection, and deep integration with the IPTV system. Compared with the existing technology, it has obvious superiority and innovation.

[0236] On the other hand, the embodiment of the present invention also provides an implementation method of an IPTV browser for a large-screen terminal. It can be understood that the implementation method of the IPTV browser for a large-screen terminal provided by the embodiment of the present invention can be applied to any computer device with data processing and computing capabilities, and this computer device can be various types of terminals or servers. When the computer device in the embodiment is a server, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms. Optionally, the terminal is a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to this.

[0237] like Figure 3 FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention. Figure 3 The implementation environment includes at least one terminal 102 and a server 101. The terminal 102 and the server 101 can be connected to a network wirelessly or wired to complete data transmission and exchange.

[0238] Server 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0239] In addition, the server 101 can also be a node server in the blockchain network. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm.

[0240] The terminal 102 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 102 and the server 101 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present invention.

[0241] Based on the example Figure 3In the implementation environment shown, an embodiment of the present invention provides an implementation method of an IPTV browser for a large-screen terminal. The following is an example of applying the implementation method of the IPTV browser for a large-screen terminal to terminal 102. It can be understood that the implementation method of the IPTV browser for a large-screen terminal can also be applied to server 101.

[0242] Reference Figure 4 , Figure 4 The flowchart of the implementation method of the IPTV browser of the large-screen terminal provided by the embodiment of the present invention is applied to the terminal. The execution subject of the implementation method of the IPTV browser of the large-screen terminal can be any of the aforementioned computer devices (including servers or terminals). Figure 4 , the method may include the following steps:

[0243] S100, performing multi-threaded rendering processing on the webpage syntax based on a preset rendering engine through the kernel layer;

[0244] S200, abstracting and encapsulating the kernel layer through the standard interface layer to construct a browser standard interface;

[0245] S300, providing an extended function for the IPTV browser in response to a preset extended script through a JS extended layer;

[0246] S400. Perform province-by-province adaptation according to parameters of the large-screen terminal through an application adaptation layer.

[0247] In some embodiments, Figure 5 As shown, performing multi-threaded rendering processing on the syntax of a web page through a kernel layer based on a preset rendering engine may include the following steps: S101, performing rendering processing on a hypertext markup language, a cascading style sheet and / or a scripting language through a rendering engine; S102, using a multi-threaded processing unit, when the rendering processing includes multiple processing tasks, splitting each processing task of the rendering processing into different processing threads for multi-threaded processing.

[0248] In some embodiments, the kernel layer also includes a GPU acceleration unit, such as Figure 6 As shown, the method may further include: S103, invoking the GPU-assisted rendering processing of the large-screen terminal through the GPU acceleration unit to perform image acceleration.

[0249] In some embodiments, a security mechanism is preset in the standard interface layer; the method may also include: identifying, intercepting and processing security threats based on the preset security mechanism through the standardized interface layer; wherein the security threats include cross-site scripting attacks and cross-site request forgery.

[0250] In some embodiments, Figure 7As shown, providing an extended function for an IPTV browser by responding to a preset extended script through a JS extended layer may include the following steps: S301, obtaining an extended script according to a preset custom extended API interface through a custom extended API unit; wherein the API interface is used to realize two-way communication between the extended script and the IPTV browser; S302, injecting the extended script into a predetermined process of loading a web page in the IPTV browser through a script injection unit; S303, developing and debugging the extended script in response to a debugging instruction of a development object through a debugging tool.

[0251] In some embodiments, the parameters include interface size and page display requirements; Figure 8 As shown, province-by-province adaptation is performed according to the parameters of the large-screen terminal through the application adaptation layer, which may include the following steps: S401, adapting the layout of the rendered web page according to the interface size through the user interface optimization unit; S402, dynamically adapting the resolution of the web page according to the page display requirements of different web pages through the resolution adaptation unit.

[0252] In some embodiments, the application adaptation layer further includes a key adaptation unit and a grammatical error adaptation unit; Fig. 9 As shown, the method may also include the following steps: S403, using the key adaptation unit to intercept and process the key events, and adapt and transmit the key events to the large-screen terminal; S404, using the syntax error adaptation unit to correct and adapt the page error syntax of the specified error page based on the pre-injected script data.

[0253] It should be noted that the contents of the browser embodiment of the present invention are applicable to the embodiment of the present method, the process steps specifically implemented by the embodiment of the present method are the same as those of the above-mentioned browser embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned browser. It should be understood that the functional logics implemented by the specific modules of each part of the above-mentioned browser embodiment all belong to the protection scope of the embodiment of the method of the present invention, and will not be described one by one here.

[0254] On the other hand, an embodiment of the present invention further provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method for implementing the IPTV browser of the large-screen terminal when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0255] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0256] like Fig.10As shown, Fig.10 A specific example of the hardware structure of an electronic device 1000 according to an embodiment is shown. The electronic device 1000 includes:

[0257] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention.

[0258] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the network node population optimization method of the embodiment of the present invention;

[0259] Input / output interface 1003, used to implement information input and output;

[0260] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0261] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0262] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0263] The electronic device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0264] The contents of the method embodiments of the present invention are all applicable to the electronic device embodiments. The functions specifically implemented by the electronic device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0265] Another aspect of an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the above method.

[0266] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read to Only Memory, CD to ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0267] The contents of the method embodiments of the present invention are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0268] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.

[0269] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0270] It should be noted that, although several modules of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0271] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD to ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation of the present invention.

[0272] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0273] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0274] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the solution of the present invention, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0275] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution device, apparatus or device (such as a computer-based device, a device including a processor, or other device that can fetch instructions from an instruction execution device, apparatus or device and execute the instructions), or in conjunction with such instruction execution device, apparatus or device. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution device, apparatus or device, or in conjunction with such instruction execution device, apparatus or device.

[0276] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0277] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0278] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0279] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0280] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. An IPTV browser for a large-screen terminal, characterized in that: Including kernel layer, standard interface layer, JS extension layer and application adaptation layer; The kernel layer is used to perform multi-threaded rendering processing on the webpage syntax based on a preset rendering engine; The standard interface layer is used to abstract and encapsulate the kernel layer to construct a browser standard interface; The JS extension layer is used to provide an extension function for the IPTV browser in response to a preset extension script; The application adaptation layer is used to perform province-by-province adaptation according to the parameters of the large-screen terminal.

2. The IPTV browser for a large-screen terminal according to claim 1, characterized in that: The kernel layer includes: The rendering engine is used to render the hypertext markup language, cascading style sheet and / or scripting language; The multi-thread processing unit is used to split each processing task of the rendering process into different processing threads for multi-thread processing when the rendering process includes multiple processing tasks.

3. The IPTV browser for a large-screen terminal according to claim 2, characterized in that: The kernel layer also includes: The GPU acceleration unit is used to call the GPU of the large-screen terminal to assist the rendering process in performing image acceleration.

4. The IPTV browser for a large-screen terminal according to claim 1, characterized in that: A security mechanism is preset in the standard interface layer; The standardized interface layer is also used to identify, intercept and process security threats based on the preset security mechanism; Among them, the security threats include cross-site scripting attacks and cross-site request forgery.

5. The IPTV browser for a large-screen terminal according to claim 1, characterized in that: The JS extension layer includes: A custom extension API unit, used to obtain the extension script according to a preset custom extension API interface; Wherein, the API interface is used to realize two-way communication between the extension script and the IPTV browser; A script injection unit, used for injecting the extension script into a predetermined process of loading a web page in the IPTV browser; The debugging tool is used to develop and debug the extension script in response to the debugging instruction of the development object.

6. The IPTV browser for a large-screen terminal according to claim 1, characterized in that: The parameters include interface size and page display requirements; the application adaptation layer includes: A user interface optimization unit, used to adapt the layout of the rendered web page according to the interface size; The resolution adaptation unit is used to dynamically adapt the resolution of the web page according to the page display requirements of different web pages.

7. The IPTV browser for a large-screen terminal according to claim 6, characterized in that: The application adaptation layer also includes: A key adaptation unit, used for adapting and transmitting the key events to the large-screen terminal by intercepting and processing the key events; The syntax error adaptation unit is used to modify and adapt the page error syntax of the specified error page based on the pre-injected script data.

8. A method for implementing an IPTV browser of a large-screen terminal, characterized in that: The method applied to the IPTV browser of the large-screen terminal according to any one of claims 1 to 7 comprises the following steps: Perform multi-threaded rendering of web page syntax based on a preset rendering engine through the kernel layer; The kernel layer is abstracted and encapsulated through a standard interface layer to construct a browser standard interface; Providing extended functions for the IPTV browser in response to a preset extended script through a JS extended layer; The province-by-province adaptation is performed according to the parameters of the large-screen terminal through the application adaptation layer.

9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to claim 8.

10. A computer storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to claim 8 when executed by the processor.

Citation Information

Cited By

  • DirectUI automatic testing method and framework based on event driving

    CN121070805A