CN108833980B - IPTV page generation and reproduction method based on multi-window realization - Google Patents

IPTV page generation and reproduction method based on multi-window realization Download PDF

Info

Publication number
CN108833980B
CN108833980B CN201810508744.2A CN201810508744A CN108833980B CN 108833980 B CN108833980 B CN 108833980B CN 201810508744 A CN201810508744 A CN 201810508744A CN 108833980 B CN108833980 B CN 108833980B
Authority
CN
China
Prior art keywords
window
page
hidden
main window
iptv
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.)
Active
Application number
CN201810508744.2A
Other languages
Chinese (zh)
Other versions
CN108833980A (en
Inventor
姜超
李明
胡丽娟
陈世庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810508744.2A priority Critical patent/CN108833980B/en
Publication of CN108833980A publication Critical patent/CN108833980A/en
Application granted granted Critical
Publication of CN108833980B publication Critical patent/CN108833980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Abstract

The invention discloses a method for generating and reproducing an IPTV page based on multi-window realization, which relates to the field of IPTV set-top boxes and comprises the following steps: after the main window is loaded, copying the contents of the main window to create a hidden window; saving URLs of all pages corresponding to the hidden window as a structural body, and forming a linked list; and when the main window is triggered to load a new page, searching the URL of the newly loaded page in the structure linked list, and configuring and generating the window according to the searching result. The method for generating and reproducing the IPTV page based on the multi-window realization can distinguish and process a new page and a loaded page, can omit most time-consuming processes such as middle loading, rendering, drawing and the like when the page which is loaded once is loaded, and greatly shortens the loading time of the page.

Description

IPTV page generation and reproduction method based on multi-window realization
Technical Field
The invention relates to the field of IPTV set-top boxes, in particular to a method for generating and reproducing an IPTV page based on multi-window realization.
Background
With the rapid development of network construction, video services have increased greatly, and especially the number of users who use IPTV set-top boxes as home entertainment centers has increased year by year. Today, network resource applications and service contents are becoming huge, people not only limit the requirements on the IPTV set top box to diversified functions, but also put higher requirements on experience requirements such as response speed and display effect of the IPTV set top box.
The traditional IPTV set top box adopts a single-window display mode. In the process of displaying the page, page loading, rendering, layout and display are all completed through one window, so all the above operation steps must be completed in the process of loading and displaying each page. However, in the actual operation process of the user, a completely new page is not required to be displayed every browsing operation, and the user only needs to return to the previously opened page in many cases. In the existing technical scheme, a special window display process is not designed according to the requirements, so that the speed of generating a window page by the IPTV is low.
Some technical schemes introduce a method for realizing rapid generation and reproduction of pages by reading javascript's history object, which realizes the backward and forward of pages without knowing the actual URL by reading the history of the page list visited by the user. However, this method often results in a window content error or even a page crash during the process of rendering the page because the correct page in the frame cannot be found.
In addition, because of the possibility of multi-level page jump in the process of one complete page switching, and because of the lack of a corresponding judging and screening mode, the existing page generating and reproducing method may jump or copy to a window containing a jump intermediate page, which causes a subsequent page generating error or page crash, and causes negative effects on the stability of system operation.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method for generating and reproducing an IPTV page based on multi-window realization, which can quickly and accurately reproduce the window of the loaded IPTV page and ensure the accuracy of generating the content of the window.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a method for generating and reproducing IPTV page based on multi-window implementation comprises the following steps:
s1, copying the content of the main window to create a hidden window after the page of the main window is loaded;
s2, saving URLs of all pages corresponding to the hidden window as a structural body, and forming a linked list;
and S3, when the main window is triggered to load a new page, searching the URL of the newly loaded page in the structure linked list, and generating and loading the main window page according to the configuration of the searching result.
On the basis of the technical scheme, when the main window is triggered to load a new page, if the URL of the newly loaded page is found in the structure linked list, the current main window is hidden, and the hidden window corresponding to the structure in the main window loading linked list is updated.
On the basis of the technical scheme, the step of updating the structure linked list comprises the following steps: deleting the displayed structure of the hidden window in the structure linked list, and inserting the newly hidden structure of the original main window.
On the basis of the technical scheme, when the main window is triggered to load a new page, if the URL of the newly loaded page is not found in the structure linked list, the new page is directly loaded in the main window.
Based on the above technical solution, in step S1, before copying the contents of the main window, it is ensured that the page switching of the main window is completed.
On the basis of the technical scheme, the step of ensuring the completion of the switching of the page of the main window comprises the following steps: after the page loading is finished every time, a timer is started, and after the timer is overtime, the content of the main window is copied to create a hidden window.
On the basis of the technical scheme, after the timer is overtime, the method further comprises the following steps: judging whether the number of the hidden windows reaches the maximum value, if so, deleting the hidden window which is created firstly, and then copying the content of the main window to create the hidden window; if the maximum value is not reached, the content of the main window is directly copied to create a hidden window.
On the basis of the technical scheme, the copying of the main window content is realized by copying WebContents through a browser kernel.
On the basis of the above technical solution, the method further includes turning to step S1 after the step S3 is completed.
Based on the above technical solution, when the main window content is copied to create the hidden window in step S1, the window to be hidden is numbered and recorded.
Compared with the prior art, the invention has the advantages that:
(1) the method for generating and reproducing the IPTV page based on the multi-window realization can distinguish and process a new page and a loaded page, can omit most time-consuming processes such as middle loading, rendering, drawing and the like when the page which is loaded once is loaded, greatly shortens the loading time of the page, and provides more smooth use experience for users.
(2) In the method for generating and reproducing the IPTV page based on the multi-window realization, in the process of realizing the hiding of the page, the establishment and the storage of the structure linked list and the like, because all the generated pages are realized by copying the kernel WebContents and all the hidden and reproduced windows contain the contents of all the pages under the whole frame, the problems of javascript analysis error and the like caused by resource deficiency can be avoided, and the page loading process is quicker and more accurate.
(3) The IPTV page generation and reproduction method based on multi-window realization adopts a time-delay copying mode, performs timing after page loading is completed each time, judges that page switching is completed once if no page jumping activity exists during timing, and performs page storage and hiding work after page switching is completed, thereby avoiding storing a page in jumping, and solving the problem of jumping error caused by copying to a window containing a jumping page when multi-level page jumping occurs.
Drawings
Fig. 1 is a schematic flowchart of a method for generating and reproducing an IPTV page based on multi-window implementation in embodiment 1 of the present invention;
fig. 2 is a flowchart illustrating a method for generating and reproducing an IPTV page based on multi-window implementation in embodiment 5 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
The terms used in the description of the present invention are to be construed as follows:
IPTV, Internet Protocol television, interactive web tv.
URL, Uniform Resource Locator, is a string used to describe information Resource on the Internet.
WebContents is a structure body which is existed in kernel source code of a chrome browser and is used for storing window content, and is a conventional technology in the field.
A structure (struct) is a data set composed of a series of data of the same type or different types.
Example 1
Referring to fig. 1, an embodiment of the present invention provides a method for generating and reproducing an IPTV page based on a multi-window implementation, including the following steps:
s1, loading a home page in the main window after the IPTV is started; after the main window page is loaded, copying the main window content and triggering an application layer to create a hidden window by a browser kernel; the hidden window here is a pointer in a structure containing a URL;
s2, in the process of creating the hidden window, the browser kernel saves URLs of all pages contained in the hidden window and a main window in the kernel as a structural body and stores the URLs in a linked list form;
and S3, when the user operates to trigger the main window to load a new page or jump the page, the browser kernel searches the URL of the newly loaded page in the structure linked list, and generates and loads the main window page according to the configuration of the search result.
Through the steps, the loaded new page and the loaded old page are processed in a distinguishing mode, the whole process of loading the old page is realized only by the browser kernel through searching the structure body chain table and reading the stored hidden window, and excessive network interaction processes are not performed, so that most of time-consuming processes such as intermediate loading, rendering and drawing can be omitted, and the loading time of the page is greatly shortened.
Example 2
The embodiment of the invention provides a method for generating and reproducing an IPTV page based on multi-window implementation, which is basically the same as the embodiment 1, and has the following difference:
in step S1, the copy home window content step is implemented by the browser kernel copying WebContents. As described above, because WebContents store all page contents of the whole window, including all sub-frames under the framework, compared with the existing javascript analyzing method that only backward and forward pages are realized without knowing the actual URL, the problems of javascript analysis error and the like caused by resource deficiency do not exist, and the page loading process of the IPTV is faster and more accurate.
Example 3
The embodiment of the invention provides a method for generating and reproducing an IPTV page based on multi-window implementation, which is basically the same as the embodiment 1, and has the following difference: in step S1, before copying the contents of the main window, it is determined whether the page switching is completed. Because multi-level page skipping may exist in the complete page switching process, the setting of the step can avoid copying to the window containing the skipped page. Specifically, the invention adopts a delayed copy mode to judge whether the page is switched completely, namely, after each page loading is completed, timing is started according to the preset time, and the standard for judging whether the page is switched completely is as follows: if the page jump activity does not occur in the timing period, the page switching is judged to be completed, and the subsequent steps can be continued.
Example 4
The embodiment of the invention provides a method for generating and reproducing an IPTV page based on multi-window implementation, which is basically the same as the embodiment 3, and has the following difference: after the page loading is finished every time, the browser kernel starts a timer with preset timing time to time, and after the timer is overtime, the related steps of copying the content of the main window and creating the hidden window are carried out.
The new content in this embodiment is embodied by determining whether the page is completely switched in embodiment 3, and the steps in this embodiment are specifically implemented as follows: after each page loading is completed, that is, after the page loading steps in steps S1 and S3 in this embodiment are performed, the browser starts to count time according to a preset time, and continuously determines whether the time is out, if not, the browser keeps counting continuously, and if so, the browser performs the related step of copying the contents of the main window to create the hidden window. In this embodiment, the preset time is set to 1 second, and the specific duration of the preset time can be adjusted according to the system hardware and the actual loading delay requirement, so as to ensure that the multi-level intermediate non-display page jump activity and the redirection activity which may exist in one page jump are all completed, and finally the page is stabilized.
After the timer is overtime and before the hidden window is created, the following steps can be executed to ensure that the content of the hidden page does not occupy a large amount of cache and influence the operation fluency of the IPTV system: the maximum value of the number of windows to be hidden can be preset in advance according to the cache size of the IPTV set top box. After the timer is overtime, the browser kernel judges whether the number of the current hidden windows reaches the maximum value, if so, the hidden window which is created firstly is deleted, and then the content of the main window is copied to create the hidden window; if the maximum value is not reached, the content of the main window is directly copied to create a hidden window.
Example 5
The embodiment of the present invention provides a method for generating and reproducing an IPTV page based on multi-window implementation, which further includes, on the basis of embodiment 4: in step S3, the specific steps of generating and loading the main window page according to the search result configuration include: the browser kernel judges whether the structure linked list contains the URL of the newly loaded page, if so, the current main window is hidden, a hidden window corresponding to the structure in the linked list is directly loaded in the main window, and the structure linked list is updated; if not, the new page is loaded directly in the main window.
In the above steps, the window, the URLs of all the corresponding pages and the pointers for representing the hidden window are stored as a structural body when the window is stored, and then the structural body is stored in a linked list form, wherein the "URLs of all the pages" in the step includes the actual URL of the hidden window and the URLs of all the jump pages in the jump process from the request URL to the actual URL. The process realizes quick search on one hand and quick and accurate judgment on whether the new page is the stored page or not on the other hand. Meanwhile, all the URLs stored in the page and the browser kernel are stored, so that even if a plurality of URLs exist in the stored or pre-jumped window, the URLs of the sub-frames cannot be missed, and the completeness and stability of loading a new page are guaranteed; when the hidden window is loaded, because the pointer capable of expressing the content of the hidden window is stored in the linked list, the hidden window to be loaded can be directly positioned through the pointer.
In this embodiment, when step S3 is completed, that is, the hidden window corresponding to the structure in the linked list is directly loaded in the main window, and the linked list of the structure is updated; or after the main window directly loads a new page, the method directly jumps to step S1, that is, the browser kernel copies the contents of the main window and triggers the application layer to create a hidden window. If the steps of timer timing, determining the number of hidden windows, etc. are set before the step of copying the contents of the main window and triggering the application layer to create the hidden window by the browser kernel as described in the previous embodiments, the steps should be performed item by item accordingly. The arrangement can keep the continuous accumulation and update of the linked list of the structure body of the hidden window to the user using the window in the browsing and running process of loading the page by the main window, enrich the linked list of the hidden window, realize the quick loading support to more user using pages and ensure the automatic cycle control of the generation and the reproduction of the IPTV page.
Referring to fig. 2, a specific process of the method for generating and reproducing the IPTV page based on multi-window implementation in the embodiment of the present invention is as follows:
step 100, after the IPTV is started, the main window finishes loading the home page, and step 101 is executed.
Step 101, starting a timer with the timing time of 1s, and executing step 102 after the timer is overtime.
And 102, judging whether the number of the hidden windows reaches the maximum value, if so, executing a step 103, and if not, executing a step 104.
Step 103, after deleting the hidden window created first, step 104 is executed.
And step 104, copying the content of the main window, creating a hidden window, and executing step 105.
And 105, storing the URLs of all the pages corresponding to the hidden window into a structural body, and forming a linked list.
And step 106, triggering the main window to load a new page through user operation.
And step 107, searching whether the structure linked list contains the URL of the newly loaded page. If so, step 108 is performed, and if not, step 109 is performed.
Step 108, hiding the current main window, loading the hidden window corresponding to the structural body in the main window loading linked list, deleting the displayed structural body of the hidden window in the structural body linked list, and inserting the newly hidden structural body of the original main window.
And step 109, directly loading a new page in the main window, and executing the step 101 after the loading is finished.
Example 6
The embodiment of the invention provides a method for generating and reproducing an IPTV page based on multi-window implementation, which is basically the same as the embodiment 5, and has the following differences:
in this embodiment, when the main window content is copied to create a hidden window in step S1, the window to be hidden may be numbered and recorded, and the number may be read by the browser kernel and used to determine whether the number of hidden windows reaches the maximum value in embodiment 4; and for determining which hidden window is the first created hidden window that can be deleted in the method.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (7)

1. A method for generating and reproducing IPTV page based on multi-window implementation is characterized by comprising the following steps:
s1, after the page loading of the main window is finished, starting a timer after the page loading is finished each time, and after the timer is overtime, copying the content of the main window to create a hidden window; copying the content of the main window is realized by copying WebContents through a browser kernel;
s2, saving URLs of all pages corresponding to the hidden window as a structural body, and forming a linked list;
and S3, when the main window is triggered to load a new page, searching the URL of the newly loaded page in the structure linked list, and generating and loading the main window page according to the configuration of the searching result.
2. The method for generating and reproducing an IPTV page based on multi-window implementation of claim 1, wherein: when the main window is triggered to load a new page, if the URL of the newly loaded page is found in the structure linked list, the current main window is hidden, and the structure linked list is updated in the hidden window corresponding to the structure in the main window loading linked list.
3. The method for generating and reproducing an IPTV page based on multi-window implementation of claim 2, wherein the step of updating the structure linked list comprises: deleting the displayed structure of the hidden window in the structure linked list, and inserting the newly hidden structure of the original main window.
4. The method for generating and reproducing an IPTV page based on multi-window implementation of claim 1, wherein: and when the main window is triggered to load a new page, if the URL of the newly loaded page is not found in the structure linked list, directly loading the new page in the main window.
5. The method for generating and reproducing an IPTV page based on multi-window implementation of claim 1, wherein after the timer expires, the method further comprises the following steps:
judging whether the number of the hidden windows reaches the maximum value, if so, deleting the hidden window which is created firstly, and then copying the content of the main window to create the hidden window; if the maximum value is not reached, the content of the main window is directly copied to create a hidden window.
6. The method for generating and reproducing an IPTV page based on multi-window implementation of claim 1, wherein: the method further includes transitioning to step S1 after the step S3 is completed.
7. The method for generating and reproducing an IPTV page based on multi-window implementation of claim 1, wherein: when copying the contents of the main window to create a hidden window in step S1, the window to be hidden is numbered and recorded.
CN201810508744.2A 2018-05-24 2018-05-24 IPTV page generation and reproduction method based on multi-window realization Active CN108833980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810508744.2A CN108833980B (en) 2018-05-24 2018-05-24 IPTV page generation and reproduction method based on multi-window realization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810508744.2A CN108833980B (en) 2018-05-24 2018-05-24 IPTV page generation and reproduction method based on multi-window realization

Publications (2)

Publication Number Publication Date
CN108833980A CN108833980A (en) 2018-11-16
CN108833980B true CN108833980B (en) 2021-04-27

Family

ID=64145315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810508744.2A Active CN108833980B (en) 2018-05-24 2018-05-24 IPTV page generation and reproduction method based on multi-window realization

Country Status (1)

Country Link
CN (1) CN108833980B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109874060B (en) * 2019-01-04 2021-04-27 烽火通信科技股份有限公司 Error prompting method and system for browser nested hidden page
CN111741347B (en) * 2019-03-25 2024-02-13 深圳市茁壮网络股份有限公司 Television page display method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106196A (en) * 2011-11-09 2013-05-15 腾讯科技(深圳)有限公司 Method and device for restoring browser webpage
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103376974A (en) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 Window switching method and device
CN105224167A (en) * 2015-08-31 2016-01-06 深圳市茁壮网络股份有限公司 A kind of windows switching method and device
CN106033372A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Page switching method and apparatus
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4444932B2 (en) * 2006-08-24 2010-03-31 キヤノン株式会社 Information processing apparatus and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106196A (en) * 2011-11-09 2013-05-15 腾讯科技(深圳)有限公司 Method and device for restoring browser webpage
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103376974A (en) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 Window switching method and device
CN106033372A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Page switching method and apparatus
CN105224167A (en) * 2015-08-31 2016-01-06 深圳市茁壮网络股份有限公司 A kind of windows switching method and device
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device

Also Published As

Publication number Publication date
CN108833980A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN109032738B (en) Multimedia playing control method, device, terminal and storage medium
US7917846B2 (en) Web clip using anchoring
US5515490A (en) Method and system for temporally formatting data presentation in time-dependent documents
CN106066863B (en) Method and device for displaying live broadcast room in live broadcast platform
CN110297996A (en) Cartoon display method, device, equipment and storage medium based on the H5 page
CN106791953B (en) Multi-player control method, server and client
WO2015135403A1 (en) Method and apparatus for playing video, and application server
US11907279B2 (en) Mechanism to handle interrupted playback experience for media items in playlists
CN103699674A (en) Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
CN108833980B (en) IPTV page generation and reproduction method based on multi-window realization
US11941728B2 (en) Previewing method and apparatus for effect application, and device, and storage medium
US20220321936A1 (en) Information push method, apparatus, electronic device and storage medium
CN107295415B (en) Video playing method and device
CN105069037A (en) Search content display method and apparatus
CN110647685A (en) Information recommendation method, device and equipment
US7802262B1 (en) System and method for communicating state and title information between a browser and a rich internet application with browser forward and back button support
CN104994429A (en) Video playing method and device
CN103686402A (en) Program-information-based video positioning method and video player
WO2022142750A1 (en) Tutorial-based multimedia resource editing method and apparatus, device, and storage medium
US20210397652A1 (en) Method and apparatus for producing video material, electronic device and computer readable medium
US11461535B2 (en) Video buffering for interactive videos using a markup language
CN103390043A (en) Method for displaying network data and device for displaying network data
CN111901659B (en) Information acquisition method and electronic equipment
KR101302583B1 (en) An e-learning contents management system based on object units and the method thereof
CN114401441B (en) Short video play processing method and device, intelligent terminal 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
GR01 Patent grant
GR01 Patent grant