CN106375866B - Page loading method and terminal - Google Patents

Page loading method and terminal Download PDF

Info

Publication number
CN106375866B
CN106375866B CN201610835576.9A CN201610835576A CN106375866B CN 106375866 B CN106375866 B CN 106375866B CN 201610835576 A CN201610835576 A CN 201610835576A CN 106375866 B CN106375866 B CN 106375866B
Authority
CN
China
Prior art keywords
loading
live broadcast
page
broadcast room
target
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
CN201610835576.9A
Other languages
Chinese (zh)
Other versions
CN106375866A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610835576.9A priority Critical patent/CN106375866B/en
Publication of CN106375866A publication Critical patent/CN106375866A/en
Application granted granted Critical
Publication of CN106375866B publication Critical patent/CN106375866B/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/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • 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
    • 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/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a page loading method, which comprises the following steps: preloading at least part of loading data in loading data required for loading a live broadcast room page; when a request for loading a target live broadcast room page is received, acquiring at least part of target loading data for loading the target live broadcast room page from at least part of loading data in the pre-loaded loading data required for loading the live broadcast room page; and loading the target live broadcast room page according to at least part of the target loading data. The invention also provides a terminal. By adopting the method and the device, the loading time of the terminal for loading the page of the target live broadcast room is effectively reduced, and the speed of accessing the page of the target live broadcast room is improved.

Description

Page loading method and terminal
Technical Field
The invention relates to the technical field of communication, in particular to a page loading method and a terminal.
Background
With the development of internet live broadcast platforms, online live broadcast technology develops rapidly, and online live broadcast is more and more popular among users. At present, a terminal can enter a live broadcast room to watch anchor content in the live broadcast room through a webpage loading live broadcast room page, or interact with the anchor in the live broadcast room and the like.
At present, when a terminal loads a page of a live broadcast room, the terminal downloads relevant loading data for loading the page of the live broadcast room after receiving a page loading instruction of the live broadcast room, and loads and operates the page of the live broadcast room according to the downloaded relevant loading data. That is to say, the terminal downloads the live broadcast room related loading data to load the live broadcast room page only when the live broadcast room page is to be loaded, which results in that the terminal consumes too much time in the process of loading the live broadcast room page, and user experience is affected.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a page loading method and a terminal. The loading time of the terminal for loading the page of the target live broadcast room is effectively reduced, and the speed of accessing the page of the target live broadcast room is improved.
A first aspect of an embodiment of the present invention provides a method for loading a page, which may include:
preloading at least part of loading data in loading data required for loading a live broadcast room page;
when a request for loading a target live broadcast room page is received, acquiring at least part of target loading data for loading the target live broadcast room page from at least part of loading data in the pre-loaded loading data required for loading the live broadcast room page;
and loading the target live broadcast room page according to at least part of the target loading data.
A second aspect of an embodiment of the present invention provides a terminal, which may include:
the first preloading unit is used for preloading at least part of loading data in the loading data required for loading the live broadcast room page;
the acquisition unit is used for acquiring at least part of target loading data for loading a target live broadcast room page from at least part of loading data in the pre-loaded loading data required for loading the live broadcast room page when a request for loading the target live broadcast room page is received;
and the loading unit is used for loading the target live broadcast room page according to at least part of the target loading data.
In the embodiment of the invention, the terminal can pre-load at least part of loading data in the loading data required for loading the page of the live broadcast room, when a request for loading the page of the target live broadcast room is received, the target at least part of loading data for loading the page of the target live broadcast room is obtained from at least part of the pre-loaded loading data for loading the page of the live broadcast room, and the page of the target live broadcast room is loaded according to the target at least part of loading data, so that the loading time for loading the page of the target live broadcast room by the terminal is effectively reduced, and the speed for accessing the page of the target live broadcast room 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 schematic diagram of a network architecture provided by an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for loading a page according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for loading a page according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another terminal provided in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another terminal according to an embodiment of 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.
The page loading method provided by the embodiment of the invention can be applied to scenes of loading the pages of the live broadcast room by the terminal.
In the embodiment of the present invention, the described terminal may include: a Mobile phone, a tablet computer, a palm computer, or a Mobile Internet Device (MID), etc., which are examples and not exhaustive, and include but are not limited to the above terminals.
In order to better understand the solution disclosed in the embodiment of the present invention, a network architecture to which the embodiment of the present invention is applicable is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. In the network architecture shown in fig. 1, the network architecture may include a terminal and a live broadcast server, the terminal may be connected to the live broadcast server through a network, and the terminal may request a live broadcast service to load data.
Based on the network architecture shown in fig. 1, the embodiment of the invention discloses a page loading method. The page loading method provided by the embodiment of the invention will be described in detail below with reference to fig. 2 to fig. 3, wherein the execution subject of the embodiment is a terminal.
Fig. 2 is a schematic flowchart of an embodiment of a method for loading a page according to an embodiment of the present invention. The page loading method of the embodiment of the invention comprises the following steps:
s100, preloading at least part of loading data required by loading the live broadcast room page.
In this embodiment, the loading data may include all data required for the terminal to load the live view page. Specifically, loading data may include: the method comprises the steps of providing process information of a live broadcast room page, initialization information of the live broadcast room page, room information of the live broadcast room page, live broadcast parameter configuration information of the live broadcast room page, interface information of the live broadcast room page, information of entering the live broadcast room page and the like.
In the embodiment of the invention, the terminal can preload a part of the loading data or all the loading data in the required loading data from the live broadcast server providing the live broadcast page, preferably, as some loading data have the timeliness requirement, the terminal can preload at least part of the loading data with low timeliness requirement. The at least part of the loaded data can be one or more of process information of a live broadcast room page, initialization information of the live broadcast room page, room information of the live broadcast room page, live broadcast parameter configuration information of the live broadcast room page, interface information of the live broadcast room page, information of a page entering the live broadcast room and first frame picture information of the live broadcast room page, and specifically, the at least part of the loaded data can be loaded data with no or low timeliness requirements such as the process information of the live broadcast room page, the initialization information of the live broadcast room page and the live broadcast parameter configuration information of the live broadcast room page.
In the embodiment of the invention, the terminal can pre-load at least part of the loading data of the specified live broadcast room page, or the terminal can pre-load at least part of the loading data of the live broadcast room page corresponding to the live broadcast program information on the page displayed by the terminal. Optionally, when the terminal monitors that the live program information is displayed on the current page, the terminal preloads at least part of loading data of the live program information providing live program information in the live room page. Further preferably, when the terminal monitors that the current page stops scrolling, the terminal may preload at least part of the loaded data of the live broadcast room page corresponding to the live broadcast program information displayed on the current page. The live program information can include the name of the live program and the live stream of the live program, and the terminal displays the live program information on the current page, specifically, the terminal can display the name of the live program, and also can display the live stream of the live program, so that a user can view the live program more visually. The live program information carries identification information of a live room page, and the identification information of the live room page may be an address or other identification of the live room page, which is not limited herein. The current page may be a browser webpage, or a page of another application, without limitation.
In a specific application of the embodiment, the current page may be an interactive page such as a QQ space page, a WeChat friend circle page, and the live program information displayed on the QQ space page may be live streams, that is, live feeds. When the terminal checks that the QQ space page stops rolling, the terminal acquires identification information of a live broadcast room page carried by live broadcast feeds displayed by the current QQ space page, and acquires at least part of loading data of the live broadcast room page corresponding to the identification information for loading the live broadcast room page according to the identification information of the live broadcast room page.
In the embodiment of the present invention, the preloading of the terminal for loading at least part of the loading data required by the live broadcast room page may specifically be: the method comprises the steps that a terminal starts a live broadcast process, process information of a target live broadcast room page is obtained, the terminal initializes a Software Development Kit (SDK) corresponding to the target live broadcast room page, initialization information of the live broadcast room page is obtained, and the terminal obtains live broadcast parameter configuration information of the live broadcast room page from a live broadcast server. In the embodiment of the invention, after the terminal preloads at least part of the loaded data of the live broadcast room page, the terminal can cache at least part of the loaded data and establish the corresponding relation between the identification information of the live broadcast room page and at least part of the loaded data.
In the embodiment of the invention, the terminal can also monitor the storage time of at least part of the loaded data, judge whether the storage time is greater than the preset threshold value, and re-preload at least part of the loaded data when the storage time is determined to be greater than the preset threshold value, so that the situation that at least part of the loaded data loses timeliness and cannot meet the loading requirement is avoided.
S101, when a request for loading a target live broadcast room page is received, at least part of target loading data for loading the target live broadcast room page is obtained from at least part of loading data in the pre-loaded loading data required for loading the live broadcast room page.
In the embodiment of the invention, when a user clicks the target live program information aiming at the live program information displayed on the current page, the terminal can receive a target live program room page request corresponding to the target live program information. And the request for loading the page of the target live broadcast room carries the identification information of the page of the target live broadcast room. The terminal can obtain at least part of target loading data corresponding to the identification information of the target live broadcast room page from the buffer space according to the corresponding relation between the identification information of the live broadcast room page and at least part of the loading data, so that at least part of target loading data corresponding to the target live broadcast room page is obtained.
S102, loading the target live broadcast room page according to at least part of the target loading data.
In the embodiment of the invention, the terminal can call at least part of the target loading data according to the loading rule to sequentially load the target live broadcast room page, obtain the target live broadcast page and display the target live broadcast room page. The loading rule may be a logic combination of tasks, and the specific way for the terminal to call at least part of the target loading data according to the loading rule to load may be: the terminal can acquire the tasks to be executed next according to the logical combination of the tasks, and inquire whether corresponding task execution results exist in at least part of target loading data, if so, the terminal can acquire the task execution results for loading, and if not, the terminal can execute the task to acquire the task execution results for loading. And after the terminal finishes loading according to the loading rule, the terminal can load the page content of the target live broadcast room page and completely display the page content of the target live broadcast room page. After the terminal finishes loading the target live broadcast room page, the terminal can receive live broadcast content of the target live broadcast room page pushed by the live broadcast server and display the live broadcast content on the target live broadcast room page.
In the embodiment of the invention, the terminal can pre-load at least part of loading data in the loading data required for loading the page of the live broadcast room, when a request for loading the page of the target live broadcast room is received, the target at least part of loading data for loading the page of the target live broadcast room is obtained from at least part of the pre-loaded loading data for loading the page of the live broadcast room, and the page of the target live broadcast room is loaded according to the target at least part of loading data, so that the loading time for loading the page of the target live broadcast room by the terminal is effectively reduced, and the speed for accessing the page of the target live broadcast room is improved.
Fig. 2 is a schematic flowchart of an embodiment of a method for loading a page according to an embodiment of the present invention. The page loading method of the embodiment of the invention comprises the following steps:
s200, preloading at least part of loading data required by loading the live broadcast room page.
S201, when a request for loading a target live broadcast room page is received, loading data of other parts except at least part of target loading data in loading data required for loading the target live broadcast room is preloaded.
In the embodiment of the invention, the terminal can be used for preloading other part loading data except the target at least part loading data in the loading data required for loading the target live broadcast room in parallel. Furthermore, the terminal can perform parallel preloading on the loaded data of other parts of the asynchronous loading of the terminal, so that the time consumption in the loading process is effectively reduced, the time consumption of the asynchronous loading in the loading process is unstable, and the terminal preloads the loaded data of other parts of the asynchronous loading in advance, so that the terminal is prevented from consuming more loading time in the asynchronous loading process. In this embodiment, the other part of the loaded data may be loaded data with a higher requirement on timeliness, for example, the other part of the loaded data may include interface information of a target live broadcast room page, room information of the target live broadcast room page, and the like.
S202, at least part of target loading data for loading the target live broadcast room page is obtained from at least part of the preloaded loading data for loading the live broadcast room page.
S203, loading the target live broadcast room page according to at least part of the target loading data and the other part of the target loading data.
In the embodiment of the invention, the terminal can call at least part of the target loading data and the other part of the target loading data according to the loading rule to load the target live broadcast room page, obtain the target live broadcast page and display the target live broadcast room page. The loading rule may be a logic combination of tasks, and the specific way for the terminal to call the target to load at least part of the loaded data and other part of the loaded data according to the loading rule may be: the terminal can acquire the tasks to be executed next according to the logical combination of the tasks, whether corresponding task execution results exist in the target at least partial loading data and other partial loading data is inquired, if yes, the terminal can acquire the task execution results for loading, and if not, the terminal can execute the task to acquire the task execution results for loading. And after the terminal finishes loading according to the loading rule, the terminal can load the page content of the target live broadcast room page and completely display the page content of the target live broadcast room page. After the terminal finishes loading the target live broadcast room page, the terminal can receive live broadcast content of the target live broadcast room page pushed by the live broadcast server and display the live broadcast content on the target live broadcast room page.
In the embodiment of the present invention, specific implementations of step S200 and step S203 may refer to specific implementations of step S100 and step S102 in the foregoing embodiment, which are not described herein again.
In the embodiment of the invention, the terminal can pre-load at least part of loading data in the loading data required for loading the page of the live broadcast room, when a request for loading the page of the target live broadcast room is received, the target at least part of loading data for loading the page of the target live broadcast room is obtained from at least part of the pre-loaded loading data for loading the page of the live broadcast room, and the page of the target live broadcast room is loaded according to the target at least part of loading data, so that the terminal can reduce the loading time for loading the page of the target live broadcast room and improve the speed for accessing the page of the target live broadcast room.
A terminal according to an embodiment of the present invention will be described with reference to fig. 4 and 5. It should be noted that fig. 4 and 5 illustrate a terminal for performing the method according to the embodiment of the present invention shown in fig. 2-3, for convenience of description, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the embodiment of the present invention shown in fig. 2-3.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 4, the terminal according to the embodiment of the present invention may include:
the first preloading unit 100 is configured to preload at least part of the load data required for loading the live view page.
An obtaining unit 200, configured to, when receiving a request for loading a target live broadcast room page, obtain target at least partial load data for loading the target live broadcast room page from at least partial load data in the pre-loaded load data required for loading the live broadcast room page.
A loading unit 300, configured to load the target live broadcast room page according to the target at least part of the loading data.
In this embodiment, the loading data may include all data required for the terminal to load the live view page. Specifically, loading data may include: the method comprises the steps of providing process information of a live broadcast room page, initialization information of the live broadcast room page, room information of the live broadcast room page, live broadcast parameter configuration information of the live broadcast room page, interface information of the live broadcast room page, information of entering the live broadcast room page and the like.
In the embodiment of the present invention, the first preloading unit 100 may preload some or all of the required load data from a live server providing a live page, and preferably, because some load data have a timeliness requirement, the first preloading unit 100 may preload at least some load data that has a low timeliness requirement. The at least part of the loaded data can be one or more of process information of a live broadcast room page, initialization information of the live broadcast room page, room information of the live broadcast room page, live broadcast parameter configuration information of the live broadcast room page, interface information of the live broadcast room page, information of a page entering the live broadcast room and first frame picture information of the live broadcast room page, and specifically, the at least part of the loaded data can be loaded data with no or low timeliness requirements such as the process information of the live broadcast room page, the initialization information of the live broadcast room page and the live broadcast parameter configuration information of the live broadcast room page.
In this embodiment of the present invention, the first preloading unit 100 may preload at least part of the loaded data of the specified live broadcast page, or the first preloading unit 100 may preload at least part of the loaded data of the live broadcast page corresponding to the live broadcast program information on the page displayed by the terminal. Optionally, when the first preloading unit 100 monitors that the live program information is displayed on the current page, the first preloading unit 100 preloads at least part of the loading data of the live program information providing live program information in the live room page. Further preferably, when the first preloading unit 100 monitors that the current page stops scrolling, the first preloading unit 100 may preload at least part of the loading data of the live broadcast room page corresponding to the live broadcast program information displayed on the current page. The live program information can include the name of the live program and the live stream of the live program, and the terminal displays the live program information on the current page, specifically, the terminal can display the name of the live program, and also can display the live stream of the live program, so that a user can view the live program more visually. The live program information carries identification information of a live room page, and the identification information of the live room page may be an address or other identification of the live room page, which is not limited herein. The current page may be a browser webpage, or a page of another application, without limitation.
In a specific application of the embodiment, the current page may be an interactive page such as a QQ space page, a WeChat friend circle page, and the live program information displayed on the QQ space page may be live streams, that is, live feeds. When the first preloading unit 100 detects that the QQ space page stops scrolling, the first preloading unit 100 obtains identification information of a live broadcast room page carried by live broadcast feeds displayed on the current QQ space page, and obtains at least part of loading data of the live broadcast room page corresponding to the identification information for loading the live broadcast room page according to the identification information of the live broadcast room page.
In this embodiment of the present invention, the preloading of at least part of the load data required for loading the live view page by the first preloading unit 100 may specifically be: the first preloading unit 100 starts a live broadcast process to obtain process information of a target live broadcast room page, the first preloading unit 100 initializes a software development kit SDK corresponding to the target live broadcast room page to obtain initialization information of the live broadcast room page, and the first preloading unit 100 obtains live broadcast parameter configuration information of the live broadcast room page from a live broadcast server. In this embodiment of the present invention, after the first preloading unit 100 preloads at least part of the load data of the live view page, the first preloading unit 100 may cache at least part of the load data, and establish a corresponding relationship between the identification information of the live view page and at least part of the load data.
In the embodiment of the invention, the terminal can also monitor the storage time of at least part of the loaded data, judge whether the storage time is greater than the preset threshold value, and re-preload at least part of the loaded data when the storage time is determined to be greater than the preset threshold value, so that the situation that at least part of the loaded data loses timeliness and cannot meet the loading requirement is avoided.
In the embodiment of the present invention, when a user clicks target live program information with respect to live program information displayed on a current page, the obtaining unit 200 may receive a target live program room page request corresponding to the target live program information. And the request for loading the page of the target live broadcast room carries the identification information of the page of the target live broadcast room. The obtaining unit 200 may obtain, from the buffer space, at least part of the loaded data of the target corresponding to the identification information of the target live broadcast room page according to the correspondence between the identification information of the live broadcast room page and at least part of the loaded data, so as to obtain at least part of the loaded data of the target corresponding to the target live broadcast room page.
In the embodiment of the present invention, the loading unit 300 may call a target at least part of the loading data according to the loading rule to sequentially load the target live broadcast room page, obtain the target live broadcast page, and display the target live broadcast room page. The loading rule may be a logic combination of a task, and the invoking of the target at least part of the loaded data by the loading unit 300 according to the loading rule to load may specifically be: the loading unit 300 may obtain a task to be executed next according to a logical combination of the tasks, and query whether there is a corresponding task execution result in the target at least part of the loaded data, if so, the loading unit 300 may obtain the task execution result for loading, and if not, the loading unit 300 may execute the task to obtain the task execution result for loading. After the loading unit 300 finishes loading according to the loading rule, the loading unit 300 may load the page content of the target live broadcast room page and completely display the page content of the target live broadcast room page. After the loading unit 300 finishes loading the target live broadcast room page, the terminal can receive live broadcast content of the target live broadcast room page pushed by the live broadcast server and display the live broadcast content on the target live broadcast room page.
In the embodiment of the invention, the terminal can pre-load at least part of loading data in the loading data required for loading the page of the live broadcast room, when a request for loading the page of the target live broadcast room is received, the target at least part of loading data for loading the page of the target live broadcast room is obtained from at least part of the pre-loaded loading data for loading the page of the live broadcast room, and the page of the target live broadcast room is loaded according to the target at least part of loading data, so that the loading time for loading the page of the target live broadcast room by the terminal is effectively reduced, and the speed for accessing the page of the target live broadcast room is improved.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 5, the terminal according to the embodiment of the present invention may include:
a first preload unit 100, an acquisition unit 200 and a loading unit 300.
Wherein, the terminal further includes:
a second preloading unit 400, configured to preload other part of the load data, except for the target at least part of the load data, in the load data required for loading the target live broadcast.
In the embodiment of the present invention, the second preloading unit 400 may preload, in parallel, the load data required for loading the target live broadcast, except for the target at least partial load data. Further, the second preloading unit 400 may preload the other part of the asynchronously loaded data of the terminal in parallel, so as to effectively reduce time consumption during the loading process, and the asynchronous loading is time-consuming and unstable during the loading process, while the second preloading unit 400 preloads the other part of the asynchronously loaded data in advance, thereby avoiding that the terminal consumes more loading time during the asynchronous loading. In this embodiment, the other part of the loaded data may be loaded data with a higher requirement on timeliness, for example, the other part of the loaded data may include interface information of a target live broadcast room page, room information of the target live broadcast room page, and the like.
In this embodiment of the present invention, the loading unit 300 may call at least part of the target loading data and the other part of the target loading data according to the loading rule to load the target live broadcast page, obtain the target live broadcast page, and display the target live broadcast page. The loading rule may be a logic combination of a task, and the invoking of the target by the loading unit 300 according to the loading rule to load at least part of the loaded data and other part of the loaded data may specifically be: the loading unit 300 may obtain a task to be executed next according to a logical combination of the tasks, and query whether there is a corresponding task execution result in the target at least part of the loaded data and the other part of the loaded data, if so, the loading unit 300 may obtain the task execution result for loading, and if not, the loading unit 300 may execute the task to obtain the task execution result for loading. After the loading unit 300 finishes loading according to the loading rule, the loading unit 300 may load the page content of the target live broadcast room page and completely display the page content of the target live broadcast room page. After the loading unit 300 finishes loading the target live broadcast room page, the loading unit 300 may receive live broadcast content of the target live broadcast room page pushed by the live broadcast server, and display the live broadcast content on the target live broadcast room page.
Wherein the first preload unit 100 includes:
an obtaining subunit 10, configured to obtain identification information of a live broadcast room carried by live broadcast program information displayed on a current page;
and the pre-loading subunit 20 is configured to pre-load at least part of loading data of a target live broadcast room page corresponding to the identification information for loading the live broadcast room.
The terminal further comprises:
a monitoring unit 500 for monitoring a storage time of the at least partially loaded data;
a determining unit 600, configured to determine whether the storage time is greater than a preset threshold;
a reloading unit 700, configured to reload the at least part of the loaded data when the determining unit determines that the storage time is greater than a preset threshold.
The second preload unit 400 is specifically configured to:
and parallelly preloading other part of loading data except the target at least part of loading data in the loading data required for loading the target live broadcast room.
It can be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the method embodiment described in fig. 2 to fig. 3, and the specific implementation process may refer to the related description of the above method embodiment, which is not described herein again.
In the embodiment of the invention, the terminal can pre-load at least part of loading data in the loading data required for loading the page of the live broadcast room, when a request for loading the page of the target live broadcast room is received, the target at least part of loading data for loading the page of the target live broadcast room is obtained from at least part of the pre-loaded loading data for loading the page of the live broadcast room, and the page of the target live broadcast room is loaded according to the target at least part of loading data, so that the terminal can reduce the loading time for loading the page of the target live broadcast room and improve the speed for accessing the page of the target live broadcast room.
Fig. 6 is a schematic structural diagram of another terminal according to an embodiment of the present invention. As shown in fig. 6, terminal 1000 can include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 6, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a communication connection application program.
In the terminal 1000 shown in fig. 6, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the network interface 1004 is used for connecting with a news server and acquiring data sent by the news server; and the processor 1001 may be configured to invoke the communication connection application stored in the memory 1005 and specifically perform the following operations:
preloading at least part of loading data in loading data required for loading a live broadcast room page;
when a request for loading a target live broadcast room page is received, acquiring at least part of target loading data for loading the target live broadcast room page from at least part of loading data in the pre-loaded loading data required for loading the live broadcast room page;
and loading the target live broadcast room page according to at least part of the target loading data.
The preloading of at least part of the load data required for loading the live broadcast room page by the processor 1001 includes:
acquiring identification information of a live broadcast room carried by live broadcast program information displayed on a current page;
and preloading at least part of loading data of a target live broadcast room page corresponding to the identification information for loading the live broadcast room.
After the processor 1001 receives a request for loading a target live broadcast room page, the processor 1001 further performs:
preloading other part of loading data except the target at least part of loading data in the loading data required for loading the target live broadcast room;
the loading the target live broadcast room page according to the target at least part of the loading data comprises:
and loading the target live broadcast room page according to at least part of the target loading data and the other part of the target loading data.
After the processor 1001 preloads at least part of the load data required for loading the live broadcast page, the processor 1001 further includes:
monitoring a storage time of the at least partially loaded data;
judging whether the storage time is greater than a preset threshold value or not;
and when the storage time is determined to be larger than a preset threshold value, reloading the at least part of the loading data.
The preloading of the processor 1001 with the partial load data, except for the target at least partial load data, in the load data required for loading the target live broadcast room includes:
and parallelly preloading other part of loading data except the target at least part of loading data in the loading data required for loading the target live broadcast room.
It can be understood that the functions of each functional module of the unit in the terminal in this embodiment may be specifically implemented according to the method in the method embodiment described in fig. 2 to fig. 3, and the specific implementation process may refer to the related description of the above method embodiment, which is not described herein again.
In the embodiment of the invention, the terminal can pre-load at least part of loading data in the loading data required for loading the page of the live broadcast room, when a request for loading the page of the target live broadcast room is received, the target at least part of loading data for loading the page of the target live broadcast room is obtained from at least part of the pre-loaded loading data for loading the page of the live broadcast room, and the page of the target live broadcast room is loaded according to the target at least part of loading data, so that the terminal can reduce the loading time for loading the page of the target live broadcast room and improve the speed for accessing the page of the target live broadcast room.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (8)

