CN115225950A - Video playing control method and device - Google Patents
Video playing control method and device Download PDFInfo
- Publication number
- CN115225950A CN115225950A CN202210844871.6A CN202210844871A CN115225950A CN 115225950 A CN115225950 A CN 115225950A CN 202210844871 A CN202210844871 A CN 202210844871A CN 115225950 A CN115225950 A CN 115225950A
- Authority
- CN
- China
- Prior art keywords
- page
- video
- window
- small window
- application
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
- H04N21/4316—Generation 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 for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management 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/462—Content 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
- H04N21/4627—Rights management associated to the content
Abstract
The embodiment of the application provides a video playing control method, a video playing control device, video playing control equipment and a computer readable storage medium, wherein the method comprises the following steps: responding to a request of playing a video by a small window, and if the currently played application is judged not to have the floating window permission, acquiring the life cycle state of one or more pages in a system where the currently played application is located; determining a first page in a visible state in the system according to the life cycle state of the one or more pages; and adding the small window view corresponding to the currently played application into the window manager corresponding to the first page so as to play the video in the currently played application through the suspended small window on the first page. Therefore, the video playing in the small window can be realized without granting the floating window permission by the user, the user has no worry behind and no trouble in privacy, and the small window can be played at any time with very high usability.
Description
Technical Field
The embodiment of the application relates to the technical field of video playing, and in particular relates to a video playing control method and device, computer equipment and a computer readable storage medium.
Background
At present, many users like to watch video on demand/live broadcast content in leisure time, even fragmented time on duty, so that the users can fully utilize trivial time to watch interested video programs. The user can watch the video program through the playing window of the video player, however, the user needs to switch to other pages or application to process messages at any time in the process of watching the video program, and the video platform provides a small window playing function for the convenience that the user continues to watch the video when processing the messages processed by the pages or the application.
In the current video platform, especially in the video platform at the Android system end, the conventional small window playing function can be used only by actively granting the App floating window authority at the Android system level to the user, if the conventional small window playing function is not authorized, the user cannot use the small window playing function at all, and the platform side cannot overcome the defect for the user, so that the conventional small window playing function is inconvenient for the user to use.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, a system, a computer device, and a computer-readable storage medium for controlling playing of a video, which are used to solve the following problems: and when the user does not grant the App floating window right, playing the video by using the small window playing function of the video platform.
One aspect of the present embodiment provides a method for controlling playback of a video, including:
responding to a request of playing a video through a small window, and if the currently played application is judged not to have the floating window authority, acquiring the life cycle state of one or more pages in a system where the currently played application is located;
determining a first page in a visible state in the system according to the life cycle state of the one or more pages;
and adding the small window view corresponding to the currently played application into the window manager corresponding to the first page, so as to play the video in the currently played application through the suspended small window on the first page.
Optionally, the determining a first page in a visible state in the system according to the lifecycle state of the one or more pages includes:
when it is monitored that the OnResume method is executed by the first page, determining that the life cycle state of the first page in the system is in a visible state.
Optionally, the method further comprises:
and if the condition that the first page in the visible state in the system is switched to the second page is monitored, transmitting the small window view to a window manager corresponding to the second page so as to play the video in the currently played application on the second page through the suspended small window.
Optionally, the transferring the small window view to the window manager corresponding to the second page includes:
and deleting the small window view from the window manager corresponding to the first page, and adding the small window view to the window manager corresponding to the second page.
Optionally, the switching the first page in a visible state in the system to the second page if it is monitored, includes:
when the OnPause method is executed by monitoring the first page and the OnResume method is executed by monitoring the second page, the first page which is in a visible state in the system is determined to be monitored and switched to the second page.
Optionally, the method further comprises:
and if the currently played application is judged to have the floating window permission, adding the small window view into a window manager corresponding to the system so as to play the video in the currently played application through the floating small window.
An aspect of the embodiments of the present application further provides a video playing control apparatus, including:
the system comprises a page state acquisition module, a video display module and a video playing module, wherein the page state acquisition module is used for responding to a request of playing a video by a small window, and acquiring the life cycle state of one or more pages in a system where a currently played application is located if the currently played application is judged not to have floating window permission;
the first page determining module is used for determining a first page in a visible state in the system according to the life cycle state of the one or more pages;
and the first playing control module is used for adding the small window view corresponding to the currently playing application into the window manager corresponding to the first page so as to play the video in the currently playing application on the first page through the suspended small window.
Optionally, the first page determining module includes:
and the state determination submodule is used for determining that the life cycle state of the first page in the system is in a visible state when the OnResume method executed by the first page is monitored.
Optionally, the method further comprises:
and the second playing control module is used for transmitting the small window view to a window manager corresponding to the second page if the condition that the first page in a visible state in the system is switched to the second page is monitored, so that the video in the currently played application is played on the second page through the suspended small window.
Optionally, the second playing control module includes:
and the widget view adding submodule is used for deleting the widget view from the window manager corresponding to the first page and adding the widget view to the window manager corresponding to the second page.
Optionally, the second playing control module includes:
and the page switching determining submodule is used for determining that the first page in a visible state in the system is switched to the second page by monitoring that the OnPause method is executed on the first page and the OnResume method is executed on the second page.
Optionally, the method further comprises:
and the third playing control module is used for adding the small window view into a window manager corresponding to the system if the currently played application is judged to have the floating window permission so as to play the video in the currently played application through the floating small window.
An aspect of the embodiments of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the video playback control method as described above.
An aspect of the embodiments of the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is executable by at least one processor, so that when the computer program is executed by the at least one processor, the steps of the method for controlling playback of a video as described above are implemented.
According to the video playing control method, the video playing control system, the video playing control device and the computer readable storage medium, by responding to a request for playing a video through a small window, if it is determined that a currently played application does not have a floating window right, life cycle states of one or more pages in a system where the currently played application is located are obtained; determining a first page in a visible state in the system according to the life cycle state of the one or more pages; and adding the small window view corresponding to the currently played application into the window manager corresponding to the first page, so as to play the video in the currently played application through the suspended small window on the first page. Therefore, the video playing in the small window can be realized without granting the floating window permission by the user, the user has no worry behind and no trouble in privacy, and the small window can be played at any time with very high usability.
Drawings
Fig. 1 schematically illustrates an application environment diagram of a video playback control method according to an embodiment of the present application;
fig. 2 schematically shows a flow chart of a video play control method according to a first embodiment of the present application;
FIG. 3 is a flowchart illustrating sub-steps of step S202 in FIG. 2;
fig. 4 is a flow chart schematically illustrating additional steps of a video playing control method according to a first embodiment of the present application;
fig. 5 is a flow chart schematically illustrating another additional step of a video playing control method according to a first embodiment of the present application;
FIG. 6 is a diagram schematically illustrating a timing diagram of the transmission of a small window view between pages according to a first embodiment of the present application;
fig. 7 is a block diagram schematically showing a video playback control apparatus according to a second embodiment of the present application; and
fig. 8 schematically shows a hardware architecture diagram of a computer device suitable for implementing a video playback control method according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
In the prior art, in a current video platform, especially in a video platform at an Android system end, a conventional small window playing function needs a user to actively grant an App floating window authority at an Android system level for use, if the user does not grant the App floating window authority at the Android system level, the user cannot use the small window playing function in the video platform at all, and the video platform cannot overcome the defect for the user, so that the video platform is inconvenient for the user to use.
In view of this, the present application aims to provide a video playing control method, which includes responding to a request for playing a video through a small window, and if it is determined that a currently playing application does not have a floating window right, acquiring a life cycle state of one or more pages in a system where the currently playing application is located; determining a first page in a visible state in the system according to the life cycle state of the one or more pages; and adding the small window view corresponding to the currently played application into the window manager corresponding to the first page so as to play the video in the currently played application through the suspended small window on the first page. Therefore, the video playing in the small window can be realized without granting the floating window permission by the user, the user has no worry in the rear and no trouble in the privacy aspect, and the small window can be played at any time due to very high usability.
The present application provides various embodiments to further introduce a video playing control scheme, which is specifically referred to below.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the sequence of executing the steps, but merely serve to facilitate the description of the present application and to distinguish each step, and thus should not be construed as limiting the present application.
The following are the term explanations of the present application:
and (3) small window playing: inside or outside the App, the video playing is carried through 1 suspended small window, and a user can simultaneously perform other operations (such as chatting and interacting with other users, shopping, watching news and the like) when watching the video
Fig. 1 schematically shows an environment application diagram according to an embodiment of the application. As shown in fig. 1:
the computer device 10000 can be connected to the client 30000 through the network 20000.
The computer device 10000 can provide services, such as network debugging, or return video playing control result data to the client 30000.
The client 30000 can output (e.g., display, render, present) the play control result data of the video and the like to the user.
The network commissioning scheme will be described below by way of various embodiments. The scheme may be implemented by the computer device 10000.
Example one
Fig. 2 schematically shows a flowchart of a video playback control method according to a first embodiment of the present application. Comprising steps S200-S204, wherein,
step S200, responding to a request of playing a video through a small window, and if the currently played application is judged not to have the floating window authority, acquiring the life cycle state of one or more pages in a system where the currently played application is located;
in this embodiment, in the case of playing a video in a currently playing application, if a request for switching an interface triggered by a user is received, for example, the user triggers to open another page, a request for playing the video through a widget is generated, and by responding to the request for playing the video through the widget, it is first determined whether the currently playing application has a floating window permission, and if the currently playing application does not have the floating window permission, a life cycle state of one or more pages in a system where the currently playing application is located is obtained. In this embodiment, the lifecycle state may include a visible state and an invisible state, where the visible state indicates that a page needs to be displayed in a graphical user interface provided by the system, and the invisible state indicates that a page does not need to be displayed in a graphical user interface provided by the system, and in an application scene of the mobile terminal, generally, only one page may be displayed on the graphical user interface, and other pages may be displayed in a floating window manner or may run in the background without being displayed.
Step S202, determining a first page in a visible state in the system according to the life cycle state of the one or more pages;
in this embodiment, the currently playing application may select a page in a visible state from the lifecycle states of one or more pages as the first page.
Step S204, adding the widget view corresponding to the currently playing application to the window manager corresponding to the first page, so as to play the video in the currently playing application through the suspended widget on the first page.
In this embodiment, after it is determined that the first page is in a visible state, the widget view corresponding to the currently playing application is added to the window manager WindowManager corresponding to the first page, so that the video in the currently playing application is played through the suspended widget on the first page.
Several optional embodiments are provided below to optimize the video play control method, specifically as follows:
in a preferred embodiment of the present application, as shown in fig. 3, the step S202 may include the step S300: when it is monitored that the OnResume method is executed by the first page, determining that the life cycle state of the first page in the system is in a visible state.
Specifically, in an application scene of an Android system, a life cycle state of a page can be determined by monitoring a method which is executed by the page Activity, and when the page Activity executes an OnResume method, the life cycle state of the page Activity in the system is determined to be in a visible state; when the page Activity executes the OnPause method, the life cycle state of the page Activity in the system is determined to be in an invisible state. In this embodiment, when it is monitored that the Activity of the first page executes the OnResume method, it may be determined that the lifecycle state of the first page in the system is in a visible state.
In a preferred embodiment of the present application, as shown in fig. 4, the method for controlling playing of a video further includes step S400:
and if the condition that the first page in the visible state in the system is switched to the second page is monitored, transmitting the small window view to a window manager corresponding to the second page so as to play the video in the currently played application on the second page through the suspended small window.
In this embodiment, in a scene where a video is played through a widget by a page-level WindowManager, when it is monitored that a first page in a visible state in the system is switched to a second page, the widget view is transmitted to a window manager WindowManager corresponding to the second page, so that the video in the currently-played application is played through the suspended widget on the second page.
In a preferred embodiment of the present application, the passing the widget view to the window manager corresponding to the second page includes:
and deleting the small window view from the window manager corresponding to the first page, and adding the small window view to the window manager corresponding to the second page.
In this embodiment, when it is monitored that the system has a page switch, the widget view may be deleted from the windows manager WindowManager corresponding to the first page, and the widget view is added to the windows manager WindowManager corresponding to the second page, so that the widget view is transferred between pages, and thus the widget view may be always displayed on a page displayed in the system in a suspended manner, which is convenient for a user to view a video.
In a preferred embodiment of the present application, the switching the first page in a visible state to the second page in the system if it is monitored, includes:
when the OnPause method is executed by monitoring the first page and the OnResume method is executed by monitoring the second page, the first page which is in a visible state in the system is determined to be monitored and switched to the second page.
In this embodiment, it may be determined that the first page in the visible state in the system is monitored to be switched to the second page when the OnPause method is monitored to be executed on the first page and the OnResume method is monitored to be executed on the second page.
In a preferred embodiment of the present application, as shown in fig. 5, the method for controlling playing of a video further includes step S500:
and if the currently played application is judged to have the floating window permission, adding the small window view into a window manager corresponding to the system so as to play the video in the currently played application through the floating small window.
In this embodiment, if it is determined that the currently played application has the floating window permission, the floating window function of the system is preferentially called to ensure the best experience of the widget playing the video, and the widget view is added to the window manager WindowManager corresponding to the system, so that the video in the currently played application is played through the floating widget.
For ease of understanding, the following example of a timing diagram for the transfer of a portlet view between pages is provided in connection with FIG. 6, where Activity A is a page that currently needs to have the portlet view presented to a user; miniWindow is a small window view corresponding to the currently played application; activity B is a target page after the user triggers the jump behavior. The process of transferring the small window view between the pages can comprise the following steps:
step 1: activity A, after executing the lifecycle into the OnResume method, notifies the lifecycle state to the widget view, indicating that the current page is truly visible to the user from that point forward.
Step 2: after receiving the notification that Activity A executes the OnResume method, the widget immediately adds the widget view to the Windowmanager of Activity A and displays the widget view to the user side.
And step 3: and the user triggers a jump behavior to jump from Activity A to Activity B.
And 4, step 4: activity A lifecycle flows to execute the OnPause method, at which point the representation of the page changes to an invisible state, which is notified to the portlet view.
And 5: after receiving the notification that Activity A is not visible, the widget view is removed from the WindowManager of the page. Activity B then triggers the OnResume method, and the above steps are repeated.
Example two
Fig. 7 is a block diagram schematically illustrating a video playback control apparatus according to a fourth embodiment of the present application, which may be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to implement the embodiments of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can perform specific functions, and the following description will specifically describe the functions of each program module in the embodiments of the present application.
As shown in fig. 7, the apparatus 700 for controlling playback of a video may include the following modules:
the page state obtaining module 710 is configured to, in response to a request for playing a video through a widget, obtain a life cycle state of one or more pages in a system where a currently playing application is located if it is determined that the currently playing application does not have a floating window right;
a first page determining module 720, configured to determine, according to the lifecycle states of the one or more pages, a first page in a visible state in the system;
the first playing control module 730 is configured to add the widget view corresponding to the currently playing application to the window manager corresponding to the first page, so as to play the video in the currently playing application through the suspended widget on the first page.
In a preferred embodiment of the present application, the first page determining module 720 includes:
and the state determination submodule is used for determining that the life cycle state of the first page in the system is in a visible state when the OnResume method executed by the first page is monitored.
In a preferred embodiment of the present application, the method further comprises:
and the second playing control module is used for transmitting the small window view to a window manager corresponding to the second page if the condition that the first page in a visible state in the system is switched to the second page is monitored, so that the video in the currently played application is played on the second page through the suspended small window.
In a preferred embodiment of the present application, the second playing control module includes:
and the widget view adding submodule is used for deleting the widget view from the window manager corresponding to the first page and adding the widget view to the window manager corresponding to the second page.
In a preferred embodiment of the present application, the second playing control module includes:
and the page switching determining submodule is used for determining that the first page in a visible state in the system is switched to the second page by monitoring that the OnPause method is executed on the first page and the OnResume method is executed on the second page.
In a preferred embodiment of the present application, the method further comprises:
and the third playing control module is used for adding the small window view into a window manager corresponding to the system if the currently played application is judged to have the floating window permission so as to play the video in the currently played application through the floating small window.
EXAMPLE III
Fig. 8 schematically shows a hardware architecture diagram of a computer device 10000, which is suitable for implementing a video playing control method according to a third embodiment of the present application. In this embodiment, the computer device 10000 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction. For example, the server may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an FEN independent server or a server cluster composed of multiple servers). As shown in fig. 8, computer device 10000 includes at least, but is not limited to: the memory 10010, the processor 10020, and the network interface 10030 may be communicatively linked to each other through a system bus. Wherein:
the memory 10010 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 10010 may be an internal storage module of the computer device 10000, such as a hard disk or a memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 10000. Of course, the memory 10010 may also include both internal and external memory modules of the computer device 10000. In this embodiment, the memory 10010 is generally used for storing an operating system installed in the computer device 10000 and various application software, such as program codes of a video playing control method. In addition, the memory 10010 can also be used to temporarily store various types of data that have been output or are to be output.
Processor 10020 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 10020 is generally configured to control overall operations of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is configured to execute the program code stored in the memory 10010 or process data.
Network interface 10030 may comprise a wireless network interface or a wired network interface, and network interface 10030 is generally used to establish a communication link between computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal via a network, establish a data transmission channel and a communication link between the computer device 10000 and the external terminal, and the like. The network may be an Intranet (Internet), the Internet (Internet), a Global System of Mobile communication (GSM), wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, or other wireless or wired network.
It should be noted that fig. 8 only illustrates a computer device having components 10010-10030, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
In this embodiment, the method for controlling playing of the video stored in the memory 10010 can be further divided into one or more program modules, and executed by one or more processors (in this embodiment, the processor 10020) to complete the embodiment of the present application.
Example four
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the video playing control method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in the computer device, for example, program codes of the playback control method of the video in the embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different from that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
Claims (14)
1. A method for controlling playback of a video, comprising:
responding to a request of playing a video through a small window, and if the currently played application is judged not to have the floating window authority, acquiring the life cycle state of one or more pages in a system where the currently played application is located;
determining a first page in a visible state in the system according to the life cycle state of the one or more pages;
and adding the small window view corresponding to the currently played application into the window manager corresponding to the first page so as to play the video in the currently played application through the suspended small window on the first page.
2. The method for controlling playing of a video according to claim 1, wherein said determining a first page in a visible state in the system according to the life cycle state of the one or more pages comprises:
when the OnResume method is monitored to be executed on the first page, the life cycle state of the first page in the system is determined to be in a visible state.
3. The method for controlling playback of a video according to claim 1, further comprising:
and if the condition that the first page in the visible state in the system is switched to the second page is monitored, transmitting the small window view to a window manager corresponding to the second page so as to play the video in the currently played application on the second page through the suspended small window.
4. The method for controlling playing of a video according to claim 3, wherein the passing the small window view to the window manager corresponding to the second page includes:
and deleting the small window view from the window manager corresponding to the first page, and adding the small window view to the window manager corresponding to the second page.
5. The method of claim 3, wherein the switching from the first page to the second page if it is detected that the first page in the system is in a visible state comprises:
when the OnPause method is executed by monitoring the first page and the OnResume method is executed by monitoring the second page, the first page which is in a visible state in the system is determined to be monitored and switched to the second page.
6. The method for controlling playback of a video according to claim 1, further comprising:
and if the currently played application is judged to have the floating window permission, adding the small window view into a window manager corresponding to the system so as to play the video in the currently played application through the floating small window.
7. A video playback control apparatus, comprising:
the system comprises a page state acquisition module, a video display module and a video playing module, wherein the page state acquisition module is used for responding to a request of playing a video by a small window, and acquiring the life cycle state of one or more pages in a system where a currently played application is located if the currently played application is judged not to have floating window permission;
the first page determining module is used for determining a first page in a visible state in the system according to the life cycle state of the one or more pages;
and the first playing control module is used for adding the small window view corresponding to the currently playing application into the window manager corresponding to the first page so as to play the video in the currently playing application through the suspended small window on the first page.
8. The apparatus for controlling playback of a video according to claim 7, wherein the first page determining module includes:
and the state determination submodule is used for determining that the life cycle state of the first page in the system is in a visible state when the OnResume method executed by the first page is monitored.
9. The apparatus for controlling playback of a video according to claim 7, further comprising:
and the second playing control module is used for transmitting the small window view to a window manager corresponding to the second page if the condition that the first page in a visible state in the system is switched to the second page is monitored, so that the video in the currently played application is played on the second page through the suspended small window.
10. The apparatus for controlling playback of a video according to claim 9, wherein the second playback control module includes:
and the widget view adding submodule is used for deleting the widget view from the window manager corresponding to the first page and adding the widget view to the window manager corresponding to the second page.
11. The apparatus for controlling playback of a video according to claim 9, wherein the second playback control module includes:
and the page switching determining submodule is used for determining that the first page in a visible state in the system is switched to the second page by monitoring that the OnPause method is executed on the first page and the OnResume method is executed on the second page.
12. The apparatus for controlling playback of a video according to claim 7, further comprising:
and the third playing control module is used for adding the small window view into a window manager corresponding to the system if the currently played application is judged to have the floating window permission so as to play the video in the currently played application through the floating small window.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor is adapted to implement the steps of the method for controlling playback of video as claimed in any one of claims 1 to 6 when executing the computer program.
14. A computer-readable storage medium, in which a computer program is stored, the computer program being executable by at least one processor to cause the at least one processor to perform the steps of the method for controlling playback of video according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210844871.6A CN115225950A (en) | 2022-07-18 | 2022-07-18 | Video playing control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210844871.6A CN115225950A (en) | 2022-07-18 | 2022-07-18 | Video playing control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115225950A true CN115225950A (en) | 2022-10-21 |
Family
ID=83612880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210844871.6A Pending CN115225950A (en) | 2022-07-18 | 2022-07-18 | Video playing control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115225950A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115408096A (en) * | 2022-11-02 | 2022-11-29 | 易方信息科技股份有限公司 | Android-based non-invasive application internal floating window implementation method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109831688A (en) * | 2019-03-11 | 2019-05-31 | 山东浪潮商用系统有限公司 | A kind of video suspension playback method and device based on iOS system |
CN109933401A (en) * | 2019-03-22 | 2019-06-25 | 北京城市网邻信息技术有限公司 | A kind of methods of exhibiting and relevant device of suspended window view |
CN112702647A (en) * | 2020-12-24 | 2021-04-23 | 深圳市酷开网络科技股份有限公司 | Play control method, smart television and computer readable storage medium |
CN112947813A (en) * | 2021-03-04 | 2021-06-11 | 广州博冠信息科技有限公司 | Resident display method, resident display device, resident display medium and electronic equipment for controlling floating window |
CN113254140A (en) * | 2021-06-21 | 2021-08-13 | 杭州涂鸦信息技术有限公司 | Floating window control method and device, computer equipment and readable storage medium |
CN114489898A (en) * | 2022-01-21 | 2022-05-13 | 阿里巴巴(中国)有限公司 | Processing method of floating window, electronic equipment and computer readable storage medium |
-
2022
- 2022-07-18 CN CN202210844871.6A patent/CN115225950A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109831688A (en) * | 2019-03-11 | 2019-05-31 | 山东浪潮商用系统有限公司 | A kind of video suspension playback method and device based on iOS system |
CN109933401A (en) * | 2019-03-22 | 2019-06-25 | 北京城市网邻信息技术有限公司 | A kind of methods of exhibiting and relevant device of suspended window view |
CN112702647A (en) * | 2020-12-24 | 2021-04-23 | 深圳市酷开网络科技股份有限公司 | Play control method, smart television and computer readable storage medium |
CN112947813A (en) * | 2021-03-04 | 2021-06-11 | 广州博冠信息科技有限公司 | Resident display method, resident display device, resident display medium and electronic equipment for controlling floating window |
CN113254140A (en) * | 2021-06-21 | 2021-08-13 | 杭州涂鸦信息技术有限公司 | Floating window control method and device, computer equipment and readable storage medium |
CN114489898A (en) * | 2022-01-21 | 2022-05-13 | 阿里巴巴(中国)有限公司 | Processing method of floating window, electronic equipment and computer readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115408096A (en) * | 2022-11-02 | 2022-11-29 | 易方信息科技股份有限公司 | Android-based non-invasive application internal floating window implementation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109995877B (en) | Information pushing method and device | |
KR102513998B1 (en) | Communication methods and devices, entities and computer readable storage media | |
CN112836152B (en) | Page rendering method, system, computer device and computer readable storage medium | |
CN109726076B (en) | Applet life cycle management method and system | |
CN110825456A (en) | Loading time calculation method and device, computer equipment and storage medium | |
CN111274512A (en) | Page loading method, device and medium | |
CN112714365B (en) | Video playing method and system | |
CN113254136A (en) | Information recommendation popup window display method, device, equipment and computer readable medium | |
CN113721807A (en) | Information display method and device, electronic equipment and storage medium | |
CN115225950A (en) | Video playing control method and device | |
CN111400633A (en) | Page resource loading method and device | |
CN117130697A (en) | Method and device for fixing application on taskbar | |
US11442606B2 (en) | User interface interaction method and system | |
CN113282268B (en) | Sound effect configuration method and device, storage medium and electronic equipment | |
CN112291602B (en) | Video playing method, electronic equipment and storage medium | |
CN110457632B (en) | Webpage loading processing method and device | |
CN114915565A (en) | Method and system for debugging network | |
CN112822089B (en) | Method and device for adding friends | |
CN110413800B (en) | Method and equipment for providing novel information | |
CN112423099A (en) | Video loading method and device and electronic equipment | |
CN110647331A (en) | Development tool acquisition method and device, storage medium and electronic equipment | |
CN114942812B (en) | Multimedia information sharing method and device and electronic equipment | |
CN111382025A (en) | Method and device for judging foreground and background states of application program and electronic equipment | |
CN112714360B (en) | Media content playing method and system | |
CN111176969B (en) | Data processing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |