CN111736928A - Picture-in-picture mode starting method and device and computer readable storage medium - Google Patents

Picture-in-picture mode starting method and device and computer readable storage medium Download PDF

Info

Publication number
CN111736928A
CN111736928A CN202010572207.1A CN202010572207A CN111736928A CN 111736928 A CN111736928 A CN 111736928A CN 202010572207 A CN202010572207 A CN 202010572207A CN 111736928 A CN111736928 A CN 111736928A
Authority
CN
China
Prior art keywords
picture
mode
active component
request
state information
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
Application number
CN202010572207.1A
Other languages
Chinese (zh)
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010572207.1A priority Critical patent/CN111736928A/en
Publication of CN111736928A publication Critical patent/CN111736928A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/445Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information
    • H04N5/45Picture in picture, e.g. displaying simultaneously another television channel in a region of the screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a picture-in-picture mode starting method, a picture-in-picture mode starting device and a computer readable storage medium, wherein the picture-in-picture mode starting method comprises the following steps: when a picture-in-picture request initiated by a target application is received, acquiring state information of a corresponding active component; judging whether the state information meets the preset picture-in-picture mode starting condition or not; the control system responds to the pip request when the pip mode enable condition is satisfied. Through the implementation of the scheme, when the picture-in-picture request is received, the support degree of the movable assembly is determined by analyzing the state information of the movable assembly, and the picture-in-picture logic is executed when the support mode starting behavior of the movable assembly is determined, so that the normalization of picture-in-picture logic calling is ensured, and the stability of the system can be effectively improved.

Description

