[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105915993A - Method and device for setting video playing mode by using parasitic toolkit - Google Patents

Method and device for setting video playing mode by using parasitic toolkit Download PDF

Info

Publication number
CN105915993A
CN105915993A CN201610482856.6A CN201610482856A CN105915993A CN 105915993 A CN105915993 A CN 105915993A CN 201610482856 A CN201610482856 A CN 201610482856A CN 105915993 A CN105915993 A CN 105915993A
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.)
Granted
Application number
CN201610482856.6A
Other languages
Chinese (zh)
Other versions
CN105915993B (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 360 Zhiling Technology 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/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42653Internal components of the client ; Characteristics thereof for processing graphics
    • 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/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
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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
    • 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
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

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 method and device for setting a video playing mode by using a parasitic toolkit. The parasitic toolkit is bound with a master application in advance, thus providing functions of playing a video and setting the video playing mode in the user interface of the master application. The method comprises following steps of establishing a first float window and a second float window according to a behavior which is triggered by a user and is used for setting the video playing mode; setting the layout parameters of the first float window and the second float window; embedding a video player in the first float window; laying out and displaying the first float window and the second float window according to the layout parameters of the first float window and the second float window; displaying the user interface of the master application; moreover, playing video streaming provided by the video player in the first float window; displaying a user interaction interface in the second float window. According to the method and the device, the video playing mode is set, the user interface of the master application is displayed, moreover, the video is played, and the interaction service is provided for a user.

Description

Utilize video play mode method to set up and the device of parasitic tool kit realization
Technical field
The present invention relates to intelligent terminal's technical field, be specifically related to a kind of utilize what parasitic tool kit realized to regard Frequently play mode method to set up and device.
Background technology
Along with the screen of intelligent terminal is increasing, (Central Processing Unit, central authorities process CPU Device), internal memory, the hardware capability such as GPU (Graphics Processing Unit, graphic process unit) more come The most powerful, user is more and more higher to the demand of application, and such as user wishes operating the same of other application Time can watch video.At present, if terminal is wanted to run Video Applications while running an application, Terminal is to need to suspend the associative operation currently running application, or closes the current application running application Interface, the most just can be switched to the application interface of another application.Such as, when user plays game when, Needing to watch video, user needs to suspend or exit the game played to watch video;Or, logical Cross and Video Applications and the display size at interfaces of other application be set, could show simultaneously Video Applications and its He applies, and user needs to toggle between each application interface applied, and brings to the operation of user Inconvenience, and can not realize playing video while the user interface of other application of display.Additionally, it is existing Having in technical scheme, user can not arrange video play mode flexibly, can only be at existing video playback mould Formula switches, it is impossible to provide a user with interactive service, it is impossible to meet the demand of user.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least partly Ground solves the video play mode method to set up utilizing parasitic tool kit to realize of the problems referred to above and corresponding profit The video play mode realized with parasitic tool kit arranges device.
According to an aspect of the invention, it is provided a kind of video playback mould utilizing parasitic tool kit to realize Formula method to set up, wherein, parasitic tool kit is bound in advance with main application, to provide the user in main application Playing video in interface and arrange the function of video play mode, method includes:
According to user trigger video play mode behavior is set, create the first suspended window and second suspend Window, and the first suspended window and the layout parameter of the second suspended window are set, and, embedded at the first suspended window Enter video player;
According to the layout parameter of the first suspended window and the second suspended window, the first suspended window and the second suspended window are entered Row layout and representing;
Broadcast video server offer in the first suspended window while presenting the user interface of main application Video flowing, and present User Interface in the second suspended window.
According to a further aspect in the invention, it is provided that a kind of video playback mould utilizing parasitic tool kit to realize Formula arranges device, and wherein, parasitic tool kit is bound in advance with main application, to provide the user in main application Playing video in interface and arrange the function of video play mode, 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 the 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 the first suspended window and the second suspended window and hangs first Floating window and the second suspended window are laid out and represent;
Present module, be suitable to play in the first suspended window while presenting the user interface of main application regard Frequently the video flowing that server provides, and present User Interface in the second suspended window.
The scheme provided according to the present invention, by creating the first suspended window and the second suspended window, arranges first Suspended window and the layout parameter of the second suspended window, and according to set layout parameter to the first suspended window and Second suspended window is laid out and represents, it is achieved that the setting of video play mode, and can present Play video while the user interface of main application, and provide a user with interactive service, solve user Other application or Video Applications can only be used alone, and video can not be shown when operating other application simultaneously The interface applied and the defect carrying out other interactive operations, overcome in prior art when needs operate When other application or Video Applications, it is required for being switched to apply accordingly, causes unhandy problem, Substantially increase the simplicity of user operation, save user time.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention Art means, and can being practiced according to the content of description, and in order to allow, the present invention's is above and other Objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit for this Field those of ordinary skill will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical parts.In the accompanying drawings:
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;
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;
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.
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.

Claims (10)

1. utilize the video play mode method to set up that parasitic tool kit realizes, wherein, described parasitism Tool kit is bound in advance with main application, with provide in the user interface of described main application play video and Arranging the function of video play mode, 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.
Method the most according to claim 1, 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.
Method the most according to claim 1 and 2, wherein, described video player is regarded by window Figure realizes;
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.
Method the most according to claim 3, wherein, described video of playing in the first suspended window takes The video flowing that business device provides farther includes: control described window view at video described in drafting chart iso-surface patch The video clip that stream is corresponding.
5. according to the method described in claim 3 or 4, wherein, described window view is surfaceview View.
6. according to the method described in any one of claim 1-5, wherein, described according to regarding that user triggers Frequently play mode 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.
Method the most according to claim 6, 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.
8. according to the method described in any one of claim 1-7, wherein, the first suspended window is video playback Suspended window, the second suspended window is chat suspended window.
9. the video play mode utilizing parasitic tool kit to realize arranges a device, wherein, and described parasitism Tool kit is bound in advance with main application, with provide in the user interface of described main application play video and Arranging 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.
Device the most according to claim 9, wherein, described device also includes: modified module, Be suitable to movement the first suspended window and the behavior of the second suspended window triggered according to user, revise described first and hang Floating 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.
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 true CN105915993A (en) 2016-08-31
CN105915993B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502540A (en) * 2016-10-26 2017-03-15 北京奇虎科技有限公司 The method and device of customizing functions is carried out using floating window in main application interface
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
WO2018001246A1 (en) * 2016-06-27 2018-01-04 北京奇虎科技有限公司 Video play mode setting method, device, program and medium
CN109246466A (en) * 2018-10-30 2019-01-18 北京达佳互联信息技术有限公司 Video broadcasting method, device and electronic equipment
CN109348278A (en) * 2018-12-05 2019-02-15 未来电视有限公司 Interface display control method and interface display control equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708900B (en) * 2022-11-17 2024-03-22 荣耀终端有限公司 Video playing method and electronic equipment

Citations (5)

* 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
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (5)

* 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
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018001246A1 (en) * 2016-06-27 2018-01-04 北京奇虎科技有限公司 Video play mode setting method, device, program and medium
CN106502540A (en) * 2016-10-26 2017-03-15 北京奇虎科技有限公司 The method and device of customizing functions is carried out using floating window in main application interface
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
CN109246466A (en) * 2018-10-30 2019-01-18 北京达佳互联信息技术有限公司 Video broadcasting method, device and electronic equipment
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

Also Published As

Publication number Publication date
WO2018001246A1 (en) 2018-01-04
CN105915993B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN106126236B (en) Multi-screen display method, device and the terminal of terminal screen
CN106131686B (en) The video play mode switching method and device realized using parasitic kit
CN105915993A (en) Method and device for setting video playing mode by using parasitic toolkit
CN105933779A (en) Video playing method and device implemented by using parasitic toolkit
CN102841804B (en) Method and device for processing multiple foreground tasks on screen
CN104135684B (en) A kind of interface display method and device based on Firefox OS
WO2017113856A1 (en) Barrage display method and device
CN105915933B (en) The video pushing method and device realized using parasitic kit
CN106201167A (en) The multi-screen display method of terminal screen, device and terminal
WO2017101663A1 (en) Application guiding method and apparatus, and terminal
CN105979339B (en) Window display method and client
CN102421028B (en) Control method for intelligent television (TV), intelligent TV, remote control device and intelligent TV control system
EP2690550A1 (en) Method and apparatus for displaying a multi-task interface
JP5932831B2 (en) Managing an immersive environment
CN101374213A (en) Implementing method for self-defining television human-machine interface
WO2013182089A1 (en) Object suspension realizing method and device
CN106168869A (en) Desktop view processing method based on suspended window, device and terminal
CN103019840B (en) For arranging the method and apparatus of desktop
US8917356B2 (en) Play control system and method
CN112445564A (en) Interface display method, electronic device and computer readable storage medium
CN114625469B (en) Information display method, device, equipment and medium based on virtual resource
CN103686416B (en) 3D configuration information processing method and processing device in intelligent television
CN106445286A (en) Focus determination method and device for terminal screen based on split screens and terminal equipment
CN104093060A (en) Webpage video playing method and system
CN104077114A (en) Method for changing display interface of application software and electronic equipment

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.

CP03 Change of name, title or address
CP03 Change of name, title or address

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

Patentee after: Beijing 360 Zhiling Technology Co.,Ltd.

Country or region after: China

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

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

Country or region before: China