Content of the invention
Embodiments of the invention provide a kind of video playing control method and video player, can solve the problem that video player
Video can not be played while executing the problem of games.
For reaching above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, a kind of video playing control method, during being applied to video player broadcasting video, including:
The operation order of default game is obtained, the operation order of the default game includes the name of default video playback application
Title, the position of the packet, games window size and the games window of the default game, the games window are described pre-
If the corresponding display window of game;
The first process is created in the default video playback application, and the default game is imported in first process
Packet, the corresponding games window of first process;
Position according to the title, the size of the games window and the games window of the default video playback application
The corresponding example of the games window is created in the default video playback application;
The default game is run in first process, and shows the default game in the games window.
In conjunction with a first aspect, in the first possible implementation, before the operation order for obtaining default game,
Also include:
Obtain video playback order, the video playback order include the default video playback application store path,
The title of the default video playback application, the position of video window, the size of the video window and video address information;
Institute is opened according to the title of the default video playback application and the store path of the default video playback application
State default video playback application;
The second process, the corresponding video window of second process is created in the default video playback application;
Created in the default video playback application according to the position of the video window and the size of the video window
Build the corresponding example of the video window;
The video address information is imported second process, and video is played in the video window.
In conjunction with a first aspect, in second possible implementation, showing the default game in the games window
Afterwards, also include:
In the games window and the video window, select a window to be set to floating window.
In conjunction with a first aspect, in the third possible implementation, showing the default game in the games window
Afterwards, also include:
The regulating command of the video window is obtained, the regulating command of the video window includes the first predeterminated position and
One default size, wherein, first predeterminated position and the first default size are true according to the position of the games window and size
Fixed;
The position of the video window and size adjustment are preset for described first in the default video playback application
Position and the first default size;
The regulating command of the games window is obtained, the regulating command of the games window includes the second predeterminated position and
Two default sizes;
The position of the games window and size adjustment are preset for described second in the default video playback application
Position and the second default size.
In conjunction with the arbitrary implementation in the third possible implementation of first aspect to first aspect, at the 4th kind
In possible implementation, after the games window shows the default game, also include:
The conversion command of cut-off pattern is obtained, under the cut-off pattern, will according to the conversion command of the cut-off pattern
The video window is adjusted to the cut-off pattern;Wherein, under the cut-off pattern, the video window only receives normal mode
The conversion command of formula;Under the normal mode, the video window receives vision operation instruction.
Second aspect, a kind of video player, during being applied to play video, including:
Acquiring unit, for obtaining the operation order of default game, the operation order of the default game includes default regarding
Frequency plays the title of application, the position of the packet, games window size and the games window of the default game, the trip
Play window is the default corresponding display window of playing;
Running unit, for creating the first process in the default video playback application, leads in first process
Enter the packet of the default game, the corresponding games window of first process;
Windows units, the title of the described default video playback application for being obtained according to the acquiring unit, the trip
It is corresponding that the position of the size of play window and the games window creates the games window in the default video playback application
Example;
The running unit, is additionally operable to run the default game in first process;
The windows units, are additionally operable to show the default game in the games window.
In conjunction with second aspect, in the first possible implementation,
The acquiring unit, is additionally operable to obtain video playback order, and the video playback order includes the pre- setting video
Play application store path, the title of the default video playback application, the position of video window, the video window big
Little and video address information;
The running unit, being additionally operable to should according to the title and the default video playback of the default video playback application
Store path opens the default video playback application, in the default video playback application creates the second process, institute
State the corresponding video window of the second process;
The windows units, are additionally operable to according to the position of the video window and the size of the video window described pre-
Setting video is played in application and creates the corresponding example of the video window;
The running unit, is additionally operable to for the video address information to import second process;
The windows units, are additionally operable to play video in the video window.
In conjunction with second aspect, in second possible implementation,
The windows units, are additionally operable in the games window and the video window, select a window to be set to float
Window.
In conjunction with second aspect, in the third possible implementation,
The acquiring unit, is additionally operable to the regulating command for obtaining the video window, the regulating command of the video window
Including the first predeterminated position and the first default size, wherein, first predeterminated position and the first default size are according to the trip
The position of play window and size determine;
The windows units, are additionally operable to the position of the video window and size in the default video playback application
It is adjusted to first predeterminated position and the first default size;
The acquiring unit, is additionally operable to the regulating command for obtaining the games window, the regulating command of the games window
Including the second predeterminated position and the second default size;
The windows units, are additionally operable to the position of the games window and size in the default video playback application
It is adjusted to second predeterminated position and the second default size.
In conjunction with the arbitrary implementation in the third possible implementation of second aspect to second aspect, at the 4th kind
In possible implementation,
The acquiring unit, is additionally operable to the conversion command for obtaining cut-off pattern, according to the acquiring unit is obtained
The video window is adjusted to the cut-off pattern by the conversion command of cut-off pattern;Wherein, under the cut-off pattern, described
Video window only receives the conversion command of normal mode;Under the normal mode, the video window receives vision operation and refers to
Order.
Video playing control method and video player that embodiments of the invention are provided, by obtaining the fortune of default game
Line command, creates the first process in default video playback application, imports the packet of default game, create in the first process
The corresponding example of games window, runs default game in the first process, and shows default game in games window, solve and regard
Frequency player can not watch video while executing the problem of games.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiments of the invention provide a kind of video playing control method, are applied to the process that video player plays video
In, with reference to shown in Fig. 1, comprise the following steps:
101st, the operation order of default game is obtained.
Wherein, the operation order for presetting game includes the title of default video playback application, the packet of default game, trip
The size of play window and the position of games window.Games window is the corresponding display window of default game.
Specifically, the default game will be run in default video playback application, the program of default game must be adapted for
Default video playback application, it is preferred that in specific implementation, can use HTML5((Hypertext Markup
Language5, the 5th generation HTML)The default game of exploitation, HTML5 strong adaptabilities, the characteristics of have cross-platform, can
Adapt to different applied environments.
102nd, the first process is created in default video playback application, import the data of default game in the first process
Bag.
Wherein, window is a kind of operating environment, and each window is responsible for showing and processing a certain category information.First process pair
Games window is answered, is all displays and the corresponding program activity of operation of games window, is created in default video playback application
First process, independently of video playback, so could in the case where video playback is not affected running game.
103rd, regarded default according to title, the size of games window and the position of games window for presetting video playback application
Frequency is played.
Wherein, example is the set of program, and the corresponding example of games window shows comprising games window and processes number herein
According to required all programs, also, the operation that the instruction of games window reception or games window are executed is entered first
Control in journey.
104th, default game is run in the first process, and show default game in games window.
The video playing control method that the present embodiment is provided, by obtaining the operation order of default game, in pre- setting video
Play in application and create the first process, the packet of default game is imported in the first process, according to the default video playback
The position of the title of application, the size of the games window and the games window is created in the default video playback application
The corresponding example of the games window, runs default game in the first process, and shows default game, solution in games window
Video player can not watch video while executing the problem of games.
The corresponding embodiments of above-mentioned Fig. 1 are based on, another embodiment of the present invention provides a kind of video playing control method, should
For video player play video during, optionally, video player can be mobile phone, computer or other can be used for
The electronic equipment of video playback, with reference to shown in Fig. 2, comprises the following steps:
201st, video playback order is obtained.
Wherein, video playback order includes the store path of default video playback application, the name of default video playback application
Title, the position of video window, the size of video window and video address information.
202nd, default regarding is opened according to the title of default video playback application and the store path of default video playback application
Frequency plays application.
203rd, the second process is created in default video playback application.
Wherein, the corresponding video window of the second process, the second process are all operations of video window and show corresponding journey
Sequence activity.Optionally, it is that the second process marks off memory source required for video playback to preset video playback application, for locating
The corresponding data of all of operation of reason video window and display.
204th, video window is created in default video playback application according to the position of video window and the size of video window
The corresponding example of mouth.
205th, video address information is imported the second process, and video is played in video window.
Optionally, after the second process obtains video address information, according to the local video file of address acquisition of information, or
Person, obtains corresponding video resource on network according to address information, and plays video in video window.
206th, the operation order of default game is obtained.
In video display process, the operation order of default game is obtained.Optionally, the operation order of the default game can
To be triggered by corresponding operation, for example, in a kind of application scenarios, video player is touch-screen mobile phone, and games are pulled into
During video playback application, the operation order that video player generates default game is triggered.Or, in another kind of application scenarios,
Video player is computer, clicks game icon by right key, selects to open game in default video playback application, is triggered with this and regarded
Frequency player generates the operation order of default game.
207th, the first process is created in default video playback application, import the data of default game in the first process
Bag.
Herein, the packet of game is to execute required program code of game etc..Preferably, the default game passes through
HTML5 is developed, and can adapt to different applied environments, the characteristics of have cross-platform, and can be updated at any time.
Optionally, video playback application is the memory source required for the first process division running game, for processing trip
The corresponding data of all of operation of play window and display.
208th, regarded default according to title, the size of games window and the position of games window for presetting video playback application
Frequency is played.
209th, default game is run in the first process, and show default game in games window.
Optionally, a window can be selected in video window and games window, be set to floating window, can make trip
Play operation and video playback all preferably show that for example, video window is set to floating window, so, video window just shows
Show the superiors in all windows, after adjusting its size position, it is possible to preferably show on the basis of video playback is not affected
Show game.
210th, the regulating command of video window is obtained.
Wherein, the regulating command of video window includes the first predeterminated position and the first default size, and optionally, first presets
Preset position and size determination of the size according to games window in position and first.
Optionally, can be when the operation order of default game be obtained, triggering generates the regulating command of video window.Or
Behind sometime, the regulating command for generating video window is triggered by user operation.Optionally, in a kind of application scenarios
In, video player is computer, and user is by dragging video window summit or the regulation life of border triggering generation video window
Order, realizes the regulation to video window size, directly drags video window and realizes the regulation to video window position.
211st, it is the first predeterminated position and the by the position of video window and size adjustment in default video playback application
One default size.
After step 209, also include:
212nd, the regulating command of games window is obtained.
Wherein, the regulating command of games window includes the second predeterminated position and the second default size.
213rd, it is the second predeterminated position and the by the position of games window and size adjustment in default video playback application
Two default sizes.
Optionally, in a kind of application scenarios, video player is computer, user by drag games window summit or
Border triggering generates the regulating command of games window, realizes the regulation to games window size, directly drags games window and realizes
Regulation to games window position.
After step 211 and step 213, also include:
214th, the conversion command of cut-off pattern is obtained.
Optionally, can be when the regulating command of video window be obtained, triggering generates the conversion command of cut-off pattern.Or
Person, behind sometime, is triggered the conversion command for generating cut-off pattern by user operation.For example, in a kind of application scenarios
In, video player is computer, and user is by clicking on translative mode icon triggering generation conversion command, translative mode icon use
In normal mode and the mutual phase transformation of cut-off pattern, again tap on, you can be converted to normal mode.
215th, the video window is adjusted to by the cut-off pattern according to the conversion command of the cut-off pattern.
Cut-off pattern is adjusted to, the video window no longer receives any operation in addition to the conversion command of normal mode and refers to
Order.Optionally, at a kind of one, with scene, video player is computer, after entering cut-off pattern, keyboard and mouse all
Operation all passes through the first process input games window, realizes the control to playing, makes video playback and game be independent of each other.
Optionally, when user stops game or suspends game, when needing to adjust video playback, can execute corresponding
Operation is set out and generates the conversion command of normal mode, and according to the conversion command of normal mode, video playback application is by video window
It is adjusted to normal mode.
The video playing control method that the present embodiment is provided, by obtaining the operation order of default game, in pre- setting video
Play in application and create the first process, the packet of default game is imported in the first process, create the corresponding reality of games window
Example, runs default game in the first process, and shows default game in games window, and solving video player can not
Viewing video is while execute the problem of games.Further, the present embodiment is by being converted to cut-off pattern by video window,
So that all operations instruction all pass through the first process and is input into games window, and adjust games window and video window size and
Position so that game running and video-see are carried out and be independent of each other simultaneously.
The corresponding embodiments of above-mentioned Fig. 1 are based on, embodiments of the invention provide a kind of video player, above-mentioned for implementing
Video playing control method described in the corresponding embodiments of Fig. 1, with reference to shown in Fig. 3, the video player 301 includes:Obtain
Take unit 3011, running unit 3012 and windows units 3013.
Wherein, acquiring unit 3011, for obtaining the operation order of default game, the default operation order that plays includes pre-
Setting video plays the title of application, the position of the packet, games window size and games window of default game, and games window is
Default corresponding display window of playing.
Running unit 3012, for creating the first process in default video playback application, imports in the first process pre-
If the packet of game, the corresponding games window of the first process.
Windows units 3013, the title of the default video playback application for being obtained according to acquiring unit 3011, game window
The position of the size of mouth and games window creates the corresponding example of games window in default video playback application.
Running unit 3012, is additionally operable to run default game in the first process.
Windows units 3013, are additionally operable to show default game in games window.
The video player that the present embodiment is provided, by obtaining the operation order of default game, should in default video playback
With the first process of middle establishment, the packet of default game is imported in the first process, create the corresponding example of games window, the
Default game being run in one process, and showing default game in corresponding games window, solving video player can not
Viewing video is while execute the problem of games.
Optionally, acquiring unit 3011, are additionally operable to obtain video playback order, and video playback order includes that pre- setting video is broadcast
Put store path, the title of default video playback application, the position of video window, the size of video window and the video ground of application
Location information.
Running unit 3012, is additionally operable to the title of the default video playback application of basis and the storage of default video playback application
Default video playback application is opened in path, creates the second process, the corresponding video window of the second process in default video playback application
Mouthful.
Windows units 3013, being additionally operable to should in default video playback according to the position of video window and the size of video window
With the corresponding example of middle establishment video window.
Running unit 3012, is additionally operable to for video address information to import the second process.
Windows units 3013, are additionally operable to play video in video window.
Optionally, windows units 3013, are additionally operable in games window and video window, select a window to be set to float
Window.
Optionally, acquiring unit 3011, are additionally operable to the regulating command for obtaining video window, the regulating command bag of video window
The first predeterminated position and the first default size is included, wherein, the first predeterminated position and first presets position of the size according to games window
Put and determine with size.
Windows units 3013, it is the to be additionally operable to the position of video window and size adjustment in default video playback application
One predeterminated position and the first default size.
Acquiring unit 3011, is additionally operable to the regulating command for obtaining games window, and the regulating command of games window includes second
Predeterminated position and the second default size.
Windows units 3013, it is the to be additionally operable to the position of games window and size adjustment in default video playback application
Two predeterminated positions and the second default size.
Optionally, acquiring unit 3011, are additionally operable to the conversion command for obtaining cut-off pattern, under cut-off pattern, video window
Mouth does not receive any operational order in addition to the conversion command of normal mode, and in the normal mode, video window receives video
Operational order.
Windows units 3013, are additionally operable to the conversion command of cut-off pattern obtained according to acquiring unit 3011 by video window
It is adjusted to cut-off pattern.
The video player that the present embodiment is provided, by obtaining the operation order of default game, should in default video playback
With the first process of middle establishment, the packet of default game is imported in the first process, create the corresponding example of games window, the
Run default game in one process, and games window shows default play, solve video player and can not watch and regard
Frequency is while execute the problem of games.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.