Picture-in-picture mode starting method and device and computer readable storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for starting a picture-in-picture mode, and a computer-readable storage medium.
Background
With the wide popularization of network multimedia, users often watch videos by using electronic devices, and with the increasing demand of users for video watching experience, optimizing a video playing function becomes a key point of general attention of developers.
At present, developers develop a multi-window playing mode to meet the multitasking requirements when users watch videos. One typical application of the multi-window mode is a picture-in-picture mode, which means that one or more sub-windows are also displayed on the full-screen display interface, in which video viewing is possible, and other interface areas are available for the user to perform other operations. The sub-windows are realized based on the active Activity components, in the related technology, when a picture-in-picture request is initiated, the picture-in-picture logic is usually directly executed by the system without considering the support degree of the active components, so that abnormal conditions such as system restart and the like exist in practical application, and the stability of the system is reduced.
Disclosure of Invention
The embodiment of the application provides a picture-in-picture mode starting method, a picture-in-picture mode starting device and a computer readable storage medium, which can at least solve the problem of poor system stability when a picture-in-picture mode is started in the related art.
A first aspect of an embodiment of the present application provides a method for starting a picture-in-picture mode, including:
when a picture-in-picture request initiated by a target application is received, acquiring state information of a corresponding active component;
judging whether the state information meets a preset picture-in-picture mode starting condition or not;
a control system responds to the pip request when the pip mode activation condition is satisfied.
A second aspect of the embodiments of the present application provides a picture-in-picture mode starting apparatus, including:
the acquisition module is used for acquiring the state information of the corresponding active component when receiving a picture-in-picture request initiated by a target application;
the judging module is used for judging whether the state information meets the preset picture-in-picture mode starting condition or not;
and the control module is used for responding to the picture-in-picture request by a control system when the picture-in-picture mode starting condition is met.
A third aspect of embodiments of the present application provides an electronic apparatus, including: the present invention provides a method for starting a picture-in-picture mode, which includes the steps of the above-mentioned picture-in-picture mode starting method provided by the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the picture-in-picture mode starting method provided in the first aspect of the embodiments of the present application.
As can be seen from the above, according to the picture-in-picture mode starting method, apparatus, and computer-readable storage medium provided in the present application, when a picture-in-picture request initiated by a target application is received, state information of a corresponding active component is obtained; judging whether the state information meets the preset picture-in-picture mode starting condition or not; the control system responds to the pip request when the pip mode enable condition is satisfied. Through the implementation of the scheme, when the picture-in-picture request is received, the support degree of the movable assembly is determined by analyzing the state information of the movable assembly, and the picture-in-picture logic is executed when the support mode starting behavior of the movable assembly is determined, so that the normalization of picture-in-picture logic calling is ensured, and the stability of the system can be effectively improved.
Drawings
Fig. 1 is a schematic basic flowchart of a pd mode startup method according to a first embodiment of the present application;
fig. 2 is a schematic view of an interface in a picture-in-picture mode according to a first embodiment of the present application;
fig. 3 is a detailed flowchart of a pd mode startup method according to a second embodiment of the present application;
fig. 4 is a schematic diagram illustrating program modules of a pd-mode startup device according to a third embodiment of the present application;
fig. 5 is a schematic diagram illustrating program modules of another pd-mode startup device according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the defects of high time cost, high labor cost and low efficiency of a conference sign-in mode adopted in the related art, a first embodiment of the present application provides a picture-in-picture mode starting method, which is applied to an electronic device, where the electronic device may be a mobile phone, a tablet computer, a personal computer, or the like, and an operating system of the electronic device may preferably be an android system. Fig. 1 is a basic flowchart of a pip mode starting method provided in this embodiment, where the pip mode starting method includes the following steps:
step 101, when a picture-in-picture request initiated by a target application is received, state information of a corresponding active component is acquired.
Specifically, in this embodiment, the target application may be an application with a video display function, such as a video call application, a live broadcast application, or a video playing application, and the picture-in-picture request is used to request the system to execute the picture-in-picture logic. In addition, the present embodiment receives an application-triggered pip request through a Broadcast receiver (Broadcast), which is registered in the activitymanager service, in two ways, one is static registration, i.e. written in manifest; the other is dynamic registration, i.e. registration within Java code.
It should be understood that Activity is one of the most basic and common components in the Android system, and is a component responsible for interaction with a user. In an android application, an Activity is usually a separate screen on which controls can be displayed and in which the user's events can be monitored and processed in response. Picture-in-Picture (PIP) mode is a special type of multi-window mode, mainly used for video playback, where Activity is displayed in a small window. Fig. 2 is a schematic diagram of an interface in the pip mode according to this embodiment, where a small window in the pip mode is a video playing window on a desktop in the picture.
It should also be noted that the state information of the present embodiment is used to evaluate the degree of support of Activity on the execution of the picture-in-picture logic to evaluate whether the call to the picture-in-picture logic by the currently applied picture-in-picture request is in specification. In this embodiment, the state information may preferably be the lifecycle of Activity, which is managed by the Activity stack in the system. When a new Activity starts, it will be forced to the top of the stack and become the running active state. While the previous Activity is always placed in the stack below this Activity and will not be moved to the foreground until the new Activity exits. Activity goes through various states from beginning to end, transitions from one state to another state from none to any to none, and the states that go through a process are called lifecycle.
In practical applications, the life cycle of Activity typically includes the following: onCreate, representing Activity is created; onRestart, representing Activity restart; onStart, meaning Activity will enter visible state; onResume, representing that Activity has entered a visible state, is exposed in the foreground and begins to act; onPause, representing Activity is being stopped; onStop, representing that Activity is about to be stopped; onDestory: the method called before Activity is destroyed, indicating that Activity is to be destroyed. When an Activity instance is created, destroyed, or another Activity is initiated, it transitions between the four states, which occurs depending on the actions of the user program.
In some embodiments of this embodiment, before obtaining the state information of the corresponding active component when receiving the target application-initiated pip request, the method further includes: when an unlocking instruction is received, determining the application running before screen locking as a target application; and when the unlocking is successful, triggering the target application to initiate a picture-in-picture request.
Specifically, in this embodiment, the pip mode request may be initiated in different scenarios, where before the user locks the screen, when the user watches videos using the pip mode, if the electronic device automatically turns off the screen or the user manually locks the screen, when the electronic device is unlocked again, the application in the pip mode before the successful unlocking automatically initiates the pip request. Of course, in another scenario, if the user uses the electronic device in the non-lock screen state, the user may manually operate the pip start control, and the application triggers the pip request in response to the operation.
And 102, judging whether the state information meets the preset picture-in-picture mode starting condition or not.
Specifically, in this embodiment, when the pd request is received, the pd logic is not directly triggered to be executed, but whether the state of the active component satisfies the pd mode start condition is determined first, and the supporting degree of the active component for executing the pd logic is determined by the condition determination.
In some embodiments of this embodiment, when the status information is a life cycle, the determining whether the status information satisfies a preset pip mode starting condition specifically includes: judging whether the life cycle is in an undamaged stage; and when the device is in an undamaged state, the starting condition of the picture-in-picture mode is met.
Specifically, the embodiment is based on whether the Activity lifecycle is in a destruction stage after the onDestory, if yes, the picture-in-picture interface of the application is destroyed, so that an empty variable is referred to when the picture-in-picture logic is called to restart the system, and if not, the picture-in-picture logic can be called.
It should be noted that, the embodiment is not limited to using the life cycle as the state information, and is not limited to using whether the Activity is in the non-destroyed stage as the determination condition for the pd logic execution, in practical applications, considering that the application types or the service types of the applications initiating the pd request are different, so that the support of the Activity required in different scenes is different, and further, a corresponding target state information may be preset respectively for different applications or different service types as the determination condition for the pd logic execution, so that the applicability and the effectiveness of the method of the embodiment in different scenes may be effectively improved.
Step 103, when the starting condition of the picture-in-picture mode is met, the control system responds to the picture-in-picture request.
Specifically, in the embodiment, when it is determined that the Activity supports the execution of the pip logic based on the state information of the Activity, the system is triggered to execute the pip logic to start the pip mode, and the target application is displayed in a small window form, so that the problem of system stability caused by the application calling the pip logic of the system without specification is prevented.
It should be noted that, the execution of the pip logic is different between the screen locking state and the screen unlocking state, if the system is in the screen locking state, it needs to wait for the screen locking unlocking to be successful before a runnable type (a delay processing method) is launched to execute the pip logic, with a certain delay, and if the system is in the screen unlocking state, the pip logic can be immediately executed without delay.
In some embodiments of this embodiment, when the state information of Activity does not satisfy the pd mode start condition, the following processing manners may be included, but not limited to:
in the first mode, the control system refuses to respond to the picture-in-picture request;
specifically, in order to avoid system restart caused by forcibly executing the pip logic when Activity is not supported, the present embodiment may reject the pip request without executing the pip logic.
Secondly, a target activity component corresponding to the picture-in-picture request is created again; the control system responds to the picture-in-picture request based on the target active component.
Specifically, although Activity is destroyed or current Activity does not meet the execution condition of the picture-in-picture logic currently, in order to ensure that the picture-in-picture mode is provided to the user normally, the embodiment may recreate an Activity supporting the picture-in-picture logic, and further support the execution of the picture-in-picture logic through the recreated Activity.
In a third mode, a backup active component corresponding to the main active component is called; the control system responds to the picture-in-picture request based on the backup active component.
Specifically, when executing the pip logic, the present embodiment may use the currently used Activity as the main Activity and perform backup, and when the subsequent application initiates the pip request again, may obtain the state information of the corresponding main Activity and perform conditional judgment on the state information of the main Activity, and when, for example, the main Activity is destroyed and cannot support the execution of the pip logic, may call the backup Activity backed up so far, so that the execution of the pip logic may be supported in time, and the experience of the user using the pip mode is promoted.
In some embodiments of this embodiment, invoking the backup active component corresponding to the primary active component specifically includes: respectively acquiring the calling priority of a plurality of backup active components corresponding to the main active component; determining a backup active component with the highest calling priority from a plurality of backup active components; and calling the backup active component with the highest calling priority.
Specifically, in this embodiment, considering that a plurality of backup active components may be saved for a main active component, for example, one backup active component may be saved when the main active component is at different stages within a life cycle, and then when a pip request is received, a call priority calculation is performed on each backup active component based on a current pip logic execution scenario, where a backup active component with the highest call priority is an active component most suitable for the current pip logic execution scenario, so that the backup active component is called to execute the pip logic, and validity and stability of start-up of the pip mode may be ensured.
In some implementations of this embodiment, the control system responding to the pip request includes: acquiring application attributes of a target application; determining a corresponding response strategy according to the application attribute; the control system responds to the pip request according to a response policy.
Specifically, in this embodiment, the response policy may include a picture-in-picture play mode, a picture-in-picture window configuration parameter, and the like, where the picture-in-picture play mode may include a physical slice play mode, a Peer-to-Peer (P2P) play mode, and a Real Time Messaging Protocol (RTMP) play mode, and the picture-in-picture window configuration parameter includes a window size, a window position, a window shape, and the like. And the application attributes may include an application type, an application unique identifier, and the like. The embodiment adaptively configures the pip response strategy for different applications, so that the diversity and flexibility of pip playing can be ensured.
Based on the technical scheme of the embodiment of the application, when a picture-in-picture request initiated by a target application is received, state information of a corresponding active component is acquired; judging whether the state information meets the preset picture-in-picture mode starting condition or not; the control system responds to the pip request when the pip mode enable condition is satisfied. Through the implementation of the scheme, when the picture-in-picture request is received, the support degree of the movable assembly is determined by analyzing the state information of the movable assembly, and the picture-in-picture logic is executed when the support mode starting behavior of the movable assembly is determined, so that the normalization of picture-in-picture logic calling is ensured, and the stability of the system can be effectively improved.
The method in fig. 3 is a detailed picture-in-picture mode starting method provided in the second embodiment of the present application, and the picture-in-picture mode starting method includes:
step 301, when a picture-in-picture request initiated by a target application is received, acquiring a phase of a corresponding target activity component in a component life cycle.
Specifically, the embodiment receives a picture-in-picture request triggered by an application through a Broadcast receiver (Broadcast), in the embodiment, Activity is a component in the system responsible for interacting with a user, and a lifecycle of Activity generally includes the following: onCreate, onRestart, onStart, onResume, onPause, onStop, onDestorey.
Step 302, judging whether the stage of the target movable assembly in the assembly life cycle is a destruction stage; if yes, go to step 303; if not, go to step 304.
Specifically, when the Activity is in the endstore stage, it is described that the Activity is destroyed, and the execution of the pd logic cannot be supported, and at this time, if the pd logic is directly executed, an empty variable is referenced, which may cause the system to restart.
Step 303, call the backup active component corresponding to the target active component.
Specifically, when executing the pip logic, the present embodiment may use the currently used Activity as the main Activity and backup the Activity. When the main Activity is destroyed and cannot support the execution of the picture-in-picture logic, the backup Activity backed up before can be called, so that the execution of the picture-in-picture logic can be supported in time.
And step 304, calling the target activity component.
In this embodiment, if the target active component is not destroyed, the current implementation of pip logic may be supported, and the component may be invoked directly.
And 305, acquiring the application attribute of the target application, and determining a corresponding response strategy according to the application attribute.
Specifically, the response policy may include a pip playing mode, a pip window configuration parameter, and the like, and the present embodiment adaptively configures the pip response policy for different applications, so as to ensure the diversity and flexibility of pip playing.
Based on the invoked active component, the control system responds to the pip request according to the determined response policy, step 306.
In this embodiment, when a pip request is received, it is first determined whether the Activity is destroyed, if not, the pip logic may be directly executed, and if the Activity is destroyed, the pip logic is executed after the backup Activity is called, so that the problem of system restart caused by the system directly responding to the request after the Activity is destroyed can be avoided.
It should be understood that, the size of the serial number of each step in this embodiment does not mean the execution sequence of the step, and the execution sequence of each step should be determined by its function and inherent logic, and should not be limited uniquely to the implementation process of the embodiment of the present application.
The embodiment of the application discloses a picture-in-picture mode starting method, which comprises the steps of obtaining the stage of a corresponding movable assembly in a life cycle when a picture-in-picture request initiated by a target application is received; judging whether the stage of the movable assembly in the life cycle is a destroying stage or not; if not, the control system responds to the picture-in-picture request; if yes, the active backup component is called and then the control system responds to the picture-in-picture request. Through the implementation of the scheme, when the picture-in-picture request is received, the support degree of the movable assembly is determined by analyzing the state information of the movable assembly, and the picture-in-picture logic is executed when the support mode starting behavior of the movable assembly is determined, so that the normalization of picture-in-picture logic calling is ensured, and the stability of the system can be effectively improved.
Fig. 4 is a pd mode activation device according to a third embodiment of the present application. The pd mode activation device can be used to implement the pd mode activation method in the foregoing embodiments. As shown in fig. 4, the pd mode activation apparatus mainly includes:
an obtaining module 401, configured to obtain state information of a corresponding active component when a picture-in-picture request initiated by a target application is received;
a judging module 402, configured to judge whether the state information meets a preset pip mode starting condition;
a control module 403, configured to control the system to respond to the pip request when the pip mode start condition is satisfied.
In some embodiments of this embodiment, when the state information is a life cycle, the determining module 402 is specifically configured to: judging whether the life cycle is in an undamaged stage; and when the device is in an undamaged state, the starting condition of the picture-in-picture mode is met.
In some embodiments of this embodiment, the control module 403 is further configured to: after judging whether the state information meets the preset picture-in-picture mode starting condition or not, the control system refuses to respond to the picture-in-picture request when the picture-in-picture mode starting condition is not met. Alternatively, the control module 403 is further configured to: after judging whether the state information meets the preset picture-in-picture mode starting condition or not, when the picture-in-picture mode starting condition is not met, recreating the target activity assembly corresponding to the picture-in-picture request; the control system responds to the picture-in-picture request based on the target active component.
In some embodiments of this embodiment, the obtaining module 401 is specifically configured to: and acquiring the state information of the corresponding main activity component. As shown in fig. 5, another pd mode activating apparatus provided in this embodiment correspondingly, the pd mode activating apparatus further includes: a calling module 404, configured to call a backup active component corresponding to the main active component after determining whether the state information satisfies a preset pip mode start condition and when the pip mode start condition is not satisfied; the control module 403 is further configured to: the control system responds to the picture-in-picture request based on the backup active component.
Further, in some embodiments of this embodiment, the invoking module 404 is specifically configured to: respectively acquiring the calling priority of a plurality of backup active components corresponding to the main active component; determining a backup active component with the highest calling priority from a plurality of backup active components; and calling the backup active component with the highest calling priority.
Referring to fig. 5 again, in some embodiments of the present invention, the pd mode activating apparatus further includes: a triggering module 405, configured to determine, when receiving a picture-in-picture request initiated by a target application and before the step of obtaining state information of a corresponding active component, an application running before screen locking as the target application when receiving an unlocking instruction; and when the unlocking is successful, triggering the target application to initiate a picture-in-picture request.
In some embodiments of this embodiment, the control module 403 is specifically configured to: acquiring application attributes of a target application; determining a corresponding response strategy according to the application attribute; the control system responds to the pip request according to a response policy.
It should be noted that, the pip mode starting method in the first and second embodiments can be implemented based on the pip mode starting device provided in this embodiment, and persons skilled in the art can clearly understand that, for convenience and brevity of description, the specific working process of the pip mode starting device described in this embodiment may refer to the corresponding process in the foregoing method embodiment, and details are not described here again.
According to the picture-in-picture mode starting device provided by the embodiment, when a picture-in-picture request initiated by a target application is received, state information of a corresponding active component is acquired; judging whether the state information meets the preset picture-in-picture mode starting condition or not; the control system responds to the pip request when the pip mode enable condition is satisfied. Through the implementation of the scheme, when the picture-in-picture request is received, the support degree of the movable assembly is determined by analyzing the state information of the movable assembly, and the picture-in-picture logic is executed when the support mode starting behavior of the movable assembly is determined, so that the normalization of picture-in-picture logic calling is ensured, and the stability of the system can be effectively improved.
Referring to fig. 6, fig. 6 is an electronic device according to a fourth embodiment of the present disclosure. The electronic device can be used to implement the picture-in-picture mode activation method in the foregoing embodiments. As shown in fig. 6, the electronic device mainly includes:
memory 601, processor 602, bus 603, and computer programs stored on memory 601 and executable on processor 602, memory 601 and processor 602 connected by bus 603. The processor 602, when executing the computer program, implements the picture-in-picture mode starting method in the foregoing embodiments. Wherein the number of processors may be one or more.
The Memory 601 may be a high-speed Random Access Memory (RAM) Memory, or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 601 is used for storing executable program code, and the processor 602 is coupled with the memory 601.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 6.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the picture-in-picture mode startup method in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the pd mode activation method, apparatus and computer-readable storage medium provided by the present application, those skilled in the art will appreciate that there are variations from the detailed description to the application scope according to the concepts of the embodiments of the present application, and accordingly, the content of the present specification should not be construed as limiting the application.

Claims (10)

1. A picture-in-picture mode initiation method, comprising:
when a picture-in-picture request initiated by a target application is received, acquiring state information of a corresponding active component;
judging whether the state information meets a preset picture-in-picture mode starting condition or not;
a control system responds to the pip request when the pip mode activation condition is satisfied.
2. The pd-mode startup method according to claim 1, wherein the status information is a life cycle, and the determining whether the status information satisfies a preset pd-mode startup condition comprises:
judging whether the life cycle is in an undamaged stage; wherein the picture-in-picture mode start-up condition is satisfied when in the non-destroyed state.
3. The pd mode activation method according to claim 1, wherein said determining whether said status information satisfies a predetermined pd mode activation condition further comprises:
when the picture-in-picture mode starting condition is not met, the control system refuses to respond to the picture-in-picture request;
or, when the picture-in-picture mode initiation condition is not satisfied, re-creating a target active component corresponding to the picture-in-picture request;
a control system responds to the picture-in-picture request based on the target active component.
4. The picture-in-picture mode activation method of claim 1, wherein said obtaining state information of a corresponding active component comprises:
acquiring state information of a corresponding main activity assembly;
after the determining whether the state information satisfies a preset pip mode starting condition, the method further includes:
invoking a backup active component corresponding to the primary active component when the picture-in-picture mode initiation condition is not satisfied;
a control system responds to the picture-in-picture request based on the backup active component.
5. The picture-in-picture mode activation method of claim 4, wherein the invoking a backup active component corresponding to the primary active component comprises:
respectively acquiring the calling priority of a plurality of backup active components corresponding to the main active component;
determining a backup active component with the highest calling priority from the plurality of backup active components;
and calling the backup active component with the highest calling priority.
6. The pd-mode initiation method of claim 1, wherein, prior to obtaining state information of a corresponding active component upon receiving a pd-request initiated by a target application, further comprising:
when an unlocking instruction is received, determining the application running before screen locking as the target application;
and when the unlocking is successful, triggering the target application to initiate the picture-in-picture request.
7. The picture-in-picture mode activation method of any one of claims 1 to 6, wherein the response of the control system to the picture-in-picture request comprises:
acquiring the application attribute of the target application;
determining a corresponding response strategy according to the application attribute;
the control system responds to the pip request according to the response policy.
8. A picture-in-picture mode enabling apparatus, comprising:
the acquisition module is used for acquiring the state information of the corresponding active component when receiving a picture-in-picture request initiated by a target application;
the judging module is used for judging whether the state information meets the preset picture-in-picture mode starting condition or not;
and the control module is used for responding to the picture-in-picture request by a control system when the picture-in-picture mode starting condition is met.
9. An electronic device, comprising: a memory, a processor, and a bus;
the bus is used for realizing connection communication between the memory and the processor;
the processor is configured to execute a computer program stored on the memory;
the processor, when executing the computer program, performs the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010572207.1A 2020-06-22 2020-06-22 Picture-in-picture mode starting method and device and computer readable storage medium Pending CN111736928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010572207.1A CN111736928A (en) 2020-06-22 2020-06-22 Picture-in-picture mode starting method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010572207.1A CN111736928A (en) 2020-06-22 2020-06-22 Picture-in-picture mode starting method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111736928A true CN111736928A (en) 2020-10-02

Family

ID=72650247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010572207.1A Pending CN111736928A (en) 2020-06-22 2020-06-22 Picture-in-picture mode starting method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111736928A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080889A (en) * 2022-07-26 2022-09-20 阿里巴巴(中国)有限公司 Display mode switching method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656848A (en) * 2009-09-27 2010-02-24 康佳集团股份有限公司 Flat-panel television multi-screen display method and device
CN105138402A (en) * 2015-08-25 2015-12-09 海信集团有限公司 Method and device for adjusting priority of application process memory release
WO2016150325A1 (en) * 2015-03-26 2016-09-29 阿里巴巴集团控股有限公司 Application screen-splitting running method and device
CN107391199A (en) * 2017-07-27 2017-11-24 珠海市魅族科技有限公司 Using startup method and device, terminal and computer-readable recording medium
CN107390969A (en) * 2017-06-16 2017-11-24 深圳市金立通信设备有限公司 A kind of method and terminal for controlling suspended window
CN109254821A (en) * 2018-09-05 2019-01-22 Oppo广东移动通信有限公司 Window Zoom method, device, terminal and computer readable storage medium
CN109521926A (en) * 2018-11-28 2019-03-26 青岛海信电器股份有限公司 A kind of starting method and device of application program
CN109933386A (en) * 2019-03-28 2019-06-25 努比亚技术有限公司 The starting method, apparatus and computer readable storage medium of picture-in-picture mode
CN109976608A (en) * 2019-03-15 2019-07-05 努比亚技术有限公司 A kind of application clocking method, equipment and computer readable storage medium
CN110928396A (en) * 2019-11-18 2020-03-27 Oppo(重庆)智能科技有限公司 Screen refreshing method and related equipment
CN111107415A (en) * 2018-10-26 2020-05-05 武汉斗鱼网络科技有限公司 Live broadcast room picture-in-picture playing method, storage medium, electronic equipment and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656848A (en) * 2009-09-27 2010-02-24 康佳集团股份有限公司 Flat-panel television multi-screen display method and device
WO2016150325A1 (en) * 2015-03-26 2016-09-29 阿里巴巴集团控股有限公司 Application screen-splitting running method and device
CN105138402A (en) * 2015-08-25 2015-12-09 海信集团有限公司 Method and device for adjusting priority of application process memory release
CN107390969A (en) * 2017-06-16 2017-11-24 深圳市金立通信设备有限公司 A kind of method and terminal for controlling suspended window
CN107391199A (en) * 2017-07-27 2017-11-24 珠海市魅族科技有限公司 Using startup method and device, terminal and computer-readable recording medium
CN109254821A (en) * 2018-09-05 2019-01-22 Oppo广东移动通信有限公司 Window Zoom method, device, terminal and computer readable storage medium
CN111107415A (en) * 2018-10-26 2020-05-05 武汉斗鱼网络科技有限公司 Live broadcast room picture-in-picture playing method, storage medium, electronic equipment and system
CN109521926A (en) * 2018-11-28 2019-03-26 青岛海信电器股份有限公司 A kind of starting method and device of application program
CN109976608A (en) * 2019-03-15 2019-07-05 努比亚技术有限公司 A kind of application clocking method, equipment and computer readable storage medium
CN109933386A (en) * 2019-03-28 2019-06-25 努比亚技术有限公司 The starting method, apparatus and computer readable storage medium of picture-in-picture mode
CN110928396A (en) * 2019-11-18 2020-03-27 Oppo(重庆)智能科技有限公司 Screen refreshing method and related equipment

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
FUZC93222: "经验总结—Activity是否被销毁判断条件", pages 1 - 2, Retrieved from the Internet <URL:《 https://juejin.cn/post/6844904004124672013》> *
RIKIP GINANJAR: "Virtual Office Life Desktop Game Application", 《2011 FIRST INTERNATIONAL CONFERENCE ON INFORMATICS AND COMPUTATIONAL INTELLIGENCE》, 30 January 2012 (2012-01-30), pages 1 - 7 *
ZHANGQIANG-: "总结系列-Android画中画模式-看这篇就够啦", pages 1 - 13, Retrieved from the Internet <URL:《https://blog.csdn.net/u011200604/article/details/104701266》> *
秦炜炜: "基于视频码流的画中画算法研究与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, 15 May 2009 (2009-05-15), pages 138 - 1137 *
赵林: "调度自动化系统新型人机界面关键技术研究", 《电网技术》, 3 December 2014 (2014-12-03), pages 3199 - 3205 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080889A (en) * 2022-07-26 2022-09-20 阿里巴巴(中国)有限公司 Display mode switching method and device
CN115080889B (en) * 2022-07-26 2023-01-17 阿里巴巴(中国)有限公司 Display mode switching method and device