1. A method for loading a page, the method comprising:
at least part of loading data in loading data required by loading a live broadcast room page corresponding to live program information on a display page of a preloading terminal, wherein the at least part of loading data comprises process information of the live broadcast room page, initialization information of the live broadcast room page and live broadcast parameter configuration information of the live broadcast room page;
when a request for loading a target live broadcast room page is received, acquiring at least part of target loading data for loading the target live broadcast room page from at least part of loading data in the pre-loaded loading data required for loading the live broadcast room page, and pre-loading other part loading data except the at least part of target loading data in the loading data required for loading the target live broadcast room page, wherein the other part loading data comprises interface information of the target live broadcast room page and room information of the target live broadcast room page;
and loading the target live broadcast room page according to at least part of the target loading data and the other part of the target loading data.
2. The method of claim 1, wherein preloading at least some of the load data needed to load a live-air page comprises:
acquiring identification information of a live broadcast room carried by live broadcast program information displayed on a current page;
and preloading at least part of loading data of a target live broadcast room page corresponding to the identification information for loading the live broadcast room.
3. The method of claim 1, wherein preloading at least some of the load data needed to load a live-air page comprises, after preloading at least some of the load data needed to load a live-air page:
monitoring a storage time of the at least partially loaded data;
judging whether the storage time is greater than a preset threshold value or not;
and when the storage time is determined to be larger than a preset threshold value, reloading the at least part of the loading data.
4. The method of claim 1, wherein preloading data other than the target at least partial load data in load data needed for loading the target live broadcast room page comprises:
and parallelly preloading other part loading data except the target at least part loading data in the loading data required for loading the target live broadcast room page.
5. A terminal for loading a page, the terminal comprising:
the first preloading unit is used for preloading at least part of loading data in loading data required by loading a live broadcast room page corresponding to live program information on a terminal display page, wherein the at least part of loading data has no timeliness requirement or the timeliness requirement is lower than a preset threshold value, and the at least part of loading data comprises process information of the live broadcast room page, initialization information of the live broadcast room page and live broadcast parameter configuration information of the live broadcast room page;
the acquisition unit is used for acquiring at least part of target loading data for loading a target live broadcast room page from at least part of loading data in the pre-loaded loading data required for loading the live broadcast room page when a request for loading the target live broadcast room page is received;
the second preloading unit is used for preloading other part loading data except the target at least part loading data in the loading data required for loading the target live broadcast room page, and the timeliness requirement of the other part loading data is higher than a preset threshold;
and the loading unit is used for loading the target live broadcast room page according to at least part of the loading data of the target and the other part of the loading data.
6. The terminal of claim 5, wherein the first preloading unit includes:
the acquisition subunit is used for acquiring the identification information of the live broadcast room carried by the live broadcast program information displayed on the current page;
and the pre-loading subunit is used for pre-loading at least part of loading data of a target live broadcast room page corresponding to the identification information used for loading the live broadcast room.
7. The terminal of claim 5, wherein the terminal further comprises:
the monitoring unit is used for monitoring the storage time of the at least part of the loaded data;
the judging unit is used for judging whether the storage time is greater than a preset threshold value or not;
and the reloading unit is used for reloading at least part of the loading data when the judging unit determines that the storage time is greater than a preset threshold value.
8. The terminal of claim 5, wherein the second pre-loading unit is specifically configured to:
and parallelly preloading other part loading data except the target at least part loading data in the loading data required for loading the target live broadcast room page.
CN201610835576.9A 2016-09-20 2016-09-20 Page loading method and terminal Active CN106375866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610835576.9A CN106375866B (en) 2016-09-20 2016-09-20 Page loading method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610835576.9A CN106375866B (en) 2016-09-20 2016-09-20 Page loading method and terminal

