WO2018001202A1 - 视频播放模式切换方法、装置、程序及介质 - Google Patents

视频播放模式切换方法、装置、程序及介质 Download PDF

Info

Publication number
WO2018001202A1
WO2018001202A1 PCT/CN2017/090013 CN2017090013W WO2018001202A1 WO 2018001202 A1 WO2018001202 A1 WO 2018001202A1 CN 2017090013 W CN2017090013 W CN 2017090013W WO 2018001202 A1 WO2018001202 A1 WO 2018001202A1
Authority
WO
WIPO (PCT)
Prior art keywords
floating window
video
layout
mode
user
Prior art date
Application number
PCT/CN2017/090013
Other languages
English (en)
French (fr)
Inventor
王智源
李勇
郭宇卓
Original Assignee
北京奇虎科技有限公司
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 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2018001202A1 publication Critical patent/WO2018001202A1/zh

Links

Images

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4722End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting additional data associated with the content

Definitions

  • the present invention relates to the field of intelligent terminal technologies, and in particular, to a video playback mode switching method implemented by using a parasitic toolkit, a video playback mode switching device implemented by using a parasitic toolkit, a computer program, and a computer readable medium.
  • the switching of the video playing mode mainly adopts a method of hiding or displaying a view, and the performance of the mode is very low, and the view cannot be drawn in time, which easily leads to problems such as the switching mode is not smooth.
  • the present invention has been made in order to provide a video play mode switching method implemented by using a parasitic toolkit that overcomes the above problems or at least partially solves the above problems, and a corresponding video play mode switching device and computer implemented by using a parasitic toolkit.
  • Program and computer readable medium Program and computer readable medium.
  • a video play mode switching method implemented by using a parasitic toolkit wherein a parasitic toolkit is pre-bound with a main application to provide play video and switch video play mode in a main application user interface.
  • the functions and methods include:
  • the layout parameters of the first floating window are modified according to the behavior of the user-switched video playback mode, and the first floating window is re-arranged and displayed according to the modified layout parameters.
  • a video play mode switching apparatus implemented using a parasitic toolkit
  • a parasitic toolkit is pre-bound with a main application to provide play video and switch video playback in a main application's user interface.
  • the function of the mode, the device includes:
  • a creating module configured to create a first floating window and set a layout parameter of the first floating window according to a behavior of the video playback triggered by the user
  • An embedded module adapted to embed a video player in the first floating window
  • a layout presentation module configured to layout and display the first floating window according to a layout parameter of the first floating window
  • a presentation module adapted to play the video stream provided by the server in the first floating window while presenting the user interface of the main application
  • the modifying module is adapted to modify the layout parameter of the first floating window according to the behavior of the user-switched video playback mode
  • the layout presentation module is adapted to: re-layout and display the first floating window according to the modified layout parameter.
  • a computer program comprising computer readable code, when the readable code is run on a computing device, causes the computing device to perform any of the embodiments of the present invention
  • the video playback mode switching method implemented by using a parasitic toolkit.
  • the embodiment of the invention further provides a computer readable medium, wherein the program according to the embodiment of the invention is stored.
  • the first floating window is re-arranged and displayed according to the modified layout parameter, thereby realizing the switching of the video playing mode, and overcoming the prior art
  • the way to hide or show the view results in low performance, and the view cannot be drawn in time, and the switching mode is not smooth, which improves performance.
  • the video played by the first floating window can be used to play the video while the user interface of the main application is played, which solves the problem that the user can only use other applications or video applications separately, but can not simultaneously display the video application interface when operating other applications.
  • the defect overcomes the problem that in the prior art, when it is required to operate other applications or video applications, it needs to switch to the corresponding application, resulting in inconvenient operation, greatly improving the convenience of the user operation and saving user time.
  • FIG. 1 shows a flow chart of a video play mode switching method implemented using a parasitic toolkit according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing a video playback mode switching method implemented by using a parasitic toolkit according to another embodiment of the present invention
  • FIG. 3 is a block diagram showing the structure of a video play mode switching apparatus implemented by using a parasitic toolkit according to an embodiment of the present invention
  • FIG. 4 shows a block diagram of a computing device for performing a video play mode switching method implemented using a parasitic toolkit in accordance with the present invention
  • FIG. 5 illustrates a storage unit for holding or carrying program code that implements a video play mode switching method implemented using a parasitic toolkit in accordance with the present invention.
  • the inventors of the present invention have found in the process of using some applications (for example, game applications) that when using these applications, the video cannot be played while displaying the user interface of the application, that is, the user cannot use the applications. At the same time, the video can be viewed. The user needs to open the video application separately. However, the video application and other applications cannot be displayed on the screen of the mobile terminal at the same time. In the PC terminal, the display size of the interface of the video application and other applications needs to be set simultaneously. Display video applications and other applications. If the user wants to operate the video application or other applications, the cursor needs to be positioned to the corresponding application, which is easy to cause inconvenience. In order to solve the above problems, the inventor has creatively worked out Trap the parasitic toolkit with the main application using a parasitic toolkit A solution to provide the ability to play video in the main application's user interface.
  • some applications for example, game applications
  • the main application is a stand-alone application, and the application can independently implement the corresponding functions without relying on any other application, for example, a game application, and the user interface provided by the game application after the user launches the game application. Play on the game.
  • the parasitic toolkit needs to rely on the main application to implement the corresponding function, and the main application needs to call the API interface of the parasitic toolkit to implement the corresponding function of the parasitic toolkit, for example, to play the video in the game application as an example, in the user.
  • the game application is the main application
  • the playback video is a function realized by the parasitic toolkit.
  • the user can select the video playing mode according to the needs.
  • the switching of the video playing mode mainly adopts the method of hiding or displaying the view.
  • the performance of this mode is very low, and the view cannot be drawn in time, which easily leads to switching.
  • the mode is not smooth and so on.
  • FIG. 1 shows a flow chart of a video play mode switching method implemented using a parasitic toolkit in accordance with one embodiment of the present invention. As shown in Figure 1, the method includes the following steps:
  • Step S100 Create a first floating window and set a layout parameter of the first floating window according to the behavior of the video playback triggered by the user, and embed the video player in the first floating window.
  • the embodiment of the invention implements video playback by creating a suspended floating window (Floatwindow).
  • the first floating window is a floating window having the uppermost layer of the terminal screen.
  • the first floating window is not affiliated with the Activity interface, and is not affected by the coverage of the Activity interface, but is the same as the life cycle of the Activity.
  • the first floating window is created by a parasitic toolkit.
  • the video can be started by triggering the video playing. After detecting the triggering behavior of the user, the Floatwindow is created according to the behavior of the user.
  • the creation of Floatwindow involves the WindowManager interface.
  • the implementation classes are WindowManagerImpl, CompatModeWrapper, and LocalWindowManager.
  • the code of the parasitic toolkit starts a Service and then creates a first floating window in the Service.
  • it is necessary to define the layout of the first floating window create an object of the first floating window to set the layout parameter, and set the position parameter and the size parameter (including width and height) of the first floating window.
  • the position parameter and the size parameter of the first floating window determine that the first floating window is displayed at a preset position of the terminal screen in a preset size.
  • a video player is embedded within the first floating window, which can be used to display the video stream.
  • Step S101 Layout and display the first floating window according to the layout parameter of the first floating window.
  • the first floating window is laid out according to the set layout parameter, and the first floating window after the layout is displayed, for example, setting the first floating window.
  • the size parameter of the window is width: 80, height: 100 (in pixels), so that the user is presented with a 100*80 floating window.
  • Step S102 playing the video stream provided by the server in the first floating window while presenting the user interface of the main application.
  • the video stream provided by the server is transmitted to the video player, and the video stream is played in the first floating window, thereby playing the video stream while presenting the user interface of the main application.
  • Step S103 Modify the layout parameter of the first floating window according to the behavior of the user-switched video playback mode, and re-layout and display the first floating window according to the modified layout parameter.
  • the video play mode mainly includes: a full screen mode, a minimal mode, and a default mode, wherein the full screen mode refers to the video screen occupying the entire terminal screen, and the video screen completely covers the user interface of the main application, in the minimal mode
  • the part of the user interface of the video screen covering the main application is the smallest.
  • the default mode the video screen will cover a part of the user interface of the main application.
  • the video picture is smaller than the video picture in the full screen mode, but larger than the video picture in the minimal mode.
  • a switching button is displayed on the video player, and the video playing mode can be switched by clicking a switching button.
  • a drop-down menu can be selected.
  • the user selects a specific video playback mode.
  • the user selects the operation of the video play mode in the pull-down menu, and the detected user selects the video play mode in the pull-down menu as the triggering behavior of the user.
  • other methods may be used, which are not specifically limited in this embodiment.
  • Modifying the layout parameters of the first floating window according to the behavior of the user-switched video playback mode for example, modifying to width: 150, height: 120, and re-layout the first floating window according to the modified layout parameters.
  • To the user is a 120*150 floating window.
  • the first floating window is re-arranged and displayed according to the modified layout parameter by modifying the layout parameter of the first floating window, thereby realizing the switching of the video playing mode, and overcoming the prior art.
  • the performance is very low, and the view cannot be drawn in time, and the switching mode is not smooth.
  • the video played by the first floating window can be used to play the video while the user interface of the main application is played, which solves the problem that the user can only use other applications or video applications separately, but can not simultaneously display the video application interface when operating other applications.
  • the defect overcomes the problem that in the prior art, when it is required to operate other applications or video applications, it needs to switch to the corresponding application, resulting in inconvenient operation, greatly improving the convenience of the user operation and saving user time.
  • FIG. 2 is a flow chart showing a video play mode switching method implemented by a parasitic toolkit according to another embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step S200 Create a first floating window and set a layout parameter of the first floating window according to the behavior of the video playback triggered by the user, and embed the video player in the first floating window.
  • the embodiment of the invention implements video playback by creating a suspended floating window (Floatwindow).
  • the first floating window is a floating window having the uppermost layer of the terminal screen.
  • the first floating window is not affiliated with the Activity interface, and is not affected by the coverage of the Activity interface, but is the same as the life cycle of the Activity.
  • the first floating window is created by a parasitic toolkit.
  • the video can be started by triggering the video playing. After detecting the triggering behavior of the user, the Floatwindow is created according to the behavior of the user.
  • the creation of Floatwindow involves the WindowManager interface.
  • the implementation classes are WindowManagerImpl, CompatModeWrapper, and LocalWindowManager.
  • the code of the parasitic toolkit starts a Service and then creates a first floating window in the Service.
  • the layout parameter includes at least a window size parameter, for example, setting a position parameter and a size parameter of the first floating window ( Contains width and height).
  • the position parameter and the size parameter of the first floating window determine that the first floating window is displayed at a preset position of the terminal screen in a preset size.
  • a video player is embedded within the first floating window, which can be used to display the video stream.
  • the video player is implemented by the first window view.
  • a first window view is embedded in the floating window, and the first window view is used to draw the video interface.
  • the first window view herein can be any view capable of displaying the user interface provided by the video service, which is not limited by the present invention. This embodiment uses the first window view as the surface view view as an example for description.
  • the surfaceview has a separate drawing surface that does not share the same drawing surface with its host window.
  • the surfaceview user interface can be drawn in a separate thread without taking up the main thread resources.
  • surfaceview can achieve complex and efficient UI rendering, on the other hand, it does not cause user input to be unable to respond in time. Therefore, using surfaceview as a window view embedded in a floating window enables complex and efficient drawing.
  • the second window view is embedded in the floating window, and the relative positional relationship between the second window view and the first window view is set.
  • the second window view is set to be below the first window view, that is, under the video player, and the second window view is a non-transparent background view, thereby solving the problem that the first window view is penetrated to the terminal screen.
  • Step S201 Layout and display the first floating window according to the layout parameter of the first floating window.
  • the size parameter of the first floating window is set to width: 80, height: 100, so that the user presents a 100*80 floating window. .
  • Step S202 playing the video stream provided by the server in the first floating window while presenting the user interface of the main application.
  • the parasitic toolkit controls the first window view to draw a video interface corresponding to the video stream on the drawing surface thereof, and displays the video stream in the drawn video interface to implement The video stream is played in the floating window while presenting the user interface of the main application.
  • Step S203 Search for a layout parameter corresponding to the switched video play mode according to the behavior of the switched video play mode triggered by the user.
  • the video play mode mainly includes: a full screen mode, a minimal mode, and a default mode, wherein the full screen mode refers to the video screen occupying the entire terminal screen, and the video screen completely covers the user interface of the main application, in the minimal mode
  • the part of the user interface of the video screen covering the main application is the smallest.
  • the default mode the video screen will cover a part of the user interface of the main application.
  • the video picture is smaller than the video picture in the full screen mode, but larger than the video picture in the minimal mode.
  • a switching button is displayed on the video player, and the video playing mode can be switched by clicking a switching button.
  • a drop-down menu can be selected.
  • the user selects a specific video playback mode.
  • the user selects the operation of the video play mode in the pull-down menu, and the detected user selects the video play mode in the pull-down menu as the triggering behavior of the user.
  • other methods may be used, which are not specifically limited in this embodiment.
  • the layout parameter corresponding to the switched video playback mode is searched, and the layout parameter includes the window size parameter of the first floating window after the switching, The width and height of the window, as well as the positional parameters of the first floating window, the positional parameters determine the position of the first floating window on the terminal screen.
  • Step S204 Modify the layout parameter of the first floating window according to the layout parameter corresponding to the switched video play mode.
  • Step S205 re-layout and display the first floating window according to the modified layout parameter.
  • step S203 After finding the layout parameter corresponding to the switched video play mode according to step S203, modifying the layout parameter of the first floating window according to the parameter, so that the first floating window is displayed with the modified window size parameter, if
  • the layout parameter of the first floating window is modified, the position parameter of the first floating window is modified, and after the modification, the floating window is displayed with the size corresponding to the modified window size parameter.
  • the position corresponding to the position parameter of the terminal screen For example, modify the window height or window width of the floating window to reduce the floating window, such as reducing it to the original one-third, thus leaving a larger display space for the main application.
  • the video play mode when the video play mode is switched to the minimal mode, not only can the video be displayed but also chat, etc., in the case of chat, in the minimal mode, by creating two floating windows, one for playing video, One for chatting.
  • the first play mode may be a full screen mode or a default mode
  • the second play mode is a minimal mode
  • the method further includes: creating a second floating window for displaying the user interaction interface, and setting the second floating window Layout parameters; layout and presentation of the second floating window according to the layout parameters of the second floating window.
  • the layout of the second floating window creates a second floating window to set the object of the layout parameter; set the position parameter and size parameter of the second floating window (including width and height).
  • the position parameter and the size parameter of the second floating window determine that the second floating window is displayed at a preset position of the terminal screen in a preset size.
  • the second floating window is laid out according to the set layout parameter, and the second floating window after the layout is displayed. For example, setting the size parameter of the second floating window to width: 50, Height: 20, so that the user is a 20*50 floating window.
  • the method further includes: modifying a layout parameter of the second floating window, so that the second floating window is laid out to the terminal Outside the screen.
  • the video play mode is switched from the minimal mode to the full screen mode or the default mode, since the first floating window is used for playing video in the full screen mode or the default mode, there is no need to create two floating windows, which are used in the prior art.
  • the second floating window is hidden, and the first floating window mode of the full screen mode or the default mode is displayed, and the video playback mode is switched.
  • the performance of this mode is very low, and the corresponding view cannot be drawn in time, which easily leads to the switching mode is not smooth.
  • the second floating window is laid out of the terminal screen, for example, the position parameter of the second floating window is modified to be a negative value.
  • the first floating window is re-arranged and displayed according to the modified layout parameter by modifying the layout parameter of the first floating window, thereby realizing the switching of the video playing mode, and overcoming the prior art.
  • the switching mode is not smooth and so on.
  • the video played by the first floating window can be used to play the video while the user interface of the main application is played, which solves the problem that the user can only use other applications or video applications separately, but can not simultaneously display the video application interface when operating other applications.
  • the defect overcomes the problem that in the prior art, when it is required to operate other applications or video applications, it needs to switch to the corresponding application, resulting in inconvenient operation, greatly improving the convenience of the user operation and saving user time.
  • FIG. 3 is a block diagram showing the structure of a video play mode switching apparatus implemented by using a parasitic toolkit according to an embodiment of the present invention.
  • the apparatus includes: a creation module 300, an embedded module 310, a layout presentation module 320, a presentation module 330, and a modification module 340.
  • the creating module 300 is adapted to create a first floating window and set a layout parameter of the first floating window according to the behavior of the user-triggered video playing.
  • the embodiment of the invention implements video playback by creating a suspended floating window (Floatwindow).
  • the first floating window is a floating window having the uppermost layer of the terminal screen.
  • the first floating window is not affiliated with the Activity interface, and is not affected by the coverage of the Activity interface, but is the same as the life cycle of the Activity.
  • the first floating window is created by a parasitic toolkit.
  • the video can be started by triggering the video playing. After detecting the triggering behavior of the user, the Floatwindow is created according to the behavior of the user.
  • the creation of Floatwindow involves the WindowManager interface.
  • the implementation classes are WindowManagerImpl, CompatModeWrapper, and LocalWindowManager.
  • the code of the parasitic toolkit starts a Service and then creates a first floating window in the Service.
  • the layout parameter includes at least a window size parameter, for example, setting a position parameter and a size parameter of the first floating window ( Contains width and height).
  • the position parameter and the size parameter of the first floating window determine that the first floating window is displayed at a preset position of the terminal screen in a preset size.
  • the embedding module 310 is adapted to embed the video player in the first floating window.
  • a video player is embedded within the first floating window, which can be used to display the video stream.
  • the video player is implemented by the first window view.
  • a first window view is embedded in the floating window, and the first window view is used to draw the video interface.
  • the first window view herein can be any view capable of displaying the user interface provided by the video service, which is not limited by the present invention. This embodiment uses the first window view as the surface view view as an example for description.
  • the surfaceview has a separate drawing surface that does not share the same drawing surface with its host window.
  • the surfaceview user interface can be drawn in a separate thread without taking up the main thread resources.
  • surfaceview can achieve complex and efficient UI rendering, on the other hand, it does not cause user input to be unable to respond in time. Therefore, using surfaceview as a window view embedded in a floating window enables complex and efficient drawing.
  • the second window view is embedded in the floating window, and the relative positional relationship between the second window view and the first window view is set.
  • the second window view is set to be below the first window view, that is, under the video player, and the second window view is a non-transparent background view, thereby solving the problem that the first window view is penetrated to the terminal screen.
  • the layout presentation module 320 is adapted to layout and display the first floating window according to the layout parameters of the first floating window.
  • the first floating window is laid out according to the set layout parameters, and the first floating window after the layout is displayed, for example, the size parameter of the first floating window is set to width: 80, Height: 100 (in pixels), so that the user is a 100*80 floating window.
  • the presentation module 330 is adapted to play the video stream provided by the server in the first floating window while presenting the user interface of the main application.
  • the parasitic toolkit controls the first window view to draw a video interface corresponding to the video stream on the drawing surface thereof, and displays the video stream in the drawn video interface to implement The video stream is played in the floating window while presenting the user interface of the main application.
  • the modifying module 340 is adapted to modify the layout parameter of the first floating window according to the behavior of the user-switched video playback mode.
  • the layout presentation module 320 is adapted to: re-lay and display the first floating window according to the modified layout parameters.
  • the video play mode mainly includes: a full screen mode, a minimal mode, and a default mode, wherein the full screen mode refers to the video screen occupying the entire terminal screen, and the video screen completely covers the user interface of the main application, in the minimal mode
  • the part of the user interface of the video screen covering the main application is the smallest.
  • the default mode the video screen will cover a part of the user interface of the main application.
  • the video picture is smaller than the video picture in the full screen mode, but larger than the video picture in the minimal mode.
  • the switch button will be displayed on the video player, and the video play mode can be switched by clicking the switch button.
  • the user can select by selecting a drop-down menu. Specific video playback mode. Detecting the user's selection of the video playback mode in the drop-down menu, the detected user selects the video in the drop-down menu The operation of the play mode is used as the triggering behavior of the user. Of course, other methods may be used, which are not specifically limited in this embodiment.
  • the modifying module 340 includes: a searching unit 341 and a modifying unit 342.
  • the searching unit 341 is configured to search for a layout parameter corresponding to the switched video play mode according to the behavior of the user-switched video playback mode.
  • the layout parameter corresponding to the switched video playback mode is searched, and the layout parameter includes the window size parameter of the first floating window after the switching, The width and height of the window, as well as the positional parameters of the first floating window, the positional parameters determine the position of the first floating window on the terminal screen.
  • the modifying unit 342 is adapted to modify the layout parameter of the first floating window according to the layout parameter corresponding to the switched video playing mode.
  • the layout presentation module 320 is adapted to: re-layout and display the first floating window according to the modified layout parameter of the modification unit.
  • the video play mode when the video play mode is switched to the minimal mode, not only the video but also the chat can be displayed, for example, in the chat mode, in the minimal mode, two floating windows are required, one for playing the video. One for chat.
  • the first play mode may be a full screen mode or a default mode
  • the second play mode is a minimal mode
  • the creating module 300 is adapted to: create a second floating window for displaying the user interaction interface, and set a layout parameter of the second floating window;
  • the layout presentation module 320 is adapted to: layout and display the second floating window according to the layout parameters of the second floating window.
  • the layout of the second floating window creates a second floating window to set the object of the layout parameter; set the position parameter and size parameter of the second floating window (including width and height).
  • the position parameter and the size parameter of the second floating window determine that the second floating window is displayed at a preset position of the terminal screen in a preset size.
  • the second floating window is laid out according to the set layout parameter, and the second floating window after the layout is displayed. For example, setting the size parameter of the second floating window to width: 50, Height: 20, so that the user is a 20*50 floating window.
  • Block 340 is adapted to: modify the layout parameters of the second floating window such that the second floating window is laid out of the terminal screen.
  • the video play mode is switched from the minimal mode to the full screen mode or the default mode, since the first floating window is used for playing video in the full screen mode or the default mode, there is no need to create two floating windows, which are used in the prior art.
  • the second floating window is hidden, and the first floating window mode of the full screen mode or the default mode is displayed, and the video playback mode is switched.
  • the performance of this mode is very low, and the corresponding view cannot be drawn in time, which easily leads to the switching mode is not smooth.
  • the second floating window is laid out of the terminal screen, for example, the position parameter of the second floating window is modified to be a negative value.
  • the first floating window is re-arranged and displayed according to the modified layout parameter by modifying the layout parameter of the first floating window, thereby realizing the switching of the video playing mode, and overcoming the prior art.
  • the performance is very low, and the view cannot be drawn in time, and the switching mode is not smooth.
  • the video played by the first floating window can be used to play the video while the user interface of the main application is played, which solves the problem that the user can only use other applications or video applications separately, but can not simultaneously display the video application interface when operating other applications.
  • the defect overcomes the problem that in the prior art, when it is required to operate other applications or video applications, it needs to switch to the corresponding application, resulting in inconvenient operation, greatly improving the convenience of the user operation and saving user time.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the components of a video playback mode switching device implemented with a parasitic toolkit in accordance with an embodiment of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 4 illustrates a computing device that can implement a video play mode switching method implemented using a parasitic toolkit in accordance with the present invention.
  • the computing device conventionally includes a processor 410 and a program product or readable medium in the form of a memory 420.
  • Memory 420 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, or ROM.
  • Memory 420 has a memory space 430 for program code 431 for performing any of the method steps described above.
  • storage space 430 for program code may include various program code 431 for implementing various steps in the above methods, respectively.
  • These program codes can be read from or written to one or more program products.
  • These program products include program code carriers such as memory cards.
  • Such a program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 420 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes readable code 431', code that can be read by a processor, such as 410, which, when executed by a computing device, causes the computing device to perform the operations described above. The various steps in the method.

