# US 10,871,985 B2 · Displaying media files between changes in states of an application client

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,871,985 B2
- Document ID: US10871985B2
- Status: Granted
- Kind: B2
- Application number: 16/049,429
- Filed: 2018-07-30
- Published: 2018-11-22
- Granted: 2020-12-22
- Earliest claimed: 2016-06-07
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Qiang Liu; Lei Jiang; Ruijie Zhang
- Web page: https://patentgrep.com/patent/US10871985B2

## CPC

- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 3/0481: based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 16/44: Browsing; Visualisation therefor
- G06F 3/0484: for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A media file presentation method is disclosed, applicable to an application client and performed at a computing device. The computing device performs a blocking operation on a process of switching from a background state to a suspended state and covers a page screenshot by using a to-be-presented media file in the process of switching from the background state to the suspended state, the page screenshot being captured in a process of switching from a foreground state to the background state. Finally, the computing device presents the media file covering the page screenshot in a process of switching from the suspended state to the foreground state.

## Claims

### Claim 1

A media file presentation method, the method comprising:
at a computing device having one or more processors and memory storing a plurality of programs to be executed by the one or more processors, detecting a first user request to switch an inactive application client from a foreground state to a background state;
capturing a screenshot of a page presented by the application client in the foreground state before the application client is moved to the background state;
performing a blocking operation to suspend backup of data for the application client;
during the blocking operation, covering the page screenshot by presenting a media file;
subsequent to the blocking operation, resuming the backing up of data and causing the application client to enter the background state;
detecting a second user request to switch the application client from the background state to the foreground state;
in response to the second user request, covering the page screenshot by presenting the media file while restoring the application client using the data from the backup; and
replacing the media file with the application client in the foreground state.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
after the application client is switched from the foreground state to the background state, performing a blocking operation of blocking, for first preset duration, a process of switching the application client from background state to the suspended state.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprises:
when the media file has been presented for second preset duration, entering a page that is presented when the application client is switched from the foreground state to the background state.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
performing a blocking operation on a process in which an operating system switches the application client from the background state to the suspended state;
the covering a page screenshot by using a to-be-presented media file in the process of switching from the background state to the suspended state, the page screenshot being captured in a process of switching from a foreground state to the background state comprises:
covering the page screenshot by using the to-be-presented media file in the process in which the operating system switches the application client from the background state to the suspended state, the page screenshot being captured when the operating system switches the application client from the foreground state to the background state; and
the presenting the media file covering the page screenshot in a process of switching from the suspended state to the foreground state comprises:
presenting the media file covering the page screenshot when the operating system switches the application client from the suspended state to the foreground state.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the method further comprises:
receiving a media file and a corresponding configuration file that are delivered by a server and storing the media file and the configuration file; and
the presenting the media file covering the page screenshot comprises:
presenting the media file covering the page screenshot according to a presentation parameter in the stored configuration file.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the configuration file comprises a media file presentation condition; and the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
detecting whether the media file presentation condition is met; and
performing the blocking operation on the process of switching from the background state to the suspended state when the media file presentation condition is met.

### Claim 7 (depends on 1)

The method according to claim 1, wherein before the performing a blocking operation on a process of switching from a background state to a suspended state, the method further comprises:
checking, on startup, whether a startup item used for presenting a media file on startup exists;
loading, if the startup item exists, the media file specified by the startup item and presenting the media file; and
entering the foreground state when the loaded media file has been presented for preset duration.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the method further comprises:
receiving an end presentation command sent by a server, the end presentation command being triggered by the server when finding, through statistics collection, that a quantity of presentation times of the media file meets a triggering condition; and
stopping, according to the end presentation command, performing the blocking operation on the processing of switching from the background state to the suspended state, and stopping, in the process of switching from the background state to the suspended state, covering the page screenshot by using the to-be-presented media file.

### Claim 9

A computing device, comprising one or more processors, a memory, and a plurality of computer readable instructions that, when executed by the one or more processors, cause the computing device to perform the following operations:
detecting a first user request to switch an inactive application client from a foreground state to a background state;
capturing a screenshot of a page presented by the application client in the foreground state before the application client is moved to the background state;
performing a blocking operation to suspend backup of data for the application client;
during the blocking operation, covering the page screenshot by presenting a media file;
subsequent to the blocking operation, resuming the backing up of data and causing the application client to enter the background state;
detecting a second user request to switch the application client from the background state to the foreground state;
in response to the second user request, covering the page screenshot by presenting the media file while restoring the application client using the data from the backup; and
replacing the media file with the application client in the foreground state.

### Claim 10 (depends on 9)

The computing device according to claim 9, wherein the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
after the application client is switched from the foreground state to the background state, performing a blocking operation of blocking, for first preset duration, a process of switching the application client from background state to the suspended state.

### Claim 11 (depends on 9)

The computing device according to claim 9, wherein the operations further comprise:
when the media file has been presented for second preset duration, entering a page that is presented when the application client is switched from the foreground state to the background state.

### Claim 12 (depends on 9)

The computing device according to claim 9, wherein the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
performing a blocking operation on a process in which an operating system switches the application client from the background state to the suspended state;
the covering a page screenshot by using a to-be-presented media file in the process of switching from the background state to the suspended state, the page screenshot being captured in a process of switching from a foreground state to the background state comprises:
covering the page screenshot by using the to-be-presented media file in the process in which the operating system switches the application client from the background state to the suspended state, the page screenshot being captured when the operating system switches the application client from the foreground state to the background state; and
the presenting the media file covering the page screenshot in a process of switching from the suspended state to the foreground state comprises:
presenting the media file covering the page screenshot when the operating system switches the application client from the suspended state to the foreground state.

### Claim 13 (depends on 9)

The computing device according to claim 9, wherein the operations further comprise:
receiving a media file and a corresponding configuration file that are delivered by a server and storing the media file and the configuration file; and
the presenting the media file covering the page screenshot comprises:
presenting the media file covering the page screenshot according to a presentation parameter in the stored configuration file.

### Claim 14 (depends on 13)

The computing device according to claim 13, wherein the configuration file comprises a media file presentation condition; and the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
detecting whether the media file presentation condition is met; and
performing the blocking operation on the process of switching from the background state to the suspended state when the media file presentation condition is met.

### Claim 15 (depends on 9)

The computing device according to claim 9, wherein before the performing a blocking operation on a process of switching from a background state to a suspended state, the operations further comprise:
checking, on startup, whether a startup item used for presenting a media file on startup exists;
loading, if the startup item exists, the media file specified by the startup item and presenting the media file; and
entering the foreground state when the loaded media file has been presented for preset duration.

### Claim 16 (depends on 9)

The computing device according to claim 9, wherein the operations further comprise:
receiving an end presentation command sent by a server, the end presentation command being triggered by the server when finding, through statistics collection, that a quantity of presentation times of the media file meets a triggering condition; and
stopping, according to the end presentation command, performing the blocking operation on the processing of switching from the background state to the suspended state, and stopping, in the process of switching from the background state to the suspended state, covering the page screenshot by using the to-be-presented media file.

### Claim 17

A non-transitory computer readable storage medium storing a plurality of computer readable instructions in connection with a computing device having one or more processors, wherein the plurality of computer readable instructions, when executed by the one or more processors, cause the computing device to perform the following operations:
detecting a first user request to switch an inactive application client from a foreground state to a background state;
capturing a screenshot of a page presented by the application client in the foreground state before the application client is moved to the background state;
performing a blocking operation to suspend backup of data for the application client;
during the blocking operation, covering the page screenshot by presenting a media file;
subsequent to the blocking operation, resuming the backing up of data and causing the application client to enter the background state;
detecting a second user request to switch the application client from the background state to the foreground state;
in response to the second user request, covering the page screenshot by presenting the media file while restoring the application client using the data from the backup; and
replacing the media file with the application client in the foreground state.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, wherein the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
after the application client is switched from the foreground state to the background state, performing a blocking operation of blocking, for first preset duration, a process of switching the application client from background state to the suspended state.

### Claim 19 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, wherein the operations further comprise:
when the media file has been presented for second preset duration, entering a page that is presented when the application client is switched from the foreground state to the background state.

### Claim 20 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, wherein the performing a blocking operation on a process of switching from a background state to a suspended state comprises:
performing a blocking operation on a process in which an operating system switches the application client from the background state to the suspended state;
the covering a page screenshot by using a to-be-presented media file in the process of switching from the background state to the suspended state, the page screenshot being captured in a process of switching from a foreground state to the background state comprises:
covering the page screenshot by using the to-be-presented media file in the process in which the operating system switches the application client from the background state to the suspended state, the page screenshot being captured when the operating system switches the application client from the foreground state to the background state; and
the presenting the media file covering the page screenshot in a process of switching from the suspended state to the foreground state comprises:
presenting the media file covering the page screenshot when the operating system switches the application client from the suspended state to the foreground state.
