CN105915993B - The video play mode setting method and device realized using parasitic kit - Google Patents

The video play mode setting method and device realized using parasitic kit Download PDF

Info

Publication number
CN105915993B
CN105915993B CN201610482856.6A CN201610482856A CN105915993B CN 105915993 B CN105915993 B CN 105915993B CN 201610482856 A CN201610482856 A CN 201610482856A CN 105915993 B CN105915993 B CN 105915993B
Authority
CN
China
Prior art keywords
suspended window
window
video
suspended
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610482856.6A
Other languages
Chinese (zh)
Other versions
CN105915993A (en
Inventor
王智源
樊维
郭宇卓
杨中意
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610482856.6A priority Critical patent/CN105915993B/en
Publication of CN105915993A publication Critical patent/CN105915993A/en
Priority to PCT/CN2017/090365 priority patent/WO2018001246A1/en
Application granted granted Critical
Publication of CN105915993B publication Critical patent/CN105915993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Computer Graphics (AREA)

Abstract

The invention discloses a kind of video play mode setting method realized using parasitic kit and devices.Wherein, parasitic kit and main application binding in advance, to provide the function of playing video and setting video play mode in the user interface of main application, this method comprises: according to the setting behavior of the video play mode of user's triggering, create the first suspended window and the second suspended window, and the layout parameter of the first suspended window and the second suspended window is set, and, video player is embedded in the first suspended window;Layout parameter according to the first suspended window and the second suspended window is laid out and shows to the first suspended window and the second suspended window;The video flowing that broadcast video server provides in the first suspended window while the user interface of main application is presented, and presentation user's interactive interface in the second suspended window, realize the setting of video play mode, and video can be played while the user interface of main application is presented, and provide a user interactive service.

Description

The video play mode setting method and device realized using parasitic kit
Technical field
The present invention relates to intelligent terminal technical fields, and in particular to a kind of video playing mould realized using parasitic kit Formula setting method and device.
Background technique
As the screen of intelligent terminal is increasing, CPU (Central Processing Unit, central processing unit), interior Deposit, the hardware capabilities such as GPU (Graphics Processing Unit, graphics processor) it is stronger and stronger, user is to application Demand is also higher and higher, such as user wishes that video can be watched while operating other application.Currently, if terminal is being transported Operation Video Applications are wanted while one application of row, terminal is the relevant operation pause for needing to apply current operation, or The application interface for closing current operation application, then can just be switched to the application interface of another application.For example, when user plays trip When play, need to watch video, user, which needs to suspend or exit the game played, could watch video;Alternatively, by setting The display size for setting the interface of Video Applications and other application, could show Video Applications and other application simultaneously, and user needs It toggles between the application interface of each application, makes troubles to the operation of user, and can not achieve and showing other Video is played while the user interface of application.In addition, user is unable to flexible setting video playing mould in prior art Formula can only switch in existing video play mode, can not provide a user interactive service, cannot meet the needs of users.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind It states the video play mode setting method for utilizing parasitic kit to realize of problem and parasitic kit is utilized to realize accordingly Device is arranged in video play mode.
According to an aspect of the invention, there is provided a kind of video play mode setting side realized using parasitic kit Method, wherein parasitic kit and main application binding in advance play video and setting to provide in the user interface of main application The function of video play mode, method include:
According to the setting behavior of the video play mode of user's triggering, the first suspended window and the second suspended window are created, and set The layout parameter of the first suspended window and the second suspended window is set, and, video player is embedded in the first suspended window;
Layout parameter according to the first suspended window and the second suspended window is laid out the first suspended window and the second suspended window And show;
The video flowing that broadcast video server provides in the first suspended window while the user interface of main application is presented, And presentation user's interactive interface in the second suspended window.
According to another aspect of the present invention, a kind of video play mode setting dress realized using parasitic kit is provided It sets, wherein parasitic kit and main application binding in advance play video and setting to provide in the user interface of main application The function of video play mode, device include:
Creation module creates the first suspended window and the suitable for the setting behavior of the video play mode triggered according to user Two suspended windows, and the layout parameter of the first suspended window and the second suspended window is set;
It is embedded in module, suitable for being embedded in video player in the first suspended window;
It is laid out display module, suitable for the layout parameter according to the first suspended window and the second suspended window to the first suspended window and the Two suspended windows are laid out and show;
Module is presented, suitable for while the user interface of main application is presented in the first suspended window broadcast video server The video flowing of offer, and presentation user's interactive interface in the second suspended window.
The scheme provided according to the present invention, by creation the first suspended window and the second suspended window, the first suspended window of setting and The layout parameter of second suspended window, and according to set layout parameter the first suspended window and the second suspended window are laid out and Show, realizes the setting of video play mode, and video can be played while the user interface of main application is presented, with And interactive service is provided a user, other application or Video Applications can only be used alone by solving user, and cannot operate it When he applies while showing the interface of Video Applications and carrying out the defect of other interactive operations, overcome in the prior art when When needing to operate other application or Video Applications, requires to be switched to corresponding application, lead to inconvenient problem, mention significantly The high simplicity of user's operation, saves user time.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the video play mode setting side according to an embodiment of the invention realized using parasitic kit The flow chart of method;
Fig. 2 shows the video play mode settings in accordance with another embodiment of the present invention realized using parasitic kit The flow chart of method;
Fig. 3 shows the video play mode setting dress according to an embodiment of the invention realized using parasitic kit The structural block diagram set.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The present inventor is had found during using some applications (for example, game application), is answered using these With when, can not display application user interface while also play video, that is, user cannot using these application While can also watch video, user needs in addition to open Video Applications, however, Video Applications and other application can not be simultaneously It shows, is also required in PC terminal big by the display at the interface of setting Video Applications and other application on mobile terminal screen It is small, Video Applications and other application could be shown simultaneously, if user wants to operate Video Applications or other application, needed Cursor is navigated into corresponding application, easily cause in this way it is inconvenient for use, to solve the above-mentioned problems, inventor by wound The labour for the property made is proposed using parasitic kit, by parasitic kit and main application binding in advance, to provide in main application The solution of the function of video is played in user interface.
Wherein, main application is an independent application, which can independently realize corresponding function, is not need to rely on and appoints What other application, for example, game application, user, can be in user provided by game application after starting game application Game is played on interface.
And the parasitism kit need to rely on it is main application corresponding function just may be implemented, need main application that this is called to post The api interface of raw kit is just able to achieve the corresponding function of parasitic kit, for example, by for game application plays video, Video can be played simultaneously when user plays game, is applied based on game application here, and playing video is parasitic kit The function of being realized.
During playing video or playing game, user may need to carry out other operations, for example, with other users The game that real-time communication is being played, or the video that comment plays, current video play mode can not achieve corresponding function Energy.
Fig. 1 shows the video play mode setting side according to an embodiment of the invention realized using parasitic kit The flow chart of method.As shown in Figure 1, method includes the following steps:
Step S100 creates the first suspended window and second and hangs according to the setting behavior of the video play mode of user's triggering Floating window, and the layout parameter of the first suspended window and the second suspended window is set, and, video playing is embedded in the first suspended window Device.
Specifically, when user needs that video play mode is arranged, the button of setting video play mode can be triggered, After detecting the button that user triggers setting video play mode, according to the behavior of user, Floatwindow is created. The creation of Floatwindow is related to WindowManager interface, realizes that class has WindowManagerImpl, CompatModeWrapper, LocalWindowManager.Specifically, the code of parasitic kit starts a Service, Then the first suspended window and the second suspended window are created in Service.When creating the first suspended window and the second suspended window, need The layout of the first suspended window and the second suspended window is defined, pair of the first suspended window and the second suspended window setting layout parameter is created As;The location parameter and dimensional parameters (comprising width and height) of first suspended window and the second suspended window are set.First suspends The location parameter and dimensional parameters of window and the second suspended window determine that the first suspended window and the second suspended window are shown with pre-set dimension In the predeterminated position of terminal screen.
Wherein, suspended window is there are the floating frame on terminal screen, and suspended window is not affiliated with the interface Activity, It is not influenced by the covering at the interface Activity, but identical as the life cycle of Activity.In the embodiment of the present invention, first suspends Window and the second suspended window are created by parasitic kit.After detecting the triggering behavior of user, according to the behavior of user, creation Floatwindow.Wherein, the size of the first suspended window and the second suspended window of creation is less than the ruler of the user interface of main application It is very little.
The embodiment of the present invention is embedded in video player after creating the first suspended window, in the first suspended window, the 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 second suspended window It is laid out and shows.
After the layout parameter of the first suspended window and the second suspended window is arranged according to step S100, according to set layout Parameter is laid out the first suspended window and the second suspended window, and shows the first suspended window and the second suspended window after layout, example Such as, the dimensional parameters that the first suspended window is arranged are width:80, height:100 (as unit of pixel), and the second suspended window is arranged Dimensional parameters be width:80, height:20, be presented to user in this way be exactly a 100*80 the first suspended window with The second suspended window of 20*80.
Step S102, broadcast video server provides in the first suspended window while the user interface of main application is presented Video flowing, and presentation user's interactive interface in the second suspended window.
Specifically, it after suspended window is embedded in video player, is obtained from server corresponding using step S100 Video flowing, the video flowing that server is provided are transferred to video player, and the video flowing is played in the first suspended window, thus Video flowing, and presentation user's interactive interface in the second suspended window are played while the user interface of main application is presented, and are being in It interacts user with other users by the second suspended window, or carries out Other operations.
The method provided according to that above embodiment of the present invention, by creation the first suspended window and the second suspended window, setting the The layout parameter of one suspended window and the second suspended window, and according to set layout parameter to the first suspended window and the second suspended window It is laid out and shows, realize the setting of video play mode, and can be while the user interface of main application is presented Video is played, and provides a user interactive service, other application or Video Applications can only be used alone by solving user, without It can show the interface of Video Applications simultaneously when operating other application and carry out the defect of other interactive operations, overcome existing Have in technology when needing to operate other application or Video Applications, requires to be switched to corresponding application, cause unhandy Problem substantially increases the simplicity of user's operation, saves user time.
Fig. 2 shows the video play mode settings in accordance with another embodiment of the present invention realized using parasitic kit The flow chart of method.As shown in Fig. 2, method includes the following steps:
Step S200, according to the setting behavior of the video play mode of user's triggering, creating has the first of control panel Suspended window and the second suspended window, and the layout parameter of the first suspended window and the second suspended window is set.
Specifically, when user needs that video play mode is arranged, the button of setting video play mode can be triggered, After detecting the button that user triggers setting video play mode, according to the behavior of user, Floatwindow is created. The creation of Floatwindow is related to WindowManager interface, realizes that class has WindowManagerImpl, CompatModeWrapper, LocalWindowManager.Specifically, the code of parasitic kit starts a Service, Then first suspended window and second suspended window of the creation with control panel in Service.Creating the first suspended window and the It when two suspended windows, needs to define the layout of the first suspended window and the second suspended window, creates the first suspended window and the second suspended window is set Set the object of layout parameter;Be arranged the first suspended window and the second suspended window location parameter and dimensional parameters (comprising width and height).The location parameter and dimensional parameters of first suspended window and the second suspended window determine that the first suspended window and second suspends Window is shown in the predeterminated position of terminal screen with pre-set dimension.Wherein, the first suspended window can be video playing suspended window, second Suspended window can be chat suspended window, that is, video flowing provided by can playing in the first suspended window, the second suspended window is interior to be presented User's chat content etc..
Wherein, suspended window is there are the floating frame on terminal screen, and suspended window is not affiliated with the interface Activity, It is not influenced by the covering at the interface Activity, but identical as the life cycle of Activity.In the embodiment of the present invention, first suspends Window and the second suspended window are created by parasitic kit.After detecting the triggering behavior of user, according to the behavior of user, creation Floatwindow.Wherein, the size of the first suspended window and the second suspended window of creation is less than the ruler of the user interface of main application It is very little.
In the embodiment of the present invention, user can determine the need for the second suspended window of display according to demand, if second Presentation user's interactive interface in suspended window, in the case where not needing presentation user's interactive interface in the second suspended window, user The second suspended window can be closed by way of triggering the control panel on the first suspended window.
Step S201 is embedded in window view in the first suspended window, creates the drawing surface of window view.
Wherein, video player is realized by window view.In order to show the first suspended window, user is started The user interface of Video service be embedded in window view in the first suspended window after creating the first suspended window, window view Figure is for drawing video clip.Here window view can be any view that can show user interface provided by Video service Figure, the invention is not limited in this regard.The present embodiment is illustrated so that window view is surfaceview view as an example.
In android system, surfaceview has independent drawing surface, it is not shared same with its host window One drawing surface.Since the user interface with independent drawing surface, surfaceview can be in an independent line It is drawn in journey, and main thread resource will not be occupied again.On the one hand complicated and efficient UI may be implemented in surfaceview It draws, on the other hand not will lead to user's input again cannot timely respond to.Therefore, surfaceview is used to regard as window Figure is embedded into the first suspended window, and complicated and efficient drafting may be implemented.
Step S202, according to the layout parameter of the first suspended window and the second suspended window to the first suspended window and the second suspended window It is laid out and shows.
After the layout parameter of the first suspended window and the second suspended window is arranged according to step S200, according to set layout Parameter is laid out the first suspended window and the second suspended window, and shows the first suspended window and the second suspended window after layout, example Such as, the dimensional parameters that the first suspended window is arranged are width:80, height:100 (as unit of pixel), and the second suspended window is arranged Dimensional parameters be width:80, height:20, be presented to user in this way be exactly a 100*80 the first suspended window with The second suspended window of 20*80.
Main application is being presented in the corresponding video clip of drawing surface rendering video flowing in step S203, control window view User interface while broadcast video server provides in the first suspended window video flowing, and be in the second suspended window Existing user interface.
After the video flowing corresponding with channel identication for providing server is transferred to window view, parasitic kit control Window view processed shows video in the video clip drawn in its corresponding video clip of drawing surface rendering video flowing Stream realizes and plays video flowing in the first suspended window while the user interface of main application is presented, and suspends second Presentation user's interactive interface in window, allow while the user interface of main application is presented user by the second suspended window with Other users interact, or carry out other operations.
Step S204, whether monitoring user triggers on the first suspended window is closed the second suspended window, if so, thening follow the steps S205;If it is not, being then not processed, continuation plays video flowing, and the presentation user in the second suspended window in the first suspended window Interactive interface.
Monitor whether user triggers the second suspended window of closing on the control panel of the first suspended window, primarily to determining The second suspended window whether is closed, after monitoring that user triggers closing picture-in-picture floating window on the control panel, then can control pass The second suspended window is closed, stops providing corresponding interactive service, if not monitoring the triggering behavior of user, it is outstanding to continue reservation second Floating window, presentation user's interactive interface in the second suspended window allow user according to demand by the second suspended window and other User interacts, or carries out other operations.
Step S205 closes the second suspended window.
Monitor user on the first suspended window triggering close the second suspended window in the case where, close the second suspended window.
In a possible implementation of the present embodiment, this method further include: the movement first triggered according to user The behavior of suspended window and the second suspended window modifies the window's position parameter of the first suspended window and the second suspended window, after modification The window's position parameter the first suspended window and the second suspended window are laid out and are showed.
A part of display area of the suspended window occupied terminal screen created through the above steps, for showing that user is opened The user interface of dynamic Video service.When user triggers mobile suspended window and/or changes suspended window size, for the ease of user Main application is operated, the window's position parameter and/or window size parameter of suspended window can be modified, for example, modifying suspended window simultaneously The window's position parameter and window size parameter make suspended window with the corresponding size of modified window size parameter after the modification It is shown in the corresponding position of location parameter of terminal screen.Such as the window height (height) or window width of modification suspended window (width), reduce suspended window, be such as reduced into original one third, thus based on using reserving bigger display space.
The method provided according to that above embodiment of the present invention, by creation the first suspended window and the second suspended window, setting the The layout parameter of one suspended window and the second suspended window, and according to set layout parameter to the first suspended window and the second suspended window It is laid out and shows, realize the setting of video play mode, and can be while the user interface of main application is presented Video is played, and provides a user interactive service, other application or Video Applications can only be used alone by solving user, without It can show the interface of Video Applications simultaneously when operating other application and carry out the defect of other interactive operations, overcome existing Have in technology when needing to operate other application or Video Applications, requires to be switched to corresponding application, cause unhandy Problem substantially increases the simplicity of user's operation, saves user time.
Fig. 3 shows the video play mode setting dress according to an embodiment of the invention realized using parasitic kit The structural block diagram set.As shown in figure 3, the device includes: creation module 300, insertion module 310, layout display module 320 and is in Existing module 330.
Creation module 300, suitable for the setting behavior of the video play mode triggered according to user, create the first suspended window and Second suspended window, and the layout parameter of the first suspended window and the second suspended window is set.
Specifically, when user needs that video play mode is arranged, the button of setting video play mode can be triggered, After detecting the button that user triggers setting video play mode, according to the behavior of user, Floatwindow is created. The creation of Floatwindow is related to WindowManager interface, realizes that class has WindowManagerImpl, CompatModeWrapper, LocalWindowManager.Specifically, the code of parasitic kit starts a Service, Then first suspended window and second suspended window of the creation with control panel in Service.Creating the first suspended window and the It when two suspended windows, needs to define the layout of the first suspended window and the second suspended window, creates the first suspended window and the second suspended window is set Set the object of layout parameter;Be arranged the first suspended window and the second suspended window location parameter and dimensional parameters (comprising width and height).The location parameter and dimensional parameters of first suspended window and the second suspended window determine that the first suspended window and second suspends Window is shown in the predeterminated position of terminal screen with pre-set dimension.Wherein, the first suspended window can be video playing suspended window, second Suspended window can be chat suspended window, that is, video flowing provided by can playing in the first suspended window, the second suspended window is interior to be presented User's chat content etc..
Wherein, suspended window is there are the floating frame on terminal screen, and suspended window is not affiliated with the interface Activity, It is not influenced by the covering at the interface Activity, but identical as the life cycle of Activity.In the embodiment of the present invention, first suspends Window and the second suspended window are created by parasitic kit.After detecting the triggering behavior of user, according to the behavior of user, creation Floatwindow.Wherein, the size of the first suspended window and the second suspended window of creation is less than the ruler of the user interface of main application It is very little.
In the embodiment of the present invention, user can determine the need for the second suspended window of display according to demand, if second Presentation user's interactive interface in suspended window, in the case where not needing presentation user's interactive interface in the second suspended window, user The second suspended window can be closed by way of triggering the control panel on the first suspended window.
It is embedded in module 310, suitable for being embedded in video player in the first suspended window.
Wherein, video player is realized by window view, which is surfaceview view.
It is laid out display module 320, suitable for the layout parameter according to the first suspended window and the second suspended window to the first suspended window It is laid out and shows with the second suspended window.
It is outstanding to first according to set layout parameter after the layout parameter of the first suspended window and the second suspended window is set Floating window and the second suspended window are laid out, and show the first suspended window and the second suspended window after layout, for example, setting first is outstanding The dimensional parameters of floating window are width:80, height:100 (as unit of pixel), and the dimensional parameters of the second suspended window of setting are Width:80, height:20, be presented to user in this way is exactly that the first suspended window of a 100*80 and the second of 20*80 are hanged Floating window.
Module 330 is presented, suitable for playing video clothes in the first suspended window while the user interface of main application is presented The video flowing that business device provides, and presentation user's interactive interface in the second suspended window.
Further, the device further include: modified module 340, suitable for the first suspended window of movement for being triggered according to user and The window's position parameter of the first suspended window and the second suspended window is modified in the behavior of second suspended window.
A part of display area of the suspended window occupied terminal screen created, the video clothes started for showing user The user interface of business.When user triggers mobile suspended window and/or changes suspended window size, for the ease of user's operation, master is answered With the window's position parameter and/or window size parameter of suspended window can be modified, for example, modifying the window's position of suspended window simultaneously Parameter and window size parameter make suspended window be shown in end with the corresponding size of modified window size parameter after the modification Hold the corresponding position of location parameter of screen.Such as the window height (height) or window width (width) of modification suspended window, Reduce suspended window, be such as reduced into original one third, thus based on using reserving bigger display space.
Layout display module 320 is further adapted for: according to modified the window's position parameter to the first suspended window and second Suspended window is laid out and shows.
Further, insertion module 310 is further adapted for: being embedded in window view, creation window view in the first suspended window The drawing surface of figure.
Wherein, video player is realized by window view.In order to make the suspended window show what user was started The user interface of Video service is embedded in window view in suspended window after creating suspended window, and the window view is for drawing Video clip.Here window view can be any view that can show user interface provided by Video service, the present invention With no restriction to this.The present embodiment is illustrated so that window view is surfaceview view as an example.
In android system, surfaceview has independent drawing surface, it is not shared same with its host window One drawing surface.Since the user interface with independent drawing surface, surfaceview can be in an independent line It is drawn in journey, and main thread resource will not be occupied again.On the one hand complicated and efficient UI may be implemented in surfaceview It draws, on the other hand not will lead to user's input again cannot timely respond to.Therefore, surfaceview is used to regard as window Figure is embedded into suspended window, and complicated and efficient drafting may be implemented.
Further, module 330 is presented to be further adapted for: control window view is corresponding in drawing surface rendering video flowing Video clip.
After the video flowing corresponding with channel identication for providing server is transferred to window view, parasitic kit control Window view processed shows video in the video clip drawn in its corresponding video clip of drawing surface rendering video flowing Stream realizes and plays video flowing in suspended window while the user interface of main application is presented, and in the second suspended window Presentation user's interactive interface allows user to pass through the second suspended window and other while the user interface of main application is presented User interacts, or carries out other operations.
Further, creation module 300 is further adapted for: according to user triggering video play mode setting behavior, Create first suspended window with control panel.
Further, device further include: whether monitoring modular 350 triggers on the first suspended window suitable for monitoring user Close the second suspended window;
Closedown module 360, suitable for detect user on the first suspended window triggering close the second suspended window in the case where, Close the second suspended window.
Monitor whether user triggers the second suspended window of closing on the control panel of the first suspended window, primarily to determining The second suspended window whether is closed, after monitoring that user triggers closing picture-in-picture floating window on the control panel, then can control pass The second suspended window is closed, stops providing corresponding interactive service, if not monitoring the triggering behavior of user, it is outstanding to continue reservation second Floating window, presentation user's interactive interface in the second suspended window allow user according to demand by the second suspended window and other User interacts, or carries out other operations.
The device provided according to that above embodiment of the present invention, by creation the first suspended window and the second suspended window, setting the The layout parameter of one suspended window and the second suspended window, and according to set layout parameter to the first suspended window and the second suspended window It is laid out and shows, realize the setting of video play mode, and can be while the user interface of main application is presented Video is played, and provides a user interactive service, other application or Video Applications can only be used alone by solving user, without It can show the interface of Video Applications simultaneously when operating other application and carry out the defect of other interactive operations, overcome existing Have in technology when needing to operate other application or Video Applications, requires to be switched to corresponding application, cause unhandy Problem substantially increases the simplicity of user's operation, saves user time.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the view according to an embodiment of the present invention realized using parasitic kit The some or all functions of some or all components in equipment are arranged in frequency play mode.The present invention is also implemented as using In executing some or all device or device programs of method as described herein (for example, computer program and meter Calculation machine program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one The form of a or multiple signals.Such signal can be downloaded from an internet website to obtain, or mention on the carrier signal For, or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses: A1, a kind of video play mode setting method realized using parasitic kit, wherein institute Parasitic kit and main application binding in advance are stated, plays video and setting view in the user interface of the main application to provide The function of frequency play mode, which comprises
According to the setting behavior of the video play mode of user's triggering, the first suspended window and the second suspended window are created, and set The layout parameter of first suspended window and the second suspended window is set, and, video player is embedded in the first suspended window;
The first suspended window and the second suspended window are carried out according to the layout parameter of first suspended window and the second suspended window It is laid out and shows;
Broadcast video server provides in first suspended window while user interface of the main application is presented Video flowing, and presentation user's interactive interface in second suspended window.
A2, method according to a1, wherein the method also includes:
According to the behavior of movement the first suspended window and the second suspended window of user's triggering, first suspended window and the are modified The window's position parameter of two suspended windows, according to modified the window's position parameter to first suspended window and the second suspended window into Row is laid out and shows.
A3, method according to a1 or a2, wherein the video player is realized by window view;
It is described to be embedded in video player in the first suspended window and further comprise: to be embedded in window view in the first suspended window Figure, creates the drawing surface of window view.
A4, method according to a3, wherein the video flowing that the broadcast video server in the first suspended window provides Further comprise: controlling the corresponding video clip of window view video flowing described in drawing surface rendering.
A5, the method according to A3 or A4, wherein the window view is surfaceview view.
A6, according to the described in any item methods of A1-A5, wherein the video play mode according to user's triggering is set Behavior is set, the first suspended window of creation further comprises:
According to the setting behavior of the video play mode of user's triggering, first suspended window with control panel is created.
A7, the method according to A6, wherein the method also includes:
Monitor whether user triggers closing second suspended window on the first suspended window;
If so, closing second suspended window.
A8, according to the described in any item methods of A1-A7, wherein the first suspended window be video playing suspended window, second suspend Window is chat suspended window.
The invention also discloses: device is arranged in B9, a kind of video play mode realized using parasitic kit, wherein The parasitism kit and main application binding in advance, play video and setting to provide in the user interface of the main application The function of video play mode, described device include:
Creation module creates the first suspended window and the suitable for the setting behavior of the video play mode triggered according to user Two suspended windows, and the layout parameter of first suspended window and the second suspended window is set;
It is embedded in module, suitable for being embedded in video player in the first suspended window;
It is laid out display module, suitable for the layout parameter according to first suspended window and the second suspended window to the first suspended window It is laid out and shows with the second suspended window;
Module is presented, suitable for playing view in first suspended window while user interface of the main application is presented The video flowing that frequency server provides, and presentation user's interactive interface in second suspended window.
B10, the device according to B9, wherein described device further include: modified module, suitable for what is triggered according to user The window's position ginseng of first suspended window and the second suspended window is modified in the behavior of mobile first suspended window and the second suspended window Number;
The layout display module is further adapted for: according to modified the window's position parameter to first suspended window and Second suspended window is laid out and shows.
B11, the device according to B9 or B10, wherein the video player is realized by window view;
The insertion module is further adapted for: being embedded in window view in the first suspended window, is created the drawing of window view Surface.
B12, the device according to B11, wherein the presentation module is further adapted for: being controlled the window view and is existed The corresponding video clip of video flowing described in drawing surface rendering.
B13, the device according to B11 or B12, wherein the window view is surfaceview view.
B14, according to the described in any item devices of B9-B13, wherein the creation module is further adapted for: being touched according to user The setting behavior of the video play mode of hair creates first suspended window with control panel.
B15, device according to b14, wherein described device further include: monitoring modular, be suitable for monitoring user whether Second suspended window is closed in triggering on first suspended window;
Closedown module, suitable for closing the feelings of second suspended window detecting user and trigger on first suspended window Under condition, second suspended window is closed.
B16, according to the described in any item devices of B9-B15, wherein the first suspended window is video playing suspended window, and second is outstanding Floating window is chat suspended window.

Claims (14)

1. a kind of video play mode setting method realized using parasitic kit, wherein the parasitism kit is answered with master With preparatory binding, main application calls the api interface realization of the parasitic kit to play in the user interface of the main application The function of video, which comprises
According to the setting behavior of the video play mode of user's triggering, create the first suspended window and the second suspended window, and institute is set The layout parameter of the first suspended window and the second suspended window is stated, and, video player is embedded in the first suspended window, wherein institute Stating the first suspended window and the second suspended window and creating the first suspended window by parasitic kit is video playing suspended window, the second suspended window For suspended window of chatting;
Layout parameter according to first suspended window and the second suspended window is laid out the first suspended window and the second suspended window And show;
The view that broadcast video server provides in first suspended window while user interface of the main application is presented Frequency flows, and presentation user's interactive interface in second suspended window.
2. according to the method described in claim 1, wherein, the method also includes:
According to the behavior of movement the first suspended window and the second suspended window of user's triggering, modifies first suspended window and second and hang The window's position parameter of floating window carries out cloth to first suspended window and the second suspended window according to modified the window's position parameter Office and show.
3. method according to claim 1 or 2, wherein the video player is realized by window view;
It is described to be embedded in video player in the first suspended window and further comprise: to be embedded in window view in the first suspended window, create Build the drawing surface of window view.
4. according to the method described in claim 3, wherein, video that the broadcast video server in the first suspended window provides Stream further includes: the corresponding video clip of control window view video flowing described in drawing surface rendering.
5. according to the method described in claim 3, wherein, the window view is surfaceview view.
6. method according to claim 1 or 2, wherein the setting row of the video play mode according to user's triggering For the first suspended window of creation further comprises:
According to the setting behavior of the video play mode of user's triggering, first suspended window with control panel is created.
7. according to the method described in claim 6, wherein, the method also includes:
Monitor whether user triggers closing second suspended window on the first suspended window;
If so, closing second suspended window.
8. device is arranged in a kind of video play mode realized using parasitic kit, wherein the parasitism kit is answered with master With preparatory binding, main application calls the api interface realization of the parasitic kit to play in the user interface of the main application The function of video, described device include:
Creation module creates the first suspended window and second and hangs suitable for the setting behavior of the video play mode triggered according to user Floating window, and the layout parameter of first suspended window and the second suspended window is set, wherein first suspended window and second suspends Window is created by parasitic kit, and the first suspended window is video playing suspended window, and the second suspended window is chat suspended window;
It is embedded in module, suitable for being embedded in video player in the first suspended window;
It is laid out display module, suitable for the layout parameter according to first suspended window and the second suspended window to the first suspended window and the Two suspended windows are laid out and show;
Module is presented, suitable for playing video clothes in first suspended window while user interface of the main application is presented The video flowing that business device provides, and presentation user's interactive interface in second suspended window.
9. device according to claim 8, wherein described device further include: modified module, suitable for what is triggered according to user The window's position ginseng of first suspended window and the second suspended window is modified in the behavior of mobile first suspended window and the second suspended window Number;
The layout display module is further adapted for: according to modified the window's position parameter to first suspended window and second Suspended window is laid out and shows.
10. device according to claim 8 or claim 9, wherein the video player is realized by window view;
The insertion module is further adapted for: being embedded in window view in the first suspended window, is created the drawing surface of window view.
11. device according to claim 10, wherein the presentation module is further adapted for: controlling the window view The corresponding video clip of the video flowing described in drawing surface rendering.
12. device according to claim 10, wherein the window view is surfaceview view.
13. device according to claim 8 or claim 9, wherein the creation module is further adapted for: according to user's triggering The setting behavior of video play mode creates first suspended window with control panel.
14. device according to claim 13, wherein described device further include: whether monitoring modular is suitable for monitoring user Second suspended window is closed in triggering on the first suspended window;
Closedown module, suitable for detecting user the case where second suspended window is closed in triggering on first suspended window Under, close second suspended window.
CN201610482856.6A 2016-06-27 2016-06-27 The video play mode setting method and device realized using parasitic kit Active CN105915993B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610482856.6A CN105915993B (en) 2016-06-27 2016-06-27 The video play mode setting method and device realized using parasitic kit
PCT/CN2017/090365 WO2018001246A1 (en) 2016-06-27 2017-06-27 Video play mode setting method, device, program and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610482856.6A CN105915993B (en) 2016-06-27 2016-06-27 The video play mode setting method and device realized using parasitic kit

Publications (2)

Publication Number Publication Date
CN105915993A CN105915993A (en) 2016-08-31
CN105915993B true CN105915993B (en) 2019-03-01

Family

ID=56759775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610482856.6A Active CN105915993B (en) 2016-06-27 2016-06-27 The video play mode setting method and device realized using parasitic kit

Country Status (2)

Country Link
CN (1) CN105915993B (en)
WO (1) WO2018001246A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915993B (en) * 2016-06-27 2019-03-01 北京奇虎科技有限公司 The video play mode setting method and device realized using parasitic kit
CN106502540B (en) * 2016-10-26 2020-02-25 北京奇虎科技有限公司 Method and device for customizing functions in main application interface by using floating window
CN106604104A (en) * 2016-12-22 2017-04-26 惠州Tcl移动通信有限公司 Method and system for controlling moving of video on comment exchange interface based on mobile terminal
CN109246466B (en) * 2018-10-30 2021-06-11 北京达佳互联信息技术有限公司 Video playing method and device and electronic equipment
CN109348278A (en) * 2018-12-05 2019-02-15 未来电视有限公司 Interface display control method and interface display control equipment
CN116708900B (en) * 2022-11-17 2024-03-22 荣耀终端有限公司 Video playing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899062A (en) * 2015-05-29 2015-09-09 努比亚技术有限公司 Application booting method and apparatus
CN105187939A (en) * 2015-09-21 2015-12-23 合一网络技术(北京)有限公司 Method and device of playing video in webpage game
CN105554424A (en) * 2015-12-24 2016-05-04 北京奇虎科技有限公司 Method and apparatus for video playing in application
CN105554553A (en) * 2015-12-15 2016-05-04 腾讯科技(深圳)有限公司 Method and device for playing video through floating window

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049258A (en) * 2012-12-10 2013-04-17 乐视网信息技术(北京)股份有限公司 Method and system for controlling video playing based on android operating system
KR20160027692A (en) * 2014-09-02 2016-03-10 엘지전자 주식회사 Digital device copying digital contents through the overlap of screens and control method thereof
CN105915993B (en) * 2016-06-27 2019-03-01 北京奇虎科技有限公司 The video play mode setting method and device realized using parasitic kit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899062A (en) * 2015-05-29 2015-09-09 努比亚技术有限公司 Application booting method and apparatus
CN105187939A (en) * 2015-09-21 2015-12-23 合一网络技术(北京)有限公司 Method and device of playing video in webpage game
CN105554553A (en) * 2015-12-15 2016-05-04 腾讯科技(深圳)有限公司 Method and device for playing video through floating window
CN105554424A (en) * 2015-12-24 2016-05-04 北京奇虎科技有限公司 Method and apparatus for video playing in application

Also Published As

Publication number Publication date
CN105915993A (en) 2016-08-31
WO2018001246A1 (en) 2018-01-04

Similar Documents

Publication Publication Date Title
CN105915993B (en) The video play mode setting method and device realized using parasitic kit
CN106131686B (en) The video play mode switching method and device realized using parasitic kit
CN106126236B (en) Multi-screen display method, device and the terminal of terminal screen
CN105915933B (en) The video pushing method and device realized using parasitic kit
US10599212B2 (en) Navigation of a virtual plane using a zone of restriction for canceling noise
JP6659644B2 (en) Low latency visual response to input by pre-generation of alternative graphic representations of application elements and input processing of graphic processing unit
WO2017113856A1 (en) Barrage display method and device
AU2010366331B2 (en) User interface, apparatus and method for gesture recognition
CN106201167A (en) The multi-screen display method of terminal screen, device and terminal
CN107861714B (en) Development method and system of automobile display application based on Intel RealSense
CN102520864A (en) Method for continuously playing images and device
CN105933779A (en) Video playing method and device implemented by using parasitic toolkit
CN104793851B (en) A kind of suspension button control method of terminal screen
CN105765518A (en) Apparatus and method for sharing contents
US9830014B2 (en) Reducing control response latency with defined cross-control behavior
CN110225246B (en) Event script generation method and device, electronic equipment and computer readable storage medium
CN106126027A (en) The multi-screen display method of terminal screen, device and terminal
CN108984137A (en) Double-screen display method and its system, computer readable storage medium
US20210357087A1 (en) Context-Based User Interface Menu with Selectable Actions
CN106233243A (en) Many frameworks manager
CN106980446A (en) A kind of condition control method and device of page application
CN104461615B (en) A kind of processing method and electronic equipment of skin resource
WO2020205292A1 (en) Context-based user interface menu with selectable actions
CN107864409B (en) Bullet screen display method and device and computer readable storage medium
CN103838304A (en) Electronic equipment and display control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.