Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Interface implementation method and device and set-top box

An implementation method and technology for a set-top box, which are applied to program control devices, selective content distribution, electrical components, etc., can solve problems such as recompiling browser code, and achieve the effects of enhancing user experience, improving work efficiency, and saving development workload.

Inactive Publication Date: 2018-01-05
ZTE CORP
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present invention provides an interface implementation method and device, and a set-top box to solve the problem that existing browsers need to recompile browser codes when extending the JS interface

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface implementation method and device and set-top box
  • Interface implementation method and device and set-top box
  • Interface implementation method and device and set-top box

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0029] figure 1 The flow chart of the interface implementation method provided by the first embodiment of the present invention is composed of figure 1 It can be seen that the interface implementation methods provided in this embodiment include:

[0030] S101: Receive a plug-in calling request for calling a browser plug-in;

[0031] S102: Determine the target interface to be executed according to the plug-in call request;

[0032] S103: Execute the target interface and return the execution result;

[0033] S104: Use the execution result as the plug-in calling result and display it.

[0034] In some embodiments, the execution target interface in the above embodiments, returning the execution result includes:

[0035] According to the object name of the target interface, detect whether the current memory is the target interface;

[0036] If the memory has already loaded the target interface, execute and call the related methods and properties of the target interface, and re...

no. 2 example

[0047] figure 2 It is a schematic structural diagram of the interface realization device provided by the second embodiment of the present invention, which is represented by figure 2 It can be seen that the interface implementation device provided in this embodiment includes:

[0048] The receiving module 21 is configured to receive a plug-in call request for calling the browser plug-in;

[0049] The execution module 22 is used to determine the target interface to be executed according to the plug-in call request, execute the target interface, and return the execution result;

[0050] The display module 23 is configured to use the execution result as the plug-in calling result and display it.

[0051] In some embodiments, the execution module 22 in the above embodiment is used to detect whether the current memory is the target interface according to the object name of the target interface, and if the memory has already loaded the target interface, then execute and call the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides an interface implementation method and device and a set-top box. The method comprises the steps that a plugin calling request for calling a browser plugin is received; a target interface needing to be executed is determined according to the plugin calling request; the target interface is executed, and an execution result is returned; and the execution result is taken as a plugin calling result and displayed. According to the novel interface implementation mode, a JS interface is taken as the browser plugin, and a corresponding JS interface function is achieved by calling the browser plugin; and compared with the prior art, the method has the advantages that great progress is achieved, an obvious effect is achieved, the development workload of the JSexpansion interface and the memory occupied during browser operation are reduced, the working efficiency of developers is improved, the browser operation speed is increased, the problem that an existing browser JS expansion interface needs to recompile a browser code is solved, and the use experience of a user is enhanced.

Description

technical field [0001] The invention relates to the application field of set-top boxes, in particular to an interface realization method and device, and a set-top box. Background technique [0002] In the set-top box, the operator proposes more telecommunication interfaces, such as JS (JavaScript) extension interface, etc., to meet the actual business needs of the set-top box, such as authentication, configuration file reading, video playback, etc. [0003] There are two types of existing browser extension JS interface implementation technologies: [0004] 1) According to the standard of the IDL interface language and the corresponding script file, generate the code file required by the JS extension object. Every time a new interface is added, the process needs to be repeated and the browser code recompiled; [0005] 2) According to the specified format, define the JS extension interface object file, and recompile the browser code; [0006] When adding JS objects in the a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/443G06F9/445
CPCG06F9/445
Inventor 钱永福
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products