Publications (2)

Publication Number Publication Date
CN106375866A CN106375866A (en) 2017-02-01
CN106375866B true CN106375866B (en) 2020-10-09

Family

ID=57897788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610835576.9A Active CN106375866B (en) 2016-09-20 2016-09-20 Page loading method and terminal

Country Status (1)

Country Link
CN (1) CN106375866B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066545A (en) * 2017-03-17 2017-08-18 北京潘达互娱科技有限公司 A kind of page loading method and device
CN111339472A (en) * 2020-03-16 2020-06-26 上海英方软件股份有限公司 Method, device and system for improving access speed of web system
CN113065009B (en) * 2021-04-21 2022-08-26 上海哔哩哔哩科技有限公司 View loading method and device
CN113360806A (en) * 2021-06-08 2021-09-07 上海哔哩哔哩科技有限公司 Live broadcast page display method and device
CN114339364A (en) * 2021-12-21 2022-04-12 北京达佳互联信息技术有限公司 Multimedia data processing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system
CN103618942A (en) * 2013-12-16 2014-03-05 乐视致新电子科技(天津)有限公司 Smart television, as well as method and device for playing browser webpage video of smart television
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
CN104361071A (en) * 2014-11-12 2015-02-18 沈文策 Page preloading method and device
WO2016035061A1 (en) * 2014-09-01 2016-03-10 Ani-View Ltd A system for preloading imagized video clips in a web-page
CN105681912A (en) * 2015-10-16 2016-06-15 乐视致新电子科技(天津)有限公司 Video playing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system
CN103618942A (en) * 2013-12-16 2014-03-05 乐视致新电子科技(天津)有限公司 Smart television, as well as method and device for playing browser webpage video of smart television
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
WO2016035061A1 (en) * 2014-09-01 2016-03-10 Ani-View Ltd A system for preloading imagized video clips in a web-page
CN104361071A (en) * 2014-11-12 2015-02-18 沈文策 Page preloading method and device
CN105681912A (en) * 2015-10-16 2016-06-15 乐视致新电子科技(天津)有限公司 Video playing method and device

Also Published As

Publication number Publication date
CN106375866A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106375866B (en) Page loading method and terminal
CN111240837B (en) Resource allocation method, device, terminal and storage medium
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN109309851B (en) Information processing method, server and terminal
CN108933947B (en) Bullet screen display method and device
CN105530232B (en) Account login method and device
CN105373370B (en) Control display method and device
CN112423024A (en) Video transcoding method and device, computer equipment and storage medium
CN111767558A (en) Data access monitoring method, device and system
CN108415746B (en) Application interface display method and device, storage medium and electronic equipment
CN107679063B (en) Picture display method, server and computer-readable storage medium
US9886290B2 (en) Component loading based on user preferences
CN112287261A (en) Resource loading method and electronic equipment
CN114237755A (en) Application running method and device, electronic equipment and storage medium
CN106790428B (en) Data transmission method and device
CN106155732B (en) Loading method and device of video game controller
CN113726584A (en) Message sending method and device and electronic equipment
CN115220803A (en) Data processing method and equipment
CN113934954A (en) Webpage first screen rendering method and device in application program
CN108111561B (en) Data downloading method and equipment thereof
CN109840156B (en) Data caching method and equipment, storage medium and terminal thereof
CN111163138B (en) Method, device and server for reducing network load during game
CN114398131B (en) Information display method, device, equipment, medium and program product
CN110489469B (en) Data transmission method, device, computer equipment and storage medium
CN112861041B (en) Media content display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 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