CN107943875A - The control method of browser kernel, device and terminal in player application - Google Patents
The control method of browser kernel, device and terminal in player application Download PDFInfo
- Publication number
- CN107943875A CN107943875A CN201711116515.8A CN201711116515A CN107943875A CN 107943875 A CN107943875 A CN 107943875A CN 201711116515 A CN201711116515 A CN 201711116515A CN 107943875 A CN107943875 A CN 107943875A
- Authority
- CN
- China
- Prior art keywords
- browser kernel
- player application
- kernel
- browser
- operating status
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses control method, device and the terminal of browser kernel in a kind of player application, this method includes:When player application runs the first browser kernel, the operating status of the first browser kernel is determined;When the operating status of the first browser kernel meets default switching condition, control player application is switched to operation second browser kernel by running first browser kernel.The technical solution can reduce influence of the single browser kernel when something goes wrong to the web displaying of player application, and reduce the influence that single browser kernel plays player application the success rate of video.
Description
Technical field
The present invention relates to player application technical field, the controlling party of browser kernel in especially a kind of player application
Method, device and terminal.
Background technology
Browser kernel, also referred to as typesetting engine, page rendering engine, it is responsible for obtaining the content (HTML of webpage
(Extensible Markup Language, can by (Hypertext Markup Language, hypertext markup language), XML
Extending mark language), image etc.), arrange information (such as adding cascading style list etc.), and calculate the display mode of webpage
Then export to display.
In general, can be provided with a browser kernel in player application, player application is by calling in the browser
Core can show webpage, recommend the webpage informations such as video display information for user;But when the browser kernel when something goes wrong will
The display of the webpage is influenced, and the operation of browser kernel can take substantial amounts of terminal resource, in terminal system I/O
(Input/Output input/output) is high, situation busy CPU (Central Processing Unit, central processing unit)
Under, the operation of browser kernel can influence the success rate that player application plays video to the occupancy of terminal resource.
The content of the invention
In view of this, the technical problems to be solved by the invention are how to provide browser kernel in a kind of player application
Control method, device and terminal, it is possible to reduce single browser kernel is when something goes wrong to the web displaying of player application
Influence, and reduce the influence that single browser kernel plays player application the success rate of video.The technical solution
It is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided the control method of browser kernel in a kind of player application,
The first browser kernel and the second browser kernel are provided with the player application, the described method includes:
When the player application runs first browser kernel, the operation of first browser kernel is determined
State;
When the operating status of first browser kernel meets default switching condition, control the player application by
Run first browser kernel and be switched to operation second browser kernel.
Optionally, the operating status of first browser kernel includes the running environment ginseng of first browser kernel
Number, then,
The running environment parameter that the default switching condition includes first browser kernel is unsatisfactory for preset parameter value.
Optionally, the operating status of first browser kernel includes the UI states and wash with watercolours of first browser kernel
It is at least one in dye state, then,
In the case where the operating status includes UI states, the default switching condition reaches the including UI break frequencies
One predeterminated frequency;
In the case where the operating status includes rendering state, the default switching condition is reached including rendering break frequency
To the second predeterminated frequency.
Optionally, the operating status of first browser kernel includes the operation duration of first browser kernel;
Then,
The operation duration that the default switching condition includes first browser kernel reaches preset duration.
Optionally, the player application is being controlled to be switched to operation described second by running first browser kernel
After browser kernel, the method further includes:
The resource of first browser kernel is discharged, loads the resource of second browser kernel;
Second browser kernel is controlled to send web-page requests to web page server;
Receive the corresponding web data of the web-page requests that the web page server returns;
Second browser kernel is controlled to load the corresponding web data of the web-page requests.
According to the second aspect of the embodiment of the present disclosure, there is provided the control device of browser kernel in a kind of player application,
The first browser kernel and the second browser kernel are provided with the player application, described device includes:
Determining module, for when the player application runs first browser kernel, determining that described first is clear
Look at the operating status of device kernel;
First control module, for when the operating status of first browser kernel meets default switching condition, controlling
Make the player application and be switched to operation second browser kernel by running first browser kernel.
Optionally, the operating status of first browser kernel includes the running environment ginseng of first browser kernel
Number, then,
The running environment parameter that the default switching condition includes first browser kernel is unsatisfactory for preset parameter value.
Optionally, the operating status of first browser kernel includes the UI states and wash with watercolours of first browser kernel
It is at least one in dye state, then,
In the case where the operating status includes UI states, the default switching condition reaches the including UI break frequencies
One predeterminated frequency;
In the case where the operating status includes rendering state, the default switching condition is reached including rendering break frequency
To the second predeterminated frequency.
Optionally, the operating status of first browser kernel includes the operation duration of first browser kernel;
Then,
The operation duration that the default switching condition includes first browser kernel reaches preset duration.
Optionally, described device further includes:
Release module, for discharging the resource of first browser kernel;
Load-on module, for loading the resource of second browser kernel;
First control module, for controlling second browser kernel to send web-page requests to web page server;
Receiving module, the corresponding web data of the web-page requests returned for receiving the web page server;
Second control module, for controlling second browser kernel to load the corresponding webpage number of the web-page requests
According to.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal, including above-mentioned device.
The present embodiment can determine the operation of the first browser kernel when player application runs the first browser kernel
State, when the operating status of the first browser kernel meets default switching condition, control player application is clear by operation first
Device kernel of looking at is switched to the second browser kernel of operation;So, it is possible to reduce single browser kernel is when something goes wrong to playing
The influence of the web displaying of device application, and reduce the shadow that single browser kernel plays player application the success rate of video
Ring.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
The attached drawing of a part for constitution instruction the embodiment that the invention has been described, and be used to explain together with description
The principle of the present invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood, wherein:
Fig. 1 is the stream of the control method of browser kernel in a kind of player application according to an exemplary embodiment
Cheng Tu.
Fig. 2 is the stream of the control method of browser kernel in a kind of player application according to an exemplary embodiment
Cheng Tu.
Fig. 3 is the frame of the control device of browser kernel in a kind of player application according to an exemplary embodiment
Figure.
Fig. 4 is the frame of the control device of browser kernel in a kind of player application according to an exemplary embodiment
Figure.
Embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should be noted that:Unless in addition have
Body illustrates that the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The scope of invention.
At the same time, it should be appreciated that for the ease of description, the size of the various pieces shown in attached drawing is not according to reality
Proportionate relationship draw.
The description only actually at least one exemplary embodiment is illustrative to be never used as to the present invention below
And its application or any restrictions that use.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as part for specification.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it need not be further discussed in subsequent attached drawing in a attached drawing.
The embodiment of the present invention can be applied to computer system/server, it can be with numerous other universal or special calculating
System environments or configuration operate together.Suitable for be used together with computer system/server well-known computing system, ring
The example of border and/or configuration includes but not limited to:Personal computer system, server computer system, thin client, thick client
Machine, hand-held or laptop devices, the system based on microprocessor, set-top box, programmable consumer electronics, NetPC Network PC,
Minicomputer system, large computer system and distributed cloud computing technology environment including any of the above described system, etc..
Computer system/server can be in computer system executable instruction (such as journey performed by computer system
Sequence module) general linguistic context under describe.In general, program module can include routine, program, target program, component, logic, number
According to structure etc., they perform specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is long-range by what is be linked through a communications network
Manage what equipment performed.In distributed cloud computing environment, program module can be located at the Local or Remote meter for including storage device
On calculation system storage medium.
Fig. 1 is the stream of the control method of browser kernel in a kind of player application according to an exemplary embodiment
Cheng Tu, as shown in Figure 1, the control method of browser kernel is used in the equipment such as terminal in the player application, including following step
Rapid 101 to 102:
In a step 101, when the player application runs first browser kernel, determine that described first browses
The operating status of device kernel.
In a step 102, when the operating status of first browser kernel meets default switching condition, described in control
Player application is switched to operation second browser kernel by running first browser kernel.
Here, two browser kernels can be provided with player application, such as the first browser kernel and second browses
Device kernel.Player application can be given tacit consent to when opening and start the first browser kernel.The first browser is run in player application
During kernel, control device can detect the operating status of the first browser kernel in real time, the operation as residing for the first browser kernel
The various operating statuses such as operating condition of the itself when situation of environment, the operation of the first browser kernel.Browsed when described first
When the operating status of device kernel meets default switching condition, the situation of running environment as residing for the first browser kernel is unsatisfactory for the
The required running environment of one browser kernel, alternatively, the first browser kernel operating condition of itself shows the first browser
Kernel goes wrong, and control device can control the player application to be switched to fortune by running first browser kernel
Row second browser kernel.Here, which can be arranged in player application.
In this way, when first browser kernel goes wrong the web displaying for influencing player application, it is not necessary to no
Disconnected to restart first browser kernel, control device can control player application to be switched to the second browser kernel of operation, by
Second browser kernel controls the acquisition of web data and display so that and the webpage of player application can normally show,
Reduce the influence that the first browser kernel goes wrong to the web displaying of player application.Alternatively, the first browser kernel
The success rate that may be influenced player application on a large amount of occupancy of terminal resource and play video is run, therefore, work as player application
Play video success rate it is relatively low when, it may be determined that it is first clear that the running environment where the first browser kernel is not suitable for running this
Look at device kernel, at this time, control device can also control player application to be switched to the second browser kernel of operation, operation ring at this time
Border may be adapted to the operation of the second browser kernel, do not interfere with player application and play video, which improves player
The success rate of application plays video.
It is exemplary, it is assumed that the first browser kernel set in player application is CEF (Chromium Embedded
Framework, embedded type C hromium frame) kernel, the second browser kernel is IE (Internet Explorer) kernel,
The CEF kernels are more stablized compared with IE kernels, but the requirement higher to running environment.Here, control device can be set
Can not be display when the CEF kernels go wrong in opening player in application, acquiescence, which starts, runs more stable CEF kernels
When device exports webpage to be shown, operation IE kernels can be switched to, the acquisition of web data and display are controlled by IE kernels, are solved
Certainly there is the problem of situation influences web displaying in CEF kernels.Alternatively, in the case of terminal system I/O high, cpu busy, CEF
Kernel can reduce the broadcasting success rate of storm wind in itself, and at this time, control device can also control player application to be switched in operation IE
Core.
Explanation is needed exist for, above-mentioned example is merely illustrative, in two set in player application browser
Core can also be other kinds of browser kernel such as Firefox (red fox) kernel etc., be not limited in CEF kernels and IE
Core;Certainly, more than two browser kernels can also be set in player application, for control device be switched to it is suitable clear
Device kernel is look to run, is not limited herein.
The present embodiment can determine the first browser kernel when player application runs first browser kernel
Operating status, when the operating status of the first browser kernel meets default switching condition, control player application is by operation the
One browser kernel is switched to the second browser kernel of operation;So, it is possible to reduce single browser kernel is right when something goes wrong
The influence of the web displaying of player application, and reduce the success rate that single browser kernel plays player application video
Influence.
In embodiment of the disclosure, the operating status of first browser kernel includes first browser kernel
Running environment parameter, then, the running environment parameter of the default switching condition including first browser kernel is unsatisfactory for
Preset parameter value.
Here, the operating status of the first browser kernel can be the running environment parameter of the first browser kernel, the fortune
Row environmental parameter can be the model of the CPU of terminal where first browser kernel, and the performance of the CPU of different model is different,
The cpu performance of some models is bad, and running the first browser kernel needs to take substantial amounts of cpu resource, can cause player
Cpu resource needed for application plays video does not reach satisfaction, may result in player application and plays video failure, therefore, control
Device can pre-set default environmental parameter, can support the model of the CPU of the first browser kernel operation, work as control
Device determines that the model of the CPU of terminal where the first browser kernel is unsatisfactory for the model of default CPU, then control device can be with
Control player application is switched to the second browser kernel of operation, in this manner it is possible to prevent the first browser kernel of operation from reducing
The broadcasting success rate of player application, improves the broadcasting success rate of player application.
Here, player application is in preset time period where which can also be the first browser kernel
The broadcasting frequency of failure, when the broadcasting frequency of failure of the player application in preset time period reaches predetermined threshold value, show
The broadcasting success rate of player application may be influenced whether by currently running first browser kernel, therefore, control device can be pre-
First set for example intraday broadcasting frequency of failure of the preset parameter value to be less than or equal to 3 times, when first browser in one day
When the broadcasting frequency of failure of player application is unsatisfactory for being less than or equal to 3 times where kernel, control device can control player should
The second browser kernel is run with being switched to.In this manner it is possible to prevent operation the first browser kernel increase player application
The frequency of failure is played, improves the broadcasting success rate of player application.
Here, which can also be that other can show that first browser kernel place running environment
The processing delay of some process in parameter such as the first browser kernel, if the time delay is excessive, is unsatisfactory for default less than or equal to certain
Time delay, then show that running environment where first browser kernel is not suitable for running first browser kernel, at this time can also
Control player application is switched to the second browser kernel of operation.
Explanation is needed exist for, control device controls player application to be switched to operation by running the first browser kernel
After second browser kernel, it can also determine whether the running environment parameter of the first browser kernel meets preset parameter value, this
When, it may meet to be unsatisfactory for, if satisfied, then control device just controls player application to run in second browser
Core, if not satisfied, then control device can pre-set the browser kernel given tacit consent to use in this case, control plays
The browser kernel that the device application operation acquiescence uses.
The present embodiment can be by the running environment parameter of definite first browser kernel, in the fortune of the first browser kernel
When row environmental parameter is unsatisfactory for preset parameter value, the second browser kernel of operation is switched to, single browser kernel can be reduced
The influence of broadcasting success rate to player application.
In embodiment of the disclosure, the operating status of first browser kernel includes first browser kernel
UI (User Interface, user interface) state and rendering state in it is at least one, then, include in the operating status
In the case of UI states, the default switching condition reaches the first predeterminated frequency including UI break frequencies;In the operating status
In the case of including rendering state, the default switching condition reaches the second predeterminated frequency including rendering break frequency.
Here, the operation feelings of the itself when operating status of the first browser kernel can be the operation of the first browser kernel
At least one in condition, such as the UI states and rendering state of the first browser kernel, here, browser kernel is in display webpage
During need to run multiple processes such as UI processes and render process etc., UI runnings state of a process can be known as to UI states,
Render running state of a process and be known as rendering state.Cause process mistake when logic error etc. occur in the process of running in UI processes
Or when surprisingly stopping, UI states are that UI collapses;Cause process mistake when logic error etc. occurs in the process of running in the process that renders
Or when surprisingly stopping, rendering state is to render collapse.When UI collapses or renders collapse, the webpage of player application cannot be just
Often display.
Here, the operating status of the first browser kernel can only include UI states, can also only include rendering state,
It can include UI states and rendering state.
Here, when the operating status of first browser kernel only includes UI states, control device can determine first
The UI states of browser kernel, when the UI states of first browser kernel meet that UI break frequencies reach the first predeterminated frequency such as
When 3 times/mono-, show that the first browser kernel goes wrong, can not normal operation, at this time, control device can control player
The second browser kernel of operation is switched to using by running the first browser kernel, webpage number is controlled by the second browser kernel
According to acquisition and display.
Here, when the operating status of first browser kernel only includes rendering state, control device can determine
The rendering state of one browser kernel, when the rendering state of first browser kernel meets to render break frequency, to reach second pre-
If during frequency such as 5 times/mono-, show that the first browser kernel goes wrong, can not normal operation, at this time, control device can be controlled
Player application processed is switched to the second browser kernel of operation by running the first browser kernel, is come by the second browser kernel
Control the acquisition and display of web data.
Here, when the operating status of first browser kernel includes UI states and rendering state, control device can be with
The UI state rendering states of the first browser kernel are determined, when the UI states of first browser kernel meet that UI break frequencies reach
When meeting that rendering break frequency reaches the second predeterminated frequency to the rendering state of the first predeterminated frequency or first browser kernel,
Can be shown that the first browser kernel goes wrong, can not normal operation, at this time, control device can control player application by transporting
The first browser kernel of row is switched to the second browser kernel of operation, and the acquisition of web data is controlled by the second browser kernel
And display.
This implementation can by determine the first browser kernel UI states and rendering state in it is at least one, collapsed in UI
When routed frequency reaches the first predeterminated frequency or renders break frequency and reach the second predeterminated frequency, determine that the first browser kernel goes out
Existing problem, is switched to the second browser kernel of operation at this time, is controlled the acquisition of web data by the second browser kernel and is shown
Show, it is ensured that the normal display of the webpage of player application.
In the embodiment disclosed, the operating status of first browser kernel includes first browser kernel
Operation duration;Then, operation duration of the default switching condition including first browser kernel reaches preset duration.
Here, control device will can be easy to use, fast, surely in two browser kernels in player application
Surely it is that the more preferable browser kernel of performance is primary browser kernel such as the second browser kernel, another browser kernel is standby
With browser kernel such as the first browser kernel.Assuming that the primary browser kernel operating condition of itself goes wrong or transports
When row environmental parameter is unsatisfactory for preset parameter value, control device determines that the operating status of the second browser kernel meets default switching
Condition, will control the player application to be switched to the second browser kernel of operation by running the first browser kernel.At this
In the case of kind, primary browser kernel i.e. the second browser kernel with normal operation or may can run ring after a while
Border parameter meets preset parameter value, therefore, control device can when the operation duration of the first browser kernel meets preset duration,
Control player application is switched to the second browser kernel of operation by running the first browser kernel, that is, controls player application to cut
Runnability preferably primary browser kernel is gained, ensures the more preferable browser kernel of the main runnability of player application.
The present embodiment can be by the operation duration of definite first browser kernel, in the operation of the first browser kernel
When length reaches preset duration, the second browser kernel of operation is switched to, is ensured in more preferable second browser of main runnability
Core.
In embodiment of the disclosure, with reference to figure 2, Fig. 2 is that a kind of player according to an exemplary embodiment should
With the flow chart of the control method of middle browser kernel, as shown in Fig. 2, browser kernel in player application disclosed above
The method can also be embodied as following steps 103 to 106 after step 102 in control method.
In step 103, the resource of first browser kernel is discharged, loads the money of second browser kernel
Source.
At step 104, second browser kernel is controlled to send web-page requests to web page server.
In step 105, the corresponding web data of the web-page requests that the web page server returns is received.
In step 106, second browser kernel is controlled to load the corresponding web data of the web-page requests.
Here, control device is controlling the player application to be switched to operation institute by running first browser kernel
When stating the second browser kernel, the related resource of the first browser kernel can be discharged, such as obtains the line upper module of network side data
With the resource of login interface etc., and load the related resource of the second browser kernel, second browser kernel in loading
After resource, control device can control the second browser kernel to send web-page requests to web page server, and web page server receives
The corresponding web data of the web-page requests can be returned to control device after the web-page requests, control device receives web page server
After the corresponding web data of the web-page requests returned, web-page requests pair will be loaded using the second browser kernel of control
The web data answered, and rendered to carrying out webpage, generate newest webpage and export to display, show that this is newest by display
Webpage, after such control device is switched to the second browser kernel, just webpage is refreshed, there is provided newest webpage information
To user.
The present embodiment can by running first browser kernel, to be switched to operation second clear in control player application
Look at after device kernel, refresh webpage, the newest webpage information of the second browser kernel offer is provided.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.
Fig. 3 is the frame of the control device of browser kernel in a kind of player application according to an exemplary embodiment
Figure, the device can be implemented in combination with as some or all of of electronic equipment by software, hardware or both.It is described to broadcast
Put in device application and be provided with the first browser kernel and the second browser kernel, as shown in figure 3, browser in the player application
The control device of kernel includes:301 and first control module 302 of determining module;Wherein:
Determining module 301, for when the player application runs first browser kernel, determining described first
The operating status of browser kernel;
First control module 302, for when the operating status of first browser kernel meets default switching condition,
The player application is controlled to be switched to operation second browser kernel by running first browser kernel.
As a kind of possible embodiment, in player application disclosed above in the control device of browser kernel, institute
Stating the operating status of the first browser kernel includes the running environment parameter of first browser kernel, then, described preset is cut
Change running environment parameter of the condition including first browser kernel and be unsatisfactory for preset parameter value.
As a kind of possible embodiment, in player application disclosed above in the control device of browser kernel, institute
State at least one in UI states and rendering state of the operating status including first browser kernel of the first browser kernel
A, then, in the case where the operating status includes UI states, the default switching condition reaches first including UI break frequencies
Predeterminated frequency;In the case where the operating status includes rendering state, the default switching condition includes rendering break frequency
Reach the second predeterminated frequency.
As a kind of possible embodiment, in player application disclosed above in the control device of browser kernel, institute
Stating the operating status of the first browser kernel includes the operation duration of first browser kernel;Then, the default switching bar
The operation duration that part includes first browser kernel reaches preset duration.
As a kind of possible embodiment, Fig. 4 is clear in a kind of player application according to an exemplary embodiment
Look at device kernel control device block diagram, as shown in figure 4, in player application disclosed above browser kernel control device
Can be configured to, which includes release module 303, load-on module 304, the second control module 305, receiving module 306 and the 3rd, controls
Molding block 307, wherein:
Release module 303, for discharging the resource of first browser kernel;
Load-on module 304, for loading the resource of second browser kernel;
Second control module 305, for controlling second browser kernel to send web-page requests to web page server;
Receiving module 306, the corresponding web data of the web-page requests returned for receiving the web page server;
3rd control module 307, for controlling second browser kernel to load the corresponding webpage of the web-page requests
Data.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The disclosure additionally provides a kind of terminal, which includes the described any device of above-described embodiment.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and its
The difference of its embodiment, the same or similar part cross-reference between each embodiment.For system embodiment
For, since it is substantially corresponding with embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
Defend oneself bright.
The method and system of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, firmware any combinations come realize the present invention method and system.The said sequence of the step of for the method
Merely to illustrate, the step of method of the invention, is not limited to order described in detail above, special unless otherwise
Do not mentionlet alone bright.In addition, in certain embodiments, the present invention can be also embodied as recording program in the recording medium, these programs
Machine readable instructions including being used for realization the method according to the invention.Thus, the present invention also covering storage is used to perform basis
The recording medium of the program of the method for the present invention.
Description of the invention provides for the sake of example and description, and is not exhaustively or by the present invention
It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Select and retouch
State embodiment and be to more preferably illustrate the principle of the present invention and practical application, and those of ordinary skill in the art is managed
The solution present invention is so as to design the various embodiments with various modifications suitable for special-purpose.
Claims (11)
1. the control method of browser kernel in a kind of player application, it is characterised in that be provided with the player application
First browser kernel and the second browser kernel, the described method includes:
When the player application runs first browser kernel, the operation shape of first browser kernel is determined
State;
When the operating status of first browser kernel meets default switching condition, the player application is controlled by running
First browser kernel is switched to operation second browser kernel.
2. according to the method described in claim 1, it is characterized in that, the operating status of first browser kernel is including described
The running environment parameter of first browser kernel, then,
The running environment parameter that the default switching condition includes first browser kernel is unsatisfactory for preset parameter value.
3. according to the method described in claim 1, it is characterized in that, the operating status of first browser kernel is including described
It is at least one in the user interface UI states and rendering state of first browser kernel, then,
In the case where the operating status includes UI states, it is pre- that the default switching condition including UI break frequencies reaches first
If frequency;
In the case where the operating status includes rendering state, the default switching condition, which includes rendering break frequency, reaches the
Two predeterminated frequencies.
4. according to the method described in claim 1, it is characterized in that, the operating status of first browser kernel is including described
The operation duration of first browser kernel;Then,
The operation duration that the default switching condition includes first browser kernel reaches preset duration.
5. method according to any one of claims 1 to 4, it is characterised in that controlling the player application by running
First browser kernel is switched to after operation second browser kernel, and the method further includes:
The resource of first browser kernel is discharged, loads the resource of second browser kernel;
Second browser kernel is controlled to send web-page requests to web page server;
Receive the corresponding web data of the web-page requests that the web page server returns;
Second browser kernel is controlled to load the corresponding web data of the web-page requests.
6. the control device of browser kernel in a kind of player application, it is characterised in that be provided with the player application
First browser kernel and the second browser kernel, described device include:
Determining module, for when the player application runs first browser kernel, determining first browser
The operating status of kernel;
First control module, for when the operating status of first browser kernel meets default switching condition, controlling institute
State player application and be switched to operation second browser kernel by running first browser kernel.
7. device according to claim 6, it is characterised in that the operating status of first browser kernel includes described
The running environment parameter of first browser kernel, then,
The running environment parameter that the default switching condition includes first browser kernel is unsatisfactory for preset parameter value.
8. device according to claim 6, it is characterised in that the operating status of first browser kernel includes described
It is at least one in the user interface UI states and rendering state of first browser kernel, then,
In the case where the operating status includes UI states, it is pre- that the default switching condition including UI break frequencies reaches first
If frequency;
In the case where the operating status includes rendering state, the default switching condition, which includes rendering break frequency, reaches the
Two predeterminated frequencies.
9. device according to claim 6, it is characterised in that the operating status of first browser kernel includes described
The operation duration of first browser kernel;Then,
The operation duration that the default switching condition includes first browser kernel reaches preset duration.
10. according to claim 6 to 9 any one of them device, it is characterised in that described device further includes:
Release module, for discharging the resource of first browser kernel;
Load-on module, for loading the resource of second browser kernel;
First control module, for controlling second browser kernel to send web-page requests to web page server;
Receiving module, the corresponding web data of the web-page requests returned for receiving the web page server;
Second control module, for controlling second browser kernel to load the corresponding web data of the web-page requests.
11. a kind of terminal, it is characterised in that including any device in claim 6 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711116515.8A CN107943875A (en) | 2017-11-13 | 2017-11-13 | The control method of browser kernel, device and terminal in player application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711116515.8A CN107943875A (en) | 2017-11-13 | 2017-11-13 | The control method of browser kernel, device and terminal in player application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107943875A true CN107943875A (en) | 2018-04-20 |
Family
ID=61934923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711116515.8A Pending CN107943875A (en) | 2017-11-13 | 2017-11-13 | The control method of browser kernel, device and terminal in player application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943875A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109698979A (en) * | 2018-12-13 | 2019-04-30 | 北京爱奇艺科技有限公司 | A kind of method, apparatus and electronic equipment of video playing |
CN113504854A (en) * | 2021-07-08 | 2021-10-15 | 维沃移动通信(杭州)有限公司 | Display method and device thereof |
-
2017
- 2017-11-13 CN CN201711116515.8A patent/CN107943875A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109698979A (en) * | 2018-12-13 | 2019-04-30 | 北京爱奇艺科技有限公司 | A kind of method, apparatus and electronic equipment of video playing |
CN113504854A (en) * | 2021-07-08 | 2021-10-15 | 维沃移动通信(杭州)有限公司 | Display method and device thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9307007B2 (en) | Content pre-render and pre-fetch techniques | |
CN107181803B (en) | Method and device for playing video | |
US20180176272A1 (en) | System, device, and method for interactive communications among mobile devices and ip-connected screens | |
US10241982B2 (en) | Modifying web pages based upon importance ratings and bandwidth | |
US11278801B2 (en) | Management of provisioning of video game during game preview | |
CN105528135A (en) | Information presenting method and device and electronic apparatus | |
CN107908569B (en) | WAP user interface test method | |
CN106791953A (en) | Many player control methods, server and client | |
US11170059B2 (en) | Personalized content selection for time-constrained sessions | |
WO2017107851A1 (en) | Method and device for releasing and updating desktop application component | |
CA2856620A1 (en) | Adaptive content delivery | |
CN107943875A (en) | The control method of browser kernel, device and terminal in player application | |
CN104077151B (en) | The method and electronic equipment of fast start network application | |
WO2015162550A1 (en) | System, device, and method for interactive communications among mobile devices and ip-connected screens | |
CN110866208B (en) | Page response type layout method, device and equipment | |
WO2014127021A1 (en) | Methods and apparatus for providing application provisioning | |
CN108319474B (en) | Page information generation method, device and equipment | |
CN113157374B (en) | Page mode switching method, device, equipment and storage medium | |
CN110457632B (en) | Webpage loading processing method and device | |
CN108415746B (en) | Application interface display method and device, storage medium and electronic equipment | |
CN104102536A (en) | Display method and system for data | |
CN109857959A (en) | Third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment | |
CN109829152A (en) | Head portrait replacing options, device, computer equipment and storage medium | |
CN109657179B (en) | Service processing method, system and storage medium | |
US20240201830A1 (en) | Page interaction |
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 |