CN112235628A - Multi-window opening method, device, equipment and medium for television operating system - Google Patents
Multi-window opening method, device, equipment and medium for television operating system Download PDFInfo
- Publication number
- CN112235628A CN112235628A CN202010885056.5A CN202010885056A CN112235628A CN 112235628 A CN112235628 A CN 112235628A CN 202010885056 A CN202010885056 A CN 202010885056A CN 112235628 A CN112235628 A CN 112235628A
- Authority
- CN
- China
- Prior art keywords
- window
- page
- switched
- windows
- current
- 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.)
- Granted
Links
Images
Classifications
-
- 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/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
- H04N21/4355—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- 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/451—Execution arrangements for user interfaces
-
- 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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- 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)
- Software Systems (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a method, a device, equipment and a medium for opening multiple windows of a television operating system, wherein the method comprises the following steps: configuring the required window number and window attributes in a window configuration file; configuring project pages and corresponding windows thereof in the page routing file; packaging items by using a packaging tool, analyzing a configuration file, initializing a scheduling class Scheduler after a browser page is loaded, initializing and mounting virtual windows on the page, defaulting that all windows are completely transparent initially, initializing the hierarchy of each window according to the sequence during creation, and spacing the hierarchy of two adjacent windows by at least one layer; when switching between windows, finding the window where the page is located according to the page route by a scheduling opening method, and carrying out hierarchical processing on the current window and the window to be switched to ensure that the hierarchy of the window to be switched is highest and the window to be switched is set to be opaque. The window opening mode of the invention can greatly reduce the performance overhead of the television and is convenient for the subsequent maintenance of projects.
Description
Technical Field
The invention relates to the field of smart televisions, in particular to a method, a device, equipment and a medium for opening multiple windows of a television operating system based on a front end.
Background
The intelligent television development architecture is mainly divided into three layers including a bottom layer, a middleware layer and a UI layer. Different from the display mode of a window page of a computer browser, only the page information under the window is displayed on the television interface, no corresponding window information is interacted with the window for a user to select, and the part which can be operated by the user is the page part. Therefore, when the UI layer performs an operation of switching between pages (for example, jumping to the next page by clicking a button or a link of the current page), one of the following two situations may occur: the method comprises the steps of replacing an old page of an original window with a new page, re-opening a new window for displaying the new page, and realizing that a specified window is required to be skipped back through a browser part, namely, a UI layer is required to inform a bottom layer, and the bottom layer is used for operating the browser. Due to the requirement of television projects, different functional modules can be divided into a plurality of windows, and the bottom layer is used for assisting in switching the windows by the UI layer in the actual operation process, so that larger time and performance overhead can be generated. At present, the mainstream single-page frame routing has the nesting coupling problem, and the maintainability is poor in a deeper nesting scene.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, a device and a medium for opening multiple windows of a television operating system, which solve the problems of long time and large performance overhead required for page jump and poor maintainability.
In a first aspect, the present invention provides a method for opening multiple windows of a television operating system, where the method includes:
configuring the required window number and window attribute in a window configuration file win-config.js;
configuring a project page and a window corresponding to the project page in a page routing file router.
Analyzing the configuration file, creating a corresponding number of window classes according to the win-config.js file, and registering a page in a window according to the router.json file;
after a browser page is loaded, initializing a scheduling Scheduler, simultaneously initializing and mounting virtual windows on the page, defaulting that all windows are completely transparent initially, initializing the levels of all windows according to the sequence during creation, and spacing the levels of two adjacent windows by at least one layer;
when switching between windows, finding the window where the page is located according to the page route by a scheduling opening method, and carrying out hierarchical processing on the current window and the window to be switched to ensure that the hierarchy of the window to be switched is highest and the window to be switched is set to be opaque.
Further, the window attribute is customized by a user, and comprises: whether to automatically close the current window and whether to acquire a focus;
if the current window which is automatically closed is set to be yes, and the acquisition focus is set to be yes, when the windows are switched, all current windows are automatically closed and the window to be switched is opened through the opening method of the scheduling class, the level of the window to be switched is increased to the current window level +2, and the current window level is set to be opaque:
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be negative, when the window is switched, finding the window where the page is located as the window to be switched according to the page routing by using a scheduling opening method, opening the window, increasing the level of the window to be switched to the current window level +2, setting the window to be switched to be opaque, reducing the level of the current window by 1, keeping the opaque state, and still processing the remote control key by the current window;
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be positive, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened according to the page routing through a scheduling opening method, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the window to be switched is set to be in a transparent state, and the remote control key is processed by the window to be.
Further, the method further comprises: when a page is opened for the first time, a window where the page is located is found according to the page routing through a scheduler.
Further, the window class is provided with an app.js file and a history.js file, the app.js file is used for registering a page in the window, and the history.js file is used for recording the page history of the window before the window is closed or is switched to other windows;
and when the page in the current window needs to be switched, carrying out rollback operation according to the page opening sequence recorded in the history.
In a second aspect, the present invention provides a multi-window opening apparatus for a television operating system, the apparatus comprising:
the window configuration module is used for configuring the required window number and window attributes in a window configuration file win-config.js;
a page configuration module, configured to configure a project page and a window corresponding to the project page in a page routing file router.
The analysis module is used for analyzing the configuration file, creating a corresponding number of window classes according to the win-config.js file, and registering a page in the window according to the router.json file;
the initialization module is used for initializing a scheduling Scheduler after a browser page is loaded, initializing and mounting virtual windows on the page, defaulting that all windows are completely transparent initially, initializing the levels of all windows according to the sequence during creation, and spacing the levels of two adjacent windows by at least one layer;
and the window switching module is used for finding the window where the page is located according to the page route by a scheduling opening method and carrying out hierarchical processing on the current window and the window to be switched so as to enable the hierarchy of the window to be switched to be the highest and to set the window to be opaque.
Further, the window attribute is customized by a user, and comprises: whether to automatically close the current window and whether to acquire a focus;
if the current window which is automatically closed is set to be yes, and the acquisition focus is set to be yes, when the windows are switched, all current windows are automatically closed and the window to be switched is opened through the opening method of the scheduling class, the level of the window to be switched is increased to the current window level +2, and the current window level is set to be opaque:
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be negative, when the window is switched, finding the window where the page is located as the window to be switched according to the page routing by using a scheduling opening method, opening the window, increasing the level of the window to be switched to the current window level +2, setting the window to be switched to be opaque, reducing the level of the current window by 1, keeping the opaque state, and still processing the remote control key by the current window;
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be positive, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened according to the page routing through a scheduling opening method, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the window to be switched is set to be in a transparent state, and the remote control key is processed by the window to be.
Further, the device further comprises a triggering module, which is used for finding the window where the page is located according to the page routing by a scheduler.
Further, the window class is provided with an app.js file and a history.js file, the app.js file is used for registering a page in the window, and the history.js file is used for recording the page history of the window before the window is closed or is switched to other windows;
and when the page in the current window needs to be switched, carrying out rollback operation according to the page opening sequence recorded in the history.
In a third aspect, the present invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of the first aspect when executing the program.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of the first aspect.
The invention has the advantages that:
the method comprises the steps of configuring required window configuration files and page routing configuration files in advance, introducing a plurality of window classes under a single window page of a browser according to a service scene, simulating a plurality of browser windows, and realizing the switching and data flow control of the windows by scheduling classes independently, so that the inter-page jumping of a UI layer is realized, namely, the window switching can be realized without calling a bottom layer.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating an implementation of a multi-window opening method for a television operating system according to an embodiment of the present invention;
fig. 2 is a block diagram of a multi-window opening apparatus of a television operating system according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the invention;
fig. 4 is a schematic structural diagram of a medium according to a fourth embodiment of the present invention.
FIG. 5 is a diagram illustrating a hierarchical structure of windows according to an embodiment of the present invention.
Detailed Description
For better understanding of the above technical solutions, the above technical solutions will be described in detail with reference to the drawings and specific embodiments of the present invention, but the structure of the present invention is not limited to the following embodiments.
Example one
Referring to fig. 1, the present invention provides a method for opening multiple windows of a television operating system, where the method includes:
step S101, configuring the required window number and window attribute in a window configuration file win-config.js;
step S102, configuring project pages and corresponding windows in a page routing file router.
Step S103, packaging items by using a packaging tool in advance, analyzing a configuration file, creating a corresponding number of window classes according to a win-config.js file, registering a page in a window according to a router.json file, and discarding if the page of the corresponding window is not found;
step S104, after a browser page is loaded, initializing a scheduling Scheduler, initializing and mounting virtual windows on the page, defaulting that all windows are completely transparent initially, initializing the levels of all windows according to the sequence during creation, and spacing the levels of two adjacent windows by at least one layer; as shown in fig. 5, the windows are stacked according to the order of creation, and if the windows are created at the bottom layer, for example, at intervals, the z-index of the hierarchy from the bottom layer to the top layer is 0, 2, 4, 6, 8, 10, … …. The hierarchy may be arranged by two layers, and the lowest layer may start from 1.
And S105, when switching between the windows, finding the window where the page is located according to the page route by using a scheduling opening method, and carrying out hierarchical processing on the current window and the window to be switched so as to enable the hierarchy of the window to be switched to be the highest and to set the window to be opaque.
Preferably, the window attribute in this embodiment is customized by a user, and includes: whether to automatically close the current window and whether to acquire a focus;
if the current window to be automatically closed is set to be yes, and the acquisition focus is set to be yes, when the window is switched, all current windows are automatically closed and the window to be switched is opened through a scheduling type opening method (a scheduler. open method or a scheduler. exitto method provided by a frame can be adopted, and a user-defined method can also be adopted), the level of the window to be switched is increased to the current window level +2, and the current window level is set to be opaque:
if the current window which is automatically closed is set to be negative and the acquired focus is set to be negative, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened through a scheduling opening method (a scheduler. open method provided by a frame can be adopted, and a self-defining method can also be adopted) according to the page route, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the opaque state is kept, the remote control key is still processed by the current window, for example, some pop-ups with volume adjustment do not need other operations, and the remote controller is handed to;
if the current window which is automatically closed is set to be negative and the acquired focus is set to be positive, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened through a scheduling opening method (a scheduler. open method provided by a frame can be adopted, and a self-defining method can also be adopted) according to the page route, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the window to be switched is set to be in a transparent state, and the remote control key is processed; for example, the current window is window1, which is at a level x at this time, the window to be switched to is window2, which is at a level y at this time, when schedule is called, the page corresponding to 'router 1' is found in window2 and window switching is started, when switching is performed, the level y of window2 is set to be the current window1 level plus 2, that is, y is x +2 and is set to be opaque, the focus of taking the current window is used for the window to be switched, that is, the remote controller key is controlled by the window to be switched, and the current window1 level is reduced by 1 to obtain a new level x is x-1 and is set to be fully transparent.
Preferably, in this embodiment, before the step 105, the method further includes: when a page is opened for the first time, a window where the page is located is found according to the page routing through a scheduler.
Preferably, in this embodiment, the window class is provided with an app.js file and a history.js file, and is used for simulating a web page jump and history recording function of a browser window, where the app.js file is used for registering a page in the window, and the history.js file is used for recording a page history before the window is closed or switched to another window;
and when the page in the current window needs to be switched, carrying out rollback operation according to the page opening sequence recorded in the history. If the page corresponding to the 'router 1' is used in a window, an app class needs to be registered, the history of the page is recorded by js, such as page1- > page2- > page6, before the window is closed or switched to another window, and the page can be returned to page1 according to the record when the page6 is used.
Example two
Referring to fig. 2, the present invention provides a multi-window opening apparatus for a television operating system, the apparatus comprising:
a window configuration module 201, configured to configure the required number of windows and window attributes in a window configuration file win-config.js;
a page configuration module 202, configured to configure a project page and a window corresponding to the project page in a page routing file router.
The analysis module 203 is used for packaging items by using a packaging tool in advance, analyzing configuration files, creating a corresponding number of window classes according to a win-config.js file, registering pages in windows according to a router.json file, and discarding the windows if the pages corresponding to the windows are not found;
the initialization module 204 is configured to initialize a scheduling class Scheduler after a browser page is loaded, initialize and mount virtual windows on the page, default that all windows are completely transparent initially, initialize the levels of each window according to the order of creation, and space the levels of two adjacent windows by at least one layer; as shown in fig. 5, the windows are stacked according to the order of creation, and if the windows are created at the bottom layer, for example, at intervals, the z-index of the hierarchy from the bottom layer to the top layer is 0, 2, 4, 6, 8, 10, … …. The hierarchy may be arranged by two layers, and the lowest layer may start from 1.
And the window switching module 205 is configured to, when switching between windows, find a window where a page is located according to a page route by using a scheduling type opening method, and perform hierarchical processing on the current window and the window to be switched, so that the window to be switched has the highest hierarchical level and is set to be opaque.
Preferably, the window attribute in this embodiment is customized by a user, and includes: whether to automatically close the current window and whether to acquire a focus;
if the current window to be automatically closed is set to be yes, and the acquisition focus is set to be yes, when the window is switched, all current windows are automatically closed and the window to be switched is opened through a scheduling type opening method (a scheduler. open method or a scheduler. exitto method provided by a frame can be adopted, and a user-defined method can also be adopted), the level of the window to be switched is increased to the current window level +2, and the current window level is set to be opaque:
if the current window which is automatically closed is set to be negative and the acquired focus is set to be negative, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened through a scheduling opening method (a scheduler. open method provided by a frame can be adopted, and a self-defining method can also be adopted) according to the page route, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the opaque state is kept, the remote control key is still processed by the current window, for example, some pop-ups with volume adjustment do not need other operations, and the remote controller is handed to;
if the current window which is automatically closed is set to be negative and the acquired focus is set to be positive, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened through a scheduling opening method (a scheduler. open method provided by a frame can be adopted, and a self-defining method can also be adopted) according to the page route, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the window to be switched is set to be in a transparent state, and the remote control key is processed; for example, the current window is window1, which is at a level x at this time, the window to be switched to is window2, which is at a level y at this time, when schedule is called, the page corresponding to 'router 1' is found in window2 and window switching is started, when switching is performed, the level y of window2 is set to be the current window1 level plus 2, that is, y is x +2 and is set to be opaque, the focus of taking the current window is used for the window to be switched, that is, the remote controller key is controlled by the window to be switched, and the current window1 level is reduced by 1 to obtain a new level x is x-1 and is set to be fully transparent.
Preferably, the apparatus in this embodiment further includes a triggering module, configured to find a window where the page is located according to the page route by using a scheduler.
Preferably, in this embodiment, the window class is provided with an app.js file and a history.js file, where the app.js file is used to register a page in a window, and the history.js file is used to record a page history record of the window before the window is closed or switched to another window;
and when the page in the current window needs to be switched, carrying out rollback operation according to the page opening sequence recorded in the history.
EXAMPLE III
Referring to fig. 3, the present invention provides an electronic device 300, which includes a memory 301, a processor 302, and a computer program 303 stored in the memory 301 and running on the processor, wherein when the processor 302 executes the computer program, any one of the embodiments may be implemented.
Example four
Referring to fig. 4, the present invention provides a computer readable storage medium 400, on which a computer program 401 is stored, which when executed by a processor, can implement any one of the embodiments.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages: and realizing window class and scheduling class through JavaScript, and simulating the multi-window behavior of the browser. Specifically, a required window configuration file and a required page routing configuration file are configured in advance, a plurality of window classes are introduced under a single window page of a browser according to a service scene, a plurality of browser windows are simulated, the windows are mutually independent and are switched by scheduling classes and controlled by data flow, page skip of a UI layer is realized, performance overhead is low, user experience is improved, and window page maintainability is high.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (10)
1. A multi-window opening method of a television operating system is characterized in that: the method comprises the following steps:
configuring the required window number and window attribute in a window configuration file win-config.js;
configuring a project page and a window corresponding to the project page in a page routing file router.
Analyzing the configuration file, creating a corresponding number of window classes according to the win-config.js file, and registering a page in a window according to the router.json file;
after a browser page is loaded, initializing a scheduling Scheduler, simultaneously initializing and mounting virtual windows on the page, defaulting that all windows are completely transparent initially, initializing the levels of all windows according to the sequence during creation, and spacing the levels of two adjacent windows by at least one layer;
when switching between windows, finding the window where the page is located according to the page route by a scheduling opening method, and carrying out hierarchical processing on the current window and the window to be switched to ensure that the hierarchy of the window to be switched is highest and the window to be switched is set to be opaque.
2. The method of claim 1, wherein the method further comprises: the window attribute is customized by a user and comprises the following steps: whether to automatically close the current window and whether to acquire a focus;
if the current window which is automatically closed is set to be yes, and the acquisition focus is set to be yes, when the windows are switched, all current windows are automatically closed and the window to be switched is opened through the opening method of the scheduling class, the level of the window to be switched is increased to the current window level +2, and the current window level is set to be opaque:
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be negative, when the window is switched, finding the window where the page is located as the window to be switched according to the page routing by using a scheduling opening method, opening the window, increasing the level of the window to be switched to the current window level +2, setting the window to be switched to be opaque, reducing the level of the current window by 1, keeping the opaque state, and still processing the remote control key by the current window;
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be positive, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened according to the page routing through a scheduling opening method, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the window to be switched is set to be in a transparent state, and the remote control key is processed by the window to be.
3. The method of claim 1, wherein the method further comprises: the method further comprises the following steps: when a page is opened for the first time, a window where the page is located is found according to the page routing through a scheduler.
4. The method of claim 1, wherein the method further comprises: the window class is provided with an app.js file and a history.js file, wherein the app.js file is used for registering a page in a window, and the history.js file is used for recording the page history of the window before the window is closed or switched to other windows;
and when the page in the current window needs to be switched, carrying out rollback operation according to the page opening sequence recorded in the history.
5. A multi-window opening apparatus for a television operating system, comprising: the device comprises:
the window configuration module is used for configuring the required window number and window attributes in a window configuration file win-config.js;
a page configuration module, configured to configure a project page and a window corresponding to the project page in a page routing file router.
The analysis module is used for analyzing the configuration file, creating a corresponding number of window classes according to the win-config.js file, and registering a page in the window according to the router.json file;
the initialization module is used for initializing a scheduling Scheduler after a browser page is loaded, initializing and mounting virtual windows on the page, defaulting that all windows are completely transparent initially, initializing the levels of all windows according to the sequence during creation, and spacing the levels of two adjacent windows by at least one layer;
and the window switching module is used for finding the window where the page is located according to the page route by a scheduling opening method and carrying out hierarchical processing on the current window and the window to be switched so as to enable the hierarchy of the window to be switched to be the highest and to set the window to be opaque.
6. The multi-window opening apparatus of a tv operating system according to claim 5, wherein:
the window attribute is customized by a user and comprises the following steps: whether to automatically close the current window and whether to acquire a focus;
if the current window which is automatically closed is set to be yes, and the acquisition focus is set to be yes, when the windows are switched, all current windows are automatically closed and the window to be switched is opened through the opening method of the scheduling class, the level of the window to be switched is increased to the current window level +2, and the current window level is set to be opaque:
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be negative, when the window is switched, finding the window where the page is located as the window to be switched according to the page routing by using a scheduling opening method, opening the window, increasing the level of the window to be switched to the current window level +2, setting the window to be switched to be opaque, reducing the level of the current window by 1, keeping the opaque state, and still processing the remote control key by the current window;
if the current window which is automatically closed is set to be negative and the acquisition focus is set to be positive, when the window is switched, the window where the page is located is found to serve as the window to be switched to be opened according to the page routing through a scheduling opening method, the level of the window to be switched is increased to be +2 of the level of the current window, the window to be switched is set to be opaque, meanwhile, the level of the current window is reduced by 1, the window to be switched is set to be in a transparent state, and the remote control key is processed by the window to be.
7. The multi-window opening apparatus of a tv operating system according to claim 5, wherein: the device also comprises a triggering module, which is used for finding the window where the page is located according to the page routing by a scheduler.
8. The multi-window opening apparatus of a tv operating system according to claim 5, wherein: the window class is provided with an app.js file and a history.js file, wherein the app.js file is used for registering a page in a window, and the history.js file is used for recording the page history of the window before the window is closed or switched to other windows;
and when the page in the current window needs to be switched, carrying out rollback operation according to the page opening sequence recorded in the history.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010885056.5A CN112235628B (en) | 2020-08-28 | 2020-08-28 | Multi-window opening method, device, equipment and medium for television operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010885056.5A CN112235628B (en) | 2020-08-28 | 2020-08-28 | Multi-window opening method, device, equipment and medium for television operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112235628A true CN112235628A (en) | 2021-01-15 |
CN112235628B CN112235628B (en) | 2022-04-26 |
Family
ID=74116416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010885056.5A Active CN112235628B (en) | 2020-08-28 | 2020-08-28 | Multi-window opening method, device, equipment and medium for television operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112235628B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113391746A (en) * | 2021-06-17 | 2021-09-14 | 海信电子科技(深圳)有限公司 | Display device and multi-window focus control method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077016A (en) * | 2013-03-29 | 2014-10-01 | 中兴通讯股份有限公司 | Method and device for displaying and switching multiple windows |
CN105898512A (en) * | 2015-12-09 | 2016-08-24 | 四川长虹电器股份有限公司 | Multi-window display and interaction method for intelligent TV Android system |
US20170280092A1 (en) * | 2016-03-22 | 2017-09-28 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for playing quality adjustment in multi-window video playing |
-
2020
- 2020-08-28 CN CN202010885056.5A patent/CN112235628B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077016A (en) * | 2013-03-29 | 2014-10-01 | 中兴通讯股份有限公司 | Method and device for displaying and switching multiple windows |
CN105898512A (en) * | 2015-12-09 | 2016-08-24 | 四川长虹电器股份有限公司 | Multi-window display and interaction method for intelligent TV Android system |
US20170280092A1 (en) * | 2016-03-22 | 2017-09-28 | Le Holdings (Beijing) Co., Ltd. | Method and electronic device for playing quality adjustment in multi-window video playing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113391746A (en) * | 2021-06-17 | 2021-09-14 | 海信电子科技(深圳)有限公司 | Display device and multi-window focus control method |
Also Published As
Publication number | Publication date |
---|---|
CN112235628B (en) | 2022-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220253588A1 (en) | Page processing method and related apparatus | |
JP7013466B2 (en) | Application data processing methods, equipment, and computer programs | |
EP3220249B1 (en) | Method, device and terminal for implementing regional screen capture | |
US8599217B1 (en) | Methods and apparatus for reordering of rows and columns in layout grids | |
CN104252284A (en) | File display method and device | |
WO2014173141A1 (en) | Method of switching desktop subjects of mobile terminal and its switching apparatus | |
CN103914314A (en) | Method and device for adjusting brightness of display screen | |
JP2018005933A (en) | Method and apparatus for managing system specification | |
CN112235628B (en) | Multi-window opening method, device, equipment and medium for television operating system | |
CN106020901A (en) | Application entry configuration method and terminal | |
CN114510170B (en) | Component display method and display device | |
CN114168853A (en) | Data visualization display method, device, medium and electronic equipment | |
CN114115673A (en) | Control method of vehicle-mounted screen | |
CN113504862A (en) | View data processing method and device, target device and storage medium | |
CN111381925B (en) | GUI fragment type rendering method and device based on dirty rectangle mechanism | |
CN107370623A (en) | A kind of method and device for realizing system installation | |
CN101996390B (en) | Image copying method and device | |
CN115617441A (en) | Method and device for binding model and primitive, storage medium and computer equipment | |
CN114757159A (en) | Packaging development method and system of multifunctional data table component | |
CN107423096A (en) | A kind of method and device for realizing software installation | |
CN110244895A (en) | Control method, apparatus, the mobile terminal, storage medium of input method banner position | |
CN114579235B (en) | Language type-based icon display method, device, equipment and storage medium | |
CN113242471B (en) | Vue-based method for realizing preview component of television Launcher system web end | |
CN111752438B (en) | Method for displaying mobile terminal multi-trigger update dynamic label | |
CN109614063B (en) | Control method for avionics system display picture |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220323 Address after: Room 305, building 2, No. 15, Wanyuan street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 102600 Applicant after: Beijing Zhixiang Information Technology Co.,Ltd. Address before: 350000 room 2-17z, building 1, No. 27 Huli Road, Mawei District, Fuzhou City, Fujian Province (in the pilot Free Trade Zone) Applicant before: Fuzhou Zhixiang Information Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |