CN111045749A - Application program starting method and device - Google Patents

Application program starting method and device Download PDF

Info

Publication number
CN111045749A
CN111045749A CN201911307685.3A CN201911307685A CN111045749A CN 111045749 A CN111045749 A CN 111045749A CN 201911307685 A CN201911307685 A CN 201911307685A CN 111045749 A CN111045749 A CN 111045749A
Authority
CN
China
Prior art keywords
application
browser
processing result
webpage
started
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.)
Granted
Application number
CN201911307685.3A
Other languages
Chinese (zh)
Other versions
CN111045749B (en
Inventor
张小涛
李帅
武兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201911307685.3A priority Critical patent/CN111045749B/en
Priority to PCT/CN2020/084202 priority patent/WO2021120459A1/en
Publication of CN111045749A publication Critical patent/CN111045749A/en
Application granted granted Critical
Publication of CN111045749B publication Critical patent/CN111045749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides an application program starting method and equipment, wherein the method comprises the steps that a browser receives a first starting request input by a user, and determines the address of a first webpage application to be started according to the first starting request; the browser inquires attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table; and the browser starts the first webpage application according to the attribute configuration information of the first webpage application. The embodiment of the invention can start a plurality of single-page Web applications in a single browser, thereby reducing the occupied memory space, saving the hardware cost, reducing the code maintenance work, improving the working efficiency and simultaneously reducing the labor cost.

Description

Application program starting method and device
Technical Field
The embodiment of the invention relates to the technical field of voice recognition, in particular to an application program starting method and device.
Background
In multimedia playing, multiple layers of contents are generally set, and an interface with rich contents is presented after the multiple layers of contents are fused, so that the requirement of a user on the increasing of video contents is met. Each layer of content may require one or more single page Web page (Web) applications to provide. A single-page Web application is an application that has only one Web page as a portal and does not reload pages during running in a browser.
In the prior art, a browser (e.g., a Cobalt browser) is usually implemented by docking a core of the browser with specific hardware on a bottom layer through a docking layer of the browser, and a Window Interface layer (Window API) in the docking layer of the Cobalt browser is implemented to create a Window with a single attribute, that is, a single browser can only start a single page Web application. If a plurality of single-page Web applications in a plurality of layers are to be started, a plurality of independent programs are needed to be started for realization.
However, if each single-page Web application occupies one independent program, starting multiple independent programs to realize multiple single-page Web applications needs to occupy more memory, which increases hardware cost. And each single-page Web application needs to be maintained independently from the code perspective, so that the working efficiency is reduced, and the labor cost is increased.
Disclosure of Invention
The embodiment of the invention provides an application program starting method and device, which aim to improve the working efficiency and reduce the cost.
In a first aspect, an embodiment of the present invention provides an application program starting method, including:
the method comprises the steps that a browser receives a first starting request input by a user, and the address of a first webpage application to be started is determined according to the first starting request;
the browser inquires attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table;
and the browser starts the first webpage application according to the attribute configuration information of the first webpage application.
In one possible design, each web application to be started comprises a user interface application; before the browser receives a first start request input by a user, the method further comprises the following steps:
and after the browser is started, inquiring attribute configuration information of the user interface application in a mapping table, and starting the user interface application according to the attribute configuration information of the user interface application.
In one possible design, after the browser starts the first web application according to the attribute configuration information of the first web application, the method further includes:
and the browser updates the currently applied record information according to the address of the first webpage application.
In one possible design, after the browser starts the first web application according to the attribute configuration information of the first web application, the method further includes:
a key management module of the browser receives first key information sent by an application manager;
the key management module of the browser sends the first key information to the user interface application so that the user interface application processes the first key information to obtain a first processing result and returns the first processing result;
the key management module of the browser receives the first processing result and judges the first processing result;
and if the first processing result is that the first key information is executed, returning the first processing result to the application manager.
In a possible design, after the key management module of the browser receives the first processing result and determines the first processing result, the method further includes:
if the first key information is not executed, the key management module of the browser sends the first key information to the current application so that the current application processes the first key information to obtain a second processing result and returns the second processing result;
the key management module of the browser receives the second processing result and judges the second processing result;
and if the second processing result is that the first key information is executed, returning the second processing result to the application manager.
In a possible design, after the key management module of the browser receives the second processing result and determines the second processing result, the method further includes:
if the second processing result is that the first key information is not executed, the key management module of the browser sequentially sends the first key information to each application in a preset application list according to the preset application list for processing so that the current application for processing the first key information returns a processing result until a third processing result returned by the last application in the preset application list is received or the current application for processing the first key information returns a fourth processing result that the first key information is executed; the preset application list comprises addresses of all started webpage applications; sending the processing result to an application manager;
and the key management module of the browser returns the third processing result or the fourth processing result to the application manager.
In one possible design, before the browser receives the first start request input by the user, the method further includes:
and creating the mapping table according to the address and attribute configuration information of each webpage application to be started, and storing the mapping table in the browser.
In a second aspect, an embodiment of the present invention provides an application starting apparatus, including:
the receiving module is used for receiving a first starting request input by a user and determining the address of a first webpage application to be started according to the first starting request;
the query module is used for querying the attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table;
and the first starting module is used for starting the first webpage application according to the attribute configuration information of the first webpage application.
In a third aspect, an embodiment of the present invention provides an application starting apparatus, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method according to the first aspect and various possible designs of the first aspect are implemented.
According to the method and the device for starting the application program, a first starting request input by a user is received through a browser, and the address of a first webpage application to be started is determined according to the first starting request; the browser inquires attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table; and the browser starts the first webpage application according to the attribute configuration information of the first webpage application. The method provided by the embodiment can start a plurality of single-page Web applications in a single browser by recording the address and the attribute configuration information of each webpage application to be started in the mapping table and acquiring the corresponding attribute configuration information from the mapping table before the application is started, thereby reducing the occupied memory space, saving the hardware cost, reducing the code maintenance work, improving the work efficiency and simultaneously reducing the labor cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1a and fig. 1b are application scene diagrams of an application program starting method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an application starting method according to an embodiment of the present invention;
fig. 3 is an architecture diagram of a Cobalt browser according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating an application starting method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating an application starting method according to another embodiment of the present invention;
FIG. 6 is a diagram of a prior art key processing system architecture;
FIG. 7 is a schematic diagram of a key processing system according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an application startup device according to yet another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an application startup device according to yet another embodiment of the present invention;
fig. 10 is a schematic hardware configuration diagram of an application starting apparatus according to yet another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1a and fig. 1b are application scene diagrams of an application program starting method according to an embodiment of the present invention. As shown in fig. 1a, in an implementation of multimedia play, the multimedia play content includes video play content and an On Screen Display (OSD), wherein the video play includes a main Layer (main) and a sub Layer (sub) independent of each other, and the OSD includes a Layer0 (Layer0), a Layer1 (Layer1), and a Layer2 (Layer 2). During playing, different layers have priorities, a layer with a high priority covers a layer with a low priority, and the layers are fused to obtain a final interface. For example, one possible implementation is: the priority of the video play Layer is less than that of the OSD Layer, in which Layer 2< Layer 0< Layer 1. As shown in FIG. 1b, one implementation in a television is a television User Interface (UI) at the top level, a video web site using YouTube and YouTube kits, and an Electronic Point Of Sale (EPOS) at the middle level.
In a specific implementation process, the 4 applications (UI, YouTube Kids, and EPOS) in the television all belong to a single-page Web application (SPA), and are implemented based on a Cobalt browser. However, the related implementation of the "Window interface layer (Window API)" interface in the docking layer of the Cobalt browser does not support creating windows with different attributes (such as different layers) according to different applications, that is, after the current Cobalt browser is started each time, the created windows are all the same attribute, and only a single Web application can be supported. The 4 applications are all independent programs. Each application occupies the hardware resources and associated logic control required by an independent program separately. Therefore, starting multiple single-page Web applications requires starting multiple independent programs, which results in more memory usage and increased hardware cost. In addition, from the code perspective, the 4 applications need to be maintained independently, so that the working efficiency is reduced, and the labor cost is increased. Based on this, the embodiment of the present invention provides an application program starting method to improve the working efficiency and reduce the cost.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart illustrating an application starting method according to an embodiment of the present invention. As shown in fig. 2, the method includes:
201. the browser receives a first starting request input by a user, and determines the address of a first webpage application to be started according to the first starting request.
In practical applications, the execution subject of the embodiment is an electronic device such as a terminal device or a server installed with a browser. Such as a computer, television, tablet, cell phone, etc.
Alternatively, the first initiation request input by the user may be input via an input means having a wired or wireless connection with the terminal device and the server device, such as via a remote control, keyboard or mouse.
For example, when a user watches a television, an icon corresponding to a television shopping application in a display interface is selected through a mobile phone remote controller, and after receiving a request signal, the television sends the request signal to a browser for processing.
Optionally, there are various ways of determining the address of the first web application to be started according to the first start request, for example, in an implementation manner, the first start request may directly include the address of the first web application to be started, and the browser may obtain the address of the first web application by analyzing the received first start request. In another implementation manner, the first start request may include an identifier of a first web application to be started, the first start request is analyzed to obtain the identifier of the first web application, and then the address of the first web application is obtained by querying from a pre-stored correspondence table of application identifier application addresses according to the identifier. Table 1 is a correspondence table of application identification application addresses provided in another embodiment of the present invention; as shown in Table 1, the identification of the user interface application is UI, and the application address corresponding to the identification UI is file:https:// html/hisnseUI/index.html; an application identifier of the YouTube video website application is YouTube, and an application address corresponding to the identifier YouTube is https:// www.youtube.com/tv; an application identifier of the YouTube Kids video website application is YouTube Kids, and an application address corresponding to the identifier YouTube Kids is https:// www.youtube.com/tv _ Kids; the application identification of the electronic point-of-sale application is EPOS, and the application address corresponding to the EPOS is file:https:// html/hisnseUI/webapp/EPOS. And if the electronic point-of-sale application is used during the first webpage application, analyzing the first starting request to obtain an identifier EPOS of the electronic point-of-sale application, and acquiring an application address of file:https:// html/hisnseUI/webapp/EPOS/epos.html from the corresponding table according to the identifier EPOS.
Table 1 correspondence table of application identification application addresses
Application identification Application address
UI file:https://html/hisenseUI/index.html
YouTube https://www.youtube.com/tv
YouTube Kids https://www.youtube.com/tv_kids
EPOS file:https://html/hisenseUI/webapp/EPOS/epos.html
202. The browser inquires attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; the mapping table records addresses and attribute configuration information of the web applications to be started, so that the browser respectively starts the web applications to be started according to the attribute configuration information of the web applications to be started in the mapping table.
Optionally, the attribute configuration information may include attribute information of a window of an application and attribute information of a corresponding bottom layer, for example, the attribute information may include a level, a resolution, a start position of the window of the application, and whether a data cache exists in the bottom layer.
Specifically, in order to enable a browser (e.g., a Cobalt browser) to support multiple applications, that is, multiple applications share one program/process, so as to reduce the cost of memory saving, in this embodiment, application addresses and multiple attribute configuration information of multiple applications are stored in a mapping table, where the mapping table includes a mapping relationship between each application and its corresponding configuration information. Specifically, before a browser is used to support multiple applications, the mapping table may be created according to the address and attribute configuration information of each web application to be started, and stored in the browser. Table 2 is a mapping table provided in another embodiment of the present invention; as shown in table 2, the attribute configuration information corresponding to the application address file,// html/hisnseui/index.html is { Layer1,4k {3840 × 2140} position {0,0}, no buffer }, and the attribute configuration information corresponding to the application address https:// www.youtube.com/tv, the application address https:// www.youtube.com/tv _ kids and the application address file:https:// html/hisnseui/webapp/EPOS/epos.html is { Layer0,2k {1920 × 1080} position {0,0}, where Layer0 and Layer1 represent the window level of the application; 2k {1920 x 1080}, 4k {3840 x 2140} represents the resolution of the window of the application; position 0,0 represents the start coordinate of the application window; no buffer represents that the bottom layer has No window data buffer.
Table 2 mapping table
Figure BDA0002323615740000081
In practical application, after receiving a start request, when creating a window for an application to be started, querying corresponding attribute configuration information from a mapping table according to an application address determined by the start request, and creating a corresponding application window according to the attribute configuration information. Fig. 3 is an architecture diagram of a Cobalt browser according to another embodiment of the present invention; as shown in FIG. 3, the architecture diagram includes an open source code portion and a user implementation portion, the open source code portion including a Cobalt browser core; the user implementation part comprises a Cobalt docking layer and a bottom-layer platform, wherein the Cobalt docking layer comprises a window interface layer, other application interfaces and a mapping table comprising application addresses and attribute configuration information of applications to be started. And creating a window for the application to be started by acquiring the attribute configuration information of the application to be started currently from the mapping table, so as to realize the starting of the application.
203. And the browser starts the first webpage application according to the attribute configuration information of the first webpage application.
In order to facilitate processing in subsequent operations, the state of each application needs to be recorded, and the recorded information may include information of the started application and information of the current application. Specifically, after the first web application is started, the first web application is the current application, so that the browser can update the record information of the current application according to the address of the first web application, and use the newly started first web application as the current application. And, the first webpage application can also be recorded in the recording information of the started application.
In the application program starting method provided by this embodiment, a first starting request input by a user is received through a browser, and an address of a first web application to be started is determined according to the first starting request; the browser inquires attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table; and the browser starts the first webpage application according to the attribute configuration information of the first webpage application. The method provided by the embodiment can start a plurality of single-page Web applications in a single browser by recording the address and the attribute configuration information of each webpage application to be started in the mapping table and acquiring the corresponding attribute configuration information from the mapping table before the application is started, thereby reducing the occupied memory space, saving the hardware cost, reducing the code maintenance work, improving the work efficiency and simultaneously reducing the labor cost.
Optionally, in another embodiment, after step 203, the method may further include:
204. the browser receives a second starting request input by the user, and determines the address of a second webpage application to be started according to the second starting request.
205. And the browser inquires attribute configuration information of the second webpage application in a mapping table according to the address of the second webpage application.
206. And the browser starts the second webpage application according to the attribute configuration information of the second webpage application.
In this embodiment, step 204 and step 206 are similar to step 201 to step 203 described above and will not be described again here.
In the embodiment, the attribute configuration information of the second web application corresponding to the second start request is acquired from the mapping table, and then the second web application is started in the same browser program according to the configuration information, so that the memory is saved, the hardware cost is reduced, and compared with the method for starting the second web application as an independent program, the labor cost of code maintenance is reduced, and the working efficiency is improved.
Fig. 4 is a flowchart illustrating an application starting method according to another embodiment of the present invention. On the basis of the foregoing embodiments, in this embodiment, a process of starting multiple applications by a single browser is described in detail, as shown in fig. 4, the method includes:
401. and after the browser is started, inquiring attribute configuration information of the user interface application in a mapping table, and starting the user interface application according to the attribute configuration information of the user interface application.
In this embodiment, the UI application may be configured to handle basic operations of the hardware device and/or start of other applications, such as volume adjustment and channel switching in a television, so that after the browser is started, the UI application is preferentially started to support the start of other applications.
402. The browser receives a first starting request input by a user, and determines the address of a first webpage application to be started according to the first starting request.
403. The browser inquires attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; the mapping table records addresses and attribute configuration information of the web applications to be started, so that the browser respectively starts the web applications to be started according to the attribute configuration information of the web applications to be started in the mapping table.
404. And the browser starts the first webpage application according to the attribute configuration information of the first webpage application.
Steps 402 to 404 in this embodiment are similar to steps 201 to 203 in this embodiment, and are not described herein again.
The above steps are exemplified below by taking the application in a television as an example,
after the television is started, the browser is started to operate by default;
after the browser is started, the web application corresponding to the UI is always opened in the new web page 1 by default, and specifically, the browser obtains and displays the attribute configuration information corresponding to the UI application address from the mapping table. At this time, only 1 application UI (user interface) in the browser is running, and the current application is also UI;
the device receives the key information, for example, the user selects a television channel through a remote controller; the key response is processed and executed in the UI application; at this time, since a new application is not started, only 1 application of the UI is still running in the browser, and the current application is still the UI.
When the device receives another key, for example, the user sets the television to "shop mode" via the remote control. The browser opens an EPOS (electronic sales terminal) application in the new page 2, and specifically, the browser parses an EPOS application address according to the key information, and obtains and displays attribute configuration information corresponding to the EPOS application address from the mapping table. At this time, 2 applications UI & EPOS are running in the browser, and the current application is EPOS;
when the device receives another key information, for example, the user turns on "YouTube" through the remote controller. The browser opens the YouTube application in the new page 3, specifically, the browser parses out the address of the YouTube application according to the key information, and obtains and displays the attribute configuration information corresponding to the address of the YouTube application from the mapping table. At this time, 3 applications UI & EPOS & YouTube are running in the browser, and the current application is YouTube;
when the device receives another key, the user sets the television volume, for example, via a remote control. The browser will display a volume setting bar in the UI application. At this time, 3 applications UI & EPOS & YouTube are running in the browser, and the current application is UI;
and after the volume is set, hiding the UI interface to the back end. At this time, 3 applications UI & EPOS & YouTube are running in the browser, and the current application is YouTube;
after an application exits, for example YouTube, 2 applications UI & EPOS are running in the browser, and the current application is EPOS;
when the application exits, for example, the EPOS, 1 application UI in the browser is running, and the current application is UI;
as can be seen from the above steps, the recorded information of the started application and the current application needs to be updated in real time, so that the information can be called in the subsequent operation. And, because a plurality of applications are supported, the browser receives the message and then transfers the message to each single-page application started by the browser. The processing priority of the UI may be set to be the highest, and the key information is preferentially processed.
According to the application program starting method provided by the embodiment, after the browser is started, the user interface application is started according to the mapping table, so that preparation is made for subsequently realizing the basic setting operation of the user and starting the operation of other applications. The operation of the user is convenient, and the learning cost is reduced.
Fig. 5 is a flowchart of an application program starting method according to another embodiment of the present invention, where on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in fig. 4, in order to adapt to a situation where a single browser supports multiple single-page applications, the present embodiment improves processing of key information, and a key management module is added in the browser. As shown in fig. 5, the method includes:
501. and the key management module of the browser receives first key information sent by the application manager.
502. And the key management module of the browser sends the first key information to the user interface application so that the user interface application processes the first key information to obtain a first processing result and returns the first processing result.
503. And the key management module of the browser receives the first processing result and judges the first processing result.
504. And if the first processing result is that the first key information is executed, returning the first processing result to the application manager.
505. And if the first key information is not executed, the key management module of the browser sends the first key information to the current application so that the current application processes the first key information to obtain a second processing result and returns the second processing result.
506. And the key management module of the browser receives the second processing result and judges the second processing result.
507. And if the second processing result is that the first key information is executed, returning the second processing result to the application manager.
508. If the second processing result is that the first key information is not executed, the key management module of the browser sequentially sends the first key information to each application in a preset application list according to the preset application list for processing so that the current application for processing the first key information returns a processing result until a third processing result returned by the last application in the preset application list is received or the current application for processing the first key information returns a fourth processing result that the first key information is executed; the preset application list comprises addresses of all started webpage applications; and sending the processing result to the application manager.
509. And the key management module of the browser returns the third processing result or the fourth processing result to the application manager.
In this embodiment, the preset application list may be an application list created by dynamic registration. Specifically, when an application is started and registered by the application manager, the application is added to the preset application list. The ranking of each application in the preset application list may be determined according to the registration sequence, or may be determined according to the use frequency of each application. This embodiment is not limited to this.
Referring to fig. 6 and 7, fig. 6 is a schematic diagram of a key processing system architecture in the prior art, and fig. 7 is a schematic diagram of a key processing system architecture according to another embodiment of the present invention.
As shown in fig. 6, the existing button processing system includes a browser 603, an application manager 602, a hardware platform 601, and an application 604. The application manager 602 is an application of the same level as the browser 603. In a specific key processing process, the application manager 602 monitors key information received by the underlying hardware platform 601, the application manager 602 first sends the received key information to the browser 603, and if the browser 603 currently only has a user interface application UI, and the UI cannot process the key information, the application manager 602 sends the key information to each application in the application 603, for example, YouTube, EPOS, YouTube kits, or other applications other. In this process, the browser 602 only supports one application (user interface application UI), and the applications 604 are all single-web applications, and multiple independent programs need to be started, which results in more memory usage and increased hardware cost. Based on this, in order to solve the above problem, as shown in fig. 7, the key processing system provided in this embodiment is additionally provided with a key management module 7031, specifically, the key processing system includes a hardware platform 701, an application manager 702, a browser 703 and an application 704, where the browser 703 includes the key manager 7031. In a specific key management process, the application manager 702 monitors key information received by the underlying hardware platform 701, the application manager 702 first sends the received key information to the key management module 7031 in the Browser 703, the key management module 7031 first sends the key information to the UI, and the key management module 7031 determines whether the key information is processed, and if not, the key information is sequentially sent to other applications (YouTube, YouTube kits, and EPOS) in the Browser 703 until all applications in all browsers are traversed or it is determined that a key is processed by a certain application. If all the applications in the browser 703 are traversed and the key information is not processed, the key information is forwarded to other applications other in the application 704. Thus, the browser 703 adds processing of the key processing result, rather than returning the key processing result directly to the application manager 702. The browser 703 can support a plurality of applications, and processing of the key information by the plurality of applications in the browser 703 is achieved. The method is beneficial to realizing the support of a single browser 703 to a plurality of applications, thereby achieving the purposes of improving the working efficiency and reducing the cost.
Specifically, the following takes an application in a television as an example to illustrate the key processing procedure provided by the embodiment:
after receiving the key information of the remote controller through the bottom hardware equipment, an APplication Manager (APM) monitoring key events receives the key information;
the APM firstly sends the key information to a browser where the UI is located for processing;
the browser firstly sends the key information to the UI application;
the UI application processes the key information to obtain a processing result and returns the processing result to a key management module of the browser;
judging the returned processing result by a key management module of the browser;
when the key information is executed, returning a processing result to the APM;
when the key information is not executed, judging whether the key information is forwarded to the current application:
if the key information is not sent to the current application, forwarding the key information to the current application in the browser, such as YouTube, processing the key information by the current application, and returning a processing result to a key management module of the browser; when the key information is executed, returning a processing result to the APM;
if the key information is forwarded to the current application and the key information is not executed, sequentially forwarding the key to other applications in the browser according to a preset application list sequence, such as an EPOS; other applications process the key information and return a processing result to the key management module, the key management module judges whether the key information is executed, and if the key information is executed, the key management module returns the processing result to the APM; if the last application executes the key information, directly returning the received processing result of the last application to the APM;
the APM judges the received processing result;
if the key information is executed, the key processing is finished;
if the key information is not executed, in other words, the current key information does not belong to the executable category of any browser application: the APM forwards the key information to a current application outside the browser, the current application processes the key information, and if the key information is executed, a processing result is returned to the APM;
and if the key information is not executed, forwarding the key information to other applications except the browser according to the sequence of the application list, processing the key by the other applications, and returning a processing result to the APM.
According to the application program starting method provided by the embodiment, the key management module is arranged in the browser, so that the key information is processed by a plurality of applications in the browser. The method is beneficial to realizing the support of a single browser to a plurality of applications, thereby achieving the purposes of improving the working efficiency and reducing the cost.
Fig. 8 is a schematic structural diagram of an application startup device according to yet another embodiment of the present invention. As shown in fig. 8, the application startup device 80 includes: a receiving module 801, a query module 802 and a first initiating module 803.
A receiving module 801, configured to receive a first start request input by a user, and determine, according to the first start request, an address of a first web application to be started;
a query module 802, configured to query, in a mapping table, attribute configuration information of the first web application according to the address of the first web application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table;
a first starting module 803, configured to start the first web application according to the attribute configuration information of the first web application.
According to the application program starting device provided by the embodiment of the invention, the address and attribute configuration information of each webpage application to be started are recorded in the mapping table, and the corresponding attribute configuration information is obtained from the mapping table before the application is started, so that a plurality of single-page Web applications can be started in a single browser, the occupied memory space is reduced, the hardware cost is saved, the code maintenance work is reduced, the work efficiency is improved, and the labor cost is also reduced.
Fig. 9 is a schematic structural diagram of an application startup device according to yet another embodiment of the present invention. As shown in fig. 9, the application startup device 80 further includes: a second initiation module 804, an update module 805, a key management module 806, and a creation module 807.
The web page applications to be started comprise user interface applications; the apparatus further comprises:
a second starting module 804, configured to query, in a mapping table, attribute configuration information of a user interface application after the browser is started, and start the user interface application according to the attribute configuration information of the user interface application.
Optionally, the apparatus further comprises:
the updating module 805 is configured to update the currently applied record information according to the address of the first web application.
Optionally, the apparatus further comprises: the key management module 806 is used for
The key management module receives first key information sent by an application manager;
sending the first key information to the user interface application to enable the user interface application to process the first key information, obtain a first processing result and return the first processing result;
receiving the first processing result and judging the first processing result;
and if the first processing result is that the first key information is executed, returning the first processing result to the application manager.
Optionally, the key management module 806 is further configured to:
if the first key information is not executed, sending the first key information to a current application so that the current application processes the first key information to obtain a second processing result and returning the second processing result;
receiving the second processing result, and judging the second processing result;
and if the second processing result is that the first key information is executed, returning the second processing result to the application manager.
Optionally, the key management module 806 is further configured to:
if the second processing result is that the first key information is not executed, sequentially sending the first key information to each application in a preset application list according to the preset application list for processing so that the current application for processing the first key information returns a processing result until a third processing result returned by the last application in the preset application list is received or the current application for processing the first key information returns a fourth processing result that the first key information is executed; the preset application list comprises addresses of all started webpage applications; sending the processing result to an application manager;
and returning the third processing result or the fourth processing result to the application manager.
Optionally, the apparatus further comprises:
the creating module 807 is configured to create the mapping table according to the address and attribute configuration information of each web application to be started, and store the mapping table in the browser.
The application program starting device provided by the embodiment of the present invention may be used to execute the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 10 is a schematic hardware configuration diagram of an application starting apparatus according to yet another embodiment of the present invention. As shown in fig. 10, the application startup device 100 provided in the present embodiment includes: at least one processor 1001 and memory 1002. The application startup device 100 further includes a communication section 1003. The processor 1001, the memory 1002, and the communication unit 1003 are connected by a bus 1004.
In a specific implementation process, the at least one processor 1001 executes the computer executable instructions stored in the memory 1002, so that the at least one processor 1001 executes the application starting method executed by the application starting apparatus 100 as described above.
When the method of the present embodiment is executed by a server, the communication section 1003 may transmit a start request and key information to the server.
For a specific implementation process of the processor 1001, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 10, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the application starting method executed by the application starting device is realized.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An application program starting method, comprising:
the method comprises the steps that a browser receives a first starting request input by a user, and the address of a first webpage application to be started is determined according to the first starting request;
the browser inquires attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table;
and the browser starts the first webpage application according to the attribute configuration information of the first webpage application.
2. The method according to claim 1, wherein each web application to be started comprises a user interface application; before the browser receives a first start request input by a user, the method further comprises the following steps:
and after the browser is started, inquiring attribute configuration information of the user interface application in a mapping table, and starting the user interface application according to the attribute configuration information of the user interface application.
3. The method of claim 2, wherein after the browser launches the first web application according to the attribute configuration information of the first web application, the method further comprises:
and the browser updates the currently applied record information according to the address of the first webpage application.
4. The method of claim 2, wherein after the browser launches the first web application according to the attribute configuration information of the first web application, the method further comprises:
a key management module of the browser receives first key information sent by an application manager;
the key management module of the browser sends the first key information to the user interface application so that the user interface application processes the first key information to obtain a first processing result and returns the first processing result;
the key management module of the browser receives the first processing result and judges the first processing result;
and if the first processing result is that the first key information is executed, returning the first processing result to the application manager.
5. The method according to claim 4, wherein after the key management module of the browser receives the first processing result and determines the first processing result, the method further comprises:
if the first key information is not executed, the key management module of the browser sends the first key information to the current application so that the current application processes the first key information to obtain a second processing result and returns the second processing result;
the key management module of the browser receives the second processing result and judges the second processing result;
and if the second processing result is that the first key information is executed, returning the second processing result to the application manager.
6. The method according to claim 5, wherein after the key management module of the browser receives the second processing result and determines the second processing result, the method further comprises:
if the second processing result is that the first key information is not executed, the key management module of the browser sequentially sends the first key information to each application in a preset application list according to the preset application list for processing so that the current application for processing the first key information returns a processing result until a third processing result returned by the last application in the preset application list is received or the current application for processing the first key information returns a fourth processing result that the first key information is executed; the preset application list comprises addresses of all started webpage applications; sending the processing result to an application manager;
and the key management module of the browser returns the third processing result or the fourth processing result to the application manager.
7. The method of any of claims 1-6, wherein prior to the browser receiving the first launch request input by the user, further comprising:
and creating the mapping table according to the address and attribute configuration information of each webpage application to be started, and storing the mapping table in the browser.
8. An application startup device, comprising:
the receiving module is used for receiving a first starting request input by a user and determining the address of a first webpage application to be started according to the first starting request;
the query module is used for querying the attribute configuration information of the first webpage application in a mapping table according to the address of the first webpage application; recording addresses and attribute configuration information of all webpage applications to be started in the mapping table, so that the browser respectively starts all the webpage applications to be started according to the attribute configuration information of all the webpage applications to be started in the mapping table;
and the first starting module is used for starting the first webpage application according to the attribute configuration information of the first webpage application.
9. An application startup device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the application launching method of any of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the application launching method as claimed in any one of claims 1 to 7.
CN201911307685.3A 2019-12-18 2019-12-18 Application program starting method and device Active CN111045749B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911307685.3A CN111045749B (en) 2019-12-18 2019-12-18 Application program starting method and device
PCT/CN2020/084202 WO2021120459A1 (en) 2019-12-18 2020-04-10 Application program starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911307685.3A CN111045749B (en) 2019-12-18 2019-12-18 Application program starting method and device

Publications (2)

Publication Number Publication Date
CN111045749A true CN111045749A (en) 2020-04-21
CN111045749B CN111045749B (en) 2021-06-08

Family

ID=70237708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911307685.3A Active CN111045749B (en) 2019-12-18 2019-12-18 Application program starting method and device

Country Status (2)

Country Link
CN (1) CN111045749B (en)
WO (1) WO2021120459A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040234A (en) * 2021-11-18 2022-02-11 视若飞信息科技(上海)有限公司 Smart television application starting method and device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703699A (en) * 2002-10-04 2005-11-30 国际商业机器公司 Method and apparatus for relaying session information from a portal server
CN105068802A (en) * 2015-08-06 2015-11-18 中国科学院软件研究所 Cross device running Web application software implementation system and method
CN106502747A (en) * 2016-11-02 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method of application upgrade and mobile terminal
CN106507195A (en) * 2016-11-29 2017-03-15 四川长虹电器股份有限公司 Method based on the intelligent television application handover management of linux system
CN107085488A (en) * 2017-03-17 2017-08-22 深圳市全智达科技有限公司 The quick application method and device of a kind of application program common function
CN107343219A (en) * 2017-06-19 2017-11-10 青岛海信电器股份有限公司 A kind of key command processing method and processing device between GUI and HBBTV
US20170353620A1 (en) * 2016-06-02 2017-12-07 Ricoh Company, Ltd. Information processing apparatus, information processing method, and non-transitory recording medium
CN107729516A (en) * 2017-10-26 2018-02-23 北京百度网讯科技有限公司 Single page application methods of exhibiting and device, server, equipment and computer-readable recording medium
CN109408149A (en) * 2018-10-30 2019-03-01 青岛海信传媒网络技术有限公司 Starting method, apparatus, equipment and the storage medium of application program
CN109739604A (en) * 2018-12-28 2019-05-10 北京城市网邻信息技术有限公司 Page rendering method, apparatus, server and storage medium
US10339299B1 (en) * 2016-03-08 2019-07-02 Kashmoo, Inc. Runtime management of application components
CN110168496A (en) * 2017-01-11 2019-08-23 微软技术许可有限责任公司 The method and system presented for application
CN110286955A (en) * 2018-03-16 2019-09-27 青岛海尔多媒体有限公司 The method, apparatus and computer readable storage medium of application program launching
CN110381376A (en) * 2019-07-09 2019-10-25 青岛海信传媒网络技术有限公司 Application processing method, device and terminal
CN110401863A (en) * 2019-06-19 2019-11-01 广州视琨电子科技有限公司 Method, device, system, storage medium and equipment for starting application program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5296229B2 (en) * 2012-01-06 2013-09-25 株式会社東芝 Communication system by portable terminal and television apparatus, portable terminal, television apparatus, communication method of portable terminal, operation program of portable terminal
CN106406920A (en) * 2015-07-29 2017-02-15 宋青见 Terminal equipment and execution method of application program of terminal equipment
US10326822B2 (en) * 2015-12-03 2019-06-18 Google Llc Methods, systems and media for presenting a virtual operating system on a display device
CN105867980A (en) * 2016-04-19 2016-08-17 青岛海信电器股份有限公司 Method and device for processing keys of terminals

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703699A (en) * 2002-10-04 2005-11-30 国际商业机器公司 Method and apparatus for relaying session information from a portal server
CN105068802A (en) * 2015-08-06 2015-11-18 中国科学院软件研究所 Cross device running Web application software implementation system and method
US10339299B1 (en) * 2016-03-08 2019-07-02 Kashmoo, Inc. Runtime management of application components
US20170353620A1 (en) * 2016-06-02 2017-12-07 Ricoh Company, Ltd. Information processing apparatus, information processing method, and non-transitory recording medium
CN106502747A (en) * 2016-11-02 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method of application upgrade and mobile terminal
CN106507195A (en) * 2016-11-29 2017-03-15 四川长虹电器股份有限公司 Method based on the intelligent television application handover management of linux system
CN110168496A (en) * 2017-01-11 2019-08-23 微软技术许可有限责任公司 The method and system presented for application
CN107085488A (en) * 2017-03-17 2017-08-22 深圳市全智达科技有限公司 The quick application method and device of a kind of application program common function
CN107343219A (en) * 2017-06-19 2017-11-10 青岛海信电器股份有限公司 A kind of key command processing method and processing device between GUI and HBBTV
CN107729516A (en) * 2017-10-26 2018-02-23 北京百度网讯科技有限公司 Single page application methods of exhibiting and device, server, equipment and computer-readable recording medium
CN110286955A (en) * 2018-03-16 2019-09-27 青岛海尔多媒体有限公司 The method, apparatus and computer readable storage medium of application program launching
CN109408149A (en) * 2018-10-30 2019-03-01 青岛海信传媒网络技术有限公司 Starting method, apparatus, equipment and the storage medium of application program
CN109739604A (en) * 2018-12-28 2019-05-10 北京城市网邻信息技术有限公司 Page rendering method, apparatus, server and storage medium
CN110401863A (en) * 2019-06-19 2019-11-01 广州视琨电子科技有限公司 Method, device, system, storage medium and equipment for starting application program
CN110381376A (en) * 2019-07-09 2019-10-25 青岛海信传媒网络技术有限公司 Application processing method, device and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040234A (en) * 2021-11-18 2022-02-11 视若飞信息科技(上海)有限公司 Smart television application starting method and device
CN114040234B (en) * 2021-11-18 2024-03-15 视若飞信息科技(上海)有限公司 Smart television application starting method and device

Also Published As

Publication number Publication date
CN111045749B (en) 2021-06-08
WO2021120459A1 (en) 2021-06-24

Similar Documents

Publication Publication Date Title
KR102710712B1 (en) Method and device for displaying live broadcast data, device and storage medium
CN108924626B (en) Picture generation method, device, equipment and storage medium
US20180322215A1 (en) Web page access method and apparatus
WO2013159721A1 (en) Method and system for sectionally loading webpage for mobile browser
CN111372115B (en) Application program access method and device and communication system
US20150339386A1 (en) Webpage Searching Method and Browser
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
US8651951B2 (en) Game processing server apparatus
CN113703893B (en) Page rendering method, device, terminal and storage medium
US20170155741A1 (en) Server, method, and system for providing service data
CN108062336B (en) Media information processing method and device
CN114579912A (en) Page layout method, device, equipment and medium
CN111045749B (en) Application program starting method and device
CN110277110B (en) Recording and playing method and device of network page and terminal
EP4318197A1 (en) Virtual live broadcast room display method and apparatus, client, server, and medium
CN111061414A (en) Skin replacement method and device, electronic equipment and readable storage medium
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN113918849A (en) Page display method, device and system, electronic equipment and storage medium
US9524076B2 (en) Web page management method and apparatus and storage medium thereof
CN113163255A (en) Video playing method, device, terminal and storage medium
CN110866203A (en) Page jump method, device, equipment and computer readable storage medium
CN112073793B (en) Image display method and device
CN112291602A (en) Video playing method, electronic equipment and storage medium
CN110888690A (en) Application starting method and device, electronic equipment and storage medium
CN114640718B (en) Data processing method and device based on data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant