Video playing control method and device in a kind of application program
Technical field
This application involves the video playing control methods and dress in software technology field more particularly to a kind of application program
It sets.
Background technique
With the development of internet, application program (Application, APP) refers mainly to be mounted on soft on smart phone
Part improves the deficiency and personalization of primal system.So that mobile phone is improved its function, the master of richer usage experience is provided for user
Want means.
However, if returning to desktop, video council pause plays, again when user plays video in the application at present
Continue to play the video when switching back into video playing interface, it is not smooth to will lead to video-see, makes troubles to user.
Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, this application provides one kind to answer
With the video playing control method and device in program.
In a first aspect, this application provides the video playing control methods in a kind of application program, comprising:
When the first browser component that the first video playback window is embedded in the application program plays video, detection is
It is no receive jump out the application program jump out operation;
If detect it is described jump out operation, jump out to terminal interface creation suspension windows, and in the suspension windows
The second browser component of middle creation;
Continue to play video using second browser component.
Optionally, the method also includes:
Detect it is described jump out operation when, control the first browser component pause and play the video;
Record jumps out video moment and source video sequence website;
By the first browser component buffered video flow to local buffer address, record described in jump out video when
It carves and the source video sequence website is sent to second browser component.
It is optionally, described to continue to play video using second browser component, comprising:
It controls second browser component and jumps out view described in determination in the buffered video stream for being located at the buffer address
First after the frequency moment does not broadcast video flowing and the first caching stop timing;
It plays described first and does not broadcast video flowing;
It controls second browser component and opens the source video sequence website;
The first uncached video flowing after the first caching stop timing described in the source video sequence Web caching;
After described first does not broadcast video render, continue to play the described first uncached video flowing.
Optionally, the method also includes:
When continuing to play video using second browser component, detect whether to receive the rebound application program
Jump back operation;
If detecting the jump back operation, continue to play video using first browser component.
Optionally, the method also includes:
When detecting the jump back operation, controls the second browser component pause and play the video;
Record jumps back to the video moment;
The rebound video moment that second browser component records is sent to first browser component.
It is optionally, described to continue to play video using first browser component, comprising:
It controls first browser component and determines the rebound view in the buffered video stream for being located at the buffer address
Second after the frequency moment does not broadcast video flowing and the second caching stop timing;
It plays described second and does not broadcast video flowing;
It controls first browser component and reopens the source video sequence website;
The second uncached video flowing after the second caching stop timing described in the source video sequence Web caching;
After described second does not broadcast video render, continue to play the described second uncached video flowing.
Second aspect, the embodiment of the present invention also provide the video playing control device in a kind of application program, comprising:
First detection module, for the first browser component that the first video playback window is embedded in the application program
When playing video, detect whether to receive jump out the application program jump out operation;
Creation module, if for detect it is described jump out operation, jump out to terminal interface creation suspension windows, and
The second browser component is created in the suspension windows;
First playing module plays video for continuing using second browser component.
Optionally, described device further include:
Control module, for detect it is described jump out operation when, control the first browser component pause and play institute
State video;
Logging modle jumps out video moment and source video sequence website for recording;
Delivery module, for the first browser component buffered video to be flowed to the institute of local buffer address, record
It states and jumps out the video moment and the source video sequence website is sent to second browser component.
Optionally, the playing module, comprising:
First control unit, for controlling second browser component in the buffered video stream for being located at the buffer address
First jumped out after the video moment described in middle determination does not broadcast video flowing and the first caching stop timing;
First broadcast unit does not broadcast video flowing for playing described first;
Second control unit opens the source video sequence website for controlling second browser component;
Cache unit, for not delaying from first after the first caching stop timing described in the source video sequence Web caching
Deposit video flowing;
Second broadcast unit does not delay for after described first does not broadcast video render, continuing to play described first
Deposit video flowing.
Optionally, described device further include:
Second detection module, for detecting whether to receive when continuing to play video using second browser component
To the jump back operation for jumping back to the application program;
Second playing module, if continuing to play using first browser component for detecting the jump back operation
Video.
Above-mentioned technical proposal provided by the embodiments of the present application has the advantages that compared with prior art
The embodiment of the present invention can in the application the first video playback window insertion the first browser component play
When video, if user jumps out application program, can jump out to terminal interface creation suspension windows continue play video, simultaneously
Other operations to terminal interface are not influenced.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the video playing control method in a kind of application program provided by the embodiments of the present application;
Fig. 2 is another process of the video playing control method in a kind of application program provided by the embodiments of the present application
Figure;
Fig. 3 is the structure chart of the video playing control device in a kind of application program provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the application, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
When user plays video in the application at present, if returning to desktop, video council pause is played, and is being switched back into again
Continue to play the video when video playing interface, it is not smooth to will lead to video-see, makes troubles to user.For this purpose, in this hair
In bright one embodiment, the video playing control method in a kind of application program is provided, the method can be applied to terminal,
Illustratively, terminal can refer to mobile phone or tablet computer etc., as shown in Figure 1, which comprises
Step S101, the first browser component that the first video playback window is embedded in the application program play video
When, detect whether to receive jump out the application program jump out operation;
In embodiments of the present invention, before step S101, can detecte the video playing for whether receiving user's input
Operation creates the first browser component if receiving video play operation in application program, and the first browser component can be with
Refer to web view, from the corresponding server reading video data in source video sequence website and can be broadcast by the first browser component
It puts.
Illustratively, jumping out operation can refer to that user returns to the operation that desktop shortcut key returns to desktop by pressing, or
It is switched to other application program by pressing shortcut switch key, or is switched to Information application program etc. by clicking notice.
If detect it is described jump out operation, step S102, jump out to terminal interface creation suspension windows, and described
The second browser component is created in suspension windows;
Before step S102, detect it is described jump out operation when, control the first browser component pause and play
The video;Record jumps out video moment and source video sequence website;The first browser component buffered video is flowed into local
Buffer address, the described of record jump out the video moment and the source video sequence website is sent to second browser component.
Exemplary etc., the second browser component can refer to web view, by the second browser component from source video sequence net
It stands and corresponding server reading video data and plays.
Step S103 continues to play video using second browser component.
In this step, second browser component can be controlled first in the buffered video for being located at the buffer address
First jumped out after the video moment described in determining in stream does not broadcast video flowing and the first caching stop timing;Then described is played
One does not broadcast video flowing;Second browser component is controlled again opens the source video sequence website;Again from the source video sequence net
The first uncached video flowing after caching of the standing first caching stop timing;Preferably video flowing can not be broadcast described first
After finishing, continue to play the described first uncached video flowing.
The embodiment of the present invention can in the application the first video playback window insertion the first browser component play
When video, if user jumps out application program, can jump out to terminal interface creation suspension windows continue play video, simultaneously
Other operations to terminal interface are not influenced.
In practical applications due to user, it may need to jump back to application program sight again after jumping out application program
See video, for this purpose, in another embodiment of the present invention, the method also includes:
Step S201 detects whether to receive rebound institute when continuing to play video using second browser component
State the jump back operation of application program;
In embodiments of the present invention, jump back operation can give directions the operation for hitting suspension windows, live and click application program
Operation etc..
If detecting the jump back operation, step S202 continues to play video using first browser component.
Before step S202, when detecting the jump back operation, controls the second browser component pause and play
The video;Record jumps back to the video moment;The rebound video moment that second browser component records is sent to institute
State the first browser component.
In this step, first browser component is controlled to determine in the buffered video stream for being located at the buffer address
Second after the rebound video moment does not broadcast video flowing and the second caching stop timing;It plays described second and does not broadcast video
Stream;It controls first browser component and reopens the source video sequence website;Described in the source video sequence Web caching
The second uncached video flowing after second caching stop timing;After described second does not broadcast video render, after continued broadcasting
Put the described second uncached video flowing.
The embodiment of the present invention can user need to jump back to application program continue watch video when, re-use first browsing
Device assembly continues to play video, easy to operate, user-friendly.
In another embodiment of the present invention, the video playing control device in a kind of application program is also provided, such as Fig. 3 institute
Show, comprising:
First detection module 11, for the first browser group that the first video playback window is embedded in the application program
When part plays video, detect whether to receive jump out the application program jump out operation;
Creation module 12, if for detect it is described jump out operation, jump out to terminal interface creation suspension windows, and
The second browser component is created in the suspension windows;
First playing module 13 plays video for continuing using second browser component.
In another embodiment of the present invention, described device further include:
Control module, for detect it is described jump out operation when, control the first browser component pause and play institute
State video;
Logging modle jumps out video moment and source video sequence website for recording;
Delivery module, for the first browser component buffered video to be flowed to the institute of local buffer address, record
It states and jumps out the video moment and the source video sequence website is sent to second browser component.
In another embodiment of the present invention, the playing module, comprising:
First control unit, for controlling second browser component in the buffered video stream for being located at the buffer address
First jumped out after the video moment described in middle determination does not broadcast video flowing and the first caching stop timing;
First broadcast unit does not broadcast video flowing for playing described first;
Second control unit opens the source video sequence website for controlling second browser component;
Cache unit, for not delaying from first after the first caching stop timing described in the source video sequence Web caching
Deposit video flowing;
Second broadcast unit does not delay for after described first does not broadcast video render, continuing to play described first
Deposit video flowing.
In another embodiment of the present invention, described device further include:
Second detection module, for detecting whether to receive when continuing to play video using second browser component
To the jump back operation for jumping back to the application program;
Second playing module, if continuing to play using first browser component for detecting the jump back operation
Video.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting
Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair
It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and applied principle and features of novelty phase one herein
The widest scope of cause.