Abstract

视频播放模式切换方法、装置、程序及介质。其中寄生工具包与主应用预先绑定,以提供在主应用的用户界面中播放视频以及切换视频播放模式的功能,该方法包括:根据用户触发的视频播放的行为,创建第一悬浮窗并设置第一悬浮窗的布局参数,在第一悬浮窗内嵌入视频播放器;依据第一悬浮窗的布局参数对第一悬浮窗进行布局及展现;在呈现主应用的用户界面的同时在第一悬浮窗内播放服务器提供的视频流;根据用户触发的切换视频播放模式的行为,修改第一悬浮窗的布局参数,根据修改后的布局参数对第一悬浮窗进行重新布局及展现,克服现有技术中,采用隐藏或者显示视图的方式,导致性能很低,切换模式不流畅等问题,提升了性能。

Description

视频播放模式切换方法、装置、程序及介质 技术领域
本发明涉及智能终端技术领域,具体涉及一种利用寄生工具包实现的视频播放模式切换方法、一种利用寄生工具包实现的视频播放模式切换装置、一种计算机程序以及一种计算机可读介质。
背景技术
随着智能终端的屏幕越来越大、CPU(Central Processing Unit,中央处理器)、内存、GPU(Graphics Processing Unit,图形处理器)等硬件功能越来越强大,用户对应用的需求也越来越高,例如用户希望在操作其他应用的同时能够观看视频。目前,如果终端在运行一个应用的同时想要运行视频应用,终端是需要将当前运行应用的相关操作暂停,或者关闭当前运行应用的应用界面,然后才能切换到另一个应用的应用界面。例如,当用户玩游戏的时候,需要观看视频,用户需要暂停或退出正在玩的游戏才能观看视频;或者,通过设置视频应用和其他应用的界面的显示大小,才能同时显示视频应用和其他应用,用户需要在各个应用的应用界面之间来回切换,给用户的操作带来不便,且并不能实现在显示其他应用的用户界面的同时播放视频。此外,现有技术方案中,视频播放模式的切换主要采用的是隐藏或者显示视图的方式,这种方式性能很低,且视图不能及时绘制,容易导致切换模式不流畅等问题。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的利用寄生工具包实现的视频播放模式切换方法和相应的利用寄生工具包实现的视频播放模式切换装置、计算机程序及计算机可读介质。
根据本发明的一个方面,提供了一种利用寄生工具包实现的视频播放模式切换方法,其中寄生工具包与主应用预先绑定,以提供在主应用的用户界面中播放视频以及切换视频播放模式的功能,方法包括:
根据用户触发的视频播放的行为,创建第一悬浮窗并设置第一悬浮窗的布局参数,在第一悬浮窗内嵌入视频播放器;
依据第一悬浮窗的布局参数对第一悬浮窗进行布局及展现;
在呈现主应用的用户界面的同时在第一悬浮窗内播放服务器提供的视频流;
根据用户触发的切换视频播放模式的行为,修改第一悬浮窗的布局参数,根据修改后的布局参数对第一悬浮窗进行重新布局及展现。
根据本发明的另一方面,提供了一种利用寄生工具包实现的视频播放模式切换装置,其中寄生工具包与主应用预先绑定,以提供在主应用的用户界面中播放视频以及切换视频播放模式的功能,装置包括:
创建模块,适于根据用户触发的视频播放的行为,创建第一悬浮窗并设置第一悬浮窗的布局参数;
嵌入模块,适于在第一悬浮窗内嵌入视频播放器;
布局展现模块,适于依据第一悬浮窗的布局参数对第一悬浮窗进行布局及展现;
呈现模块,适于在呈现主应用的用户界面的同时在第一悬浮窗内播放服务器提供的视频流;
修改模块,适于根据用户触发的切换视频播放模式的行为,修改第一悬浮窗的布局参数;
布局展现模块适于:根据修改后的布局参数对第一悬浮窗进行重新布局及展现。
根据本发明的又一方面,提供了一种计算机程序,包括计算机可读代码,当所述可读代码在计算设备上运行时,导致所述计算设备执行根据本发明实施例中的任一个所述的利用寄生工具包实现的视频播放模式切换方法。
本发明实施例还提供了一种计算机可读介质,其中存储了如本发明实施例所述的程序。
根据本发明提供的方案,通过修改第一悬浮窗的布局参数,根据修改后的布局参数对第一悬浮窗进行重新布局及展现,实现了视频播放模式的切换,克服了现有技术中,采用隐藏或者显示视图的方式,导致性能很低,且视图不能及时绘制,切换模式不流畅等问题,提升了性能。进一步的,可通过第一悬浮窗播放视频实现了呈现主应用的用户界面的同时播放视频,解决了用户只能单独使用其他应用或视频应用,而不能在操作其他应用时同时显示视频应用的界面的缺陷,克服了现有技术中当需要操作其他应用或视频应用时,都需要切换到相应的应用,导致操作不便的问题,大大提高了用户操作的简便性,节省用户时间。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本发明一个实施例的利用寄生工具包实现的视频播放模式切换方法的流程图;
图2示出了根据本发明另一个实施例的利用寄生工具包实现的视频播放模式切换方法的流程图;
图3示出了根据本发明一个实施例的利用寄生工具包实现的视频播放模式切换装置的结构框图;
图4示出了用于执行根据本发明的利用寄生工具包实现的视频播放模式切换方法的计算设备的框图;
图5示出了用于保持或者携带实现根据本发明的利用寄生工具包实现的视频播放模式切换方法的程序代码的存储单元。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
本发明的发明人在使用一些应用(例如,游戏应用)的过程中发现,在使用这些应用的时候,并不能在显示应用的用户界面的同时还播放视频,即,用户不能在使用这些应用的同时还能观看视频,用户需要另外开启视频应用,然而,视频应用和其他应用并不能同时在移动终端屏幕上显示,在PC终端也需要通过设置视频应用和其他应用的界面的显示大小,才能同时显示视频应用和其他应用,若用户想要对视频应用或其他应用进行操作时,需要将光标定位到相应的应用,这样很容易造成使用不便,为了解决上述问题,发明人经过创造性的劳动,提出了利用寄生工具包,将寄生工具包与主应用预先绑 定,以提供在主应用的用户界面中播放视频的功能的解决方案。
其中,主应用是一独立的应用,该应用可以独立实现相应的功能,不需要依赖于任何其他的应用,例如,游戏应用,用户在启动游戏应用后,便可以在游戏应用所提供的用户界面上玩游戏。
而该寄生工具包需要依赖于主应用才可以实现相应的功能,需要主应用调用该寄生工具包的API接口才能实现寄生工具包相应的功能,例如,以在游戏应用播放视频为例,在用户玩游戏的时候可以同时播放视频,这里游戏应用为主应用,播放视频是寄生工具包所实现的功能。
在播放视频的过程中,用户可以根据需要选择视频播放模式,目前,视频播放模式的切换主要采用的是隐藏或者显示视图的方式,这种方式性能很低,且视图不能及时绘制,容易导致切换模式不流畅等问题。
图1示出了根据本发明一个实施例的利用寄生工具包实现的视频播放模式切换方法的流程图。如图1所示,该方法包括以下步骤:
步骤S100,根据用户触发的视频播放的行为,创建第一悬浮窗并设置第一悬浮窗的布局参数,在第一悬浮窗内嵌入视频播放器。
本发明实施例在通过创建悬第一悬浮窗(Floatwindow)的方式实现视频播放。第一悬浮窗是存在终端屏幕最上层的浮动窗口,第一悬浮窗不隶属于Activity界面,也不受Activity界面的覆盖影响,但与Activity的生命周期相同。本发明实施例中,第一悬浮窗由寄生工具包创建。当用户想要在主应用中观看视频时,可以通过触发视频播放的方式启动播放视频,在检测到用户的触发行为后,根据用户的该行为,创建Floatwindow。
Floatwindow的创建涉及到WindowManager接口,实现类有WindowManagerImpl,CompatModeWrapper,LocalWindowManager。具体地,寄生工具包的代码启动一个Service,然后在Service中创建第一悬浮窗。在创建第一悬浮窗时,需要定义第一悬浮窗的布局,创建第一悬浮窗设置布局参数的对象;设置第一悬浮窗的位置参数和尺寸参数(包含width和height)。第一悬浮窗的位置参数和尺寸参数决定了第一悬浮窗以预设尺寸显示在终端屏幕的预设位置。
在创建第一悬浮窗之后,在第一悬浮窗内嵌入视频播放器,该视频播放器可以用于显示视频流。
步骤S101,依据第一悬浮窗的布局参数对第一悬浮窗进行布局及展现。
在根据步骤S100设置第一悬浮窗的布局参数后,依据所设置的布局参数对第一悬浮窗进行布局,并展现布局后的第一悬浮窗,例如,设置第一悬浮 窗的尺寸参数为width:80、height:100(以像素为单位),这样展现给用户的就是一个100*80的悬浮窗。
步骤S102,在呈现主应用的用户界面的同时在第一悬浮窗内播放服务器提供的视频流。
具体地,将服务器提供的视频流传输给视频播放器,在第一悬浮窗内播放该视频流,从而在呈现主应用的用户界面的同时播放视频流。
步骤S103,根据用户触发的切换视频播放模式的行为,修改第一悬浮窗的布局参数,根据修改后的布局参数对第一悬浮窗进行重新布局及展现。
在本发明实施例中,视频播放模式主要包括:全屏模式、极简模式和默认模式,其中,全屏模式指视频画面占用整个终端屏幕,视频画面将完全覆盖主应用的用户界面,极简模式中视频画面覆盖主应用的用户界面的部分最小,默认模式中视频画面将覆盖主应用的用户界面的一部分,然而默认模式中视频画面小于全屏模式下视频画面,但大于极简模式下的视频画面。
本发明实施例中,在视频播放器上会显示切换按钮,可以通过点击切换按钮进行视频播放模式的切换,对于有多种视频播放模式可供用户选择的情况,可以通过选择下拉菜单的方式供用户选择具体的视频播放模式。检测到用户选择下拉菜单中视频播放模式的操作,将检测到的用户选择下拉菜单中视频播放模式的操作作为用户的触发行为,当然,还可以采用其他方式,本实施例对此不作具体限定。
根据用户触发的切换视频播放模式的行为,对第一悬浮窗的布局参数进行修改,例如,修改为width:150、height:120,根据修改后的布局参数对第一悬浮窗进行重新布局,展现给用户的就是一个120*150的悬浮窗。
根据本发明上述实施例提供的方法,通过修改第一悬浮窗的布局参数,根据修改后的布局参数对第一悬浮窗进行重新布局及展现,实现了视频播放模式的切换,克服了现有技术中,采用隐藏或者显示视图的方式,导致性能很低,且视图不能及时绘制,切换模式不流畅等问题。进一步的,可通过第一悬浮窗播放视频实现了呈现主应用的用户界面的同时播放视频,解决了用户只能单独使用其他应用或视频应用,而不能在操作其他应用时同时显示视频应用的界面的缺陷,克服了现有技术中当需要操作其他应用或视频应用时,都需要切换到相应的应用,导致操作不便的问题,大大提高了用户操作的简便性,节省用户时间。
图2示出了根据本发明另一个实施例的利用寄生工具包实现的视频播放模式切换方法的流程图。如图2所示,该方法包括以下步骤:
步骤S200,根据用户触发的视频播放的行为,创建第一悬浮窗并设置第一悬浮窗的布局参数,在第一悬浮窗内嵌入视频播放器。
本发明实施例在通过创建悬第一悬浮窗(Floatwindow)的方式实现视频播放。第一悬浮窗是存在终端屏幕最上层的浮动窗口,第一悬浮窗不隶属于Activity界面,也不受Activity界面的覆盖影响,但与Activity的生命周期相同。本发明实施例中,第一悬浮窗由寄生工具包创建。当用户想要在主应用中观看视频时,可以通过触发视频播放的方式启动播放视频,在检测到用户的触发行为后,根据用户的该行为,创建Floatwindow。
Floatwindow的创建涉及到WindowManager接口,实现类有WindowManagerImpl,CompatModeWrapper,LocalWindowManager。具体地,寄生工具包的代码启动一个Service,然后在Service中创建第一悬浮窗。在创建第一悬浮窗时,需要定义第一悬浮窗的布局,创建第一悬浮窗设置布局参数的对象;布局参数至少包括窗口尺寸参数,例如,设置第一悬浮窗的位置参数和尺寸参数(包含width和height)。第一悬浮窗的位置参数和尺寸参数决定了第一悬浮窗以预设尺寸显示在终端屏幕的预设位置。
在创建第一悬浮窗之后,在第一悬浮窗内嵌入视频播放器,该视频播放器可以用于显示视频流。其中,视频播放器通过第一窗口视图来实现。为了能够使该悬浮窗显示用户所启动的视频服务的用户界面,在创建悬浮窗之后,在悬浮窗内嵌入第一窗口视图,该第一窗口视图用于绘制视频界面。这里第一窗口视图可以为任何能够显示视频服务所提供的用户界面的视图,本发明对此不作限制。本实施例以第一窗口视图为surfaceview视图为例进行说明。
在Android系统中,surfaceview具有独立的绘图表面,它不与其宿主窗口共享同一个绘图表面。由于具有独立的绘图表面,因此surfaceview的用户界面可在一个独立的线程中进行绘制,而且又不会占用主线程资源。surfaceview一方面可以实现复杂而高效的UI绘制,另一方面又不会导致用户输入得不到及时响应。因此,使用surfaceview作为窗口视图嵌入到悬浮窗中,可以实现复杂和高效的绘制。
为了克服由于第一窗口视图不能及时刷新而导致的第一窗口视图被透到终端屏幕的缺陷,在悬浮窗内嵌入第二窗口视图,设置第二窗口视图与第一窗口视图的相对位置关系,设定第二窗口视图位于第一窗口视图之下,即位于视频播放器之下,并且第二窗口视图为非透明的背景视图,从而能够解决第一窗口视图被透到终端屏幕的问题。
步骤S201,依据第一悬浮窗的布局参数对第一悬浮窗进行布局及展现。
在根据步骤S200设置第一悬浮窗的布局参数后,依据所设置的布局参数 对第一悬浮窗进行布局,并展现布局后的第一悬浮窗,例如,设置第一悬浮窗的尺寸参数为width:80、height:100,这样展现给用户的就是一个100*80的悬浮窗。
步骤S202,在呈现主应用的用户界面的同时在第一悬浮窗内播放服务器提供的视频流。
具体地,在将服务器提供的视频流传输给第一窗口视图之后,寄生工具包控制第一窗口视图在其绘图表面绘制视频流对应的视频界面,在所绘制的视频界面内显示视频流,实现了在呈现主应用的用户界面的同时在悬浮窗内播放视频流。
步骤S203,根据用户触发的切换视频播放模式的行为,查找切换后的视频播放模式对应的布局参数。
在本发明实施例中,视频播放模式主要包括:全屏模式、极简模式和默认模式,其中,全屏模式指视频画面占用整个终端屏幕,视频画面将完全覆盖主应用的用户界面,极简模式中视频画面覆盖主应用的用户界面的部分最小,默认模式中视频画面将覆盖主应用的用户界面的一部分,然而默认模式中视频画面小于全屏模式下视频画面,但大于极简模式下的视频画面。
本发明实施例中,在视频播放器上会显示切换按钮,可以通过点击切换按钮进行视频播放模式的切换,对于有多种视频播放模式可供用户选择的情况,可以通过选择下拉菜单的方式供用户选择具体的视频播放模式。检测到用户选择下拉菜单中视频播放模式的操作,将检测到的用户选择下拉菜单中视频播放模式的操作作为用户的触发行为,当然,还可以采用其他方式,本实施例对此不作具体限定。
根据用户触发的切换视频播放模式的行为,在预设的布局参数库中,查找切换后的视频播放模式对应的布局参数,该布局参数包含了切换后,第一悬浮窗的窗口尺寸参数等,窗口的宽和高,以及第一悬浮窗的位置参数,位置参数决定了第一悬浮窗在终端屏幕的位置。
步骤S204,依据切换后的视频播放模式对应的布局参数修改第一悬浮窗的布局参数。
步骤S205,根据修改后的布局参数对第一悬浮窗进行重新布局及展现。
在根据步骤S203查找到切换后的视频播放模式对应的布局参数后,依据该参数,对第一悬浮窗的布局参数进行修改,使第一悬浮窗以修改后的窗口尺寸参数进行展现,若在修改第一悬浮窗的布局参数时,修改了第一悬浮窗的位置参数,在修改后,使悬浮窗以修改后的窗口尺寸参数对应的尺寸显示 在终端屏幕的位置参数对应的位置。例如修改悬浮窗的窗口高度(height)或窗口宽度(width),使悬浮窗缩小,如缩小为原来的三分之一,从而为主应用留出更大的显示空间。
在本实施例中,当视频播放模式切换到极简模式时,不仅可以显示视频还可以聊天等,以聊天为例,在极简模式下,通过创建两个悬浮窗,一个用于播放视频,一个用于聊天。
其中,第一播放模式可以为全屏模式或默认模式,第二播放模式为极简模式。
在本实施例的一个可能的实现方式中,若视频播放模式由第一播放模式切换到第二播放模式,方法还包括:创建用于展现用户交互界面的第二悬浮窗,设置第二悬浮窗的布局参数;依据第二悬浮窗的布局参数对第二悬浮窗进行布局及展现。
具体地,若视频播放模式由全屏模式或默认模式切换到极简模式,由于极简模式需要采用两个悬浮窗才能完成用户交互,因此,需要创建用于展现用户交互界面的第二悬浮窗,定义第二悬浮窗的布局,创建第二悬浮窗设置布局参数的对象;设置第二悬浮窗的位置参数和尺寸参数(包含width和height)。第二悬浮窗的位置参数和尺寸参数决定了第二悬浮窗以预设尺寸显示在终端屏幕的预设位置。在设置第二悬浮窗的布局参数后,依据所设置的布局参数对第二悬浮窗进行布局,并展现布局后的第二悬浮窗,例如,设置第二悬浮窗的尺寸参数为width:50、height:20,这样展现给用户的就是一个20*50的悬浮窗。
在本实施例的一个可能的实现方式中,若视频播放模式由第二播放模式切换到第一播放模式,方法还包括:修改第二悬浮窗的布局参数,使得第二悬浮窗被布局到终端屏幕之外。
具体地,若视频播放模式由极简模式到全屏模式或默认模式切换,由于全屏模式或默认模式下第一悬浮窗用于播放视频,这样就不需要创建两个悬浮窗,现有技术中采用的是隐藏第二悬浮窗,显示全屏模式或默认模式的第一悬浮窗口的方式,实现视频播放模式的切换,这种方式性能很低,且对应的视图不能及时绘制,容易导致切换模式不流畅等问题,为了克服这类问题,通过修改第二悬浮窗的布局参数,使得第二悬浮窗被布局到终端屏幕之外,例如修改第二悬浮窗的位置参数为负值。
根据本发明上述实施例提供的方法,通过修改第一悬浮窗的布局参数,根据修改后的布局参数对第一悬浮窗进行重新布局及展现,实现了视频播放模式的切换,克服了现有技术中,采用隐藏或者显示视图的方式,导致性能 很低,且视图不能及时绘制,切换模式不流畅等问题。进一步的,可通过第一悬浮窗播放视频实现了呈现主应用的用户界面的同时播放视频,解决了用户只能单独使用其他应用或视频应用,而不能在操作其他应用时同时显示视频应用的界面的缺陷,克服了现有技术中当需要操作其他应用或视频应用时,都需要切换到相应的应用,导致操作不便的问题,大大提高了用户操作的简便性,节省用户时间。
图3示出了根据本发明一个实施例的利用寄生工具包实现的视频播放模式切换装置的结构框图。如图3所示,该装置包括:创建模块300、嵌入模块310、布局展现模块320、呈现模块330和修改模块340。
创建模块300,适于根据用户触发的视频播放的行为,创建第一悬浮窗并设置第一悬浮窗的布局参数。
本发明实施例在通过创建悬第一悬浮窗(Floatwindow)的方式实现视频播放。第一悬浮窗是存在终端屏幕最上层的浮动窗口,第一悬浮窗不隶属于Activity界面,也不受Activity界面的覆盖影响,但与Activity的生命周期相同。本发明实施例中,第一悬浮窗由寄生工具包创建。当用户想要在主应用中观看视频时,可以通过触发视频播放的方式启动播放视频,在检测到用户的触发行为后,根据用户的该行为,创建Floatwindow。
Floatwindow的创建涉及到WindowManager接口,实现类有WindowManagerImpl,CompatModeWrapper,LocalWindowManager。具体地,寄生工具包的代码启动一个Service,然后在Service中创建第一悬浮窗。在创建第一悬浮窗时,需要定义第一悬浮窗的布局,创建第一悬浮窗设置布局参数的对象;布局参数至少包括窗口尺寸参数,例如,设置第一悬浮窗的位置参数和尺寸参数(包含width和height)。第一悬浮窗的位置参数和尺寸参数决定了第一悬浮窗以预设尺寸显示在终端屏幕的预设位置。
嵌入模块310,适于在第一悬浮窗内嵌入视频播放器。
在创建第一悬浮窗之后,在第一悬浮窗内嵌入视频播放器,该视频播放器可以用于显示视频流。其中,视频播放器通过第一窗口视图来实现。为了能够使该悬浮窗显示用户所启动的视频服务的用户界面,在创建悬浮窗之后,在悬浮窗内嵌入第一窗口视图,该第一窗口视图用于绘制视频界面。这里第一窗口视图可以为任何能够显示视频服务所提供的用户界面的视图,本发明对此不作限制。本实施例以第一窗口视图为surfaceview视图为例进行说明。
在Android系统中,surfaceview具有独立的绘图表面,它不与其宿主窗口共享同一个绘图表面。由于具有独立的绘图表面,因此surfaceview的用户界面可在一个独立的线程中进行绘制,而且又不会占用主线程资源。 surfaceview一方面可以实现复杂而高效的UI绘制,另一方面又不会导致用户输入得不到及时响应。因此,使用surfaceview作为窗口视图嵌入到悬浮窗中,可以实现复杂和高效的绘制。
为了克服由于第一窗口视图不能及时刷新而导致的第一窗口视图被透到终端屏幕的缺陷,在悬浮窗内嵌入第二窗口视图,设置第二窗口视图与第一窗口视图的相对位置关系,设定第二窗口视图位于第一窗口视图之下,即位于视频播放器之下,并且第二窗口视图为非透明的背景视图,从而能够解决第一窗口视图被透到终端屏幕的问题。
布局展现模块320,适于依据第一悬浮窗的布局参数对第一悬浮窗进行布局及展现。
在设置第一悬浮窗的布局参数后,依据所设置的布局参数对第一悬浮窗进行布局,并展现布局后的第一悬浮窗,例如,设置第一悬浮窗的尺寸参数为width:80、height:100(以像素为单位),这样展现给用户的就是一个100*80的悬浮窗。
呈现模块330,适于在呈现主应用的用户界面的同时在第一悬浮窗内播放服务器提供的视频流。
具体地,在将服务器提供的视频流传输给第一窗口视图之后,寄生工具包控制第一窗口视图在其绘图表面绘制视频流对应的视频界面,在所绘制的视频界面内显示视频流,实现了在呈现主应用的用户界面的同时在悬浮窗内播放视频流。
修改模块340,适于根据用户触发的切换视频播放模式的行为,修改第一悬浮窗的布局参数。
布局展现模块320适于:根据修改后的布局参数对第一悬浮窗进行重新布局及展现。
在本发明实施例中,视频播放模式主要包括:全屏模式、极简模式和默认模式,其中,全屏模式指视频画面占用整个终端屏幕,视频画面将完全覆盖主应用的用户界面,极简模式中视频画面覆盖主应用的用户界面的部分最小,默认模式中视频画面将覆盖主应用的用户界面的一部分,然而默认模式中视频画面小于全屏模式下视频画面,但大于极简模式下的视频画面。
一般情况下,在视频播放器上会显示切换按钮,可以通过点击切换按钮进行视频播放模式的切换,对于有多种视频播放模式可供用户选择的情况,可以通过选择下拉菜单的方式供用户选择具体的视频播放模式。检测到用户选择下拉菜单中视频播放模式的操作,将检测到的用户选择下拉菜单中视频 播放模式的操作作为用户的触发行为,当然,还可以采用其他方式,本实施例对此不作具体限定。
可选的,修改模块340包括:查找单元341和修改单元342。
查找单元341,适于根据用户触发的切换视频播放模式的行为,查找切换后的视频播放模式对应的布局参数。
根据用户触发的切换视频播放模式的行为,在预设的布局参数库中,查找切换后的视频播放模式对应的布局参数,该布局参数包含了切换后,第一悬浮窗的窗口尺寸参数等,窗口的宽和高,以及第一悬浮窗的位置参数,位置参数决定了第一悬浮窗在终端屏幕的位置。
修改单元342,适于依据切换后的视频播放模式对应的布局参数修改第一悬浮窗的布局参数。
布局展现模块320适于:根据修改单元修改后的布局参数对第一悬浮窗进行重新布局及展现。
在本实施例中,当视频播放模式切换到极简模式时,不仅可以显示视频还可以聊天等,以聊天为例,在极简模式下,通过需要创建两个悬浮窗,一个用于播放视频,一个用于聊天。
其中,第一播放模式可以为全屏模式或默认模式,第二播放模式为极简模式。
可选的,若视频播放模式由第一播放模式切换到第二播放模式,创建模块300适于:创建用于展现用户交互界面的第二悬浮窗,设置第二悬浮窗的布局参数;
布局展现模块320适于:依据第二悬浮窗的布局参数对第二悬浮窗进行布局及展现。
具体地,若视频播放模式由全屏模式或默认模式切换到极简模式,由于极简模式需要采用两个悬浮窗才能完成用户交互,因此,需要创建用于展现用户交互界面的第二悬浮窗,定义第二悬浮窗的布局,创建第二悬浮窗设置布局参数的对象;设置第二悬浮窗的位置参数和尺寸参数(包含width和height)。第二悬浮窗的位置参数和尺寸参数决定了第二悬浮窗以预设尺寸显示在终端屏幕的预设位置。在设置第二悬浮窗的布局参数后,依据所设置的布局参数对第二悬浮窗进行布局,并展现布局后的第二悬浮窗,例如,设置第二悬浮窗的尺寸参数为width:50、height:20,这样展现给用户的就是一个20*50的悬浮窗。
可选的,若视频播放模式由第二播放模式切换到第一播放模式,修改模 块340适于:修改第二悬浮窗的布局参数,使得第二悬浮窗被布局到终端屏幕之外。
具体地,若视频播放模式由极简模式到全屏模式或默认模式切换,由于全屏模式或默认模式下第一悬浮窗用于播放视频,这样就不需要创建两个悬浮窗,现有技术中采用的是隐藏第二悬浮窗,显示全屏模式或默认模式的第一悬浮窗口的方式,实现视频播放模式的切换,这种方式性能很低,且对应的视图不能及时绘制,容易导致切换模式不流畅等问题,为了克服这类问题,通过修改第二悬浮窗的布局参数,使得第二悬浮窗被布局到终端屏幕之外,例如修改第二悬浮窗的位置参数为负值。
根据本发明上述实施例提供的装置,通过修改第一悬浮窗的布局参数,根据修改后的布局参数对第一悬浮窗进行重新布局及展现,实现了视频播放模式的切换,克服了现有技术中,采用隐藏或者显示视图的方式,导致性能很低,且视图不能及时绘制,切换模式不流畅等问题。进一步的,可通过第一悬浮窗播放视频实现了呈现主应用的用户界面的同时播放视频,解决了用户只能单独使用其他应用或视频应用,而不能在操作其他应用时同时显示视频应用的界面的缺陷,克服了现有技术中当需要操作其他应用或视频应用时,都需要切换到相应的应用,导致操作不便的问题,大大提高了用户操作的简便性,节省用户时间。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的利用寄生工具包实现的视频播放模式切换设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图4示出了可以实现根据本发明的利用寄生工具包实现的视频播放模式切换方法的计算设备。该计算设备传统上包括处理器410和以存储器420形式的程序产品或者可读介质。存储器420可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM或者ROM之类的电子存储器。存储器420具有用于执行上述方法中的任何方法步骤的程序代码431的存储空间430。例如,用于程序代码的存储空间430可以包括分别用于实现上面的方法中的各种步骤的各个程序代码431。这些程序代码可以从一个或者多个程序产品中读出或者写入到这一个或者多个程序产品中。这些程序产品包括诸如存储卡之类的程序代码载体。这样的程序产品通常为如参考图5所述的便携式或者固定存储单元。该存储单元可以具有与图4的计算设备中的存储器420类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括可读代码431’,即可以由例如诸如410之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述 的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读取存储介质中,比如ROM/RAM、磁碟、光盘等。
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (14)

  1. 一种利用寄生工具包实现的视频播放模式切换方法,其中寄生工具包与主应用预先绑定,以提供在所述主应用的用户界面中播放视频以及切换视频播放模式的功能,所述方法包括:
    根据用户触发的视频播放的行为,创建第一悬浮窗并设置所述第一悬浮窗的布局参数,在第一悬浮窗内嵌入视频播放器;
    依据所述第一悬浮窗的布局参数对第一悬浮窗进行布局及展现;
    在呈现所述主应用的用户界面的同时在所述第一悬浮窗内播放服务器提供的视频流;
    根据用户触发的切换视频播放模式的行为,修改所述第一悬浮窗的布局参数,根据修改后的布局参数对所述第一悬浮窗进行重新布局及展现。
  2. 根据权利要求1所述的方法,所述根据用户触发的切换视频播放模式的行为,修改所述第一悬浮窗的布局参数,根据修改后的布局参数对所述第一悬浮窗进行重新布局及展现包括:
    根据用户触发的切换视频播放模式的行为,查找切换后的视频播放模式对应的布局参数;
    依据所述切换后的视频播放模式对应的布局参数修改所述第一悬浮窗的布局参数;
    根据修改后的布局参数对所述第一悬浮窗进行重新布局及展现。
  3. 根据权利要求1或2所述的方法,所述布局参数至少包括窗口尺寸参数。
  4. 根据权利要求1-3任一项所述的方法,其中,若视频播放模式由第一播放模式切换到第二播放模式,所述方法还包括:
    创建用于展现用户交互界面的第二悬浮窗,设置所述第二悬浮窗的布局参数;
    依据所述第二悬浮窗的布局参数对所述第二悬浮窗进行布局及展现。
  5. 根据权利要求4所述的方法,其中,若视频播放模式由第二播放模式切换到第一播放模式,所述方法还包括:
    修改所述第二悬浮窗的布局参数,使得所述第二悬浮窗被布局到终端屏幕之外。
  6. 根据权利要求1-5任一项所述的方法,其中,所述视频播放模式包括:全屏模式、极简模式和默认模式。
  7. 一种利用寄生工具包实现的视频播放模式切换装置,其中寄生工具包与主应用预先绑定,以提供在所述主应用的用户界面中播放视频以及切换视频播放模式的功能,所述装置包括:
    创建模块,适于根据用户触发的视频播放的行为,创建第一悬浮窗并设置所述第一悬浮窗的布局参数;
    嵌入模块,适于在第一悬浮窗内嵌入视频播放器;
    布局展现模块,适于依据所述第一悬浮窗的布局参数对第一悬浮窗进行布局及展现;
    呈现模块,适于在呈现所述主应用的用户界面的同时在所述第一悬浮窗内播放服务器提供的视频流;
    修改模块,适于根据用户触发的切换视频播放模式的行为,修改所述第一悬浮窗的布局参数;
    所述布局展现模块适于:根据修改后的布局参数对所述第一悬浮窗进行重新布局及展现。
  8. 根据权利要求7所述的装置,所述修改模块包括:
    查找单元,适于根据用户触发的切换视频播放模式的行为,查找切换后的视频播放模式对应的布局参数;
    修改单元,适于依据所述切换后的视频播放模式对应的布局参数修改所述第一悬浮窗的布局参数;
    所述布局展现模块适于:根据所述修改单元修改后的布局参数对所述第一悬浮窗进行重新布局及展现。
  9. 根据权利要求7或8所述的装置,所述布局参数至少包括窗口尺寸参数。
  10. 根据权利要求7-9任一项所述的装置,其中,若视频播放模式由第一播放模式切换到第二播放模式,所述创建模块适于:创建用于展现用户交互界面的第二悬浮窗,设置所述第二悬浮窗的布局参数;
    所述布局展现模块适于:依据所述第二悬浮窗的布局参数对所述第二悬浮窗进行布局及展现。
  11. 根据权利要求10所述的装置,其中,若视频播放模式由第二播放模式切换到第一播放模式,所述修改模块适于:修改所述第二悬浮窗的布局参数,使得所述第二悬浮窗被布局到终端屏幕之外。
  12. 根据权利要求7-11任一项所述的装置,其中,所述视频播放模式包 括:全屏模式、极简模式和默认模式。
  13. 一种计算机程序,包括计算机可读代码,当所述可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-6中的任一个所述的利用寄生工具包实现的视频播放模式切换方法。
  14. 一种计算机可读介质,其中存储了如权利要求13所述的程序。
PCT/CN2017/090013 2016-06-27 2017-06-26 视频播放模式切换方法、装置、程序及介质 WO2018001202A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610483838.X 2016-06-27
CN201610483838.XA CN106131686B (zh) 2016-06-27 2016-06-27 利用寄生工具包实现的视频播放模式切换方法及装置

Publications (1)

Publication Number Publication Date
WO2018001202A1 true WO2018001202A1 (zh) 2018-01-04

Family

ID=57267417

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/090013 WO2018001202A1 (zh) 2016-06-27 2017-06-26 视频播放模式切换方法、装置、程序及介质

Country Status (2)

Country Link
CN (1) CN106131686B (zh)
WO (1) WO2018001202A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445879A (zh) * 2018-10-19 2019-03-08 四川长虹电器股份有限公司 以悬浮窗显示监控视频的方法、存储介质和设备
CN112333514A (zh) * 2020-07-24 2021-02-05 深圳Tcl新技术有限公司 显示模式切换方法、装置、智能电视及计算机可读存储介质
CN114040243A (zh) * 2021-11-04 2022-02-11 上海哔哩哔哩科技有限公司 直播间视频播放方法及装置
US11907503B2 (en) 2021-03-01 2024-02-20 Boe Technology Group Co., Ltd. Switching display of page between a window of a graphical user interface and an independent child window

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131686B (zh) * 2016-06-27 2019-06-25 北京奇虎科技有限公司 利用寄生工具包实现的视频播放模式切换方法及装置
CN106803978A (zh) * 2017-03-16 2017-06-06 上海青橙实业有限公司 移动终端以及基于悬浮窗口播放视频的方法
CN107277562B (zh) * 2017-05-05 2020-02-11 中广热点云科技有限公司 一种调整屏幕显示画面隐藏预告滚动条的方法及系统
CN109151581A (zh) * 2018-07-26 2019-01-04 北京奇艺世纪科技有限公司 一种数据输出方法和装置
CN111090362B (zh) * 2018-10-23 2021-12-28 鸿合科技股份有限公司 一种场景处理方法及装置、电子设备
CN112584195B (zh) * 2019-09-29 2023-06-09 中兴通讯股份有限公司 视频播放和处理方法、装置、云化机顶盒、云平台和介质
CN113126839B (zh) * 2021-03-16 2023-06-23 北京达佳互联信息技术有限公司 一种对象播放方法、装置、电子设备及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680323A (en) * 1995-06-23 1997-10-21 Canon Information Systems, Inc. Multimedia player
US20020073123A1 (en) * 2000-12-08 2002-06-13 Wen-Sung Tsai Method for displaying overlapping documents in a computer environment
CN101382867A (zh) * 2008-10-28 2009-03-11 深圳市迅雷网络技术有限公司 视频播放交互方法与终端
CN102591650A (zh) * 2010-12-27 2012-07-18 微软公司 伴随窗口体验
CN103297855A (zh) * 2012-03-02 2013-09-11 腾讯科技(深圳)有限公司 一种应用展示方法以及一种终端
CN104571920A (zh) * 2015-01-27 2015-04-29 联想(北京)有限公司 显示处理方法及显示处理装置
CN104951271A (zh) * 2015-07-03 2015-09-30 上海与德通讯技术有限公司 分屏显示方法及电子设备
CN106131686A (zh) * 2016-06-27 2016-11-16 北京奇虎科技有限公司 利用寄生工具包实现的视频播放模式切换方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883226B (zh) * 2011-07-14 2017-10-10 上海聚力传媒技术有限公司 一种在视频播放窗口提供节目信息的方法与设备
CN103064735A (zh) * 2011-10-24 2013-04-24 联想(北京)有限公司 一种显示处理方法、装置及电子设备
CN103049258A (zh) * 2012-12-10 2013-04-17 乐视网信息技术(北京)股份有限公司 一种基于安卓操作系统控制视频播放的方法及系统
CN103745733B (zh) * 2013-12-23 2017-03-15 乐视网信息技术(北京)股份有限公司 一种视频播放控制方法及视频播放器
CN104899062B (zh) * 2015-05-29 2018-07-06 努比亚技术有限公司 应用启动方法及装置
CN105187939A (zh) * 2015-09-21 2015-12-23 合一网络技术(北京)有限公司 一种实现网页游戏中播放视频的方法及装置
CN105653133B (zh) * 2015-12-30 2019-03-01 语联网(武汉)信息技术有限公司 应用程序的扩展方法及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5680323A (en) * 1995-06-23 1997-10-21 Canon Information Systems, Inc. Multimedia player
US20020073123A1 (en) * 2000-12-08 2002-06-13 Wen-Sung Tsai Method for displaying overlapping documents in a computer environment
CN101382867A (zh) * 2008-10-28 2009-03-11 深圳市迅雷网络技术有限公司 视频播放交互方法与终端
CN102591650A (zh) * 2010-12-27 2012-07-18 微软公司 伴随窗口体验
CN103297855A (zh) * 2012-03-02 2013-09-11 腾讯科技(深圳)有限公司 一种应用展示方法以及一种终端
CN104571920A (zh) * 2015-01-27 2015-04-29 联想(北京)有限公司 显示处理方法及显示处理装置
CN104951271A (zh) * 2015-07-03 2015-09-30 上海与德通讯技术有限公司 分屏显示方法及电子设备
CN106131686A (zh) * 2016-06-27 2016-11-16 北京奇虎科技有限公司 利用寄生工具包实现的视频播放模式切换方法及装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445879A (zh) * 2018-10-19 2019-03-08 四川长虹电器股份有限公司 以悬浮窗显示监控视频的方法、存储介质和设备
CN112333514A (zh) * 2020-07-24 2021-02-05 深圳Tcl新技术有限公司 显示模式切换方法、装置、智能电视及计算机可读存储介质
CN112333514B (zh) * 2020-07-24 2024-02-06 深圳Tcl新技术有限公司 显示模式切换方法、装置、智能电视及计算机可读存储介质
US11907503B2 (en) 2021-03-01 2024-02-20 Boe Technology Group Co., Ltd. Switching display of page between a window of a graphical user interface and an independent child window
CN114040243A (zh) * 2021-11-04 2022-02-11 上海哔哩哔哩科技有限公司 直播间视频播放方法及装置
CN114040243B (zh) * 2021-11-04 2023-08-04 上海哔哩哔哩科技有限公司 直播间视频播放方法及装置

Also Published As

Publication number Publication date
CN106131686B (zh) 2019-06-25
CN106131686A (zh) 2016-11-16

Similar Documents

Publication Publication Date Title
WO2018001202A1 (zh) 视频播放模式切换方法、装置、程序及介质
WO2018001218A1 (zh) 视频播放方法、装置、程序及介质
US10908703B2 (en) User terminal device and method for controlling the user terminal device thereof
US20190243516A1 (en) Method and apparatus for changing screen in electronic device
TWI601128B (zh) 用於上下文切換的語音辨識之電腦實施方法及系統
US20200363950A1 (en) Configuration of application execution spaces and sub-spaces for sharing data on a mobile touch screen device
US11256389B2 (en) Display device for executing a plurality of applications and method for controlling the same
US10853099B2 (en) System, method, and apparatus for rendering interface elements
WO2018001246A1 (zh) 视频播放模式设置方法、装置、程序及介质
WO2018001201A1 (zh) 视频推送方法、装置、程序及介质
RU2591671C2 (ru) Краевой жест
WO2019085615A1 (zh) 一种展示界面内容的数据处理方法、装置和处理设备
TWI522894B (zh) 用於電子元件中的方法、電腦程式產品以及非暫時性電腦可讀記錄媒體
KR20170076357A (ko) 사용자 단말 장치, 이의 스피커 장치의 음량을 조절하기 위한 모드 전환 방법 및 음향 시스템
TWI662475B (zh) 應用程式生成設備、方法和非臨時性電腦可讀媒介及應用程式驅動設備
AU2014287956B2 (en) Method for displaying and electronic device thereof
RU2619089C2 (ru) Способ и устройство для воспроизведения множества видео
CN105190486A (zh) 显示装置及其用户界面屏幕提供方法
JP2013528304A (ja) ジャンプ、チェックマーク、および取消し線のジェスチャー
KR20170035502A (ko) 디스플레이 장치 및 이의 제어 방법
US9760276B2 (en) Method for disabling a locking screen by using object and electronic device using the method
KR20180027917A (ko) 디스플레이장치 및 그 제어방법
KR20160018269A (ko) 디바이스 및 디바이스의 제어 방법
CN113655927A (zh) 一种界面交互方法与设备
KR102161159B1 (ko) 전자 장치 및 전자 장치에서 색상 추출 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17819199

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17819199

Country of ref document: EP

Kind code of ref document: A1