CN111769959A - Method and system for automatically changing page style of set top box - Google Patents
Method and system for automatically changing page style of set top box Download PDFInfo
- Publication number
- CN111769959A CN111769959A CN201910186773.6A CN201910186773A CN111769959A CN 111769959 A CN111769959 A CN 111769959A CN 201910186773 A CN201910186773 A CN 201910186773A CN 111769959 A CN111769959 A CN 111769959A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- page
- address
- top box
- style
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 235000014510 cooky Nutrition 0.000 description 24
- 238000010586 diagram Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a system for automatically changing the page style of a set top box, wherein the method comprises the following steps: when the set top box is started and initialized, acquiring an address of a pre-configured configuration file, wherein the configuration file is used for page configuration; writing the address of the pre-configured configuration file into the data stored on the local terminal of the user, acquiring the address of the pre-configured configuration file from the data stored on the local terminal of the user before page initialization, loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting the page. The invention can simply and effectively realize that the operator automatically changes the page style according to the requirement, and improves the experience of the digital television user.
Description
Technical Field
The invention relates to the technical field of digital processing, in particular to a method and a system for automatically changing a page style of a set top box.
Background
Digital television refers to the type of television in which all links from studio to transmission, transmission and reception are carried out using digital television signals or all signal propagation for the system is carried out by digital streams composed of 0, 1 digital strings.
The set-top box is a household appliance which provides comprehensive information service by relying on a television terminal. Enabling users to watch digital television programs on existing television sets and to conduct interactive digital entertainment, education, and commercialization activities over a network.
At present, when products are operated in various cities, operators have the requirement that the presented content is not changed, but the presented tone style is changed, for example, the background of the presented content on all set top boxes is festive red tone in national day festival, children need to change to more cheerful tones, and the like. At present, most methods are customized development, if a logo needs to be changed or a background image needs to be changed, a page needs to be revised again, the whole background color tone and the focus color tone are inconsistent due to the fact that the whole background color tone is changed, so that the focus is changed together, the focus is diversified in style, direct picture implementation is achieved through direct color blocks, the change directly causes typesetting layout of the whole page, and great fluctuation can be caused by each change.
Therefore, how to simply and effectively realize that an operator automatically changes the page style according to the requirement and improve the experience of the digital television user is a problem to be solved urgently.
Disclosure of Invention
In view of this, the invention provides a method for automatically changing a page style of a set top box, which can simply and effectively realize that an operator automatically changes the page style according to requirements, and improve the experience of a digital television user.
The invention provides a method for automatically changing the page style of a set top box, which comprises the following steps:
when the set-top box is started and initialized, acquiring an address of a pre-configured configuration file, wherein the configuration file is used for page configuration;
writing the address of the pre-configured configuration file into data stored on a local terminal of the user;
before page initialization, acquiring the address of the pre-configured configuration file from the data stored on the local terminal of the user;
and loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting a page.
Preferably, when the set-top box is initialized, the obtaining of the address of the pre-configured configuration file includes:
and when the set-top box is started and initialized, acquiring the address of the pre-configured configuration file from the server through an application programming interface.
Preferably, the method further comprises:
and pre-configuring the configuration file.
Preferably, said pre-configuring said configuration file comprises:
and generating a configuration file in a cascading style sheet format and a configuration file in an transliteration script language format corresponding to the page in advance.
Preferably, the method further comprises:
and respectively storing the configuration files with different styles which are configured and generated in advance in different directory structures.
A system for automatically changing the style of a page on a set-top box, comprising:
the first acquisition module is used for acquiring the address of a pre-configured configuration file when the set top box is started and initialized, wherein the configuration file is used for page configuration;
the writing module is used for writing the address of the pre-configured configuration file into data stored on a local terminal of a user;
a second obtaining module, configured to obtain, before page initialization, an address of the pre-configured configuration file from the data stored on the local terminal of the user;
and the page analysis module is used for loading the corresponding configuration file based on the address of the pre-configured configuration file and analyzing and presenting a page.
Preferably, when the first obtaining module obtains the address of the pre-configured configuration file during the start-up initialization of the set-top box, the first obtaining module is specifically configured to:
and when the set-top box is started and initialized, acquiring the address of the pre-configured configuration file from the server through an application programming interface.
Preferably, the system further comprises:
and the configuration module is used for configuring the configuration file in advance.
Preferably, when the configuration module executes the pre-configuration of the configuration file, the configuration module is specifically configured to:
and generating a configuration file in a cascading style sheet format and a configuration file in an transliteration script language format corresponding to the page in advance.
Preferably, the system further comprises:
and the storage module is used for respectively storing the configuration files with different styles generated by pre-configuration in different directory structures.
In summary, the present invention discloses a method for automatically changing a page style of a set top box, which comprises: when the set-top box is started and initialized, acquiring the address of a pre-configured configuration file, wherein the configuration file is used for page configuration; the address of the pre-configured configuration file is written into data stored on the user's local terminal. Before page initialization, acquiring the address of a pre-configured configuration file from data stored on a local terminal of a user; and loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting the page. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method embodiment 1 for automatically changing the page style of a set-top box disclosed by the present invention;
FIG. 2 is a flowchart of a method for automatically changing the page style of a set-top box according to embodiment 2 of the present invention;
FIG. 3 is a flowchart of a method embodiment 3 for automatically changing the page style of a set-top box according to the present invention;
FIG. 4 is a flowchart of a method embodiment 4 for automatically changing the page style of a set-top box according to the present invention;
FIG. 5 is a schematic structural diagram of an embodiment 1 of a system for automatically changing a page style of a set top box according to the present invention;
FIG. 6 is a schematic structural diagram of an embodiment 2 of a system for automatically changing a page style of a set top box according to the present invention;
FIG. 7 is a schematic structural diagram of an embodiment 3 of a system for automatically changing a page style of a set-top box according to the present invention;
fig. 8 is a schematic structural diagram of a system embodiment 4 for automatically changing a page style of a set top box according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, which is a flowchart of an embodiment 1 of a method for automatically changing a page style of a set top box disclosed in the present invention, the method may include the following steps:
s101, when the set top box is started and initialized, acquiring an address of a pre-configured configuration file, wherein the configuration file is used for page configuration;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
S102, writing the address of the pre-configured configuration file into data stored on a local terminal of a user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
S103, before page initialization, acquiring the address of a pre-configured configuration file from data stored on a local terminal of a user;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
And S104, loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting the page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when the style of the content displayed on the page of the set top box needs to be updated, first, when the set top box is powered on and initialized, the address of the pre-configured configuration file is obtained, then, the address of the pre-configured configuration file is written into the data stored on the local terminal of the user, before the page is initialized, the address of the pre-configured configuration file is obtained from the data stored on the local terminal of the user, the corresponding configuration file is loaded based on the address of the pre-configured configuration file, and the page is parsed and presented. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
As shown in fig. 2, which is a flowchart of embodiment 2 of a method for automatically changing a page style of a set top box disclosed in the present invention, the method may include the following steps:
s201, when the set top box is started and initialized, acquiring an address of a pre-configured configuration file from a server through an application programming interface, wherein the configuration file is used for page configuration;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. When the address of the pre-configured configuration file is acquired, the address of the pre-configured configuration file can be acquired from the server through the API interface.
It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
S202, writing the address of the pre-configured configuration file into data stored on a local terminal of the user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
S203, before page initialization, acquiring the address of a pre-configured configuration file from data stored on a local terminal of a user;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
S204, loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting the page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when the style of the content displayed on the page of the set top box needs to be updated, first, when the set top box is booted and initialized, the address of the pre-configured configuration file is obtained from the server through the application programming interface, then the address of the pre-configured configuration file is written into the data stored on the local terminal of the user, before the page is initialized, the address of the pre-configured configuration file is obtained from the data stored on the local terminal of the user, and the corresponding configuration file is loaded based on the address of the pre-configured configuration file, so as to parse and present the page. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
As shown in fig. 3, which is a flowchart of embodiment 3 of a method for automatically changing a page style of a set top box disclosed in the present invention, the method may include the following steps:
s301, configuring a configuration file in advance, wherein the configuration file is used for page configuration;
when the style of the content displayed on the page of the set-top box needs to be updated simply and effectively, the configuration file can be configured in advance. It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
S302, storing configuration files with different styles generated by pre-configuration under different directory structures respectively;
when the pre-configured configuration files are configuration files of various different styles, the configuration files of different styles can be stored in different directory structures respectively.
S303, when the set top box is started and initialized, acquiring an address of a pre-configured configuration file from a server through an application programming interface;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. When the address of the pre-configured configuration file is acquired, the address of the pre-configured configuration file can be acquired from the server through the API interface.
S304, writing the address of the pre-configured configuration file into data stored on the local terminal of the user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
S305, before page initialization, acquiring the address of a pre-configured configuration file from data stored on a local terminal of a user;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
S306, loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting the page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when the style of the content displayed on the page of the set top box needs to be updated, first, the configuration file is configured in advance, the configuration files configured in advance in different styles are stored in different directory structures, when the set top box is initialized, the address of the configuration file configured in advance is obtained from the server through the application programming interface, then the address of the configuration file configured in advance is written into the data stored on the local terminal of the user, before the page is initialized, the address of the configuration file configured in advance is obtained from the data stored on the local terminal of the user, the corresponding configuration file is loaded based on the address of the configuration file configured in advance, and the page is analyzed and presented. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
As shown in fig. 4, which is a flowchart of a method embodiment 4 for automatically changing a page style of a set-top box disclosed by the present invention, the method may include the following steps:
s401, pre-generating a configuration file in a cascading style sheet format and a configuration file in an transliterated script language format corresponding to a page, wherein the configuration files are used for page configuration;
when the style of the content displayed on the page of the set-top box needs to be updated simply and effectively, the configuration file can be configured in advance. Specifically, when configuration files are configured in advance, all the logos, the background images, the background color matching, the focus color matching and the focus images of the page are configured in a configuration mode, and two corresponding configuration files xx.css and xx.js are generated.
It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
S402, storing the configuration files with different styles generated by pre-configuration under different directory structures respectively;
when the pre-configured configuration files are configuration files of various different styles, the configuration files of different styles can be stored in different directory structures respectively. For example:
style/national celebration/xx
style/childhood section/xx
S403, when the set top box is started and initialized, acquiring an address of a pre-configured configuration file from a server through an application programming interface;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. When the address of the pre-configured configuration file is acquired, the address of the pre-configured configuration file can be acquired from the server through the API interface.
S404, writing the address of the pre-configured configuration file into data stored on the local terminal of the user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
S405, before page initialization, obtaining an address of a pre-configured configuration file from data stored on a local terminal of a user;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
S406, loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting the page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when a style of content displayed on a page of a set top box needs to be updated, first, a configuration file in a cascading style sheet format and a configuration file in a transliteration script language format corresponding to the page are generated in advance, the configuration files in different styles that are generated by the pre-configuration are stored in different directory structures, when the set top box is initialized, an address of the pre-configured configuration file is obtained from a server through an application programming interface, then, the address of the pre-configured configuration file is written into data stored on a local terminal of a user, before the page is initialized, the address of the pre-configured configuration file is obtained from the data stored on the local terminal of the user, the corresponding configuration file is loaded based on the address of the pre-configured configuration file, and the page is analyzed and presented. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
As shown in fig. 5, which is a schematic structural diagram of a system embodiment 1 for automatically changing a page style of a set top box disclosed in the present invention, the system may include:
a first obtaining module 501, configured to obtain an address of a pre-configured configuration file when the set-top box is initialized, where the configuration file is used for page configuration;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
A writing module 502, configured to write an address of a pre-configured configuration file into data stored on a local terminal of a user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
A second obtaining module 503, configured to obtain an address of a pre-configured configuration file from data stored on the local terminal of the user before page initialization;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
And a page parsing module 504, configured to load a corresponding configuration file based on an address of a pre-configured configuration file, and parse and present a page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when the style of the content displayed on the page of the set top box needs to be updated, first, when the set top box is powered on and initialized, the address of the pre-configured configuration file is obtained, then, the address of the pre-configured configuration file is written into the data stored on the local terminal of the user, before the page is initialized, the address of the pre-configured configuration file is obtained from the data stored on the local terminal of the user, the corresponding configuration file is loaded based on the address of the pre-configured configuration file, and the page is parsed and presented. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
As shown in fig. 6, which is a schematic structural diagram of a system embodiment 2 for automatically changing a page style of a set top box disclosed in the present invention, the system may include:
a first obtaining module 601, configured to obtain, from a server, an address of a pre-configured configuration file through an application programming interface when a set-top box is initialized, where the configuration file is used for page configuration;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. When the address of the pre-configured configuration file is acquired, the address of the pre-configured configuration file can be acquired from the server through the API interface.
It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
A writing module 602, configured to write an address of a pre-configured configuration file into data stored on a local terminal of a user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
A second obtaining module 603, configured to obtain an address of a pre-configured configuration file from data stored on the local terminal of the user before page initialization;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
The page parsing module 604 is configured to load a corresponding configuration file based on an address of a pre-configured configuration file, and parse and present a page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when the style of the content displayed on the page of the set top box needs to be updated, first, when the set top box is booted and initialized, the address of the pre-configured configuration file is obtained from the server through the application programming interface, then the address of the pre-configured configuration file is written into the data stored on the local terminal of the user, before the page is initialized, the address of the pre-configured configuration file is obtained from the data stored on the local terminal of the user, and the corresponding configuration file is loaded based on the address of the pre-configured configuration file, so as to parse and present the page. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
As shown in fig. 7, which is a schematic structural diagram of a system embodiment 3 for automatically changing a page style of a set top box disclosed in the present invention, the system may include:
a configuration module 701, configured to pre-configure a configuration file, where the configuration file is used for page configuration;
when the style of the content displayed on the page of the set-top box needs to be updated simply and effectively, the configuration file can be configured in advance. It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
A storage module 702, configured to store configuration files with different styles generated by pre-configuration under different directory structures respectively;
when the pre-configured configuration files are configuration files of various different styles, the configuration files of different styles can be stored in different directory structures respectively.
A first obtaining module 703, configured to obtain, from the server, an address of a pre-configured configuration file through an application programming interface when the set-top box is initialized;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. When the address of the pre-configured configuration file is acquired, the address of the pre-configured configuration file can be acquired from the server through the API interface.
A writing module 704, configured to write the address of the pre-configured configuration file into the data stored on the local terminal of the user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
A second obtaining module 705, configured to obtain an address of a pre-configured configuration file from data stored on the local terminal of the user before page initialization;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
And the page parsing module 706 is configured to load a corresponding configuration file based on an address of a pre-configured configuration file, and parse and present a page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when the style of the content displayed on the page of the set top box needs to be updated, first, the configuration file is configured in advance, the configuration files configured in advance in different styles are stored in different directory structures, when the set top box is initialized, the address of the configuration file configured in advance is obtained from the server through the application programming interface, then the address of the configuration file configured in advance is written into the data stored on the local terminal of the user, before the page is initialized, the address of the configuration file configured in advance is obtained from the data stored on the local terminal of the user, the corresponding configuration file is loaded based on the address of the configuration file configured in advance, and the page is analyzed and presented. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
As shown in fig. 8, which is a schematic structural diagram of a system embodiment 4 for automatically changing a page style of a set top box disclosed in the present invention, the system may include:
the configuration module 801 is configured to generate a configuration file in a cascading style sheet format and a configuration file in an transliterated script language format corresponding to a page in advance, where the configuration files are used for page configuration;
when the style of the content displayed on the page of the set-top box needs to be updated simply and effectively, the configuration file can be configured in advance. Specifically, when configuration files are configured in advance, all the logos, the background images, the background color matching, the focus color matching and the focus images of the page are configured in a configuration mode, and two corresponding configuration files xx.css and xx.js are generated.
It should be noted that the configuration file is a file for configuring the style of the content displayed on the page of the set top box, and the configuration file may be a configuration file of different styles according to the requirement of the user. For example, the configuration file may be configured to configure the style of the content displayed by the set-top box page as a red background of festival of national day, or to configure the style of the content displayed by the set-top box page as a color tone of cheerful children.
A storage module 802, configured to store configuration files of different styles generated by pre-configuration in different directory structures;
when the pre-configured configuration files are configuration files of various different styles, the configuration files of different styles can be stored in different directory structures respectively. For example:
style/national celebration/xx
style/childhood section/xx
A first obtaining module 803, configured to obtain, from the server, an address of a pre-configured configuration file through an application programming interface when the set-top box is initialized;
when the style of the content displayed on the set-top box page needs to be updated, firstly, when the set-top box is started and initialized, the address of the pre-configured configuration file is obtained. When the address of the pre-configured configuration file is acquired, the address of the pre-configured configuration file can be acquired from the server through the API interface.
A writing module 804, configured to write an address of a pre-configured configuration file into data stored on a local terminal of a user;
and after the address of the pre-configured configuration file is acquired, further writing the acquired address of the pre-configured configuration file into the cookie.
A second obtaining module 805, configured to obtain an address of a pre-configured configuration file from data stored on the local terminal of the user before page initialization;
and before each page of the set-top box is initialized, acquiring the address of the pre-configured configuration file from the cookie.
And a page parsing module 806, configured to load a corresponding configuration file based on an address of a preconfigured configuration file, and parse a presented page.
And after the address of the pre-configured configuration file is acquired from the cookie, the corresponding configuration file is loaded according to the acquired address of the pre-configured configuration file, and the corresponding page is analyzed and presented.
To sum up, in the above embodiment, when a style of content displayed on a page of a set top box needs to be updated, first, a configuration file in a cascading style sheet format and a configuration file in a transliteration script language format corresponding to the page are generated in advance, the configuration files in different styles that are generated by the pre-configuration are stored in different directory structures, when the set top box is initialized, an address of the pre-configured configuration file is obtained from a server through an application programming interface, then, the address of the pre-configured configuration file is written into data stored on a local terminal of a user, before the page is initialized, the address of the pre-configured configuration file is obtained from the data stored on the local terminal of the user, the corresponding configuration file is loaded based on the address of the pre-configured configuration file, and the page is analyzed and presented. According to the invention, before the page is initialized, the preset configuration file is loaded and analyzed, so that the operator can simply and effectively change the page style according to the requirement, and the experience of the digital television user is improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for automatically changing the page style of a set top box is characterized by comprising the following steps:
when the set-top box is started and initialized, acquiring an address of a pre-configured configuration file, wherein the configuration file is used for page configuration;
writing the address of the pre-configured configuration file into data stored on a local terminal of the user;
before page initialization, acquiring the address of the pre-configured configuration file from the data stored on the local terminal of the user;
and loading the corresponding configuration file based on the address of the pre-configured configuration file, and analyzing and presenting a page.
2. The method of claim 1, wherein obtaining the address of the pre-configured configuration file at the time of the startup initialization of the set-top box comprises:
and when the set-top box is started and initialized, acquiring the address of the pre-configured configuration file from the server through an application programming interface.
3. The method of claim 1, further comprising:
and pre-configuring the configuration file.
4. The method of claim 3, wherein the pre-configuring the configuration file comprises:
and generating a configuration file in a cascading style sheet format and a configuration file in an transliteration script language format corresponding to the page in advance.
5. The method of claim 4, further comprising:
and respectively storing the configuration files with different styles which are configured and generated in advance in different directory structures.
6. A system for automatically changing the style of a page on a set-top box, comprising:
the first acquisition module is used for acquiring the address of a pre-configured configuration file when the set top box is started and initialized, wherein the configuration file is used for page configuration;
the writing module is used for writing the address of the pre-configured configuration file into data stored on a local terminal of a user;
a second obtaining module, configured to obtain, before page initialization, an address of the pre-configured configuration file from the data stored on the local terminal of the user;
and the page analysis module is used for loading the corresponding configuration file based on the address of the pre-configured configuration file and analyzing and presenting a page.
7. The system of claim 6, wherein the first obtaining module, when executing the initialization of booting the set-top box and obtaining the address of the pre-configured configuration file, is specifically configured to:
and when the set-top box is started and initialized, acquiring the address of the pre-configured configuration file from the server through an application programming interface.
8. The system of claim 7, further comprising:
and the configuration module is used for configuring the configuration file in advance.
9. The system of claim 8, wherein the configuration module, when performing the pre-configuration of the configuration file, is specifically configured to:
and generating a configuration file in a cascading style sheet format and a configuration file in an transliteration script language format corresponding to the page in advance.
10. The system of claim 9, further comprising:
and the storage module is used for respectively storing the configuration files with different styles generated by pre-configuration in different directory structures.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910186773.6A CN111769959A (en) | 2019-03-12 | 2019-03-12 | Method and system for automatically changing page style of set top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910186773.6A CN111769959A (en) | 2019-03-12 | 2019-03-12 | Method and system for automatically changing page style of set top box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111769959A true CN111769959A (en) | 2020-10-13 |
Family
ID=72718000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910186773.6A Pending CN111769959A (en) | 2019-03-12 | 2019-03-12 | Method and system for automatically changing page style of set top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111769959A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103260084A (en) * | 2013-04-11 | 2013-08-21 | 北京歌华有线电视网络股份有限公司 | Digital TV set-top box turning-on method and system |
CN103763613A (en) * | 2013-12-18 | 2014-04-30 | 无锡易视腾科技有限公司 | Set top box screen customization method |
CN106020837A (en) * | 2016-05-27 | 2016-10-12 | 深圳创维数字技术有限公司 | Method and system for loading set top box drive |
CN106792213A (en) * | 2016-12-10 | 2017-05-31 | 浙江知水信息技术有限公司 | A kind of configurable extended method of wisdom set-top-box system |
CN109325205A (en) * | 2018-09-25 | 2019-02-12 | 中国建设银行股份有限公司 | A kind of page generation method and device |
-
2019
- 2019-03-12 CN CN201910186773.6A patent/CN111769959A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103260084A (en) * | 2013-04-11 | 2013-08-21 | 北京歌华有线电视网络股份有限公司 | Digital TV set-top box turning-on method and system |
CN103763613A (en) * | 2013-12-18 | 2014-04-30 | 无锡易视腾科技有限公司 | Set top box screen customization method |
CN106020837A (en) * | 2016-05-27 | 2016-10-12 | 深圳创维数字技术有限公司 | Method and system for loading set top box drive |
CN106792213A (en) * | 2016-12-10 | 2017-05-31 | 浙江知水信息技术有限公司 | A kind of configurable extended method of wisdom set-top-box system |
CN109325205A (en) * | 2018-09-25 | 2019-02-12 | 中国建设银行股份有限公司 | A kind of page generation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202488621U (en) | Device for updating television user interface theme | |
USRE48430E1 (en) | Two-dimensional code processing method and terminal | |
CN109388399A (en) | The page and Universal page configuration file generation method, device, equipment and medium | |
US10282185B2 (en) | Method and apparatus for firmware virtualization | |
US20210019106A1 (en) | Desktop Sharing Method and Mobile Terminal | |
CN103324471A (en) | Dynamic modification method for applied launcher icon, message transmitting method and terminal | |
CN105142011A (en) | Web-based television terminal multi-screen interaction method and device | |
CN109683892B (en) | Page display method and device, computer equipment and storage medium | |
CN105704562B (en) | Multi-version compatible method and device for network television cloud service platform | |
CN110442366A (en) | A kind of biography screen processing method, device, equipment and storage medium | |
CN112217671B (en) | Method and equipment for performing interface display on front-end micro-service based on split deployment | |
JP2007310596A (en) | Service providing device, computer program and recording medium | |
CN108763311B (en) | Interface display method and device, intelligent interactive panel and storage medium | |
CN107426588B (en) | Method, system and storage device for acquiring television set configuration information | |
CN113938699B (en) | Method for quickly establishing live broadcast based on webpage | |
CN108874412A (en) | For updating the method, apparatus, equipment and system of interface layout | |
WO2016150390A1 (en) | Interface processing method, apparatus, and system | |
WO2016150389A1 (en) | Interface processing method, device and system | |
CN106844763B (en) | A kind of method showed to the Internet media file formula of modifying and its device | |
US20170105041A1 (en) | Method and device of interactive function card of smart television | |
CN111769959A (en) | Method and system for automatically changing page style of set top box | |
CN107241619B (en) | Media asset content synchronization method and device | |
CN103442256A (en) | Electronic program menu implementation method and system based on HTML5 | |
CN111008062A (en) | Interface setting method, device, equipment and medium for application program APP | |
CN112528177A (en) | Method for connecting waiting page switching content pages, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |