CN113391854A - Communication method and device for host application program and applet - Google Patents

Communication method and device for host application program and applet Download PDF

Info

Publication number
CN113391854A
CN113391854A CN202110668144.4A CN202110668144A CN113391854A CN 113391854 A CN113391854 A CN 113391854A CN 202110668144 A CN202110668144 A CN 202110668144A CN 113391854 A CN113391854 A CN 113391854A
Authority
CN
China
Prior art keywords
applet
target
file
area
container
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
CN202110668144.4A
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.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202110668144.4A priority Critical patent/CN113391854A/en
Publication of CN113391854A publication Critical patent/CN113391854A/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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] 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
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] 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 using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] 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
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/451Execution arrangements for user interfaces
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a communication method and a communication device of a host application program and an applet, which can determine a target applet matched with a target file, wherein the current playing area of the target file is a first area in an interface, the target applet is started through an applet container, the display area of the target applet is a setting area of the applet container, namely a second area in the interface, the current playing area of the target file is adjusted to a third area when the applet container is started, the third area and the second area are not overlapped and are both positioned in the first area, the applet container is communicated with the target applet, and communication information is related to the target file. The invention can open the file content of the target file to the target applet under the condition of keeping the playing and displaying of the target file by the host application program, so that the target applet can search and display the associated recommended content, the flexibility of the target applet and the richness of the service function are enhanced, and the user stickiness is improved.

Description

