# US 11,909,812 B2 · Application control method and apparatus, electronic device, and storage medium

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

- Number: US 11,909,812 B2
- Document ID: US11909812B2
- Status: Granted
- Kind: B2
- Application number: 18/212,090
- Filed: 2023-06-20
- Published: 2023-10-19
- Granted: 2024-02-20
- Earliest claimed: 2021-01-04
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Wei Zhang; Jie Fan
- Web page: https://patentgrep.com/patent/US11909812B2

## CPC

- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- G06F 9/449: {Object-oriented method invocation or resolution}
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- H04L 67/12: specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This application relates to an application control method performed by an electronic device that runs a native application and a sub-application nested in the native application. The method includes: receiving, by the native application, an object creation instruction transmitted by the sub-application; in response to the object creation instruction, creating, by the native application, a native object, wherein the native object is configured for performing operation on target multimedia content in the sub-application; receiving, by the native application, an object calling instruction transmitted by the sub-application; and in response to the object calling instruction, executing, by the native application, the native object and returning an execution result of the native project to the sub-application, wherein the sub-application is configured for performing corresponding operation on target multimedia content according to the execution result.

## Claims

### Claim 1

An application control method performed by an electronic device that runs a native application and a sub-application nested in the native application, the method comprising:
receiving, by the native application, an object creation instruction transmitted by the sub-application;
in response to the object creation instruction, creating, by the native application, a native object, wherein the native object is configured for performing operation on target multimedia content in the sub-application;
receiving, by the native application, an object calling instruction transmitted by the sub-application; and
in response to the object calling instruction, executing, by the native application, the native object and returning an execution result of the native project to the sub-application, wherein the sub-application is configured for performing corresponding operation on target multimedia content according to the execution result;
wherein the creating, by the native application, a native object comprises:
selecting a target API to be called to create the native object from a pre-configured application programming interface API set, wherein APIs in the API set are associated with audio and video editing capability of the sub-application; and
calling the target API to create the native object.

### Claim 2 (depends on 1)

The method according to claim 1, wherein after creating the native object and before receiving the object calling instruction transmitted by the sub-application, the method further comprises:
returning, by the native application, object information obtained by creating the native object to the sub-application;
determining, by the sub-application, the native object created by the native application based on the object information; and
transmitting the object calling instruction according to the object information.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the object information comprises the internal memory address and the class name; the object calling instruction carries the internal memory address and the class name;
the executing, by the native application, the native object comprises:
determining the internal memory allocated to the native object according to the internal memory address, and determining the type of the native object according to the class name; and
indexing the internal memory allocated to the native object through the pointer, and calling the native object according to the type of the native object.

### Claim 4 (depends on 1)

The method according to claim 1, wherein after creating the native object, the method further comprises:
storing the native object by a global data dictionary so as to keep the calling of the sub-application to the native object.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the sub-application transmits the object creation instruction after detecting an operation request for the target multimedia content.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the sub-application transmits the object calling instruction after determining that the native object is created by the native application.

### Claim 7

An electronic device that runs a native application and a sub-application nested in the native application, comprising a processor and a memory, the memory storing program code, the program code, when executed by the processor, causing the electronic device to perform an application control method including:
receiving, by the native application, an object creation instruction transmitted by the sub-application;
in response to the object creation instruction, creating, by the native application, a native object, wherein the native object is configured for performing operation on target multimedia content in the sub-application;
receiving, by the native application, an object calling instruction transmitted by the sub-application; and
in response to the object calling instruction, executing, by the native application, the native object and returning an execution result of the native project to the sub-application, wherein the sub-application is configured for performing corresponding operation on target multimedia content according to the execution result;
wherein the creating, by the native application, a native object comprises:
selecting a target API to be called to create the native object from a pre-configured application programming interface API set, wherein APIs in the API set are associated with audio and video editing capability of the sub-application; and
calling the target API to create the native object.

### Claim 8 (depends on 7)

The electronic device according to claim 7, wherein after creating the native object and before receiving the object calling instruction transmitted by the sub-application, the method further comprises:
returning, by the native application, object information obtained by creating the native object to the sub-application;
determining, by the sub-application, the native object created by the native application based on the object information; and
transmitting the object calling instruction according to the object information.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein the object information comprises the internal memory address and the class name; the object calling instruction carries the internal memory address and the class name;
the executing, by the native application, the native object comprises:
determining the internal memory allocated to the native object according to the internal memory address, and determining the type of the native object according to the class name; and
indexing the internal memory allocated to the native object through the pointer, and calling the native object according to the type of the native object.

### Claim 10 (depends on 7)

The electronic device according to claim 7, wherein after creating the native object, the method further comprises:
storing the native object by a global data dictionary so as to keep the calling of the sub-application to the native object.

### Claim 11 (depends on 7)

The electronic device according to claim 7, wherein the sub-application transmits the object creation instruction after detecting an operation request for the target multimedia content.

### Claim 12 (depends on 7)

The electronic device according to claim 7, wherein the sub-application transmits the object calling instruction after determining that the native object is created by the native application.

### Claim 13

A non-transitory computer-readable storage medium, comprising program code, the program code, when executed by a processor of an electronic device that runs a native application and a sub-application nested in the native application, causing the electronic device to perform an application control method including:
receiving, by the native application, an object creation instruction transmitted by the sub-application;
in response to the object creation instruction, creating, by the native application, a native object, wherein the native object is configured for performing operation on target multimedia content in the sub-application;
receiving, by the native application, an object calling instruction transmitted by the sub-application; and
in response to the object calling instruction, executing, by the native application, the native object and returning an execution result of the native project to the sub-application, wherein the sub-application is configured for performing corresponding operation on target multimedia content according to the execution result;
wherein the creating, by the native application, a native object comprises:
selecting a target API to be called to create the native object from a pre-configured application programming interface API set, wherein APIs in the API set are associated with audio and video editing capability of the sub-application; and
calling the target API to create the native object.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, wherein after creating the native object and before receiving the object calling instruction transmitted by the sub-application, the method further comprises:
returning, by the native application, object information obtained by creating the native object to the sub-application;
determining, by the sub-application, the native object created by the native application based on the object information; and
transmitting the object calling instruction according to the object information.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium according to claim 14, wherein the object information comprises the internal memory address and the class name; the object calling instruction carries the internal memory address and the class name;
the executing, by the native application, the native object comprises:
determining the internal memory allocated to the native object according to the internal memory address, and determining the type of the native object according to the class name; and
indexing the internal memory allocated to the native object through the pointer, and calling the native object according to the type of the native object.

### Claim 16 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, wherein after creating the native object, the method further comprises:
storing the native object by a global data dictionary so as to keep the calling of the sub-application to the native object.

### Claim 17 (depends on 13)

The non-transitory computer-readable storage medium according to claim 13, wherein the sub-application transmits the object creation instruction after detecting an operation request for the target multimedia content.
