CN112702647A - Play control method, smart television and computer readable storage medium - Google Patents

Play control method, smart television and computer readable storage medium Download PDF

Info

Publication number
CN112702647A
CN112702647A CN202011553881.1A CN202011553881A CN112702647A CN 112702647 A CN112702647 A CN 112702647A CN 202011553881 A CN202011553881 A CN 202011553881A CN 112702647 A CN112702647 A CN 112702647A
Authority
CN
China
Prior art keywords
page
player
monitoring
resource
pages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011553881.1A
Other languages
Chinese (zh)
Other versions
CN112702647B (en
Inventor
聂海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN202011553881.1A priority Critical patent/CN112702647B/en
Publication of CN112702647A publication Critical patent/CN112702647A/en
Application granted granted Critical
Publication of CN112702647B publication Critical patent/CN112702647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • 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/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4583Automatically resolving scheduling conflicts, e.g. when a recording by reservation has been programmed for two programs in the same time slot
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a play control method, a smart television and a computer readable storage medium, wherein the method comprises the following steps: starting a registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application; establishing a common playing control interface, controlling the pages of the released player to execute the playing control interface, and releasing the player resources through the playing control interface; monitoring a pause event of the page, and if the current page is monitored to be covered, releasing the resources of the page; monitoring a creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict; and calling the release player resource of the suspended page in the creation event of the new page, forcibly releasing the player resource, and controlling the new page to normally use the player. The invention can automatically ensure the normal use of the global competitive resources by realizing the play control interface on the new page needing to use the player, thereby avoiding the conflict of resource play.

Description

Play control method, smart television and computer readable storage medium
Technical Field
The invention relates to the technical field of smart televisions, in particular to a play control method, a smart television and a computer readable storage medium.
Background
The smart television is a television product which is based on an Internet application technology, has an open operating system and a chip, has an open application platform, can realize a bidirectional man-machine interaction function, integrates various functions such as audio and video, entertainment, data and the like, and meets the diversified and personalized requirements of users. The purpose of the method is to bring more convenient experience to users, and the method is a trend of televisions at present. The intelligent television is provided with a full-open platform, an operating system is carried, and a user can install and uninstall various application software by himself while enjoying common television content, so that the intelligent television is a new television product with functions continuously expanded and upgraded. The smart television can continuously bring rich personalized experience different from that of using a cable digital television receiver (set top box) to a user.
With the popularization of the smart television, more and more applications are developed for the smart television. Compared with a smart phone, the smart television device has many limitations. For example, a plurality of smart televisions can only have one player at the same time (because a large number of smart television chips only support one player for playing, namely, due to chip limitation, if two or more players are created at the same time, player resource conflict occurs, so that player resource deadlock occurs, and the player cannot be played any more later), if player resources occupied by the previous user are not completely released before the next user uses the player, the problem that the player cannot be played occurs (that is, when the player is used in the next place, the player must wait for the previous place to be released, the previous scene releases the player by itself, otherwise, two players play at the same time, so that resource use conflict occurs).
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a play control method, an intelligent television and a computer readable storage medium, and aims to solve the problem that player resources are deadlocked due to player resource conflict when the intelligent television plays the resources through one player in the prior art.
In order to achieve the above object, the present invention provides a play control method, including the steps of:
starting a registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application;
establishing a common playing control interface, controlling the pages of the released player to execute the playing control interface, and releasing the player resources through the playing control interface;
monitoring a pause event of a page, and if the current page is monitored to be covered, releasing the resource of the page;
monitoring a creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict;
and calling the release player resource of the suspended page in the creation event of the new page, forcibly releasing the player resource, and controlling the new page to normally use the player.
Optionally, the play control method, wherein the starting of the registered android page lifecycle monitoring function further includes:
registering android page lifecycle monitoring through the application in advance, wherein the android page lifecycle monitoring is used for monitoring the lifecycle of each page in the application.
Optionally, the playing control method may further include monitoring a life cycle of each page in the application to determine whether a new page needs to use the player.
Optionally, the method for controlling playback, wherein the monitoring a pause event of the page further includes:
a weak reference to the page of the paused event is saved.
Optionally, the method for controlling playing, wherein monitoring a creation event of a page, and if both pages use the player, determining that a player resource conflict exists between the two pages includes:
monitoring creation events of a first page and a second page, judging whether the second page realizes a play control interface or not when the second page creates the event, and judging that the paused first page realizes the play control interface;
if the second page realizes a play control interface when creating the event and the paused first page realizes the play control interface, it is determined that the first page and the second page have a player resource conflict.
Optionally, the playing control method, where the invoking of the release player resource of the paused page in the creation event of the new page forcibly releases the player resource, and controls the new page to normally use the player, specifically includes:
calling the paused release player resource of the first page in the creation event of the second page, and controlling the first page to release the player resource;
and when the first page finishes releasing the player resources, the second page normally uses the player.
Optionally, the playback control method further includes:
and when detecting that a page is in the process of realizing the play control interface, judging that the page uses the player.
Optionally, the playback control method further includes: when a plurality of newly-added pages need to use the player, each newly-added page uses the player by realizing the play control interface.
In addition, to achieve the above object, the present invention further provides a smart tv, wherein the smart tv includes: a memory, a processor and a play control program stored on the memory and executable on the processor, the play control program, when executed by the processor, implementing the steps of the play control method as described above.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a playback control program, and the playback control program, when executed by a processor, implements the steps of the playback control method as described above.
According to the method, the lifecycle of each page in the application is monitored by starting the registered android page lifecycle monitoring function; establishing a common playing control interface, controlling the pages of the released player to execute the playing control interface, and releasing the player resources through the playing control interface; monitoring a pause event of a page, and if the current page is monitored to be covered, releasing the resource of the page; monitoring a creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict; and calling the release player resource of the suspended page in the creation event of the new page, forcibly releasing the player resource, and controlling the new page to normally use the player. The invention can automatically ensure the normal use of the global competitive resources by realizing the play control interface on the new page needing to use the player, thereby avoiding the conflict of resource play.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a playback control method according to the present invention;
FIG. 2 is a schematic diagram illustrating the life cycle of an android in the preferred embodiment of the playing control method of the present invention;
FIG. 3 is a flowchart of step S40 in the preferred embodiment of the playing control method of the present invention;
FIG. 4 is a flowchart of step S50 in the preferred embodiment of the playing control method of the present invention;
fig. 5 is a schematic operating environment diagram of a smart tv according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Activity is an interface for user interaction in everyday applications, providing a window for a user to complete related operations. After an Activity is created in development, a layout interface is assigned to the Activity by calling the setContentView (View) method, and the interface is the interface provided for user interaction. The Android system manages Activity in an Activity stack mode, and the Activity itself is managed by a life cycle method to create and destroy the Activity.
Among them, Activity has 4 forms:
activity is in an Active state, and the Activity is in a stack top, visible state and can interact with a user.
Paused: when an Activity loses focus, it is either placed on the top of the stack by a new non-full-screen Activity or by a transparent Activity, which transitions to a used state. However, it should be understood that Activity only loses the ability to interact with the user, all the state information and its member variables still exist, and it is possible to be recycled by the system only when the memory of the system is in a short amount.
Stopping: when one Activity is completely covered by another, the covered Activity enters a Stopped state, where it is no longer visible, but maintains all of its state information and its member variables as in the used state.
And (3) Killed: when Activity is reclaimed by the system, Activity is in the Killed state. Activity switches between the above four modalities, and how to switch varies with user operation.
The invocation opportunities for several major methods of the lifecycle:
the method is called back when the Activity is created, and is a method called first in a life cycle, generally the method needs to be rewritten when the Activity is created, and then some initialization operations are performed in the method, such as setting resources of interface layout through setContentView, initializing required component information and the like.
onStart, when called back, this method indicates that Activity is starting, and that Activity is already visible, but has not yet been displayed in the foreground, and therefore cannot interact with the user. It can be simply understood that Activity is displayed and cannot be seen.
onResume, when the method is called back, it shows that Activity is visible in foreground and can interact with user (in the Active/Running form), the same point of onResume method and onStart is that both show that Activity is visible, but Activity or background can not interact with user when onStart is called back, and onResume is displayed in foreground and can interact with user. It can be seen that when Activity stops (onPause method and onStop method are called), the onResume method is called when the foreground is returned again, so that some resources can be initialized in the onResume method, such as the resources released in the onPause or onStop method.
onPause, when called back, indicates that Activity is stopping (used mode), and the onStop method is called back immediately. It can also be seen that a situation is that the onPause method is executed directly after the onPause method is executed, which is a relatively extreme phenomenon, and this may be that the user operates to make the current Activity return to the current Activity after the current Activity exits the background, and then the onResume method is called back. Of course, some data storage or animation stopping or resource recycling operations can be performed in the onPause method, but it is not time-consuming, because this may affect the execution of the onPause method of the new Activity to be executed after the execution of the onPause method of the new Activity is completed.
onStop, which is generally executed directly after the execution of the onspace method is completed, indicates that Activity is about to stop or is completely covered (Stopped form), and the Activity is not visible at this time and only runs in the background. Likewise, the onsop method may do some resource release operations (not too time consuming).
onRestart, indicates that Activity is restarting, and the method is called back when Activity changes from invisible to visible. This is typically the case when a user opens a new Activity, the current Activity is suspended (onPause and onStop are executed), and then the onRestart method is called back when the current Activity page is returned. onDestroy, where Activity is being destroyed, is also the last method executed in the lifecycle, in which some reclamation and eventual release of resources can generally be done.
As shown in fig. 1 and 2, the play control method according to the preferred embodiment of the present invention includes the following steps:
and step S10, starting the registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application.
Specifically, as shown in fig. 2, the corresponding chinese language is explained as follows:
activityllifecycallbacks: monitoring the lifecycle of the android page;
ActivityA: page a (e.g., representing a first page);
activityB: page B (e.g., representing a second page);
OnCreate: create an event (create a page);
OnResume: start event (page start foreground display);
OnPause: a pause event (one page is covered by another, e.g., page a is covered by page B);
OnStop: the page is stopped;
releaselayer: releasing the player resources;
activity A instance of Player CtrInterface & activity B instance of Player CtrInterface: indicating that page a implements the play control interface and page B implements the play control interface (i.e. it is determined that the players are used in both pages AB, in which case there is a resource conflict).
Specifically, by registering an Activity lifecycle callback (android page lifecycle monitoring) through application of the application, and monitoring the lifecycle of each Activity in the application, it can be known what state the page is currently, whether a new page comes out or not, and whether player resources are to be released or not.
Step S20, creating a common play control interface, controlling the pages of the released player to execute the play control interface, and releasing the player resources through the play control interface.
Specifically, a common interface for competing resources, such as a player, is established, creating a common Playercnterface. This interface, whenever Activity instance to player is used; the method for realizing the releaselayer in the interface class has a method which can be called externally, the method is named as releaselayer, the outside is only responsible for calling, and the specific realization needs each page to be realized.
And step S30, monitoring a pause event of the page, and if the current page is monitored to be covered, releasing the resource of the page.
In particular, an OnPause event that listens to Activity, i.e., that this page is covered by another page, may free up its resources and save a weak reference by the OnPause's Activity a.
And step S40, monitoring the creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict.
Please refer to fig. 3, which is a flowchart of step S40 in the playback control method according to the present invention.
As shown in fig. 3, the step S40 includes:
s41, monitoring creating events of a first page and a second page, judging whether the second page realizes a playing control interface or not when the second page creates the event, and judging that the paused first page realizes the playing control interface;
s42, if the second page creation event realizes the playing control interface, and the paused first page realizes the playing control interface, it is determined that the first page and the second page have the player resource conflict.
Specifically, OnCreate of Activity is listened to. Whether the ActivityB realizes the self-playctrinteface or not and whether the ActivityA of the last page of the Pause realizes the self-playctrinteface or not are judged when the new page ActivityB OnCreate. If self-Playerchangeface is implemented at the same time, then it is determined that there is a player resource competition problem for both Activities. The interface is implemented only by using the page of the player, and the player is necessarily used for implementing the interface.
Step S50, invoking the release player resource of the paused page in the creation event of the new page, forcibly releasing the player resource, and controlling the new page to normally use the player.
Please refer to fig. 4, which is a flowchart of step S50 in the playback control method according to the present invention.
As shown in fig. 4, the step S50 includes:
s51, calling the paused release player resource of the first page in the creation event of the second page, and controlling the first page to release the player resource;
and S52, when the first page finishes releasing the player resource, the second page normally uses the player.
Specifically, if it is determined that there is a resource contention, the releaselayer method of the invoked ActivityA in new page ActivityB is called within OnCreate. And forcibly releasing the player resources. Thus ensuring that the player can be normally used in the new activityB. The player is a resource, only one player is in the system, and the page A cannot be used when the page B is used. After page A is used up, page B can be taken out for use.
Further, when detecting that a page is implementing the playing control interface, determining that the page is using the player; when a plurality of newly-added pages need to use the player, each newly-added page uses the player by realizing the play control interface.
The invention can ensure the normal use of competitive resources and has little change aiming at the newly added functions (namely, the problem of player resource conflict can be solved only by realizing PlayercCTRIFace when a plurality of pages using the player are newly added). The normal use of the global competition resource can be automatically ensured only by using the new page instances Playercritterface of the player and realizing the releasePlayer method.
Further, as shown in fig. 5, based on the above playing control method, the present invention also provides a smart television, which includes a processor 10, a memory 20, and a display 30. Fig. 5 shows only some of the components of the smart television, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The storage 20 may be an internal storage unit of the smart tv in some embodiments, for example, a hard disk or a memory of the smart tv. In other embodiments, the memory 20 may also be an external storage device of the Smart tv, such as a plug-in hard disk provided on the Smart tv, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and so on. Further, the memory 20 may also include both an internal storage unit and an external storage device of the smart tv. The memory 20 is used for storing application software installed in the smart television and various types of data, such as program codes for installing the smart television. The memory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 20 stores a playback control program 40, and the playback control program 40 can be executed by the processor 10, so as to implement the playback control method in the present application.
The processor 10 may be a Central Processing Unit (CPU), a microprocessor or other data Processing chip in some embodiments, and is used for executing the program codes stored in the memory 20 or Processing data, such as executing the playing control method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information on the smart television and for displaying a visual user interface. The components 10-30 of the smart television communicate with each other via a system bus.
In one embodiment, when the processor 10 executes the play control program 40 in the memory 20, the following steps are implemented:
starting a registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application;
establishing a common playing control interface, controlling the pages of the released player to execute the playing control interface, and releasing the player resources through the playing control interface;
monitoring a pause event of a page, and if the current page is monitored to be covered, releasing the resource of the page;
monitoring a creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict;
and calling the release player resource of the suspended page in the creation event of the new page, forcibly releasing the player resource, and controlling the new page to normally use the player.
Wherein, the starting the registered android page lifecycle monitoring function further comprises:
registering android page lifecycle monitoring through the application in advance, wherein the android page lifecycle monitoring is used for monitoring the lifecycle of each page in the application.
And monitoring the life cycle of each page in the application to judge whether a new page needs to use the player.
Wherein, the monitoring the pause event of the page further comprises:
a weak reference to the page of the paused event is saved.
If both pages use the player, the monitoring of the creation event of the pages determines that there is a player resource conflict between the two pages, which specifically includes:
monitoring creation events of a first page and a second page, judging whether the second page realizes a play control interface or not when the second page creates the event, and judging that the paused first page realizes the play control interface;
if the second page realizes a play control interface when creating the event and the paused first page realizes the play control interface, it is determined that the first page and the second page have a player resource conflict.
The invoking of the release player resource of the suspended page in the creation event of the new page, the forced release of the player resource, and the control of the new page to normally use the player specifically include:
calling the paused release player resource of the first page in the creation event of the second page, and controlling the first page to release the player resource;
and when the first page finishes releasing the player resources, the second page normally uses the player.
And when detecting that a page is in the process of realizing the play control interface, judging that the page uses the player.
When a plurality of newly added pages need to use the player, each newly added page uses the player by realizing the play control interface.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a playback control program, and the playback control program, when executed by a processor, implements the steps of the playback control method as described above.
In summary, the present invention provides a play control method, a smart television and a computer-readable storage medium, where the method includes: starting a registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application; establishing a common playing control interface, controlling the pages of the released player to execute the playing control interface, and releasing the player resources through the playing control interface; monitoring a pause event of a page, and if the current page is monitored to be covered, releasing the resource of the page; monitoring a creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict; and calling the release player resource of the suspended page in the creation event of the new page, forcibly releasing the player resource, and controlling the new page to normally use the player. The invention can automatically ensure the normal use of the global competitive resources by realizing the play control interface on the new page needing to use the player, thereby avoiding the conflict of resource play.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A playback control method, comprising:
starting a registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application;
establishing a common playing control interface, controlling the pages of the released player to execute the playing control interface, and releasing the player resources through the playing control interface;
monitoring a pause event of a page, and if the current page is monitored to be covered, releasing the resource of the page;
monitoring a creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict;
and calling the release player resource of the suspended page in the creation event of the new page, forcibly releasing the player resource, and controlling the new page to normally use the player.
2. The playback control method according to claim 1, wherein the starting of the registered android page lifecycle listening function further comprises:
registering android page lifecycle monitoring through the application in advance, wherein the android page lifecycle monitoring is used for monitoring the lifecycle of each page in the application.
3. The playback control method of claim 2, wherein the monitoring of the life cycle of each page in the application is used to determine whether a new page requires use of the player.
4. The playback control method of claim 1, wherein the listening for a pause event on the page is followed by:
a weak reference to the page of the paused event is saved.
5. The play control method according to claim 1, wherein monitoring a creation event of a page, and if both pages use the player, determining that there is a player resource conflict between the two pages includes:
monitoring creation events of a first page and a second page, judging whether the second page realizes a play control interface or not when the second page creates the event, and judging that the paused first page realizes the play control interface;
if the second page realizes a play control interface when creating the event and the paused first page realizes the play control interface, it is determined that the first page and the second page have a player resource conflict.
6. The play control method according to claim 5, wherein the invoking of the released player resource of the paused page in the event of creating the new page forcibly releases the player resource, and controls the new page to normally use the player specifically includes:
calling the paused release player resource of the first page in the creation event of the second page, and controlling the first page to release the player resource;
and when the first page finishes releasing the player resources, the second page normally uses the player.
7. The playback control method according to claim 1, wherein the playback control method further comprises:
and when detecting that a page is in the process of realizing the play control interface, judging that the page uses the player.
8. The playback control method according to claim 1, wherein the playback control method further comprises:
when a plurality of newly-added pages need to use the player, each newly-added page uses the player by realizing the play control interface.
9. An intelligent television, characterized in that the intelligent television comprises: memory, processor and a playback control program stored on the memory and executable on the processor, the playback control program realizing the steps of the playback control method according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a playback control program that, when executed by a processor, implements the steps of the playback control method according to any one of claims 1 to 8.
CN202011553881.1A 2020-12-24 2020-12-24 Play control method, intelligent television and computer readable storage medium Active CN112702647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011553881.1A CN112702647B (en) 2020-12-24 2020-12-24 Play control method, intelligent television and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011553881.1A CN112702647B (en) 2020-12-24 2020-12-24 Play control method, intelligent television and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112702647A true CN112702647A (en) 2021-04-23
CN112702647B CN112702647B (en) 2023-05-02

Family

ID=75509924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011553881.1A Active CN112702647B (en) 2020-12-24 2020-12-24 Play control method, intelligent television and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112702647B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596538A (en) * 2021-06-30 2021-11-02 深圳市酷开网络科技股份有限公司 Equipment control method and device, electronic equipment and storage medium
CN115225950A (en) * 2022-07-18 2022-10-21 上海哔哩哔哩科技有限公司 Video playing control method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665257A (en) * 2017-10-11 2018-02-06 成都知道创宇信息技术有限公司 Suspend method movable in the page during a kind of browser window switching
CN107870933A (en) * 2016-09-27 2018-04-03 北京京东尚科信息技术有限公司 Count the method, apparatus and system of Android five application page navigation patterns
CN108134812A (en) * 2017-11-10 2018-06-08 人人行科技股份有限公司 Data processing method and device
CN109068177A (en) * 2018-07-23 2018-12-21 青岛海信电器股份有限公司 Audio/video player method for managing resource and device, smart television, storage medium
CN109194986A (en) * 2018-08-24 2019-01-11 深圳市酷开网络科技有限公司 A kind of resource control method, smart television and storage medium
CN109698979A (en) * 2018-12-13 2019-04-30 北京爱奇艺科技有限公司 A kind of method, apparatus and electronic equipment of video playing
CN111200744A (en) * 2018-11-19 2020-05-26 Tcl集团股份有限公司 Multimedia playing control method and device and intelligent equipment
CN111372137A (en) * 2020-03-13 2020-07-03 青岛海信宽带多媒体技术有限公司 Method and device for automatically correcting player state by browser and display equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870933A (en) * 2016-09-27 2018-04-03 北京京东尚科信息技术有限公司 Count the method, apparatus and system of Android five application page navigation patterns
CN107665257A (en) * 2017-10-11 2018-02-06 成都知道创宇信息技术有限公司 Suspend method movable in the page during a kind of browser window switching
CN108134812A (en) * 2017-11-10 2018-06-08 人人行科技股份有限公司 Data processing method and device
CN109068177A (en) * 2018-07-23 2018-12-21 青岛海信电器股份有限公司 Audio/video player method for managing resource and device, smart television, storage medium
CN109194986A (en) * 2018-08-24 2019-01-11 深圳市酷开网络科技有限公司 A kind of resource control method, smart television and storage medium
CN111200744A (en) * 2018-11-19 2020-05-26 Tcl集团股份有限公司 Multimedia playing control method and device and intelligent equipment
CN109698979A (en) * 2018-12-13 2019-04-30 北京爱奇艺科技有限公司 A kind of method, apparatus and electronic equipment of video playing
CN111372137A (en) * 2020-03-13 2020-07-03 青岛海信宽带多媒体技术有限公司 Method and device for automatically correcting player state by browser and display equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596538A (en) * 2021-06-30 2021-11-02 深圳市酷开网络科技股份有限公司 Equipment control method and device, electronic equipment and storage medium
CN115225950A (en) * 2022-07-18 2022-10-21 上海哔哩哔哩科技有限公司 Video playing control method and device

Also Published As

Publication number Publication date
CN112702647B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US9354856B2 (en) Software installation method and device
US20090222830A1 (en) Methods for Multi-Tasking on Media Players
EP0893758A2 (en) Detachable java applets
CN112702647B (en) Play control method, intelligent television and computer readable storage medium
US10901608B2 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
CN110018765B (en) Page display method, device, terminal and storage medium
CN110413347B (en) Advertisement processing method and device in application program, storage medium and terminal
CN111385633B (en) Resource searching method based on voice, intelligent terminal and storage medium
WO2007053331A1 (en) Direct computing experience
US20080077784A1 (en) Electronic marketing on a computing device during select time windows
CN103514924A (en) Method and device for playing videos in mobile terminal Widget, and player
US7725705B2 (en) Bios setting method
CN111831462A (en) IO request processing method and device, storage medium and electronic equipment
CN111831437A (en) Device management method, device, storage medium and electronic device
US20050188384A1 (en) Electronic content processing systems and methods
CN108600838B (en) Information source switching method and device for Android television, Android television and readable storage medium
CN110134463B (en) Data processing method, device, equipment and machine readable medium
CN113132805A (en) Playing control method, system, intelligent terminal and storage medium
CN115269048A (en) Concurrency control method of application program, electronic device and readable storage medium
WO2021129853A1 (en) Mobile service upgrade method and apparatus, and terminal
US20130067474A1 (en) Language independent application object
CN113656063A (en) System version replacing method, device, equipment and computer readable medium
CN114968010A (en) Starting method and device of co-processing chip, storage medium and electronic device
CN108363582B (en) Method and device for upgrading homepage of intelligent terminal
CN111722888A (en) Operation execution method, device, equipment and readable 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
GR01 Patent grant
GR01 Patent grant