Communication method and device for host application program and applet
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and a related apparatus for communication between a host application and an applet.
Background
With the development of computer technology, the application technology of small programs is continuously improved, and the application scenes of the small programs are continuously enriched.
Among them, the applet is a computer program that can be used by merely being hosted in an application program without being downloaded and installed. The development and application of the small programs can release the memory of the electronic equipment, and the simplicity of the desktop of the electronic equipment is facilitated. The small program mainly aims to realize self service when running.
However, there is less interaction between the host application and the applet.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for communication between a host application and an applet, which overcome or at least partially solve the above problems, and the technical solution is as follows:
a method of communication between a host application and an applet, comprising:
when a target file is played, determining first file information of the target file, wherein the current playing area of the target file is a first area in an interface;
determining a target applet matched with the first file information;
responding to the starting operation of the target small program, starting the target small program through a small program container, wherein the display area of the target small program is the setting area of the small program container, and the setting area is the second area in the interface;
when the applet container is started, adjusting a current playing area of the target file to be a third area, wherein the third area and the second area are not overlapped, and the second area and the third area are both located in the first area;
and communicating with the target applet through the applet container, wherein the communication information transmitted in the process of communicating with the target applet is related to the target file.
Optionally, the first file information includes: file title, subject, character and/or play duration; the determining the target applet matching the first file information includes:
inputting the first file information into an applet recommending algorithm;
and acquiring the applet output by the applet recommending algorithm, and determining the applet output by the applet recommending algorithm as the target applet matched with the first file information.
Optionally, after the determining the target applet matching the first file information, the method further includes:
displaying an icon of the target applet;
the starting the target applet through an applet container in response to the starting operation on the target applet comprises:
and responding to the triggering operation of the icon, and starting the target applet through the applet container.
Optionally, the starting the target applet by the applet container includes:
obtaining a network request address matched with the program identifier of the target applet;
sending the program identifier and the network request address to the applet container so that the applet container opens a default page of the target applet in the second area, wherein the default page is opened after the applet container loads the target applet, the target applet is obtained by decompressing a program package of the target applet by the applet container, and the program package is downloaded by the applet container according to the program identifier and the network request address.
Optionally, when the communication information is the file identifier of the target file, the communicating with the target applet includes:
and sending the file identifier to the target applet so that the target applet shows recommended content associated with target file information in the second area, wherein the target file information is obtained by the target applet from a file server according to the file identifier.
Optionally, when the communication information is the key file content of the target file on the timeline, the communicating with the target applet includes:
sending the key file content to the target applet to cause the target applet to present recommended content associated with the key file content in the second area.
Optionally, when the communication information is an applet instruction, the communicating with the target applet includes:
receiving the applet command sent by the target applet;
and controlling the playing process of the target file according to the small program instruction.
A host application and applet communication device, comprising: first determining unit, second determining unit, start unit, adjustment unit and communication unit, wherein:
the first determination unit is configured to perform: when a target file is played, determining first file information of the target file, wherein the current playing area of the target file is a first area in an interface;
the second determination unit configured to perform: determining a target applet matched with the first file information;
the starting unit is configured to execute: responding to the starting operation of the target small program, starting the target small program through a small program container, wherein the display area of the target small program is the setting area of the small program container, and the setting area is the second area in the interface;
the adjustment unit is configured to perform: when the applet container is started, adjusting a current playing area of the target file to be a third area, wherein the third area and the second area are not overlapped, and the second area and the third area are both located in the first area;
the communication unit configured to perform: and communicating with the target applet through the applet container, wherein the communication information transmitted in the process of communicating with the target applet is related to the target file.
Optionally, the first file information includes: file title, subject, character and/or play duration; the second determination unit includes: an input unit, a first obtaining unit, and a third determining unit, wherein:
the input unit configured to perform: inputting the first file information into an applet recommending algorithm;
the first obtaining unit is configured to perform: acquiring an applet output by the applet recommending algorithm;
the third determination unit is configured to perform: and determining the small program output by the small program recommendation algorithm as the target small program matched with the first file information.
Optionally, the apparatus further comprises: a display unit;
the presentation unit is configured to perform: after the target small program matched with the first file information is determined, displaying an icon of the target small program;
the starting unit is configured to execute: and responding to the triggering operation of the icon, and starting the target applet through the applet container.
Optionally, the starting unit includes: a second obtaining unit and a transmitting unit, wherein:
the second obtaining unit is configured to perform: responding to the triggering operation of the icon, and obtaining a network request address matched with the program identifier of the target applet;
the transmitting unit is configured to perform: sending the program identifier and the network request address to the applet container so that the applet container opens a default page of the target applet in the second area, wherein the default page is opened after the applet container loads the target applet, the target applet is obtained by decompressing a program package of the target applet by the applet container, and the program package is downloaded by the applet container according to the program identifier and the network request address.
Optionally, when the communication information is the file identifier of the target file, the communication unit is configured to perform:
and sending the file identifier to the target applet through the applet container so that the target applet shows recommended content associated with target file information in the second area, wherein the target file information is obtained by the target applet from a file server according to the file identifier.
Optionally, when the communication information is the key file content of the target file on the timeline, the communication unit is configured to perform:
sending the key file content to the target applet through the applet container so that the target applet presents recommended content associated with the key file content in the second area.
Optionally, when the communication information is an applet instruction, the communication unit includes: a receiving unit and a control unit;
the receiving unit is configured to perform: receiving, by the applet container, the applet instructions sent by the target applet;
the control unit is configured to execute: and controlling the playing process of the target file according to the small program instruction.
The communication method and apparatus between the host application and the applet provided in this embodiment can perform, when playing the target file, determining first file information of a target file, wherein a current playing area of the target file is a first area in an interface, determining a target applet matched with the first file information, responding to a starting operation of the target applet, starting the target small program through the small program container, wherein the display area of the target small program is the setting area of the small program container, the setting area is the second area in the interface, when the small program container is started, the current playing area of the target file is adjusted to be a third area, the third area and the second area are not overlapped, the second area and the third area are both positioned in the first area and are communicated with the target small program through the small program container, wherein the communication information transmitted during communication with the target applet is related to the target file.
The invention can determine the matched target small program according to the file information of the target file played by the host application program, start the target small program in the second area of the interface through the small program container, and reserve the third area in the interface so that the host application program can continue to play the target file and display the file content of the target file, and simultaneously display the playing content of the target file and the recommended content of the small program, thereby effectively improving the display efficiency and the display effect, providing better service for users, realizing the communication between the host application program and the target small program after the target small program is started, sending the file content related to the operation and service scenes of the host application program to the target small program, opening the file content of the target file to the target small program, and enabling the target small program to search and display the related recommended content, the method provides better service for the user, can improve the content display efficiency and precision of the target small program, enhances the flexibility of the target small program and the richness of service functions, and improves the user stickiness.
The foregoing description is only an overview of the technical solutions of the present invention, and the following detailed description of the present invention is provided to enable the technical means of the present invention to be more clearly understood, and to enable the above and other objects, features, and advantages of the present invention to be more clearly understood.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first method for communication between a host application and an applet, according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a second method for communication between a host application and an applet, according to an embodiment of the present invention;
FIG. 3 illustrates an interface provided by an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a fifth method for communication between a host application and an applet, according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a sixth method for communication between a host application and an applet, according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a first host application and applet communication device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second communication device between a host application and an applet according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in fig. 1, the present embodiment proposes a first communication method between a host application and an applet, which may include the following steps:
s101, when a target file is played, determining first file information of the target file, wherein the current playing area of the target file is a first area in an interface;
it should be noted that the present invention can be applied to a host application.
The present invention is not limited to the program type of the host application. For example, the host application may be a video playing application, a video live application, a music playing application, a weather forecast application, or a car navigation application.
The target file may be a video file, an audio file, a picture file, or a document file, and the file type of the target file is not limited in the present invention.
It should be noted that the host application may use a player matching the target file to play the target file. For example, when the target file is a video file, the host application may use a video player to play the target file; when the target file is an audio file, the host application program can play the target file by using an audio player; when the target file is a picture file, the host application program can play the target file by using a picture player.
The first file information may include basic file information and content information of the target file. The basic file information may include a file title, a file type, a file author, a file source, a file obtaining time, a data amount, and the like. The content information may include file content of the target file.
It should be noted that, the file information or the content specifically included in the first file information may be adjusted and set by a technician according to actual needs, and the present invention is not limited to this.
The interface may be a presentation interface on the electronic device where the host application is installed. The electronic device may be a mobile phone, a tablet computer or a desktop computer, and the specific type of the electronic device is not limited in the present invention.
The first region may be all regions in the interface or may be a partial region in the interface, which is not limited in the present invention.
Specifically, the host application may determine first file information of the target file when the target file is played in the first area of the interface.
S102, determining a target small program matched with the first file information;
it should be noted that the present invention is not limited to the type of the target applet. For example, the target applet may be an e-commerce type application, a game type application, and an information type application.
Optionally, after the first file information of the target file is determined, the target applet matched with the first file information can be searched from a preset applet list.
The applet list may include one or more applets and introduction information for each applet. The introduction information may include attributes, functions, presentation contents, service ranges, and the like of the applet. It should be noted that the applets in the applet list may be developed and deployed online by a third party developer through an applet development specification.
Specifically, the invention can search the target introduction information matched with the first file information from the introduction information recorded in the applet list for each applet, and then determine the applet corresponding to the target introduction information as the target applet. For example, when the target file is a video file and the first file information is a file title of the target file, "manufacturing process of cup", target introduction information related to "manufacturing process of cup" may be searched from the applet list, and if the introduction information is found to record an e-commerce applet that "sells cups", the searched e-commerce applet may be determined as the target applet.
It should be noted that the present invention can determine a target applet or a plurality of target applets that match the first file information.
Optionally, as shown in fig. 2, in the second communication method between a host application and an applet, the first file information may include: file title, subject, character and/or play duration; at this time, step S102 may specifically include: steps S201, S202, and S203, wherein:
s201, inputting first file information into an applet recommending algorithm;
the method and the device can input the first file information of the target file into the applet recommendation algorithm after determining the first file information.
S202, acquiring an applet output by an applet recommendation algorithm;
specifically, the method and the device can obtain the applet which is output by the applet recommending algorithm and matched with the first file information after the first file information is input to the applet recommending algorithm.
Optionally, after receiving the first file information, the applet recommending algorithm may recommend an applet according to the first file information, and output an applet matched with the first file information.
Optionally, after receiving the first file information, the applet recommendation algorithm may perform applet recommendation according to attributes of the applet, the first file information, and feature data of three dimensions of the user, and output a recommended applet that is matched with the first file information. For example, when the target file is a video file, the first file information is a picture containing a cup at a certain time point in the target file, and the user has a shopping tendency, the applet recommending algorithm can output the e-commerce applet capable of purchasing the cup to the user after receiving the first file information.
And S203, determining the small program output by the small program recommendation algorithm as the target small program matched with the first file information.
Specifically, the invention can determine the applet recommended by the applet recommendation algorithm as the target applet.
It should be noted that, in the present invention, the applet recommendation algorithm is used to determine the target applet, which can reduce the amount of calculation required by the host application program itself when determining the target applet, reduce the burden of the host application program, and improve the work efficiency of the host application program.
Compared with the mode of determining the target applet by using the applet recommendation algorithm, the mode of searching the target applet in the applet list by the host application program according to the first file information can reduce the dependency on the applet recommendation algorithm and reduce the data storage amount of the applet recommendation algorithm without calling the applet recommendation algorithm.
It should be noted that the applet recommendation algorithm may output one or more target applets that match the first file information.
S103, responding to the starting operation of the target small program, starting the target small program through the small program container, wherein the display area of the target small program is the setting area of the small program container, and the setting area of the small program container is the second area in the interface;
wherein, the applet container is software which can be used for realizing the communication between the host application program and the target applet program. In particular, the applet container may be a custom webview for loading the rendering applet, and communication between the host application and the target applet may be achieved by integrating the functionality of one or more Software Development Kits (SDKs).
Wherein the applet container may be disposed in a second region of the interface. The second region may be a partial region of the first region, i.e. the second region may be within the first region.
Specifically, after the target applet is determined, the target applet can be displayed in the interface (for example, an icon of the target applet is displayed), and a user waits for inputting a starting instruction of the target applet.
Specifically, the invention can respond to the starting operation of the target applet by the user when the user starts the target applet, trigger the applet container to initialize and start running, and instruct the applet container to start the target applet.
The starting operation may include a touch screen clicking operation (for example, clicking an icon of the target applet to start the target applet), a voice command (a starting instruction of the target applet input by the user voice), and the like, which is not limited in the present invention.
When the applet container starts the target applet, the applet container can start the target applet in a second area, which is a setting area of the applet container in the interface. It should be noted that the target applet may display the content in the second area after starting.
S104, when the applet container is started, adjusting the current playing area of the target file to be a third area, wherein the third area and the second area are not overlapped, and the second area and the third area are both located in the first area;
wherein the third region and the second region may be two regions of the first region that do not overlap. Alternatively, the first area may be divided into a third area and a second area. In one interface shown in fig. 3, the first region may be the entire region in the interface, and the first region may be divided into a third region and a second region, the third region being located in the upper half of the first region, and the second region being located in the lower half of the first region.
Wherein the applet container can be launched in the second area. The invention can adjust the playing area of the target file to the partial area of the first area except the second area, namely the third area when the small program is started in the second area.
It should be noted that, according to the positions and the areas of the second area and the third area in the first area, the present invention may set corresponding display modes for the user to select. For example, a first display mode may be as shown in fig. 3, and the second area and the third area may be in the lower half and the upper half of the first area, respectively.
It will be appreciated that upon initiation of the target applet, the host application may play the target file in the third region and the target applet may present the recommended content associated with the target file in the second region. For example, when the target applet is an e-commerce application, the target file is a video file, and a picture containing a cup appears at a certain time point in the target file, the target applet can display an advertisement video of the cup and a corresponding purchase link in a setting area of the applet container, provide a high-quality service for a user, and increase user stickiness.
It should be noted that, in the prior art, if the applet is started in the process of playing the file by the host application, the interface may leave the page of the file played by the host application and completely display the page of the started applet, which may cause that the host application cannot continue to display the playing content of the file, that is, may not continue to play the file. The invention can keep playing the target file and displaying the file content of the target file in one part of area, namely the third area, in the interface after the target applet is started, and display the display page after the applet is started in the other part of area, namely the second area, in the interface, so that the playing content of the target file and the recommended content of the applet can be displayed simultaneously, the display efficiency and the display effect are effectively improved, and better service is provided for users.
And S105, communicating with the target small program through the small program container, wherein the communication information transmitted in the process of communicating with the target small program is related to the target file.
It should be noted that, after the target applet is started, the host application may send communication information related to the target file (for example, first file information of the target file) to the target applet through the applet container, and the target applet may also send communication information related to the target file (for example, a play control instruction for the target file) to the host application through the applet container.
When the target applet receives communication information related to the target file sent by the host application program, such as first file information of the target file, the target applet can search for associated recommended content according to the communication information and can display the recommended content in the second area. For example, when the target applet is an e-commerce application, the target file is a video file, and a picture containing a cup appears at a certain time point in the target file, the target applet may display an advertisement video of the cup and a corresponding purchase link in a setup area of the applet container. According to the method and the system, the file content related to the operation and service scene of the host application program is sent to the target small program in real time, and the file content of the target file is opened to the target small program, so that the target small program can search and display the associated recommended content, a better service is provided for a user, the content display efficiency and accuracy of the target small program can be improved, the flexibility of the target small program and the richness of service functions are enhanced, and the user stickiness is improved.
After receiving the communication information sent by the host application program, the target applet may return corresponding communication information, such as a play control instruction for the target file, to the host application program. When the host application program receives the communication information related to the target file sent by the target applet, the playing process of the target file can be controlled according to the communication information, so that the playing process of the target file can be matched with the display content of the target applet, the display content of the target applet can provide better service for a user, the content display efficiency and accuracy are improved, and the flexibility of the target applet and the richness of service functions are enhanced. It will be appreciated that the target applet may also send a communication, such as a play control command for the target file, to the host application before receiving the communication sent by the host application.
The communication method between the host application and the applet, which is proposed in this embodiment, can perform the following steps when playing the target file, determining first file information of a target file, wherein a current playing area of the target file is a first area in an interface, determining a target applet matched with the first file information, responding to a starting operation of the target applet, starting the target applet through the applet container, wherein the display area of the target applet is the setting area of the applet container, the setting area of the applet container is the second area in the interface, when the small program container is started, the current playing area of the target file is adjusted to be a third area, the third area and the second area are not overlapped, the second area and the third area are both positioned in the first area and are communicated with the target small program through the small program container, wherein the communication information transmitted during communication with the target applet is related to the target file. The invention can determine the matched target small program according to the file information of the target file played by the host application program, start the target small program in the second area of the interface through the small program container, and reserve the third area in the interface so that the host application program can continue to play the target file and display the file content of the target file, and simultaneously display the playing content of the target file and the recommended content of the small program, thereby effectively improving the display efficiency and the display effect, providing better service for users, realizing the communication between the host application program and the target small program after the target small program is started, opening the file content of the target file to the target small program, enabling the target small program to search and display the associated recommended content, providing better service for users, and improving the content display efficiency and accuracy of the target small program, the flexibility of the target small program and the richness of the service function are enhanced, and the user viscosity is improved.
Based on the steps shown in fig. 1, the present embodiment proposes a third method for communication between the host application and the applet. The method may further include step S301 after step S102. Wherein:
s301, displaying an icon of the target applet;
after determining the target applet, the host application program may search the icon of the target applet from the icons of the plurality of applets stored in advance according to the program identifier of the target applet, or may download the icon of the target applet from the server according to the program identifier of the target applet.
Specifically, the host application may find the network request address of the target applet in the prestored applet list according to the program identifier of the target applet, add the network request address to the icon of the target applet, and display the network request address in the setting area of the applet container. The applet list may store the program identifier and the network request address of the applet.
At this time, in this method, step S103 shown in fig. 1 may be embodied as step S302. Wherein:
and S302, responding to the trigger operation of the icon of the target small program, and starting the target small program through the small program container.
In particular, the host application may open the target applet through the applet container in response to a user-triggered operation (e.g., clicking on an icon) on the icon of the target applet.
Optionally, in the fourth method for communication between a host application and an applet provided in this embodiment, step S302 may include steps S401 and S402, where:
s401, responding to the trigger operation of the icon of the target small program, and acquiring a network request address matched with the program identifier of the target small program;
s402, sending the program identifier and the network request address to the small program container so that the small program container opens a default page of the target small program in the second area, wherein the default page is opened after the small program container loads the target small program, the target small program is obtained by decompressing a program package of the target small program by the small program container, and the program package is downloaded by the small program container according to the program identifier and the network request address.
Specifically, the host application may obtain a corresponding network request address from the icon of the target applet in response to a trigger operation of the user on the icon of the target applet, and send the program identifier and the network request address of the target applet to the applet container.
The applet container can perform data initialization after receiving the program identifier and the network request address of the target applet, and can download the packaged program package of the target applet from the server according to the program identifier and the network request address of the target applet, and then decompress the program package of the target applet to obtain the decompressed program package. Then, the applet container may search the start file and the default start page of the target applet, i.e., the default page, in the decompressed program package, load the start file, and open the target applet and render the default start page in a setting area of the applet container in the interface.
It should be noted that, the invention starts the applet through the applet container, which can reduce the complexity of the host application program, reduce the running load and the calculation amount of the host application program, and improve the working efficiency of the host application program.
It is understood that the specific implementation process of starting the target applet by the applet container described in the above steps S401 and S402 is also applicable to step S103 shown in fig. 1.
The communication method between the host application program and the applet, which is provided by the embodiment, can start the applet through the applet container, reduce the complexity of the host application program, reduce the operation load and the calculation amount of the host application program, and improve the work efficiency of the host application program.
Based on the steps shown in fig. 1, as shown in fig. 4, the present embodiment proposes a fifth communication method between the host application and the applet. In the method, when the communication information transmitted during the communication between the host application and the target applet is the file identifier of the target file, step S105 may include S501, where:
s501, sending the file identifier of the target file to the target applet through the applet container so that the target applet can display the recommended content associated with the target file information in the second area, wherein the target file information is obtained by the target applet from the file server according to the file identifier of the target file.
The invention can send the file identification of the currently played target file in the interface to the small program container after the target small program is started, and then the small program container sends the file identification of the target file to the target small program.
Specifically, the applet container may obtain a file identifier of a target file sent by the host application program through the sdk.
Specifically, after receiving the file identifier of the target file, the target applet may send an information request to the file server, where the information request carries the file identifier of the target file. After receiving the information request, the file server may search for file information of a pre-stored target file, that is, target file information, according to the file identifier of the target file, and return the searched target file information to the target applet.
The target file information may be file information of the target file, and may include basic file information and content information of the target file.
It is understood that the target file information stored in the target server may be previously created by a technician based on the target file.
Specifically, after receiving the target file information, the target applet may display recommended content associated with the target file information in a setting area of the applet container in the interface.
It should be noted that, in the present invention, the applet container may send the file identifier of the target file to the target applet, and the target applet obtains the target file information from the file server according to the file identifier of the target file, and the host application program does not need to execute the process of obtaining the target file information, so that the running load and the calculation amount of the host application program may be reduced, the work efficiency of the host application program may be improved, and the recommended content of the target applet may be displayed in the setting area of the applet container while the host application program is kept playing and displaying the target file.
According to the communication method between the host application program and the small program, the small program container can be used for sending the file identifier of the target file to the target small program, the target small program obtains the target file information from the file server according to the file identifier of the target file, the host application program is not required to execute the process of obtaining the target file information, the running load and the calculation amount of the host application program can be reduced, the working efficiency of the host application program is improved, and the recommended content of the target small program can be displayed in the setting area of the small program container under the condition that the host application program is kept playing and displaying the target file.
Based on the steps shown in fig. 1, as shown in fig. 5, the present embodiment proposes a sixth communication method between the host application and the applet. In the method, when the communication information transmitted during the communication between the host application and the target applet is the key file content of the target file on the timeline, step S105 may include S601, where:
s601, sending the key file content of the target file on the timeline to the target small program through the small program container, so that the target small program displays the recommended content associated with the key file content in the second area.
The key file content may be previously created by a technician according to the target file. At this time, the invention can send the key file content to the target applet through the applet container before playing the key file content, so that the target applet can have sufficient time to search the associated recommended content, thereby improving the effectiveness and accuracy of content recommendation.
The invention can also synchronize the key file content on the time line to the target small program through the small program container at corresponding time in the process of playing the target file by using the player, so that the target small program can search the associated recommended content and display the recommended content in the setting area of the small program container according to the key file content in real time, and can respond to the currently-watched file content of the user in real time and recommend the recommended content associated with the currently-watched file content of the user under the condition of keeping the host application program playing and displaying the target file. According to the invention, the key file content of the target file on the timeline is opened to the target small program through the small program container, so that the flexibility of content recommendation of the target small program is improved, the effectiveness and the accuracy of content recommendation are improved, and the flexibility of the target small program and the richness of service functions are enhanced under the condition that the host application program is kept playing and displaying the target file.
Specifically, the applet container may listen to the callback through an event in the sdk.
Specifically, the applet container may also actively extract the key file content on the timeline by using technical means such as speech recognition and character recognition during the playing process of the target file.
According to the communication method between the host application program and the small program, the small program container is used for opening the key file content of the target file on the time line to the target small program, so that the flexibility of content recommendation of the target small program can be improved, the effectiveness and the accuracy of content recommendation can be improved, and the flexibility of the target small program and the richness of service functions can be enhanced under the condition that the host application program plays and displays the target file.
Based on the steps shown in fig. 1, the present embodiment proposes a seventh communication method between the host application and the applet. In the method, when the communication information transmitted during the communication between the host application and the target applet is an applet command, step S105 may include the following steps:
s701, receiving an applet command sent by a target applet through an applet container;
specifically, the host application may receive an applet instruction sent by the target applet through a call to the SDK integrated with the applet container. Of course, the target applet may also implement sending applet instructions to the host application by invoking the SDK.
The applet instructions may be control instructions for the playing process of the target file, such as pause playing instructions, fast forward playing instructions, and skip playing instructions.
And S702, controlling the playing process of the target file according to the small program instruction.
Specifically, the host application may perform corresponding control on the playing process of the target file after receiving the applet command. For example, when the applet command is a pause play command, the host application may control the target file to pause play after receiving the applet command; for another example, when the applet command is a fast forward play command, the host application can control the play speed of the target file to be increased; for another example, when the applet instruction is a jump play instruction, the host application may control the play progress of the target file to be a designated progress, and play the target file from the designated progress.
Optionally, after receiving the file information of the target file opened by the host application, the applet may send an applet instruction to the host application according to the associated recommended content and the file information, and control a playing process of the target file. For example, when the target applet can show the advertisement video of the cup for the user, the target applet can send a skip play instruction to the host application after obtaining the file information of the target file opened by the host application and knowing the time point of the cup appearing in the playing process of the target file, so that the host application controls the playing progress of the target file to be a designated progress and directly plays the content of the cup-related file in the target file, and at this time, the target applet can show the advertisement video of the cup for the user at the same time.
Optionally, the applet may also send an applet instruction to the host application program to control the playing process of the target file before receiving the file information of the target file opened by the host application program. For example, when the target applet can show the advertisement video of the cup for the user to buy, the target applet can send a jump play instruction to the host application program, so that the host application program can directly control the target file to jump to the position where the relevant file content of the cup appears for playing, and at the moment, the target applet can simultaneously show the advertisement video of the cup for the user to buy; for another example, when the target applet can show the advertisement video of purchasing a cup to the user, the target applet can send a pause playing instruction to the host application program, so that the host application program pauses the playing of the target file at a position where the file content of the cup appears in the played target file, and meanwhile, the target applet can show the advertisement video of purchasing a cup to the user, thereby improving the attention of the user to watching the recommended content.
It should be noted that, the present invention can open the control interface of the target file playing process, so that the target applet can send the applet command to the host application, and can implement communication between the host application and the target applet, implement interaction between the target applet and the target file, enrich the implementation function of the target applet, and improve the flexibility and content recommendation efficiency of the target applet, while keeping the host application playing and displaying the target file.
According to the communication method between the host application program and the applet, the target applet can send an applet instruction to the host application program under the condition that the host application program is kept playing and displaying the target file, the playing process of the target file is controlled, communication between the host application program and the target applet is achieved, interaction between the target applet and the target file is achieved, the achieving function of the target applet is enriched, and flexibility and content recommendation efficiency of the target applet are improved.
Based on the steps shown in fig. 1, as shown in fig. 6, the present embodiment proposes a communication device between a host application and an applet, which may include: a first determining unit 101, a second determining unit 102, a starting unit 103, an adjusting unit 104 and a communication unit 105, wherein:
a first determination unit 101 configured to perform: when the target file is played, determining first file information of the target file, wherein the current playing area of the target file is a first area in an interface;
it should be noted that the present invention can be applied to a host application.
The present invention is not limited to the program type of the host application.
The target file may be a video file, an audio file, a picture file, or a document file.
It should be noted that the host application may use a player matching the target file to play the target file.
The first file information may include basic file information and content information of the target file. The basic file information may include a file title, a file type, a file author, a file source, a file obtaining time, a data amount, and the like. The content information may include file content of the target file.
It should be noted that, the file information or the content specifically included in the first file information may be adjusted and set by a technician according to actual needs, and the present invention is not limited to this.
The interface may be a presentation interface on the electronic device where the host application is installed.
The first region may be all regions in the interface or may be a partial region in the interface, which is not limited in the present invention.
Specifically, the host application may determine first file information of the target file when the target file is played in the first area of the interface.
A second determining unit 102 configured to perform: determining a target applet matched with the first file information;
it should be noted that the present invention is not limited to the type of the target applet.
Optionally, after the first file information of the target file is determined, the target applet matched with the first file information can be searched from a preset applet list.
The applet list may include one or more applets and introduction information for each applet. The introduction information may include attributes, functions, presentation contents, service ranges, and the like of the applet. It should be noted that the applets in the applet list may be developed and deployed online by a third party developer through an applet development specification.
Specifically, the invention can search the target introduction information matched with the first file information from the introduction information recorded in the applet list for each applet, and then determine the applet corresponding to the target introduction information as the target applet.
Optionally, as shown in fig. 7, in the communication device between a host application and an applet according to the second embodiment of the present invention, the first file information may include: file title, subject, character and/or play duration; at this time, the second determining unit 102 includes: an input unit 201, a first obtaining unit 202, and a third determining unit 203, wherein:
an input unit 201 configured to perform: inputting the first file information into an applet recommending algorithm;
a first obtaining unit 202 configured to perform: acquiring an applet output by an applet recommendation algorithm;
a third determining unit 203 configured to perform: and determining the small program output by the small program recommendation algorithm as the target small program matched with the first file information.
The method and the device can input the first file information of the target file into the applet recommendation algorithm after determining the first file information.
Specifically, the method and the device can obtain the applet which is output by the applet recommending algorithm and matched with the first file information after the first file information is input to the applet recommending algorithm.
Optionally, after receiving the first file information, the applet recommending algorithm may recommend an applet according to the first file information, and output an applet matched with the first file information.
Optionally, after receiving the first file information, the applet recommendation algorithm may perform applet recommendation according to attributes of the applet, the first file information, and feature data of three dimensions of the user, and output a recommended applet that is matched with the first file information.
Specifically, the invention can determine the applet recommended by the applet recommendation algorithm as the target applet.
An activation unit 103 configured to perform: responding to the starting operation of the target small program, starting the target small program through the small program container, wherein the display area of the target small program is the setting area of the small program container, and the setting area is the second area in the interface;
wherein, the applet container is software which can be used for realizing the communication between the host application program and the target applet program. Specifically, the applet container may be a custom webview for loading the rendering applet, and communication between the host application and the target applet may be achieved by integrating the functionality of one or more SDKs.
Wherein the applet container may be disposed in a second region of the interface. The second region may be a partial region of the first region, i.e. the second region may be within the first region.
Specifically, the method and the device can display the target applet in the interface after the target applet is determined, and wait for the user to input a starting instruction for the target applet.
Specifically, the invention can respond to the starting operation of the target applet by the user when the user starts the target applet, trigger the applet container to initialize and start running, and instruct the applet container to start the target applet.
When the applet container starts the target applet, the applet container can start the target applet in a second area, which is a setting area of the applet container in the interface. It should be noted that the target applet may display the content in the second area after starting.
An adjustment unit 104 configured to perform: when the applet container is started, the current playing area of the target file is adjusted to be a third area, the third area and the second area are not overlapped, and the second area and the third area are both located in the first area;
wherein the third region and the second region may be two regions of the first region that do not overlap. Alternatively, the first area may be divided into a third area and a second area.
Wherein the applet container can be launched in the second area. The invention can adjust the playing area of the target file to the partial area of the first area except the second area, namely the third area when the small program is started in the second area.
It should be noted that, according to the positions and the areas of the second area and the third area in the first area, the present invention may set corresponding display modes for the user to select.
It will be appreciated that upon initiation of the target applet, the host application may play the target file in the third region and the target applet may present the recommended content associated with the target file in the second region.
It should be noted that, in the prior art, if the applet is started in the process of playing the file by the host application, the interface may leave the page of the file played by the host application and completely display the page of the started applet, which may cause that the host application cannot continue to display the playing content of the file, that is, may not continue to play the file. The invention can keep playing the target file and displaying the file content of the target file in one part of area, namely the third area, in the interface after the target applet is started, and display the display page after the applet is started in the other part of area, namely the second area, in the interface, so that the playing content of the target file and the recommended content of the applet can be displayed simultaneously, the display efficiency and the display effect are effectively improved, and better service is provided for users.
A communication unit 105 configured to perform: and communicating with the target applet through the applet container, wherein the communication information transmitted in the process of communicating with the target applet is related to the target file.
After the target applet is started, the host application may send communication information related to the target file to the target applet through the applet container, or the target applet may send communication information related to the target file to the host application through the applet container.
When the target applet receives communication information related to the target file sent by the host application program, such as first file information of the target file, the target applet can search for associated recommended content according to the communication information and can display the recommended content in the second area.
After receiving the communication information sent by the host application program, the target applet may return corresponding communication information, such as a play control instruction for the target file, to the host application program.
The communication device of the host application program and the applet, which is provided by the embodiment of the invention, can effectively improve the display efficiency and the display effect, provide better service for a user, then can realize the communication between the host application program and the target applet after the target applet is started, and open the file content of the target file to the target applet, so that the target applet can search and display the associated recommended content, provide better service for the user, improve the content display efficiency and the accuracy of the target applet, enhance the flexibility of the target applet and the richness of the service function, and improve the user viscosity.
Based on the schematic structure shown in fig. 6, the present embodiment provides a third host application and applet communication device. The apparatus may further include: a display unit;
a presentation unit configured to perform: after determining the target applet matched with the first file information, displaying an icon of the target applet;
after determining the target applet, the host application program may search the icon of the target applet from the icons of the plurality of applets stored in advance according to the program identifier of the target applet, or may download the icon of the target applet from the server according to the program identifier of the target applet.
Specifically, the host application may find the network request address of the target applet in the prestored applet list according to the program identifier of the target applet, add the network request address to the icon of the target applet, and display the network request address in the setting area of the applet container.
At this time, the starting unit 103 is configured to perform: and responding to the triggering operation of the icon, and starting the target applet through the applet container.
Specifically, the host application may open the target applet through the applet container in response to a user triggering operation on an icon of the target applet.
Optionally, in the communication device between the fourth host application and the applet provided in this embodiment, the starting unit 103 may include: a second obtaining unit and a transmitting unit, wherein:
a second obtaining unit configured to perform: responding to the triggering operation of the icon, and obtaining a network request address matched with the program identifier of the target applet;
a transmitting unit configured to perform: and sending the program identifier and the network request address to the small program container so that the small program container opens a default page of the target small program in the second area, wherein the default page is opened after the small program container loads the target small program, the target small program is obtained by decompressing a program package of the target small program by the small program container, and the program package is downloaded by the small program container according to the program identifier and the network request address.
It should be noted that, the invention starts the applet through the applet container, which can reduce the complexity of the host application program, reduce the running load and the calculation amount of the host application program, and improve the working efficiency of the host application program.
The communication device of the host application program and the applet provided by the embodiment can start the applet through the applet container, reduce the complexity of the host application program, reduce the operation load and the calculation amount of the host application program, and improve the working efficiency of the host application program.
Based on the schematic structural diagram shown in fig. 6, the present embodiment proposes a fifth host application and applet communication device. In the apparatus, when the communication information is a file identification of the target file, the communication unit 105 is configured to perform:
and sending the file identifier to the target applet through the applet container so that the target applet shows the recommended content associated with the target file information in the second area, wherein the target file information is obtained by the target applet from the file server according to the file identifier.
The invention can send the file identification of the currently played target file in the interface to the small program container after the target small program is started, and then the small program container sends the file identification of the target file to the target small program.
Specifically, the applet container may obtain a file identifier of a target file sent by the host application program through the sdk.
Specifically, after receiving the file identifier of the target file, the target applet may send an information request to the file server, where the information request carries the file identifier of the target file. After receiving the information request, the file server may search for file information of a pre-stored target file, that is, target file information, according to the file identifier of the target file, and return the searched target file information to the target applet.
The target file information may be file information of the target file, and may include basic file information and content information of the target file.
It is understood that the target file information stored in the target server may be previously created by a technician based on the target file.
Specifically, after receiving the target file information, the target applet may display recommended content associated with the target file information in a setting area of the applet container in the interface.
The communication device between the host application program and the applet, which is provided by this embodiment, may send the file identifier of the target file to the target applet through the applet container, and the target applet obtains the target file information from the file server according to the file identifier of the target file, without the host application program executing the process of obtaining the target file information, which may reduce the operation burden and the calculation amount of the host application program, improve the work efficiency of the host application program, and may display the recommended content of the target applet in the setting area of the applet container under the condition that the host application program is kept playing and displaying the target file.
Based on the schematic structural diagram shown in fig. 6, the present embodiment proposes a sixth host application and applet communication device. In the apparatus, when the communication information is a key file content of the target file on the timeline, the communication unit 105 is configured to perform:
and sending the key file content to the target applet through the applet container so that the target applet shows the recommended content associated with the key file content in the second area.
The key file content may be previously created by a technician according to the target file. At this time, the invention can send the key file content to the target applet through the applet container before playing the key file content, so that the target applet can have sufficient time to search the associated recommended content, thereby improving the effectiveness and accuracy of content recommendation.
Specifically, the applet container may listen to the callback through an event in the sdk.
Specifically, the applet container may also actively extract the key file content on the timeline by using technical means such as speech recognition and character recognition during the playing process of the target file.
According to the communication device of the host application program and the small program, the small program container is used for opening the key file content of the target file on the time line to the target small program, so that the flexibility of content recommendation of the target small program can be improved, the effectiveness and the accuracy of content recommendation can be improved, and the flexibility of the target small program and the richness of service functions can be enhanced under the condition that the host application program plays and displays the target file.
Based on the schematic structural diagram shown in fig. 6, the present embodiment proposes a seventh host application and applet communication device. In the apparatus, when the communication information is an applet instruction, the communication unit 105 includes: a receiving unit and a control unit;
a receiving unit configured to perform: receiving an applet instruction sent by a target applet through an applet container;
a control unit configured to perform: and controlling the playing process of the target file according to the small program instruction.
Specifically, the host application may receive an applet instruction sent by the target applet through a call to the SDK integrated with the applet container. Of course, the target applet may also implement sending applet instructions to the host application by invoking the SDK.
The applet instructions may be control instructions for the playing process of the target file, such as pause playing instructions, fast forward playing instructions, and skip playing instructions.
Specifically, the host application may perform corresponding control on the playing process of the target file after receiving the applet command.
It should be noted that, the present invention can open the control interface of the target file playing process, so that the target applet can send the applet command to the host application, and can implement communication between the host application and the target applet, implement interaction between the target applet and the target file, enrich the implementation function of the target applet, and improve the flexibility and content recommendation efficiency of the target applet, while keeping the host application playing and displaying the target file.
According to the communication device of the host application program and the applet, the target applet can send an applet instruction to the host application program under the condition that the host application program is kept playing and displaying the target file, the playing process of the target file is controlled, communication between the host application program and the target applet is achieved, interaction between the target applet and the target file is achieved, the achieving function of the target applet is enriched, and flexibility and content recommendation efficiency of the target applet are improved.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A method for communication between a host application and an applet, comprising:
when a target file is played, determining first file information of the target file, wherein the current playing area of the target file is a first area in an interface;
determining a target applet matched with the first file information;
responding to the starting operation of the target small program, starting the target small program through a small program container, wherein the display area of the target small program is the setting area of the small program container, and the setting area is the second area in the interface;
when the applet container is started, adjusting a current playing area of the target file to be a third area, wherein the third area and the second area are not overlapped, and the second area and the third area are both located in the first area;
and communicating with the target applet through the applet container, wherein the communication information transmitted in the process of communicating with the target applet is related to the target file.
2. The method according to claim 1, wherein the first file information includes: file title, subject, character and/or play duration; the determining the target applet matching the first file information includes:
inputting the first file information into an applet recommending algorithm;
and acquiring the applet output by the applet recommending algorithm, and determining the applet output by the applet recommending algorithm as the target applet matched with the first file information.
3. The method of claim 1, wherein after the determining the target applet that matches the first file information, the method further comprises:
displaying an icon of the target applet;
the starting the target applet through an applet container in response to the starting operation on the target applet comprises:
and responding to the triggering operation of the icon, and starting the target applet through the applet container.
4. The method of claim 3, wherein said launching the target applet via a applet container comprises:
obtaining a network request address matched with the program identifier of the target applet;
sending the program identifier and the network request address to the applet container so that the applet container opens a default page of the target applet in the second area, wherein the default page is opened after the applet container loads the target applet, the target applet is obtained by decompressing a program package of the target applet by the applet container, and the program package is downloaded by the applet container according to the program identifier and the network request address.
5. The method of claim 1, wherein when the communication information is a file identifier of the target file, the communicating with the target applet comprises:
and sending the file identifier to the target applet so that the target applet shows recommended content associated with target file information in the second area, wherein the target file information is obtained by the target applet from a file server according to the file identifier.
6. The method of claim 1, wherein when the communication information is key file content of the target file on a timeline, the communicating with the target applet comprises:
sending the key file content to the target applet to cause the target applet to present recommended content associated with the key file content in the second area.
7. The method of claim 1, wherein when the communication information is an applet command, the communicating with the target applet comprises:
receiving the applet command sent by the target applet;
and controlling the playing process of the target file according to the small program instruction.
8. A host application and applet communication device, comprising: first determining unit, second determining unit, start unit, adjustment unit and communication unit, wherein:
the first determination unit is configured to perform: when a target file is played, determining first file information of the target file, wherein the current playing area of the target file is a first area in an interface;
the second determination unit configured to perform: determining a target applet matched with the first file information;
the starting unit is configured to execute: responding to the starting operation of the target small program, starting the target small program through a small program container, wherein the display area of the target small program is the setting area of the small program container, and the setting area is the second area in the interface;
the adjustment unit is configured to perform: when the applet container is started, adjusting a current playing area of the target file to be a third area, wherein the third area and the second area are not overlapped, and the second area and the third area are both located in the first area;
the communication unit configured to perform: and communicating with the target applet through the applet container, wherein the communication information transmitted in the process of communicating with the target applet is related to the target file.
9. The apparatus of claim 8, wherein the first file information comprises: file title, subject, character and/or play duration; the second determination unit includes: an input unit, a first obtaining unit, and a third determining unit, wherein:
the input unit configured to perform: inputting the first file information into an applet recommending algorithm;
the first obtaining unit is configured to perform: acquiring an applet output by the applet recommending algorithm;
the third determination unit is configured to perform: and determining the small program output by the small program recommendation algorithm as the target small program matched with the first file information.
10. The apparatus of claim 8, further comprising: a display unit;
the presentation unit is configured to perform: after the target small program matched with the first file information is determined, displaying an icon of the target small program;
the starting unit is configured to execute: and responding to the triggering operation of the icon, and starting the target applet through the applet container.
CN202110668144.4A 2021-06-16 2021-06-16 Communication method and device for host application program and applet Pending CN113391854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110668144.4A CN113391854A (en) 2021-06-16 2021-06-16 Communication method and device for host application program and applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110668144.4A CN113391854A (en) 2021-06-16 2021-06-16 Communication method and device for host application program and applet

