Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not
Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly
Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
The present inventor finds during using some application (such as, game application),
The when of using these to apply, can not also play video while the user interface of display application, i.e.
User can not can also watch video while using these application, and user needs additionally to open Video Applications,
But, Video Applications and other application can not show, in PC terminal on mobile terminal screen simultaneously
It is also required to, by arranging Video Applications and the display size at other interfaces applied, video could be shown simultaneously
Application and other application, if user wants to operate Video Applications or other application, need light
Mark navigates to apply accordingly, so easily causes use inconvenience, in order to solve the problems referred to above, invention
People is through performing creative labour, it is proposed that utilize parasitic tool kit, by parasitism tool kit with main application in advance
Binding, to provide the solution of the function playing video in the user interface of main application.
Wherein, main application is an independent application, and this application can independently realize corresponding function, be not required to
Depending on any other application, such as, game application, user, after starting game application, just may be used
To play game in the user interface that game application is provided.
And this parasitism tool kit need to rely on main application and just can realize corresponding function, need main application
Call the api interface of this parasitism tool kit and could realize the parasitic corresponding function of tool kit, such as, with
As a example by game application plays video, video can be play user plays game when simultaneously, play here
Application is main application, and playing video is the function that parasitic tool kit is realized.
During playing video or playing game, user may need to carry out other operations, such as with
The game that other user's real-time communications are being played, or the video that comment is play, current video playback mould
Formula can not realize corresponding function.
Fig. 1 shows the video playback mould utilizing parasitic tool kit to realize according to an embodiment of the invention
The flow chart of formula method to set up.As it is shown in figure 1, the method comprises the following steps:
Step S100, according to user trigger video play mode behavior is set, create the first suspended window
With the second suspended window, and the first suspended window and the layout parameter of the second suspended window are set, and, first
Suspended window is embedded in video player.
Specifically, when user needs to arrange video play mode, can trigger and video play mode is set
Button, after detecting that user triggers and arranges the button of video play mode, according to the behavior of user,
Create Floatwindow.The establishment of Floatwindow relates to WindowManager interface, it is achieved class
There are WindowManagerImpl, CompatModeWrapper, LocalWindowManager.Specifically
Ground, the code of parasitic tool kit starts a Service, then creates the first suspended window in Service
With the second suspended window.Creating the first suspended window and during the second suspended window, need to define the first suspended window and
The layout of the second suspended window, creates the first suspended window and the second suspended window arranges the object of layout parameter;If
Put the first suspended window and the location parameter of the second suspended window and dimensional parameters (comprising width and height).
First suspended window and the location parameter of the second suspended window and dimensional parameters determine the first suspended window and second and hang
Floating window shows the predeterminated position at terminal screen with pre-set dimension.
Wherein, suspended window is to there is the floating frame on terminal screen, and suspended window is not affiliated with Activity
Interface, is not affected by the covering at Activity interface, but identical with the life cycle of Activity.This
In bright embodiment, the first suspended window and the second suspended window are created by parasitic tool kit.Detecting user's
After triggering behavior, according to the behavior of user, create Floatwindow.Wherein, the first suspension of establishment
The size of the user interface being smaller in size than main application of window and the second suspended window.
The embodiment of the present invention, after creating the first suspended window, is embedded in video player at the first suspended window,
This video player is displayed for video flowing.
Step S101, according to the layout parameter of the first suspended window and the second suspended window to the first suspended window and the
Two suspended windows are laid out and represent.
After the layout parameter arranging the first suspended window and the second suspended window according to step S100, according to set
First suspended window and the second suspended window are laid out by the layout parameter put, and it is outstanding to represent first after layout
Floating window and the second suspended window, such as, the dimensional parameters arranging the first suspended window is width:80, height:
100 (in units of pixels), the dimensional parameters arranging the second suspended window is width:80, height:20,
So be presented to user is exactly the first suspended window and second suspended window of 20*80 of a 100*80.
Step S102, plays video clothes while presenting the user interface of main application in the first suspended window
The video flowing that business device provides, and present User Interface in the second suspended window.
Specifically, utilizing step S100 after suspended window is embedded in video player, obtaining from server
Take corresponding video flowing, the video flowing that server provides is transferred to video player, at the first suspended window
This video flowing of interior broadcasting, thus while presenting the user interface of main application, play video flowing, Yi Ji
Present User Interface in second suspended window, while presenting the user interface of main application, make user
Can be interacted with other users by the second suspended window, or carry out other operations.
The method provided according to the above embodiment of the present invention, by creating the first suspended window and the second suspended window,
First suspended window and the layout parameter of the second suspended window are set, and according to set layout parameter to first
Suspended window and the second suspended window are laid out and represent, it is achieved that the setting of video play mode, Er Qieneng
Enough broadcasting videos while presenting the user interface of main application, and provide a user with interactive service, solve
The user that determined can only be used alone other application or Video Applications, and can not when operating other application simultaneously
The interface of display Video Applications and carry out the defect of other interactive operations, overcome in prior art when
When needing to operate other application or Video Applications, it is required for being switched to apply accordingly, causes operation inconvenience
Problem, substantially increase the simplicity of user operation, save user time.
Fig. 2 shows the video playback utilizing parasitic tool kit to realize in accordance with another embodiment of the present invention
The flow chart of moade setting method.As in figure 2 it is shown, the method comprises the following steps:
Step S200, according to the behavior that arranges of the video play mode that user triggers, creates and has chain of command
First suspended window of plate and the second suspended window, and the first suspended window and the layout parameter of the second suspended window are set.
Specifically, when user needs to arrange video play mode, can trigger and video play mode is set
Button, after detecting that user triggers and arranges the button of video play mode, according to the behavior of user,
Create Floatwindow.The establishment of Floatwindow relates to WindowManager interface, it is achieved class
There are WindowManagerImpl, CompatModeWrapper, LocalWindowManager.Specifically
Ground, the code of parasitic tool kit starts a Service, then creates in Service and have chain of command
First suspended window of plate and the second suspended window.When creating the first suspended window and the second suspended window, it is fixed to need
Justice the first suspended window and the layout of the second suspended window, create the first suspended window and the second suspended window arrange layout
The object of parameter;First suspended window and the location parameter of the second suspended window are set and dimensional parameters (comprises
Width and height).First suspended window and the location parameter of the second suspended window and dimensional parameters determine
One suspended window and the second suspended window show the predeterminated position at terminal screen with pre-set dimension.Wherein, first
Suspended window can be video playback suspended window, and the second suspended window can be chat suspended window, i.e. Ke Yi
First suspended window plays the video flowing provided, and presents user's chat content etc. in the second suspended window.
Wherein, suspended window is to there is the floating frame on terminal screen, and suspended window is not affiliated with Activity
Interface, is not affected by the covering at Activity interface, but identical with the life cycle of Activity.This
In bright embodiment, the first suspended window and the second suspended window are created by parasitic tool kit.Detecting user's
After triggering behavior, according to the behavior of user, create Floatwindow.Wherein, the first suspension of establishment
The size of the user interface being smaller in size than main application of window and the second suspended window.
In the embodiment of the present invention, user can determine the need for showing the second suspended window according to demand, is
No in the second suspended window, presenting User Interface, handing over need not to present user in the second suspended window
Mutually in the case of interface, user can close by the way of triggering the control panel on the first suspended window
Second suspended window.
Step S201, is embedded in window view at the first suspended window, creates the drawing surface of window view.
Wherein, video player is realized by window view.In order to make the first suspended window display use
The user interface of the Video service that family is started, after creating the first suspended window, in the first suspended window
Embedding window view, this window view is used for drawing video clip.Here window view can be any energy
Enough show the view of the user interface that Video service provided, the invention is not limited in this regard.The present embodiment
By window view for illustrating as a example by surfaceview view.
In android system, surfaceview has independent drawing surface, it not with its host's window
Mouth shares same drawing surface.Owing to having independent drawing surface, the therefore user of surfaceview
Interface can be drawn in an independent thread, and will not take again main thread resource.
Surfaceview mono-aspect can realize complexity and efficient UI draws, and is not result in the most again using
Family input can not get timely responding to.Therefore, use surfaceview to be embedded into first as window view to hang
In floating window, it is possible to achieve complicated and efficient drafting.
Step S202, according to the layout parameter of the first suspended window and the second suspended window to the first suspended window and the
Two suspended windows are laid out and represent.
After the layout parameter arranging the first suspended window and the second suspended window according to step S200, according to set
First suspended window and the second suspended window are laid out by the layout parameter put, and it is outstanding to represent first after layout
Floating window and the second suspended window, such as, the dimensional parameters arranging the first suspended window is width:80, height:
100 (in units of pixels), the dimensional parameters arranging the second suspended window is width:80, height:20,
So be presented to user is exactly the first suspended window and second suspended window of 20*80 of a 100*80.
Step S203, controls window view in video clip corresponding to drafting chart iso-surface patch video flowing, in
The video flowing that while the user interface of the most main application, broadcast video server provides in the first suspended window,
And present User Interface in the second suspended window.
After the video flowing corresponding with channel identication provided by server is transferred to window view, parasitic
Tool kit controls window view in video clip corresponding to its drafting chart iso-surface patch video flowing, drawn
Display of video streams in video clip, it is achieved that suspend first while presenting the user interface of main application
Play video flowing in window, and present User Interface in the second suspended window, present main application
Make user can be interacted with other users by the second suspended window while user interface, or enter
Other operations of row.
Step S204, whether monitoring user triggers on the first suspended window is closed the second suspended window, if so,
Then perform step S205;If it is not, do not process, continue to play video flowing in the first suspended window, with
And present User Interface in the second suspended window.
Whether monitoring user triggers on the control panel of the first suspended window is closed the second suspended window, mainly
In order to determine whether to close the second suspended window, trigger closedown picture-in-picture on the control panel monitoring user
After floating window, then can controlling to close the second suspended window, stopping providing corresponding interactive service, if not monitoring
To the triggering behavior of user, then continue to retain the second suspended window, in the second suspended window, present user mutual
Interface so that user can be interacted with other users by the second suspended window according to demand, or enters
Other operations of row.
Step S205, closes the second suspended window.
Monitor user trigger on the first suspended window closedown the second suspended window in the case of, close second
Suspended window.
In a possible implementation of the present embodiment, the method also includes: trigger according to user
Mobile first suspended window and the behavior of the second suspended window, revise the first suspended window and the window of the second suspended window
Location parameter, is laid out the first suspended window and the second suspended window according to amended the window's position parameter
And represent.
By a part of viewing area of the suspended window occupied terminal screen that above-mentioned steps creates, it is used for showing
The user interface of the Video service that user is started.When user triggers mobile suspended window and/or changes suspended window
During size, for the ease of the main application of user operation, the window's position parameter and/or the window of suspended window can be revised
Dimensional parameters, such as, revises the window's position parameter and the window size parameter of suspended window simultaneously, in amendment
After, make suspended window show with the size that amended window size parameter is corresponding and join in the position of terminal screen
The position that number is corresponding.Such as revise window height (height) or the window width (width) of suspended window,
Make suspended window reduce, as being reduced into original 1/3rd, thus be that main application reserves bigger display sky
Between.
The method provided according to the above embodiment of the present invention, by creating the first suspended window and the second suspended window,
First suspended window and the layout parameter of the second suspended window are set, and according to set layout parameter to first
Suspended window and the second suspended window are laid out and represent, it is achieved that the setting of video play mode, Er Qieneng
Enough broadcasting videos while presenting the user interface of main application, and provide a user with interactive service, solve
The user that determined can only be used alone other application or Video Applications, and can not when operating other application simultaneously
The interface of display Video Applications and carry out the defect of other interactive operations, overcome in prior art when
When needing to operate other application or Video Applications, it is required for being switched to apply accordingly, causes operation inconvenience
Problem, substantially increase the simplicity of user operation, save user time.
Fig. 3 shows the video playback mould utilizing parasitic tool kit to realize according to an embodiment of the invention
Formula arranges the structured flowchart of device.As it is shown on figure 3, this device includes: creation module 300, embedding mould
Block 310, layout represent module 320 and present module 330.
Creation module 300, is suitable to the behavior that arranges of video play mode triggered according to user, creates the
One suspended window and the second suspended window, and the first suspended window and the layout parameter of the second suspended window are set.
Specifically, when user needs to arrange video play mode, can trigger and video play mode is set
Button, after detecting that user triggers and arranges the button of video play mode, according to the behavior of user,
Create Floatwindow.The establishment of Floatwindow relates to WindowManager interface, it is achieved class
There are WindowManagerImpl, CompatModeWrapper, LocalWindowManager.Specifically
Ground, the code of parasitic tool kit starts a Service, then creates in Service and have chain of command
First suspended window of plate and the second suspended window.When creating the first suspended window and the second suspended window, it is fixed to need
Justice the first suspended window and the layout of the second suspended window, create the first suspended window and the second suspended window arrange layout
The object of parameter;First suspended window and the location parameter of the second suspended window are set and dimensional parameters (comprises
Width and height).First suspended window and the location parameter of the second suspended window and dimensional parameters determine
One suspended window and the second suspended window show the predeterminated position at terminal screen with pre-set dimension.Wherein, first
Suspended window can be video playback suspended window, and the second suspended window can be chat suspended window, i.e. Ke Yi
First suspended window plays the video flowing provided, and presents user's chat content etc. in the second suspended window.
Wherein, suspended window is to there is the floating frame on terminal screen, and suspended window is not affiliated with Activity
Interface, is not affected by the covering at Activity interface, but identical with the life cycle of Activity.This
In bright embodiment, the first suspended window and the second suspended window are created by parasitic tool kit.Detecting user's
After triggering behavior, according to the behavior of user, create Floatwindow.Wherein, the first suspension of establishment
The size of the user interface being smaller in size than main application of window and the second suspended window.
In the embodiment of the present invention, user can determine the need for showing the second suspended window according to demand, is
No in the second suspended window, presenting User Interface, handing over need not to present user in the second suspended window
Mutually in the case of interface, user can close by the way of triggering the control panel on the first suspended window
Second suspended window.
Embed module 310, be suitable to be embedded in video player at the first suspended window.
Wherein, video player is realized by window view, and this window view is surfaceview view.
Layout represents module 320, is suitable to the layout parameter according to the first suspended window and the second suspended window to the
One suspended window and the second suspended window are laid out and represent.
After the layout parameter arranging the first suspended window and the second suspended window, according to set layout parameter
First suspended window and the second suspended window are laid out, and represent the first suspended window after layout and second hang
Floating window, such as, the dimensional parameters arranging the first suspended window is that width:80, height:100 are (with pixel
For unit), the dimensional parameters arranging the second suspended window is width:80, height:20, so represents
To user is exactly the first suspended window and second suspended window of 20*80 of a 100*80.
Present module 330, be suitable to broadcast in the first suspended window while presenting the user interface of main application
Put the video flowing that video server provides, and present User Interface in the second suspended window.
Further, this device also includes: modified module 340, is suitable to the movement the triggered according to user
One suspended window and the behavior of the second suspended window, revise the window's position ginseng of the first suspended window and the second suspended window
Number.
A part of viewing area of the suspended window occupied terminal screen created, is used for showing that user is started
The user interface of Video service.When user triggers mobile suspended window and/or changes suspended window size, for
It is easy to the main application of user operation, can revise the window's position parameter and/or the window size parameter of suspended window,
Such as, revise the window's position parameter and the window size parameter of suspended window simultaneously, after the modification, make suspension
Window shows in the position that the location parameter of terminal screen is corresponding with the size that amended window size parameter is corresponding
Put.Such as revise window height (height) or the window width (width) of suspended window, make suspended window
Reduce, as being reduced into original 1/3rd, thus be that main application reserves bigger display space.
Layout represents module 320 and is further adapted for: suspend to first according to amended the window's position parameter
Window and the second suspended window are laid out and represent.
Further, embed module 310 and be further adapted for: be embedded in window view at the first suspended window,
Create the drawing surface of window view.
Wherein, video player is realized by window view.In order to make this suspended window show user
The user interface of the Video service started, after creating suspended window, is embedded in window at suspended window and regards
Figure, this window view is used for drawing video clip.Here window view can be any can to show video
The view of the user interface that service is provided, the invention is not limited in this regard.The present embodiment is with window view
For illustrating as a example by surfaceview view.
In android system, surfaceview has independent drawing surface, it not with its host's window
Mouth shares same drawing surface.Owing to having independent drawing surface, the therefore user of surfaceview
Interface can be drawn in an independent thread, and will not take again main thread resource.
Surfaceview mono-aspect can realize complexity and efficient UI draws, and is not result in the most again using
Family input can not get timely responding to.Therefore, surfaceview is used to be embedded into suspended window as window view
In, it is possible to achieve complicated and efficient drafting.
Further, present module 330 to be further adapted for: control window view and regard at drafting chart iso-surface patch
The video clip that frequency stream is corresponding.
After the video flowing corresponding with channel identication provided by server is transferred to window view, parasitic
Tool kit controls window view in video clip corresponding to its drafting chart iso-surface patch video flowing, drawn
Display of video streams in video clip, it is achieved that while presenting the user interface of main application in suspended window
Play video flowing, and in the second suspended window, present User Interface, the user presenting main application
Make user can be interacted with other users by the second suspended window while interface, or carry out it
He operates.
Further, creation module 300 is further adapted for: the video play mode triggered according to user
Behavior is set, creates first suspended window with control panel.
Further, this device also includes: monitoring modular 350, is suitable to monitor whether user hangs first
Trigger on floating window and close the second suspended window;
Close module 360, be suitable to detect user triggers on the first suspended window close the second suspended window
In the case of, close the second suspended window.
Whether monitoring user triggers on the control panel of the first suspended window is closed the second suspended window, mainly
In order to determine whether to close the second suspended window, trigger closedown picture-in-picture on the control panel monitoring user
After floating window, then can controlling to close the second suspended window, stopping providing corresponding interactive service, if not monitoring
To the triggering behavior of user, then continue to retain the second suspended window, in the second suspended window, present user mutual
Interface so that user can be interacted with other users by the second suspended window according to demand, or enters
Other operations of row.
The device provided according to the above embodiment of the present invention, by creating the first suspended window and the second suspended window,
First suspended window and the layout parameter of the second suspended window are set, and according to set layout parameter to first
Suspended window and the second suspended window are laid out and represent, it is achieved that the setting of video play mode, Er Qieneng
Enough broadcasting videos while presenting the user interface of main application, and provide a user with interactive service, solve
The user that determined can only be used alone other application or Video Applications, and can not when operating other application simultaneously
The interface of display Video Applications and carry out the defect of other interactive operations, overcome in prior art when
When needing to operate other application or Video Applications, it is required for being switched to apply accordingly, causes operation inconvenience
Problem, substantially increase the simplicity of user operation, save user time.
Algorithm and display be not solid with any certain computer, virtual system or miscellaneous equipment provided herein
Have relevant.Various general-purpose systems can also be used together with based on teaching in this.As described above,
Construct the structure required by this kind of system to be apparent from.Additionally, the present invention is also not for any specific
Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein,
And the description done language-specific above is the preferred forms in order to disclose the present invention.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of not having these details.In some instances, not
It is shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect one
Or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes
It is grouped together in single embodiment, figure or descriptions thereof.But, should be by the disclosure
Method be construed to reflect an intention that i.e. the present invention for required protection require ratio in each claim
The middle more feature of feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows
Claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each right
Requirement itself is all as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly
Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible
Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used
To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in unit excludes each other, can use any combination that (this specification is included companion
With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or
All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion
With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase
Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it
Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment
Close and mean to be within the scope of the present invention and formed different embodiments.Such as, in following power
In profit claim, one of arbitrarily can mode making in any combination of embodiment required for protection
With.
The all parts embodiment of the present invention can realize with hardware, or to process at one or more
The software module run on device realizes, or realizes with combinations thereof.Those skilled in the art should
Understand, microprocessor or digital signal processor (DSP) can be used in practice to realize basis
The video play mode utilizing parasitic tool kit to realize of the embodiment of the present invention arrange some in equipment or
All some or all functions of parts.The present invention is also implemented as performing as described herein
Part or all equipment of method or device program (such as, computer program and computer journey
Sequence product).The program of such present invention of realization can store on a computer-readable medium, or can
To have the form of one or more signal.Such signal can be downloaded from internet website and obtain,
Or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment,
And those skilled in the art can design replacement in fact without departing from the scope of the appended claims
Execute example.In the claims, should not will be located in any reference marks between bracket to be configured to right is wanted
The restriction asked.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.It is positioned at
Word "a" or "an" before element does not excludes the presence of multiple such element.The present invention is permissible
By means of including the hardware of some different elements and realizing by means of properly programmed computer.?
If listing in the unit claim of equipment for drying, several in these devices can be by same
Hardware branch specifically embodies.Word first, second and third use do not indicate that any order.
Can be title by these word explanations.
The invention discloses: A1, a kind of video play mode method to set up utilizing parasitic tool kit to realize,
Wherein, described parasitic tool kit is bound in advance with main application, to provide the user interface in described main application
Middle broadcasting video and the function of video play mode is set, described method includes:
According to user trigger video play mode behavior is set, create the first suspended window and second suspend
Window, and described first suspended window and the layout parameter of the second suspended window are set, and, at the first suspended window
It is embedded in video player;
According to the layout parameter of described first suspended window and the second suspended window, the first suspended window and second are suspended
Window is laid out and represents;
In described first suspended window, Video service is play while presenting the user interface of described main application
The video flowing that device provides, and present User Interface in described second suspended window.
A2, according to the method described in A1, wherein, described method also includes:
Movement the first suspended window triggered according to user and the behavior of the second suspended window, revise described first and hang
Floating window and the window's position parameter of the second suspended window, according to amended the window's position parameter to described first
Suspended window and the second suspended window are laid out and represent.
A3, according to the method described in A1 or A2, wherein, described video player passes through window view
Realize;
Described it be embedded in video player at the first suspended window and farther include: be embedded at the first suspended window
Window view, creates the drawing surface of window view.
A4, according to the method described in A3, wherein, described broadcast video server in the first suspended window
The video flowing provided farther includes: control described window view at video flowing pair described in drafting chart iso-surface patch
The video clip answered.
A5, according to the method described in A3 or A4, wherein, described window view is that surfaceview regards
Figure.
A6, according to the method described in any one of A1-A5, wherein, described according to user trigger video broadcast
Mode playback behavior is set, create the first suspended window and farther include:
The behavior that arranges of video play mode triggered according to user, creates and has the first of control panel and hang
Floating window.
A7, according to the method described in A6, wherein, described method also includes:
Whether monitoring user triggers on the first suspended window is closed described second suspended window;
The most then close described second suspended window.
A8, according to the method described in any one of A1-A7, wherein, the first suspended window be video playback suspend
Window, the second suspended window is chat suspended window.
The invention also discloses: B9, a kind of video play mode utilizing parasitic tool kit to realize arrange dress
Putting, wherein, described parasitic tool kit is bound in advance with main application, to provide the user in described main application
Playing video in interface and arrange the function of video play mode, described device includes:
Creation module, is suitable to the behavior that arranges of the video play mode triggered according to user, creates first and hangs
Floating window and the second suspended window, and described first suspended window and the layout parameter of the second suspended window are set;
Embed module, be suitable to be embedded in video player at the first suspended window;
Layout represents module, is suitable to the layout parameter according to described first suspended window and the second suspended window to
One suspended window and the second suspended window are laid out and represent;
Present module, be suitable to while presenting the user interface of described main application at described first suspended window
The video flowing that interior broadcast video server provides, and in described second suspended window, present the mutual boundary of user
Face.
B10, according to the device described in B9, wherein, described device also includes: modified module, is suitable to root
According to user trigger movement the first suspended window and the behavior of the second suspended window, revise described first suspended window and
The window's position parameter of the second suspended window;
Described layout represents module and is further adapted for: according to amended the window's position parameter to described first
Suspended window and the second suspended window are laid out and represent.
B11, according to the device described in B9 or B10, wherein, described video player passes through window view
Realize;
Described embedding module is further adapted for: be embedded in window view at the first suspended window, creates window and regards
The drawing surface of figure.
B12, according to the device described in B11, wherein, described in present module and be further adapted for: control institute
State window view in video clip corresponding to video flowing described in drafting chart iso-surface patch.
B13, according to the device described in B11 or B12, wherein, described window view is surfaceview
View.
B14, according to the device described in any one of B9-B13, wherein, described creation module is further adapted for:
According to the behavior that arranges of the video play mode that user triggers, create first suspended window with control panel.
B15, according to the device described in B14, wherein, described device also includes: monitoring modular, is suitable to
Whether monitoring user triggers on the first suspended window is closed described second suspended window;
Close module, be suitable to detecting user that to trigger closedown described second on described first suspended window outstanding
In the case of floating window, close described second suspended window.
B16, according to the device described in any one of B9-B15, wherein, the first suspended window be video playback hang
Floating window, the second suspended window is chat suspended window.