CN112702647B - Play control method, intelligent television and computer readable storage medium - Google Patents

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

Info

Publication number
CN112702647B
CN112702647B CN202011553881.1A CN202011553881A CN112702647B CN 112702647 B CN112702647 B CN 112702647B CN 202011553881 A CN202011553881 A CN 202011553881A CN 112702647 B CN112702647 B CN 112702647B
Authority
CN
China
Prior art keywords
page
player
play control
monitoring
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011553881.1A
Other languages
Chinese (zh)
Other versions
CN112702647A (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 encoded video stream 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a play control method, an intelligent 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; creating a public play control interface, controlling the pages of the player to be released to execute the play control interface, and releasing player resources through the play control interface; monitoring a pause event of a page, and if the current page is monitored to be covered, releasing the resources of the page; monitoring the creation event of the pages, and if both the pages use the player, judging that the two pages have player resource conflict; and calling the player resources released by the paused page in the creation event of the new page, forcibly releasing the player resources, and controlling the new page to normally use the player. The invention can automatically ensure the normal use of 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, intelligent television and computer readable storage medium
Technical Field
The present invention relates to the field of smart televisions, and in particular, to a playback control method, a smart television, and a computer readable storage medium.
Background
The intelligent television is based on the Internet application technology, is provided with an open operating system and a chip, has an open application platform, can realize a bidirectional man-machine interaction function, and integrates multiple functions such as video, entertainment, data and the like into a whole so as to meet the diversified and personalized requirements of users. The purpose of the method is to bring more convenient experience to users, and the method is now a trend of television trend. The intelligent television has a fully open platform, is provided with an operating system, and can automatically install and uninstall various application software while users enjoy common television content, so that new television products with functions being continuously expanded and upgraded can be realized. The intelligent television can continuously bring rich personalized experience different from the use of a cable digital television receiver (set top box) to users.
With the popularization of smart televisions, applications for smart televisions are increasingly developed. Smart tv devices themselves have many limitations compared to smartphones. For example, many smart televisions can only have one player at the same time (because a large number of smart television chips only support one player to play, i.e. caused by chip limitation, if two or more players are created at the same time to play, player resource conflict occurs, and then the two or more players cannot play at the same time), and if the player resource occupied by the last user is not completely released before the next user uses the smart television, the problem of incapacity of playing occurs (that is, when the player is to be used in the next place, the place where the last player is to be used must be waited for to be released first, and then the two or more players are released by the last scene, otherwise, the resource use conflict occurs).
Accordingly, the prior art is still in need of improvement and development.
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 caused by the fact that in the prior art, the intelligent television plays resources through one player.
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;
creating a public play control interface, controlling and releasing pages of the player to execute the play control interface, and releasing player resources through the play control interface;
monitoring a pause event of a page, and if the current page is covered, releasing the resources of the page;
monitoring the 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 player resources released by the paused page in the creation event of the new page, forcibly releasing the player resources, and controlling the new page to normally use the player.
Optionally, in the play control method, the starting a registered android page life cycle monitoring function further includes:
registering android page life cycle monitoring through the application in advance, wherein the android page life cycle monitoring is used for monitoring the life cycle of each page in the application.
Optionally, in the play control method, the monitoring a life cycle of each page in the application is used to determine whether a new page needs to use the player.
Optionally, the play control method, wherein the monitoring the pause event of the page further includes:
a weak reference to the page of the paused event is saved.
Optionally, in the play control method, the monitoring the event of creating the page, if both pages use the player, determining that there is a player resource conflict between the two pages 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 events, and judging that the paused first page realizes the play control interface;
if the second page creates an event to realize a play control interface and the paused first page realizes the play control interface, judging that player resource conflict exists between the first page and the second page.
Optionally, in the play control method, the calling the release player resource of the paused page in the creation event of the new page forcibly releases the player resource, and controlling the new page to normally use the player specifically includes:
invoking the paused released 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 after the first page finishes releasing player resources, the second page normally uses the player.
Optionally, the play control method, wherein the play control method further includes:
and when detecting that the page exists and realizing the play control interface, judging that the page is using the player.
Optionally, the play control method, wherein the play control method further includes: when a plurality of pages are newly added and the player is required to be used, each newly added page realizes the play control interface to use the player.
In addition, in order to achieve the above object, the present invention further provides a smart television, where the smart television includes: the device comprises a memory, a processor and a play control program stored in the memory and capable of running on the processor, wherein the play control program realizes the steps of the play control method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium storing a playback control program that, when executed by a processor, implements the steps of the playback control method described above.
According to the method, the registered android page life cycle monitoring function is started, and the life cycle of each page in the application is monitored; creating a public play control interface, controlling and releasing pages of the player to execute the play control interface, and releasing player resources through the play control interface; monitoring a pause event of a page, and if the current page is covered, releasing the resources of the page; monitoring the 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 player resources released by the paused page in the creation event of the new page, forcibly releasing the player resources, and controlling the new page to normally use the player. The invention can automatically ensure the normal use of 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 the playback control method of the present invention;
FIG. 2 is a schematic diagram of the life cycle of android in a preferred embodiment of the playback control method of the present invention;
FIG. 3 is a flowchart of step S40 in a preferred embodiment of the playback control method of the present invention;
FIG. 4 is a flowchart of step S50 in a preferred embodiment of the playback control method of the present invention;
fig. 5 is a schematic diagram of an operation environment of a preferred embodiment of the smart tv of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear and clear, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Activity is an interface with a user in a daily application that provides a window for the user to perform related operations. After creating an Activity in the development, the Activity is assigned a layout interface by calling setContentView (View) methods, which is the interface provided for user interaction. In the Android system, the Activity is managed by an Activity stack mode, and the Activity is self-creation and destruction managed by a life cycle method.
Among them, 4 forms of Activity:
the Activity is in an Active state, and at the moment, the Activity is at the top of the stack and is in a visible state, so that the Activity can interact with a user.
Paused: when an Activity loses focus, either by a new, non-full screen Activity, or by a transparent Activity placed at the top of the stack, the Activity is converted to a used state. It should be understood that at this point, the Activity simply loses its ability to interact with the user, and all of its state information and its member variables remain, which can only be recovered by the system if the system memory is strained.
Stopped: when one Activity is fully overridden by another, the overridden Activity will enter a Stopped state where it is no longer visible, but retains all of its state information and its member variables as the used state.
Killed: when an Activity is reclaimed by the system, the Activity is in a Killed state. Activity will switch between the above four modes, and how to switch will vary from user to user.
The invocation opportunities for several main methods of lifecycle:
onCreate, which is a callback when an Activity is created, is a method called for the first time in the life cycle, and is generally required 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, the method shows that the Activity is being started when being called back, and the Activity is in a visible state and is not displayed in the foreground, so that interaction with the user is not possible. It can be simply understood that the Activity is displayed so as not to be visible.
The method is characterized in that when the method is called back, the method shows that the Activity is visible in the foreground and can interact with the user (in the form of Active/Running described above), and the same points of the method and the onStart are that the Activity is visible, but the Activity is not interactable with the user in the background when the onStart is called back, and the method is displayed in the foreground and can interact with the user. It can be seen that after Activity has stopped (the onPause and onStop methods are called), the onResume method is also called when it is resumed to the foreground, so that some resources may also be initialized in the onResume method, such as resources released in the onPause or onStop methods, are reinitialized.
onPause this method when called back indicates that Activity is stopping (used modality), and typically the onStop method will be 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 again quickly after the current Activity is in the background, and at this time, the onPause method is called back. Of course, some operations of data storage or animation stopping or resource reclamation may be performed in the onPause method, but it cannot be too time-consuming, because it may affect that the onPause method of the new Activity is performed after the completion of the execution of the displayed onPause method of the new Activity.
The onStop is generally executed directly after the onPause method execution is completed, and indicates that the Activity is about to stop or is completely covered (a supported form), and the Activity is invisible and only runs in the background. Likewise, the onStop method may do some resource release operations (which cannot be too time consuming).
onRestart: means that the Activity is restarting, and when the Activity changes from invisible to visible state, the method is called back. This is typically the case when the user opens a new Activity, the current Activity is paused (onPause and onstate are executed), and then the onRestart method is called back when the user returns to the current Activity page. The Activity is destroyed at this time, which is also the last method executed in the lifecycle, and some reclamation work and final resource release can be done in this method.
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 a 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 chinese corresponding to english is explained as follows:
activitylifecyvcall backs: monitoring the life cycle of the android page;
ActivityA: page a (e.g., representing a first page);
ActivityB: page B (e.g., representing a second page);
onCreate: create event (create a page);
OnResume: a start event (page start foreground display);
on pause: a pause event (one page is covered by another page, e.g., page a is covered by page B);
on stop: the page is stopped;
releasePlayer: releasing player resources;
activityA instanceof PlayerCtrInterface & & activityB instanceof PlayerCtrInterface: the page a is indicated to realize the play control interface, and the page B is also indicated to realize 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 actyLifecycle computers (android page lifecycle monitor) with application, the lifecycle of each Activity in the application is monitored, so that it can be known what state the page is currently, whether a new page comes out or whether player resources are to be released.
And step S20, creating a common play control interface, controlling and releasing pages of the player to execute the play control interface, and releasing player resources through the play control interface.
Specifically, a common interface of competing resources, such as a player, is created, creating a common PlayerCTRInterface. All the interfaces are used for executing the Activity of the player; the releaseLayer method in the interface class is realized, and a method which can be called by the outside is named 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 covered, releasing the resources of the page.
Specifically, listening to the on pause event of an Activity, i.e. listening to the page being covered by another page, can free up its own resources and save the weak reference of the ActivityA by the on pause.
And S40, monitoring the creation event of the page, and if the two pages use the player, judging that the player resource conflict exists between the two pages.
Fig. 3 is a flowchart of step S40 in the play control method according to the present invention.
As shown in fig. 3, the step S40 includes:
s41, 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 events, and judging that the paused first page realizes the play control interface;
s42, if the second page creates an event to realize a play control interface and the paused first page realizes the play control interface, judging that player resource conflict exists between the first page and the second page.
Specifically, the OnCreate of Activity is listened to. It is determined at the time of the new page ActivityB OnCreate whether or not the actigram realizes the self PlayerCTRInterface and whether or not the last page actigram of the Pause also realizes the self PlayerCTRInterface. If both self PlayerCTRInterface is implemented at the same time, it is determined that both activities have player resource competition issues. Only the page with the player needs to implement this interface, which in turn necessitates the use of the player.
And S50, calling the player resources released by the paused page in the creation event of the new page, forcibly releasing the player resources, and controlling the new page to normally use the player.
Fig. 4 is a flowchart of step S50 in the play control method according to the present invention.
As shown in fig. 4, the step S50 includes:
s51, calling the paused released player resource of the first page in the creation event of the second page, and controlling the first page to release the player resource;
s52, when the first page finishes releasing player resources, the second page normally uses the player.
Specifically, if it is determined that there is a resource contention, the releasePlayer method of the Pause of the activetya is called inside the oncreatate of the new page activetyb. The player resources are forcefully released. The normal use of the player in the new actigb can be ensured. The player is a resource, only one player is in the system, and the page A can not be used when the page B is used. The page A is used up and put back, and the page B can be taken out for use.
Further, when the existence of the page is detected to realize the play control interface, judging that the page is using the player; when a plurality of pages are newly added and the player is required to be used, each newly added page realizes the play control interface to use the player.
The invention can ensure normal use of competing resources and has little change for newly added functions (namely, the problem of resource conflict of the player can be solved only by realizing PlayerCTRGterface when pages of numerous players are newly added). The normal use of global contention resources can be automatically guaranteed only by using a new page implements PlayerCTRInterface of the player and implementing a releasePlayer method.
Further, as shown in fig. 5, based on the above-mentioned playing control method, the present invention further 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 intelligent television, but it should be understood that not all of the illustrated components are required to be implemented, and more or fewer components may alternatively be implemented.
The memory 20 may be an internal storage unit of the smart tv, such as a hard disk or a memory of the smart tv, in some embodiments. The memory 20 may also be an external storage device of the Smart tv in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like. 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 and various data installed on the smart tv, for example, program codes for installing the smart tv. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a play control program 40, and the play control program 40 is executable by the processor 10 to implement the play control method in the present application.
The processor 10 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 20, for example for performing the playback control method, etc.
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, 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, the following steps are implemented when the processor 10 executes the play control program 40 in the memory 20:
starting a registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application;
creating a public play control interface, controlling and releasing pages of the player to execute the play control interface, and releasing player resources through the play control interface;
monitoring a pause event of a page, and if the current page is covered, releasing the resources of the page;
monitoring the 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 player resources released by the paused page in the creation event of the new page, forcibly releasing the player resources, and controlling the new page to normally use the player.
The starting the registered android page life cycle monitoring function further comprises the following steps:
registering android page life cycle monitoring through the application in advance, wherein the android page life cycle monitoring is used for monitoring the life cycle of each page in the application.
And the life cycle of each page in the application is monitored to judge whether a new page needs to use the player.
Wherein, the pause event of the listening page further comprises:
a weak reference to the page of the paused event is saved.
If both pages use the player, determining that the two pages have player resource conflict, 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 events, and judging that the paused first page realizes the play control interface;
if the second page creates an event to realize a play control interface and the paused first page realizes the play control interface, judging that player resource conflict exists between the first page and the second page.
The method specifically includes the steps of calling a player resource released by a suspended page in a new page creation event, forcibly releasing the player resource, and controlling the new page to normally use the player, wherein the method specifically comprises the following steps:
invoking the paused released 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 after the first page finishes releasing player resources, the second page normally uses the player.
And when the existence of the page is detected to realize the play control interface, judging that the page is using the player.
When a plurality of pages are newly added and the player is required to be used, each newly added page realizes the play control interface to use the player.
The present invention also provides a computer-readable storage medium storing a play control program which, when executed by a processor, implements the steps of the play control method as described above.
In summary, the present invention provides a play control method, an intelligent 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; creating a public play control interface, controlling and releasing pages of the player to execute the play control interface, and releasing player resources through the play control interface; monitoring a pause event of a page, and if the current page is covered, releasing the resources of the page; monitoring the 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 player resources released by the paused page in the creation event of the new page, forcibly releasing the player resources, and controlling the new page to normally use the player. The invention can automatically ensure the normal use of 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Of course, those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by a computer program for instructing relevant hardware (e.g., processor, controller, etc.), the program may be stored on a computer readable storage medium, and the program may include the above described methods when executed. 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 in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (8)

1. A play control method, characterized in that the play control method comprises:
starting a registered android page life cycle monitoring function, and monitoring the life cycle of each page in the application;
creating a public play control interface, controlling and releasing pages of the player to execute the play control interface, and releasing player resources through the play control interface;
monitoring a pause event of a page, and if the current page is covered, releasing the resources of the page;
monitoring the creation event of the pages, and if the two pages use the player, judging that the two pages have player resource conflict;
the event of creating the monitoring page, if both pages use the player, determining that the two pages have player resource conflict, 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 events, and judging that the paused first page realizes the play control interface;
if the second page creates an event and the paused first page achieves a play control interface, judging that player resource conflict exists between the first page and the second page;
calling the player resources released by the paused page in the creation event of the new page, forcibly releasing the player resources, and controlling the new page to normally use the player;
the step of calling the player resources released by the paused page in the creation event of the new page, and forcedly releasing the player resources to control the new page to normally use the player specifically comprises the following steps:
invoking the paused released player resource of the first page in the creation event of the second page, and controlling the first page to release the player resource;
when the first page finishes releasing player resources, the second page normally uses the player;
the normal use of the global competition resources can be automatically ensured by realizing the play control interface on a new page of the player.
2. The play control method according to claim 1, wherein the starting the registered android page lifecycle monitoring function further includes:
registering android page life cycle monitoring through the application in advance, wherein the android page life cycle monitoring is used for monitoring the life cycle of each page in the application.
3. The playback control method of claim 2, wherein the monitoring of the lifecycle of each page within the application is used to determine whether a new page requires use of the player.
4. The play control method according to claim 1, wherein the listening page is paused, and further comprising:
a weak reference to the page of the paused event is saved.
5. The playback control method as recited in claim 1, wherein the playback control method further comprises:
and when detecting that the page exists and realizing the play control interface, judging that the page is using the player.
6. The playback control method as recited in claim 1, wherein the playback control method further comprises:
when a plurality of pages are newly added and the player is required to be used, each newly added page realizes the play control interface to use the player.
7. An intelligent television, characterized in that, the intelligent television includes: memory, a processor and a play control program stored on the memory and executable on the processor, which play control program when executed by the processor implements the steps of the play control method according to any one of claims 1-6.
8. A computer-readable storage medium storing a playback control program which, when executed by a processor, implements the steps of the playback control method of any one of claims 1 to 6.
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 CN112702647A (en) 2021-04-23
CN112702647B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN112702647A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN112702647B (en) Play control method, intelligent television and computer readable storage medium
US9354856B2 (en) Software installation method and device
US20090222830A1 (en) Methods for Multi-Tasking on Media Players
US7707400B2 (en) Direct computing experience
US20110271268A1 (en) System and method for updating unified extensible firmware interface setting information
CN101526901B (en) Method and device for viewing files in computer
KR20160013162A (en) User interface elements for multiple displays
US20080077784A1 (en) Electronic marketing on a computing device during select time windows
CN108174255B (en) Smart television starting method, smart television and computer readable storage medium
CN107577472B (en) Software installation method and device and computer readable storage medium
WO2019020107A1 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
US20130054951A1 (en) Software execution method and electronic device using the same
WO2018130085A1 (en) Method and apparatus for page presentation
JP2021504826A (en) How to launch application programs, launchers and computer-readable storage media
CN111930410A (en) Display device and idle time upgrading method
CN104137074A (en) Optimization of resource usage in a multi-environment computing system
WO2019137280A1 (en) Terminal anomaly repair method, apparatus, mobile terminal, and storage medium
US7725705B2 (en) Bios setting method
US20050081218A1 (en) Configurable simulation of virtual machine behavior
CN103559050A (en) Customization method for computer starting process and computer
CN108363582B (en) Method and device for upgrading homepage of intelligent terminal
CN113132805A (en) Playing control method, system, intelligent terminal and storage medium
CN111722888B (en) Operation execution method, device, equipment and readable storage medium
CN114968010A (en) Starting method and device of co-processing chip, storage medium and electronic device
CN113656063A (en) System version replacing method, device, equipment and computer readable 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