Publications (1)

Publication Number Publication Date
CN113391854A true CN113391854A (en) 2021-09-14

Family

ID=77621390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110668144.4A Pending CN113391854A (en) 2021-06-16 2021-06-16 Communication method and device for host application program and applet

Country Status (1)

Country Link
CN (1) CN113391854A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023178952A1 (en) * 2022-03-24 2023-09-28 中国银联股份有限公司 Method and apparatus for integrating native program with applet, and device and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319489A (en) * 2018-02-13 2018-07-24 广东欧珀移动通信有限公司 Startup method, apparatus, storage medium and the electronic equipment of five application page
CN110609714A (en) * 2019-07-31 2019-12-24 百度在线网络技术(北京)有限公司 Data prefetching method, device and equipment and storage medium
CN110888740A (en) * 2019-11-22 2020-03-17 腾讯科技(深圳)有限公司 Incremental memory determining method, device and equipment of small program and storage medium
CN111459598A (en) * 2020-04-02 2020-07-28 上海极链网络科技有限公司 Information display method and device, electronic equipment and storage medium
CN111782300A (en) * 2020-07-08 2020-10-16 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system
CN112416613A (en) * 2020-10-23 2021-02-26 腾讯科技(深圳)有限公司 Application data processing method, device, equipment and medium
CN112433788A (en) * 2020-11-23 2021-03-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium
CN112786034A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319489A (en) * 2018-02-13 2018-07-24 广东欧珀移动通信有限公司 Startup method, apparatus, storage medium and the electronic equipment of five application page
CN110609714A (en) * 2019-07-31 2019-12-24 百度在线网络技术(北京)有限公司 Data prefetching method, device and equipment and storage medium
CN112786034A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium
CN110888740A (en) * 2019-11-22 2020-03-17 腾讯科技(深圳)有限公司 Incremental memory determining method, device and equipment of small program and storage medium
CN111459598A (en) * 2020-04-02 2020-07-28 上海极链网络科技有限公司 Information display method and device, electronic equipment and storage medium
CN111782300A (en) * 2020-07-08 2020-10-16 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system
CN112416613A (en) * 2020-10-23 2021-02-26 腾讯科技(深圳)有限公司 Application data processing method, device, equipment and medium
CN112433788A (en) * 2020-11-23 2021-03-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023178952A1 (en) * 2022-03-24 2023-09-28 中国银联股份有限公司 Method and apparatus for integrating native program with applet, and device and medium

Similar Documents

Publication Publication Date Title
US9582246B2 (en) Voice-command suggestions based on computer context
US9489171B2 (en) Voice-command suggestions based on user identity
US20150256873A1 (en) Relayed voice control of devices
JP4074619B2 (en) Method of reproducing interactive content for standby mode in mobile communication terminal and mobile communication terminal using the same
CN110072138B (en) Video playing method, video playing equipment and computer readable storage medium
CN110354492A (en) A kind of game beginning method, apparatus, system, terminal and storage medium
CN112241397B (en) Sharing method and device of multimedia files, electronic equipment and readable storage medium
CN110139155A (en) Multi-medium play method and equipment and multimedia provision method and equipment
CN112817781A (en) Application program interaction method, device, equipment and medium
CN113347483A (en) Multimedia file display method and smart television
CN113391854A (en) Communication method and device for host application program and applet
KR100457663B1 (en) Method for playing interactive contents for standby mode in a mobile communication terminal, and a mobile communication terminal of the same
CN113382277A (en) Network live broadcast method, device and system
WO2024088316A1 (en) Interaction method and apparatus, and electronic device, storage medium and program product
CN105094576B (en) Application scenarios switching method and apparatus
CN105760377A (en) Information processing method and device
CN105426496B (en) Page display method and device, electronic equipment
CN112764846B (en) Interface display method and device, electronic equipment and storage medium
CN110209401A (en) The loading method and device of application program
JP7075513B2 (en) Computer programs, information processing equipment and information processing methods
CN111913761B (en) Plug-in processing method, device, equipment and storage medium for live channel
US20180262811A1 (en) Electronic device and electronic device operation method
CN107589987A (en) Software control method, device and computer-readable recording medium
CN112272309A (en) Object processing method, device, equipment and storage medium
JP2005277783A (en) Terminal device, server device, communication network system, control method for terminal device, for server device, and for communication network, program, and recording medium with the program recorded thereon

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210914

RJ01 Rejection of invention patent application after publication