Similar Documents

Publication Publication Date Title
US10871985B2 (en) Displaying media files between changes in states of an application client
CN107493375B (en) Mobile terminal expansion screen projection method and screen projection system
US20220248077A1 (en) Video projection method, apparatus and device, and storage medium
EP2712119B1 (en) Abnormality handling method, device and client
CN109542744B (en) Method, device, storage medium and terminal for detecting abnormal starting problem of terminal
CN107728885B (en) Multitask control method and device, mobile terminal and storage medium
CN106201574B (en) Application interface starting method and device
CN111506283A (en) Image display method, device and system
CN112445530B (en) Method and device for keeping third-party application program alive
CN113268286A (en) Application starting method and device, projection equipment and storage medium
CN111736928A (en) Picture-in-picture mode starting method and device and computer readable storage medium
CN108132807B (en) Parameter loading method and device
CN113110881A (en) Display terminal, display method thereof and device with storage function
CN111324419A (en) Deployment method, device, equipment and storage medium of combined container
CN115562744A (en) Application program loading method and electronic equipment
CN110417601B (en) Information prompting method, device and system in client and readable storage medium
CN106550021B (en) Push method and device for push message
CN109634782B (en) Method and device for detecting system robustness, storage medium and terminal
CN116889733A (en) Game resource loading method and device, electronic equipment and storage medium
CN109195021B (en) Screenshot sharing method and device
CN111200651A (en) Method, system, device and medium for timed calling of microservice
JP2022507883A (en) Exception handling method, terminal device and storage medium
CN112379952B (en) Method for implementing cross-process callback
JP7331132B2 (en) Application program installation method, operation method, electronic device, computer readable medium
CN114281491A (en) Application stack management method and device, electronic 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