CN112256449B - Interface calling method of webpage application program, display equipment and server - Google Patents

Interface calling method of webpage application program, display equipment and server Download PDF

Info

Publication number
CN112256449B
CN112256449B CN202011109971.1A CN202011109971A CN112256449B CN 112256449 B CN112256449 B CN 112256449B CN 202011109971 A CN202011109971 A CN 202011109971A CN 112256449 B CN112256449 B CN 112256449B
Authority
CN
China
Prior art keywords
interface
display device
application program
server
webpage application
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.)
Active
Application number
CN202011109971.1A
Other languages
Chinese (zh)
Other versions
CN112256449A (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.)
Vidaa Netherlands International Holdings BV
Vidaa USA Inc
Original Assignee
Vidaa Netherlands International Holdings BV
Vidaa USA Inc
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 Vidaa Netherlands International Holdings BV, Vidaa USA Inc filed Critical Vidaa Netherlands International Holdings BV
Priority to CN202011109971.1A priority Critical patent/CN112256449B/en
Publication of CN112256449A publication Critical patent/CN112256449A/en
Priority to PCT/US2021/055004 priority patent/WO2022081859A1/en
Priority to EP21881097.6A priority patent/EP4229527A4/en
Priority to US18/065,487 priority patent/US20230111113A1/en
Application granted granted Critical
Publication of CN112256449B publication Critical patent/CN112256449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application provides an interface calling method of a webpage application program, display equipment and a server. When a browser of the display device starts a web application program, a server receives information such as interface requirements of the web application program and system version of the display device sent by the display device, and further generates an interface file corresponding to the web application program in the server; and then, the server sends the interface file back to the display device so that the browser can load the interface file, and further, the webpage application program can call the target interface to perform corresponding operation on the resources of the display device. The content from the technical scheme of the application to the loading of the interface file by the browser can be regarded as the authentication process of the webpage application program, the interface file generated in the authentication process can not be modified by the webpage application program, the situation that the display equipment resource is abused caused by the random calling of the interface by the webpage application program is avoided, and the user information safety and the resource safety of the display equipment are ensured.

Description

Interface calling method of webpage application program, display equipment and server
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method for calling an interface of a web application, a display device, and a server.
Background
With the development of HTML5 (Hyper Text Markup Language, hypertext markup language 5) and related web page technologies, web apps (web page applications) developed by using HTML5 technology are increasingly accepted and favored by numerous developers. Compared with the traditional NATIVE APP (local application program), the web App has the advantages of lower development cost, simpler upgrading, easier maintenance, no installation and no consumption of user storage space. The web App is essentially a customized web site for mobile phones, televisions, and other display devices.
However, the disadvantages of the web App are also obvious, since the web App can only run in the browser of the display device, and is independent of the display device system, some customized functions, such as obtaining or setting system parameters, operating a database, and reading and writing files, are usually implemented for some application program open part interfaces, and the implementation of these functions requires the web App to call the interfaces in the display device through the browser. Currently, the industry typically makes applications available to access system resources by calling interfaces in JavaScript extensions. But the JavaScript script is automatically embedded into the page of the application program when running, all interfaces and implementation contents thereof are exposed outside, and an application program developer can see definitions of all interfaces and implementation contents thereof, so that local resources of the display device can be abused.
To prevent abuse of the display device's local resources by application developers, and also to secure information for the display device user, web App calls interfaces are often limited. In addition to the conventional approach of using application names to manage the local interface of the display device, the industry also often uses HTTP (Hyper Text Transfer Protocol ) requests in JavaScript to establish a dedicated message channel with a server, which confirms the identity of the application by obtaining the HTTP header information, and then authenticates the identity, allowing or rejecting subsequent requests by the application.
However, the local interface of the display device has high management and maintenance cost and poor expansibility, and needs to be re-adapted each time an application program is newly added or an interface is newly added. The above method using HTTP requests can solve the problem of poor expandability of the local interface of the display device, but the HTTP requests can be forged. If the third-party webpage application program successfully falsifies the HTTP request, thereby obtaining the authorization of the application program and establishing a message channel with the server, the third-party webpage application program can illegally call the local interface of the display device, which has a great threat to the user information security and the resource security of the display device.
Disclosure of Invention
The application provides an interface calling method of a webpage application program, display equipment and a server, which are used for solving the problems that user information safety and resource safety are difficult to guarantee, which are easily caused when the webpage application program in the current browser calls a local interface of the display equipment.
In a first aspect, the present application provides a display apparatus comprising:
A controller for performing the steps of:
responding to a webpage application program starting instruction sent by a browser, and sending relevant information of the webpage application program and display equipment to a server;
receiving an interface file generated according to the related information of the webpage application program and the display equipment and sent back by the server; the interface file is used for determining the use authority and parameters of a target interface which the webpage application program needs to call;
and controlling the browser to load the interface file so that the webpage application program calls the target interface.
In some embodiments, the controller in the display device is further configured to perform the steps of:
Responding to a webpage application program starting instruction sent by a browser, and initiating a WebSocket connection request to a server; the WebSocket connection request is used for indicating that the display device requests to establish a connection of full duplex communication with the server on a single TCP connection;
Under the condition of receiving a connection response sent back by the server, establishing WebSocket connection with the server;
And actively transmitting the related information of the webpage application program and the display device to the server.
In some embodiments, the controller in the display device is further configured to perform the steps of:
for configuration content of a system version of the display device, storing interface information corresponding to the current system version in a server; the interface information is used for representing the setting content and the authority content of the display equipment corresponding to all interfaces under the current system version.
In some embodiments, the controller in the display device is further configured to perform the steps of:
Acquiring system version information of display equipment and interface demand information of a webpage application program to be started currently; the interface requirement information is used for indicating information of a target interface which needs to be called by the webpage application program;
and sending the system version information and the interface requirement information to a server.
In some embodiments, the controller in the display device is further configured to perform the steps of:
Storing the interface file under a preset browser directory; the read-write authority of the browser directory is only opened for the authentication operation of the current webpage application program;
and controlling the browser to automatically load the interface file under the browser directory so as to enable the webpage application program to call the target interface.
In a second aspect, an embodiment of the present application further provides a server, including:
A controller for performing the steps of:
receiving a webpage application program and related information of the display device, wherein the webpage application program and the related information of the display device are sent by the display device;
Generating an interface file required for calling a target interface on the display equipment according to the related information and the pre-stored interface information corresponding to the current system version of the display equipment; the interface file is used for determining the use authority and parameters of the target interface;
and sending the interface file back to the display device so that a browser on the display device loads the interface file and the webpage application program calls the target interface.
In some embodiments, the controller in the server is further configured to perform the steps of:
Receiving a WebSocket connection request initiated by display equipment; the WebSocket connection request is a request initiated by the display device when responding to a webpage application program starting instruction sent by the browser, and is used for indicating that the display device requests to establish connection of full duplex communication on a single TCP connection with the server;
and sending a connection response back to the display device, and establishing a WebSocket connection with the display device.
In some embodiments, the controller in the server is further configured to perform the steps of:
according to the related information, analyzing a system version of the display equipment and a target interface required to be called by a webpage application program to be started currently;
according to the system version and the target interface, interface information of the target interface is found;
And generating an interface file corresponding to the target interface according to the interface information.
In a third aspect, the present application provides an interface calling method of a web application, applied to a display device, including:
responding to a webpage application program starting instruction sent by a browser, and sending relevant information of the webpage application program and display equipment to a server;
receiving an interface file generated according to the related information of the webpage application program and the display equipment and sent back by the server; the interface file is used for determining the use authority and parameters of a target interface which the webpage application program needs to call;
and controlling the browser to load the interface file so that the webpage application program calls the target interface.
In a fourth aspect, the present application also provides another method for calling an interface of a web application, which is applied to a server, and includes:
receiving a webpage application program and related information of the display device, wherein the webpage application program and the related information of the display device are sent by the display device;
Generating an interface file required for calling a target interface on the display equipment according to the related information and the pre-stored interface information corresponding to the current system version of the display equipment; the interface file is used for determining the use authority and parameters of the target interface;
and sending the interface file back to the display device so that a browser on the display device loads the interface file and the webpage application program calls the target interface.
As can be seen from the above, the technical solution of the present application provides a method for calling an interface of a web application, a display device, and a server. When a browser of the display device starts a webpage application program, a server receives information such as interface requirements of the webpage application program and system version of the display device, which are sent by the display device, and further generates an interface file corresponding to the webpage application program in the server, wherein the interface file is used for determining the use authority and parameters of a target interface which the webpage application program needs to call; and then, the server sends the interface file back to the display device so that the browser can load the interface file, and further, the webpage application program in the browser can call to the target interface to perform corresponding operation on the resources of the display device. The content from the technical scheme to the loading of the interface file by the browser can be regarded as the authentication process of the webpage application program, the interface file generated in the authentication process can not be modified by the webpage application program, further the interface file can be prevented from being forged, the situation that the display equipment resource is abused due to the fact that the interface is randomly called by the webpage application program can be avoided, and meanwhile the user information safety and the resource safety of the display equipment are ensured.
Drawings
In order to more clearly illustrate the technical solution of the present application, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
A schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments is schematically shown in fig. 1;
a hardware configuration block diagram of a display device 200 according to some embodiments is exemplarily shown in fig. 2;
A hardware configuration block diagram of the control apparatus 100 according to some embodiments is exemplarily shown in fig. 3;
a schematic diagram of the software configuration in a display device 200 according to some embodiments is exemplarily shown in fig. 4;
An icon control interface display schematic of an application in a display device 200 according to some embodiments is illustrated in fig. 5;
Fig. 6 is a schematic diagram illustrating an interaction process between the display device 200 and the server 400 according to an embodiment of the present application;
fig. 7 is an interaction schematic diagram of a WebSocket connection between a display device 200 and a server 400 according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating an interface calling method of a web application applied to a display device 200 according to an embodiment of the present application;
Fig. 9 is a flowchart of a method for a display device 200 to send information to a server 400 according to an embodiment of the present application;
FIG. 10 is a flowchart of a method for a display device 200 to invoke a target interface according to an embodiment of the present application;
FIG. 11 is a flowchart illustrating an interface calling method applied to a web application on a server 400 according to an embodiment of the present application;
fig. 12 is a flowchart of a method for generating an interface file by the server 400 according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, embodiments and advantages of the present application more apparent, an exemplary embodiment of the present application will be described more fully hereinafter with reference to the accompanying drawings in which exemplary embodiments of the application are shown, it being understood that the exemplary embodiments described are merely some, but not all, of the examples of the application.
Based on the exemplary embodiments described herein, all other embodiments that may be obtained by one of ordinary skill in the art without making any inventive effort are within the scope of the appended claims. Furthermore, while the present disclosure has been described in terms of an exemplary embodiment or embodiments, it should be understood that each aspect of the disclosure can be practiced separately from the other aspects.
It should be noted that the brief description of the terminology in the present application is for the purpose of facilitating understanding of the embodiments described below only and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms first, second, third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated (Unless otherwise indicated). It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
Furthermore, the terms "comprise" and "have," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to those elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" as used in this disclosure refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the function associated with that element.
The term "remote control" as used herein refers to a component of an electronic device (such as a display device as disclosed herein) that can be controlled wirelessly, typically over a relatively short distance. Typically, the electronic device is connected to the electronic device using infrared and/or Radio Frequency (RF) signals and/or bluetooth, and may also include functional modules such as WiFi, wireless USB, bluetooth, motion sensors, etc. For example: the hand-held touch remote controller replaces most of the physical built-in hard keys in a general remote control device with a touch screen user interface.
The term "gesture" as used herein refers to a user behavior by which a user expresses an intended idea, action, purpose, and/or result through a change in hand shape or movement of a hand, etc.
A schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment is exemplarily shown in fig. 1. As shown in fig. 1, a user may operate the display apparatus 200 through the mobile terminal 300 and the control device 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or bluetooth protocol communication, and other short-range communication modes, etc., and the display device 200 is controlled by a wireless or other wired mode. The user may control the display device 200 by inputting user instructions through keys on a remote control, voice input, control panel input, etc. Such as: the user can input corresponding control instructions through volume up-down keys, channel control keys, up/down/left/right movement keys, voice input keys, menu keys, on-off keys, etc. on the remote controller to realize the functions of the control display device 200.
In some embodiments, mobile terminals, tablet computers, notebook computers, and other smart devices may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on a smart device. The application program, by configuration, can provide various controls to the user in an intuitive User Interface (UI) on a screen associated with the smart device.
In some embodiments, the mobile terminal 300 may install a software application with the display device 200, implement connection communication through a network communication protocol, and achieve the purpose of one-to-one control operation and data communication. Such as: it is possible to implement a control command protocol established between the mobile terminal 300 and the display device 200, synchronize a remote control keyboard to the mobile terminal 300, and implement a function of controlling the display device 200 by controlling a user interface on the mobile terminal 300. The audio/video content displayed on the mobile terminal 300 can also be transmitted to the display device 200, so as to realize the synchronous display function.
As also shown in fig. 1, the display device 200 is also in data communication with the server 400 via a variety of communication means. The display device 200 may be permitted to make communication connections via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display device 200. By way of example, display device 200 receives software program updates, or accesses a remotely stored digital media library by sending and receiving information, as well as Electronic Program Guide (EPG) interactions. The server 400 may be a cluster, or may be multiple clusters, and may include one or more types of servers. Other web service content such as video on demand and advertising services are provided through the server 400.
The display device 200 may be a liquid crystal display, an OLED display, a projection display device. The particular display device type, size, resolution, etc. are not limited, and those skilled in the art will appreciate that the display device 200 may be modified in performance and configuration as desired.
The display apparatus 200 may additionally provide a smart network television function of a computer support function, including, but not limited to, a network television, a smart television, an Internet Protocol Television (IPTV), etc., in addition to the broadcast receiving television function.
A hardware configuration block diagram of the display device 200 according to an exemplary embodiment is illustrated in fig. 2.
In some embodiments, at least one of the controller 250, the modem 210, the communicator 220, the detector 230, the input/output interface 255, the display 275, the audio output interface 285, the memory 260, the power supply 290, the user interface 265, and the external device interface 240 is included in the display apparatus 200.
In some embodiments, the display 275 is configured to receive image signals from the first processor output, and to display video content and images and components of the menu manipulation interface.
In some embodiments, display 275 includes a display screen assembly for presenting pictures, and a drive assembly for driving the display of images.
In some embodiments, the video content is displayed from broadcast television content, or alternatively, from various broadcast signals that may be received via a wired or wireless communication protocol. Or may display various image content received from a network communication protocol from a network server side.
In some embodiments, the display 275 is used to present a user-manipulated UI interface generated in the display device 200 and used to control the display device 200.
In some embodiments, depending on the type of display 275, a drive assembly for driving the display is also included.
In some embodiments, display 275 is a projection display and may further include a projection device and a projection screen.
In some embodiments, communicator 220 is a component for communicating with external devices or external servers according to various communication protocol types. For example: the communicator 220 may include at least one of a Wifi module 221, a bluetooth module 222, a wired ethernet module 223, or other network communication protocol module or a near field communication protocol module, and an infrared receiver.
In some embodiments, the display apparatus 200 may establish control signal and data signal transmission and reception between the communicator 220 and the external control device 100 or the content providing apparatus.
In some embodiments, the user interface 265 may be used to receive infrared control signals from the control device 100 (e.g., an infrared remote control, etc.).
In some embodiments, the detector 230 is a signal that the display device 200 uses to capture or interact with the external environment.
In some embodiments, the detector 230 includes an optical receiver, a sensor for capturing the intensity of ambient light, a parameter change may be adaptively displayed by capturing ambient light, etc.
In some embodiments, the detector 230 may further include an image collector 232, such as a camera, a video camera, etc., which may be used to collect external environmental scenes, collect attributes of a user or interact with a user, adaptively change display parameters, and recognize a user gesture to implement a function of interaction with the user.
In some embodiments, the detector 230 may also include a temperature sensor or the like, such as by sensing ambient temperature.
In some embodiments, the display device 200 may adaptively adjust the display color temperature of the image. The display device 200 may be adjusted to display a colder color temperature shade of the image, such as when the temperature is higher, or the display device 200 may be adjusted to display a warmer color shade of the image when the temperature is lower.
In some embodiments, the detector 230 may also include a sound collector 231 or the like, such as a microphone, that may be used to receive the user's sound. Illustratively, a voice signal including a control instruction for a user to control the display apparatus 200, or an acquisition environmental sound is used to recognize an environmental scene type so that the display apparatus 200 can adapt to environmental noise.
In some embodiments, as shown in fig. 2, the input/output interface 255 is configured to enable data transfer between the controller 250 and external other devices or other controllers 250. Such as receiving video signal data and audio signal data of an external device, command instruction data, or the like.
In some embodiments, external device interface 240 may include, but is not limited to, the following: any one or more interfaces of a high definition multimedia interface HDMI interface, an analog or data high definition component input interface, a composite video input interface, a USB input interface, an RGB port, and the like can be used. The plurality of interfaces may form a composite input/output interface.
In some embodiments, as shown in fig. 2, the modem 210 is configured to receive the broadcast television signal by a wired or wireless receiving manner, and may perform modulation and demodulation processes such as amplification, mixing, and resonance, and demodulate the audio/video signal from the plurality of wireless or wired broadcast television signals, where the audio/video signal may include a television audio/video signal carried in a television channel frequency selected by a user, and an EPG data signal.
In some embodiments, the frequency point demodulated by the modem 210 is controlled by the controller 250, and the controller 250 may send a control signal according to the user selection, so that the modem responds to the television signal frequency selected by the user and modulates and demodulates the television signal carried by the frequency.
In some embodiments, the broadcast television signal may be classified into a terrestrial broadcast signal, a cable broadcast signal, a satellite broadcast signal, an internet broadcast signal, or the like according to a broadcasting system of the television signal. Or may be differentiated into digital modulation signals, analog modulation signals, etc., depending on the type of modulation. Or it may be classified into digital signals, analog signals, etc. according to the kind of signals.
In some embodiments, the controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box or the like. In this way, the set-top box outputs the television audio and video signals modulated and demodulated by the received broadcast television signals to the main body equipment, and the main body equipment receives the audio and video signals through the first input/output interface.
In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored on the memory. The controller 250 may control the overall operation of the display apparatus 200. For example: in response to receiving a user command to select to display a UI object on the display 275, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the object may be any one of selectable objects, such as a hyperlink or an icon. Operations related to the selected object, such as: displaying an operation of connecting to a hyperlink page, a document, an image, or the like, or executing an operation of a program corresponding to the icon. The user command for selecting the UI object may be an input command through various input means (e.g., mouse, keyboard, touch pad, etc.) connected to the display device 200 or a voice command corresponding to a voice uttered by the user.
As shown in fig. 2, the controller 250 includes at least one of a random access Memory 251 (Random Access Memory, RAM), a Read-Only Memory 252 (ROM), a graphic processor 253 (Graphics Processing Unit, GPU), a central processing unit 254 (Central Processing Unit, CPU), an input/output interface 255, and a communication Bus 256 (Bus). Wherein the communication bus connects the various components.
In some embodiments, RAM 251 is used to store temporary data for the operating system or other on-the-fly programs.
In some embodiments, ROM 252 is used to store instructions for various system boots.
In some embodiments, ROM 252 is used to store a basic input output system, referred to as a basic input output system (Basic Input Output System, BIOS). The system comprises a drive program and a boot operating system, wherein the drive program is used for completing power-on self-checking of the system, initialization of each functional module in the system and basic input/output of the system.
In some embodiments, upon receipt of the power-on signal, the display device 200 power starts up, the CPU runs system boot instructions in the ROM 252, copies temporary data of the operating system stored in memory into the RAM 251, in order to start up or run the operating system. When the operating system is started, the CPU copies temporary data of various applications in the memory to the RAM 251, and then, facilitates starting or running of the various applications.
In some embodiments, processor 254 is used to execute operating system and application program instructions stored in memory. And executing various application programs, data and contents according to various interactive instructions received from the outside, so as to finally display and play various audio and video contents.
In some example embodiments, the processor 254 may include a plurality of processors. The plurality of processors may include one main processor and one or more sub-processors. A main processor for performing some operations of the display apparatus 200 in the pre-power-up mode and/or displaying a picture in the normal mode. One or more sub-processors for one operation in a standby mode or the like.
In some embodiments, the graphics processor 253 is configured to generate various graphical objects, such as: icons, operation menus, user input instruction display graphics, and the like. The device comprises an arithmetic unit, wherein the arithmetic unit is used for receiving various interaction instructions input by a user to carry out operation and displaying various objects according to display attributes. And a renderer for rendering the various objects obtained by the arithmetic unit, wherein the rendered objects are used for being displayed on a display.
In some embodiments, video processor 270 is configured to receive external video signals, perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, image composition, etc., according to standard codec protocols for input signals, and may result in signals that are displayed or played on directly displayable device 200.
In some embodiments, video processor 270 includes a demultiplexing module, a video decoding module, an image compositing module, a frame rate conversion module, a display formatting module, and the like.
The demultiplexing module is used for demultiplexing the input audio/video data stream, such as the input MPEG-2, and demultiplexes the input audio/video data stream into video signals, audio signals and the like.
And the video decoding module is used for processing the demultiplexed video signals, including decoding, scaling and the like.
And an image synthesis module, such as an image synthesizer, for performing superposition mixing processing on the graphic generator and the video image after the scaling processing according to the GUI signal input by the user or generated by the graphic generator, so as to generate an image signal for display.
The frame rate conversion module is configured to convert the input video frame rate, for example, converting the 60Hz frame rate into the 120Hz frame rate or the 240Hz frame rate, and the common format is implemented in an inserting frame manner.
The display format module is used for converting the received frame rate into a video output signal, and changing the video output signal to a signal conforming to the display format, such as outputting an RGB data signal.
In some embodiments, the graphics processor 253 may be integrated with the video processor, or may be separately configured, where the integrated configuration may perform processing of graphics signals output to the display, and the separate configuration may perform different functions, such as gpu+frc (FRAME RATE Conversion) architecture, respectively.
In some embodiments, the audio processor 280 is configured to receive an external audio signal, decompress and decode the audio signal according to a standard codec protocol of an input signal, and perform noise reduction, digital-to-analog conversion, and amplification processing, so as to obtain a sound signal that can be played in a speaker.
In some embodiments, video processor 270 may include one or more chips. The audio processor may also comprise one or more chips.
In some embodiments, video processor 270 and audio processor 280 may be separate chips or may be integrated together with the controller in one or more chips.
In some embodiments, the audio output, under the control of the controller 250, receives sound signals output by the audio processor 280, such as: the speaker 286, and an external sound output terminal that can be output to a generating device of an external device, other than the speaker carried by the display device 200 itself, such as: external sound interface or earphone interface, etc. can also include the close range communication module in the communication interface, for example: and the Bluetooth module is used for outputting sound of the Bluetooth loudspeaker.
The power supply 290 supplies power input from an external power source to the display device 200 under the control of the controller 250. The power supply 290 may include a built-in power circuit installed inside the display device 200, or may be an external power source installed in the display device 200, and a power interface for providing an external power source in the display device 200.
The user interface 265 is used to receive an input signal from a user and then transmit the received user input signal to the controller 250. The user input signal may be a remote control signal received through an infrared receiver, and various user control signals may be received through a network communication module.
In some embodiments, a user inputs a user command through the control apparatus 100 or the mobile terminal 300, the user input interface is then responsive to the user input through the controller 250, and the display device 200 is then responsive to the user input.
In some embodiments, a user may input a user command through a Graphical User Interface (GUI) displayed on the display 275, and the user input interface receives the user input command through the Graphical User Interface (GUI). Or the user may input the user command by inputting a specific sound or gesture, the user input interface recognizes the sound or gesture through the sensor, and receives the user input command.
In some embodiments, a "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user that enables conversion between an internal form of information and a form acceptable to the user. A commonly used presentation form of a user interface is a graphical user interface (Graphic User Interface, GUI), which refers to a graphically displayed user interface that is related to computer operations. It may be an interface element such as an icon, a window, a control, etc. displayed in a display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
The memory 260 includes memory storing various software modules for driving the display device 200. Such as: various software modules stored in the first memory, including: at least one of a base module, a detection module, a communication module, a display control module, a browser module, various service modules, and the like.
The base module is a bottom software module for signal communication between the various hardware in the display device 200 and for sending processing and control signals to the upper modules. The detection module is used for collecting various information from various sensors or user input interfaces and carrying out digital-to-analog conversion and analysis management.
For example, the voice recognition module includes a voice analysis module and a voice instruction database module. The display control module is used for controlling the display to display the image content, and can be used for playing the multimedia image content, the UI interface and other information. And the communication module is used for carrying out control and data communication with external equipment. And the browser module is used for executing data communication between the browsing servers. And the service module is used for providing various services and various application programs. Meanwhile, the memory 260 also stores received external data and user data, images of various items in various user interfaces, visual effect maps of focus objects, and the like.
Fig. 3 exemplarily shows a block diagram of a configuration of the control apparatus 100 in accordance with an exemplary embodiment. As shown in fig. 3, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory 190, and a power supply 180.
The control apparatus 100 is configured to control the display device 200, and to receive an input operation instruction of a user, and to convert the operation instruction into an instruction recognizable and responsive to the display device 200, and to function as an interaction between the user and the display device 200. Such as: the user responds to the channel addition and subtraction operation by operating the channel addition and subtraction key on the control apparatus 100.
In some embodiments, the control apparatus 100 may be a smart device. Such as: the control apparatus 100 may install various applications for controlling the display device 200 according to user's needs.
In some embodiments, as shown in fig. 1, a mobile terminal 300 or other intelligent electronic device may function similarly to the control apparatus 100 after installing an application for manipulating the display device 200. Such as: the user may implement the functions of the physical keys of the control apparatus 100 by installing various function keys or virtual buttons of a graphical user interface available on the mobile terminal 300 or other intelligent electronic device.
The controller 110 includes a processor 112 and RAM 113 and ROM 114. The controller is used to control the operation and operation of the control device 100, as well as the communication collaboration among the internal components and the external and internal data processing functions.
The communication interface 130 enables communication of control signals and data signals with the display device 200 under the control of the controller 110. Such as: the received user input signal is transmitted to the display device 200. The communication interface 130 may include at least one of a WiFi chip 131, a bluetooth module 132, an NFC module 133, and other near field communication modules.
A user input/output interface 140, wherein the input interface includes at least one of a microphone 141, a touchpad 142, a sensor 143, keys 144, and other input interfaces. Such as: the user can implement a user instruction input function through actions such as voice, touch, gesture, press, and the like, and the input interface converts a received analog signal into a digital signal and converts the digital signal into a corresponding instruction signal, and sends the corresponding instruction signal to the display device 200.
The output interface includes an interface that transmits the received user instruction to the display device 200. In some embodiments, an infrared interface may be used, as well as a radio frequency interface. Such as: when the infrared signal interface is used, the user input instruction needs to be converted into an infrared control signal according to an infrared control protocol, and the infrared control signal is sent to the display device 200 through the infrared sending module. And the following steps: when the radio frequency signal interface is used, the user input instruction is converted into a digital signal, and then the digital signal is modulated according to a radio frequency control signal modulation protocol and then transmitted to the display device 200 through the radio frequency transmission terminal.
In some embodiments, the control device 100 includes at least one of a communication interface 130 and an input-output interface 140. The control device 100 is provided with a communication interface 130, such as: the WiFi, bluetooth, NFC, etc. modules may send the user input instruction to the display device 200 through a WiFi protocol, or a bluetooth protocol, or an NFC protocol code.
A memory 190 for storing various operation programs, data and applications for driving and controlling the control device 200 under the control of the controller. The memory 190 may store various control signal instructions input by a user.
And a power supply 180 for providing operation power support for each element of the control device 100 under the control of the controller. May be a battery and associated control circuitry.
In some embodiments, the system may include a Kernel (Kernel), a command parser (shell), a file system, and an application. The kernel, shell, and file system together form the basic operating system architecture that allows users to manage files, run programs, and use the system. After power-up, the kernel is started, the kernel space is activated, hardware is abstracted, hardware parameters are initialized, virtual memory, a scheduler, signal and inter-process communication (IPC) are operated and maintained. After the kernel is started, shell and user application programs are loaded again. The application program is compiled into machine code after being started to form a process.
Referring to FIG. 4, in some embodiments, the system is divided into four layers, from top to bottom, an application layer (referred to as an "application layer"), an application framework layer (Application Framework) layer (referred to as a "framework layer"), a An Zhuoyun row layer (Android runtime) and a system library layer (referred to as a "system runtime layer"), and a kernel layer, respectively.
In some embodiments, at least one application program is running in the application program layer, and these application programs may be a Window (Window) program of an operating system, a system setting program, a clock program, a camera application, and the like; and may be an application program developed by a third party developer, such as a hi-see program, a K-song program, a magic mirror program, etc. In particular implementations, the application packages in the application layer are not limited to the above examples, and may actually include other application packages, which the embodiments of the present application do not limit.
The framework layer provides an application programming interface (application programming interface, API) and programming framework for the application programs of the application layer. The application framework layer includes a number of predefined functions. The application framework layer corresponds to a processing center that decides to let the applications in the application layer act. Through the API interface, the application program can access the resources in the system and acquire the services of the system in the execution.
As shown in fig. 4, the application framework layer in the embodiment of the present application includes a manager (Managers), a Content Provider (Content Provider), and the like, where the manager includes at least one of the following modules: an activity manager (ACTIVITY MANAGER) is used to interact with all activities running in the system; a Location Manager (Location Manager) is used to provide system services or applications with access to system Location services; a package manager (PACKAGE MANAGER) for retrieving various information about the application packages currently installed on the device; a notification manager (Notification Manager) for controlling the display and clearing of notification messages; a Window Manager (Window Manager) is used to manage bracketing icons, windows, toolbars, wallpaper, and desktop components on the user interface.
In some embodiments, the activity manager is to: the lifecycle of each application program is managed, as well as the usual navigation rollback functions, such as controlling the exit of the application program (including switching the currently displayed user interface in the display window to the system desktop), opening, backing (including switching the currently displayed user interface in the display window to the previous user interface of the currently displayed user interface), etc.
In some embodiments, the window manager is configured to manage all window procedures, such as obtaining a display screen size, determining whether there is a status bar, locking the screen, intercepting the screen, controlling display window changes (e.g., scaling the display window down, dithering, distorting, etc.), and so on.
In some embodiments, the system runtime layer provides support for the upper layer, the framework layer, and when the framework layer is in use, the android operating system runs the C/C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software. As shown in fig. 4, the kernel layer contains at least one of the following drivers: audio drive, display drive, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (e.g., fingerprint sensor, temperature sensor, touch sensor, pressure sensor, etc.), and the like.
In some embodiments, the kernel layer further includes a power driver module for power management.
In some embodiments, the software programs and/or modules corresponding to the software architecture in fig. 4 are stored in the first memory or the second memory shown in fig. 2 or fig. 3.
In some embodiments, taking a magic mirror application (photographing application) as an example, when the remote control receiving device receives an input operation of the remote control, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the input operation into the original input event (including the value of the input operation, the timestamp of the input operation, etc.). The original input event is stored at the kernel layer. The application program framework layer acquires an original input event from the kernel layer, identifies a control corresponding to the input event according to the current position of the focus and takes the input operation as a confirmation operation, wherein the control corresponding to the confirmation operation is a control of a magic mirror application icon, the magic mirror application calls an interface of the application framework layer, the magic mirror application is started, and further, a camera driver is started by calling the kernel layer, so that a still image or video is captured through a camera.
In some embodiments, for a display device with a touch function, taking a split screen operation as an example, the display device receives an input operation (such as a split screen operation) acted on a display screen by a user, and the kernel layer may generate a corresponding input event according to the input operation and report the event to the application framework layer. The window mode (e.g., multi-window mode) and window position and size corresponding to the input operation are set by the activity manager of the application framework layer. And window management of the application framework layer draws a window according to the setting of the activity manager, then the drawn window data is sent to a display driver of the kernel layer, and the display driver displays application interfaces corresponding to the window data in different display areas of the display screen.
In some embodiments, as shown in fig. 5, the application layer contains at least one icon control that the application can display in the display, such as: a live television application icon control, a video on demand application icon control, a media center application icon control, an application center icon control, a game application icon control, and the like.
In some embodiments, the live television application may provide live television via different signal sources. For example, a live television application may provide television signals using inputs from cable television, radio broadcast, satellite services, or other types of live television services. And, the live television application may display video of the live television signal on the display device 200.
In some embodiments, the video on demand application may provide video from different storage sources. Unlike live television applications, video-on-demand provides video displays from some storage sources. For example, video-on-demand may come from the server side of cloud storage, from a local hard disk storage containing stored video programs.
In some embodiments, the media center application may provide various multimedia content playing applications. For example, a media center may be a different service than live television or video on demand, and a user may access various images or audio through a media center application.
In some embodiments, an application center may be provided to store various applications. The application may be a game, an application, or some other application associated with a computer system or other device but which may be run in a smart television. The application center may obtain these applications from different sources, store them in local storage, and then be run on the display device 200.
With the development of HTML5 (Hyper Text Markup Language, hypertext markup language 5) and related web page technologies, web apps (web page applications) developed by using HTML5 technology are increasingly accepted and favored by numerous developers. Compared with the traditional NATIVE APP (local application program), the web App has the advantages of lower development cost, simpler upgrading, easier maintenance, no installation and no consumption of user storage space. The web App is essentially a customized web site for mobile phones, televisions, and other display devices.
However, the disadvantages of the web App are also obvious, since the web App can only run in the browser of the display device, and is independent of the display device system, some customized functions, such as obtaining or setting system parameters, operating a database, and reading and writing files, are usually implemented for some application program open part interfaces, and the implementation of these functions requires the web App to call the interfaces in the display device through the browser. Currently, the industry typically makes applications available to access system resources by calling interfaces in JavaScript extensions. But the JavaScript script is automatically embedded into the page of the application program when running, all interfaces and implementation contents thereof are exposed outside, and an application program developer can see definitions of all interfaces and implementation contents thereof, so that local resources of the display device can be abused.
To prevent abuse of the display device's local resources by application developers, and also to secure information for the display device user, web App calls interfaces are often limited. In addition to the conventional approach of using application names to manage the local interface of the display device, the industry also often uses HTTP (Hyper Text Transfer Protocol ) requests in JavaScript to establish a dedicated message channel with a server, which confirms the identity of the application by obtaining the HTTP header information, and then authenticates the identity, allowing or rejecting subsequent requests by the application.
However, the local interface of the display device has high management and maintenance cost and poor expansibility, and needs to be re-adapted each time an application program is newly added or an interface is newly added. The above method using HTTP requests can solve the problem of poor expandability of the local interface of the display device, but the HTTP requests can be forged. If the third-party webpage application program successfully falsifies the HTTP request, thereby obtaining the authorization of the application program and establishing a message channel with the server, the third-party webpage application program can illegally call the local interface of the display device, which has a great threat to the user information security and the resource security of the display device.
Based on the above, the embodiment of the application provides an interface calling method for a web application, a display device and a server, which can separate an authentication flow and an interface calling flow of the web application, advance the authentication flow into a starting flow of the web application, and an interface file generated by the server in the authentication flow is difficult to be modified by the web application in a browser of the display device, so that the interface file is prevented from being forged, the situation that the display device resource is abused due to random calling of the interface by the web application is avoided, and simultaneously, the user information safety and the resource safety of the display device are ensured.
The method provided by the embodiment of the present application is divided into two methods applied to the display device 200 and the server 400 to realize communication between the display device 200 and the server 400.
Fig. 6 is a schematic diagram illustrating an interaction procedure between the display device 200 and the server 400 according to an embodiment of the present application. As shown in fig. 6, after the display device 200 and the server 400 execute the interface calling method of the web application program, an interaction process for completing the interface calling can be performed, and finally, the interface file is generated in the server 400, the interface file is loaded in the display device 200, and the interface file cannot be modified by the web application program, so that the interface file is prevented from being forged, the situation that the resources of the display device 200 are abused due to the fact that the interface is randomly called by the web application program can be avoided, and the user information security and the resource security of the display device 200 are ensured.
The display device 200 provided in the embodiment of the present application may include a controller, where the controller is mainly configured to perform: in response to the web application start instruction sent from the browser, sending related information of the web application and the display device 200 to the server 400; receiving an interface file generated according to the web application and the related information of the display device 200, which is transmitted back from the server 400; and controlling the browser to load the interface file so that the webpage application program calls the target interface. The interface file is used for determining the use authority and parameters of the target interface which the webpage application program needs to call.
The display device 200 in the embodiment of the present application may be a device that may install a browser, such as a smart phone, a smart tv, a computer, or the like, and may run a web application through the browser.
If a user wants to open a certain web application on the display device 200 through a browser, the browser needs to inform the display device 200 that the web application needs to be started, and at this time, a start instruction of the web application needs to be sent to the display device 200, where the start instruction may generally include information such as a name of the web application, a target interface that needs to be called, and so on, so that the display device 200 can learn about the situation of the web application. After receiving the start instruction, the display device 200 needs to send its related information and related information of the web application program to be started to the server 400, so that the server 400 generates a corresponding interface file according to the information.
The relevant information of the display device 200 itself includes a system version of the display device 200 or a model of the display device 200, and taking smart electricity as an example, the system version carried in the product is different or the model of the product is different at each update iteration. Since the interface function or the interface usage right corresponding to each system version is changed or updated, the display device 200 needs to send information such as the system version or the model of the display device itself, which can specify the content of the interface of the display device itself, to the server 400, so that the server 400 can accurately find the interface corresponding to the current system version of the display device 200.
The related information of the web application program comprises interface requirement information of the web application program, namely which target interface or interfaces the web application program needs to call, and the like. The display device 200 transmits the related information of itself and simultaneously transmits the interface requirement information of the web application together, so that the server 400 can accurately determine the target interface required to be invoked by the web application from the interfaces corresponding to the target system version of the display device 200.
As described above, in the case where the related information of the display apparatus 200 itself includes a system version of the display apparatus 200 or a model of the display apparatus 200, and the related information of the web application includes interface requirement information of the web application, in some embodiments, the controller in the display apparatus 200 is further configured to perform: acquiring system version information of the display device 200 and interface requirement information of a webpage application program to be started currently; the system version information and the interface requirement information are transmitted to the server 400. The interface requirement information is used for indicating information of a target interface which needs to be called by the webpage application program.
In general, after receiving the related information of the web application and the display device 200, the server 400 analyzes the current system version of the display device 200 and the target interface that the web application needs to call according to the related information, generates an interface file corresponding to the target interface by using the Python script, and sends the interface file to the display device 200.
After the server 400 determines the target interface, it also determines some type of information for the target interface. The first type is an interface based on basic setting of the display device 200, and basic setting parameters of the display device 200, such as volume, image mode, whether 4K images are supported, etc. of the current display device 200 can be obtained by calling the interface, and basic parameters can be set, such as setting the volume of the display device 200, etc.; the second type is a type of interface based on advanced setting of the display device 200, and functions that can be operated only by requiring rights can be realized by calling such interfaces, for example, reading and writing operations are performed on files in the display device 200, database contents are read and written, or some advanced functions can be set by calling such interfaces, for example, passwords of the display device 200 are set; the third class is a customized class of interfaces that are provided only for some specific web applications.
The server 400 generates respective corresponding interface files for different target interfaces according to the types of the target interfaces and some functions or rights which can be realized by the target interfaces, and the interface files define the use rights, some call parameters and the like of the target interfaces.
Generally, after the browser is loaded into the interface file, the web application program can freely call the target interface corresponding to the interface file, so as to implement some operations on the display device 200, such as setting the volume of the display device 200, setting the password of the display device 200, and the like.
In the above embodiment, the content before the browser loads the interface file may be regarded as a process of authenticating the web application program, and the interface file generated in the authentication process cannot be modified by the web application program, so that the interface file is prevented from being forged, and the abused condition of the display device 200 resources caused by the random call of the web application program by the interface is also prevented, and meanwhile, the user information security and the resource security of the display device 200 are ensured.
In order to simplify the communication process between the display device 200 and the server 400 and to quickly enable both-party communication, in some embodiments, a WebSocket connection may also be established between the display device 200 and the server 400. Fig. 7 is an interaction diagram of a WebSocket connection between a display device 200 and a server 400 according to an embodiment of the present application.
As shown in fig. 7, the controller in the display device 200 is also configured to perform: responding to a webpage application program starting instruction sent by a browser, and initiating a WebSocket connection request to a server 400; in the case of receiving a connection response sent back by the server 400, establishing WebSocket connection with the server 400; the web application and related information of the display device 200 are actively transmitted to the server 400.
Among them, webSocket is a protocol for full duplex communication over a single TCP connection, which makes data exchange between the display device 200 and the server 400 simpler, which allows the server 400 to actively push data to the display device 200. In the embodiment of the present application, based on WebSocket connection, the browser and the server 400 of the display device 200 only need to complete one handshake, and can directly create persistent connection between the two and perform bidirectional data transmission.
Upon receiving the connection request, the server 400 may send a connection response to the display device 200, indicating that a WebSocket connection may be established with the display device 200.
After the WebSocket connection is established, data or information between the display device 200 and the server 400 is transmitted based on the WebSocket, so that a communication process between the display device 200 and the server 400 can be simpler, and communication efficiency is also improved.
In some embodiments, to facilitate the server 400 to generate respective corresponding interface files for different target interfaces, the controller in the display device 200 may further store interface information corresponding to the current system version in the server 400 for configuration content of the system version of the display device 200 before starting the above method or authentication procedure.
The interface information is used to indicate the setting content and authority content of the display device 200 corresponding to all interfaces in the current system version, such as some types of information of the target interfaces described above. Typically, each time the system version of the display device 200 is updated, a new directory is created in the server 400 to store the interface information corresponding to the system version.
In some embodiments, the display device 200 may also save the interface file in a particular location after receiving the interface file so that the browser may automatically load the interface file. Further, the controller in the display device 200 is also configured to perform: storing the interface file under a preset browser directory; and controlling the browser to automatically load the interface file under the browser directory so as to enable the webpage application program to call the target interface.
The read-write permission of the browser directory is only opened to the interface calling operation of the current webpage application program, or is only opened to the current authentication flow, other operations or other programs cannot change the operation, and therefore the safety of the interface file is further guaranteed.
The server 400 provided in the embodiment of the present application may include a controller, where the controller is mainly configured to perform: receiving a web application program transmitted by the display device 200 and related information of the display device 200; generating an interface file required for calling a target interface on the display equipment 200 according to the related information and the pre-stored interface information corresponding to the current system version of the display equipment 200; the interface file is used for determining the use authority and parameters of the target interface; the interface file is sent back to the display device 200 to cause a browser on the display device 200 to load the interface file and the web application to invoke the target interface.
The related information of the display device 200 includes a system version of the display device 200 or a model number of the display device 200, and the related information of the web application includes interface requirement information of the web application, that is, which target interface or interfaces the web application needs to call, and the like.
After receiving the related information of the web application and the display device 200, the server 400 analyzes the current system version of the display device 200 and the target interface that the web application needs to call according to the related information, and then generates an interface file corresponding to the target interface by using the Python script.
After the server 400 determines the target interface, it also determines some type of information for the target interface. The first type is an interface based on basic setting of the display device 200, and basic setting parameters of the display device 200, such as volume, image mode, whether 4K images are supported or not, of the current display device 200 can be obtained by calling the interface, and the basic parameters can be set, such as setting the volume of the display device 200, which is an interface that can be called by all web applications; the second type is an interface based on advanced settings of the display device 200, and functions that can be operated only by permission can be realized by calling the interface, such as reading and writing operations on files in the display device 200, reading and writing database contents, etc., or setting advanced functions, such as setting passwords of the display device 200, etc., the interface can only be opened for web applications supporting the advanced functions or advanced settings; the third class is a customized class of interfaces that are provided only for some specific web applications.
The server 400 generates respective corresponding interface files for different target interfaces according to the types of the target interfaces and some functions or rights which can be realized by the target interfaces, and the interface files define the use rights, some call parameters and the like of the target interfaces.
After the browser is loaded to the interface file, the webpage application program can freely call the target interface corresponding to the interface file to realize some operations.
Also, in order to simplify the communication process between the display device 200 and the server 400 and to rapidly implement both-side communication, in some embodiments, a WebSocket connection may be established between the display device 200 and the server 400.
As shown in fig. 7, the controller in the server 400 is further configured to perform: receiving a WebSocket connection request initiated by the display device 200; a connection response is sent back to the display device 200, and a WebSocket connection is established with the display device 200.
Among them, webSocket is a protocol for full duplex communication over a single TCP connection, which makes data exchange between the display device 200 and the server 400 simpler, which allows the server 400 to actively push data to the display device 200. In the embodiment of the present application, based on WebSocket connection, the browser and the server 400 of the display device 200 only need to complete one handshake, and can directly create persistent connection between the two and perform bidirectional data transmission.
Upon receiving the connection request, the server 400 may send a connection response to the display device 200, indicating that a WebSocket connection may be established with the display device 200.
In some embodiments, when the interface file is generated in the server 400, the controller is further configured to perform: according to the related information, analyzing the system version of the display device 200 and the target interface required to be called by the webpage application program to be started currently; according to the system version and the target interface, interface information of the target interface is found; and generating an interface file corresponding to the target interface according to the interface information.
The interface information here refers to the type information of the interface and the like, and each target interface has its corresponding display device 200 set content and use authority, for example, interface a may be called by all web applications, interface B may be called only by web applications supporting setting of child lock passwords, interface C may be called only by web application a, and the like.
According to the above interface information, the server 400 may determine the usage rights of each target interface, and further combine the call parameters of different interfaces to generate an interface file corresponding to each target interface by using a programming language or the like.
After the server 400 sends the interface file to the display device 200, the browser of the display device 200 loads the interface file, that is, executes the program of the interface file, so that the web application program can freely call the target interface corresponding to the interface file, thereby realizing some operations on the display device 200, such as setting the volume of the display device 200, setting the password of the display device 200, and the like.
The display device 200 and the server 400 in the foregoing embodiment may perform double-ended communication to implement interface call of a web application on the display device 200, where an interface file generated in the interface call process cannot be modified by the web application, so as to avoid forging the interface file, and avoid misuse of resources of the display device 200 caused by random call of the web application by the interface, and ensure user information security and resource security of the display device 200.
In addition, the authentication process of the web application program is put in the process of starting the web application program, and the authentication is only required to be carried out once, so that the resource consumption of the equipment 200 and the server 400 can be displayed, and a certain performance is improved. The whole authentication process is carried out in the display device 200 and the server 400, normal starting of the webpage application program is not affected, all the interfaces which can be accessed after successful starting are legal, the condition that the interfaces are refused after being accessed is avoided, the problem that the normal use is affected due to the fact that the webpage application program fails to call the interfaces and errors occur is avoided, and user experience is improved.
Fig. 8 is a flowchart of an interface calling method applied to a web application on a display device 200 according to an embodiment of the present application, and as shown in fig. 8, the interface calling method of the web application includes the following steps:
In step S101, in response to the web application start instruction sent from the browser, relevant information of the web application and the display device 200 is sent to the server 400.
In step S102, an interface file generated according to the web application and the related information of the display device 200, which is transmitted back from the server 400, is received.
Step S103, controlling the browser to load the interface file so that the webpage application program calls the target interface.
Fig. 9 is a flowchart of a method for the display device 200 to send information to the server 400 according to an embodiment of the present application. In some embodiments, as shown in fig. 9, in the interface calling method applied to the web application on the display device 200, the step of transmitting the related information of the web application and the display device 200 to the server 400 may further include:
Step S201, responding to a webpage application program starting instruction sent by a browser, and initiating a WebSocket connection request to a server 400; the WebSocket connection request is used to indicate that the display apparatus 200 requests a connection for full duplex communication with the server 400 over a single TCP connection.
In step S202, when a connection response sent back from the server 400 is received, a WebSocket connection is established with the server 400.
In step S203, related information of the web application and the display device 200 is actively transmitted to the server 400.
In some embodiments, in the interface calling method applied to the web application on the display device 200, before the step of sending the web application and the related information of the display device 200 to the server 400, the interface information corresponding to the current system version may also be stored in the server 400 for the configuration content of the system version of the display device 200; the interface information is used to indicate the setting content and authority content of the display device 200 corresponding to all interfaces in the current system version.
In some embodiments, in the interface calling method applied to the web application on the display device 200, the step of transmitting the web application and the related information of the display device 200 to the server 400 may further include: acquiring system version information of the display device 200 and interface requirement information of a webpage application program to be started currently; the interface requirement information is used for indicating information of a target interface which needs to be called by the webpage application program; the system version information and the interface requirement information are transmitted to the server 400.
Fig. 10 is a flowchart of a method for a display device 200 to invoke a target interface according to an embodiment of the present application. In some embodiments, as shown in fig. 10, the step of controlling the browser to load the interface file to enable the web application to call the target interface may further include:
step S301, storing the interface file under a preset browser directory; the read-write permission of the browser directory is only opened for the interface calling operation of the current webpage application program.
Step S302, the browser is controlled to automatically load the interface file under the browser directory, so that the webpage application program calls the target interface.
Fig. 11 is a flowchart of an interface calling method applied to a web application on a server 400 according to an embodiment of the present application, and as shown in fig. 11, the interface calling method of the web application includes the following steps:
In step S401, the web application transmitted by the display apparatus 200 and the related information of the display apparatus 200 are received.
Step S402, generating an interface file required for calling a target interface on the display device 200 according to the related information and the pre-stored interface information corresponding to the current system version of the display device 200; the interface file is used for determining the use authority and parameters of the target interface.
Step S403, sending the interface file back to the display device 200, so that the browser on the display device 200 loads the interface file, and the web application invokes the target interface.
Also, in order to simplify the communication process between the display device 200 and the server 400 and to quickly implement both communication, in some embodiments, a WebSocket connection may be further established between the display device 200 and the server 400, and further, before the step of receiving the web application transmitted by the display device 200 and the related information of the display device 200, the method may further include: receiving a WebSocket connection request initiated by the display device 200; the WebSocket connection request is a request initiated by the display device 200 in response to a web application starting instruction sent by a browser, and is used for indicating that the display device 200 requests to establish a connection of full duplex communication with the server 400 on a single TCP connection; a connection response is sent back to the display device 200, and a WebSocket connection is established with the display device 200.
Fig. 12 is a flowchart of a method for generating an interface file by the server 400 according to an embodiment of the present application. In some embodiments, as shown in fig. 12, the step of generating an interface file in the server 400 may further include:
In step S501, according to the related information of the web application and the display device 200, the system version of the display device 200, or the model of the display device 200, etc., and the target interface required to be invoked by the web application to be started currently are analyzed.
Step S502, according to the system version or the model of the display device 200 and the target interface, the interface information of the target interface is found.
Step S503, according to the interface information, generating an interface file corresponding to the target interface.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. The illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (6)

1. A display device, characterized by comprising:
A controller for performing the steps of:
for configuration content of a system version of the display device, storing interface information corresponding to the current system version in a server; the interface information is used for representing the setting content and the authority content of the display equipment corresponding to all interfaces under the current system version;
responding to a webpage application program starting instruction sent by a browser, and initiating a WebSocket connection request to a server, wherein the WebSocket connection request is used for indicating that a display device requests to establish connection of full duplex communication on a single TCP connection with the server;
Under the condition of receiving a connection response sent back by the server, establishing WebSocket connection with the server;
Actively transmitting related information of the webpage application program and the display equipment to a server;
receiving an interface file generated according to the related information of the webpage application program and the display equipment and sent back by the server; the interface file is used for determining the use authority and parameters of a target interface which the webpage application program needs to call;
storing the interface file under a preset browser directory; the read-write permission of the browser directory is only opened for the interface calling operation of the current webpage application program;
and controlling the browser to automatically load the interface file under the browser directory so as to enable the webpage application program to call the target interface.
2. The display device of claim 1, wherein the controller is further configured to perform the steps of:
Acquiring system version information of display equipment and interface demand information of a webpage application program to be started currently; the interface requirement information is used for indicating information of a target interface which needs to be called by the webpage application program;
and sending the system version information and the interface requirement information to a server.
3. A server, comprising:
A controller for performing the steps of:
Storing interface information corresponding to the current system version aiming at configuration content of the display equipment system version; the interface information is used for representing the setting content and the authority content of the display equipment corresponding to all interfaces under the current system version;
receiving a WebSocket connection request initiated by display equipment; the WebSocket connection request is a request initiated by the display device when responding to a webpage application program starting instruction sent by the browser, and is used for indicating that the display device requests to establish connection of full duplex communication on a single TCP connection with the server;
Sending a connection response back to the display equipment, and establishing WebSocket connection with the display equipment;
receiving a webpage application program and related information of the display device, wherein the webpage application program and the related information of the display device are sent by the display device;
Generating an interface file required for calling a target interface on the display equipment according to the related information and the pre-stored interface information corresponding to the current system version of the display equipment; the interface file is used for determining the use authority and parameters of the target interface;
The interface file is sent back to the display equipment, so that the display equipment stores the interface file under a preset browser directory; the read-write permission of the browser directory is only opened for the interface calling operation of the current webpage application program; and enabling a browser on the display device to automatically load an interface file under the browser directory, and enabling the webpage application program to call the target interface.
4. A server according to claim 3, wherein the controller is further configured to perform the steps of:
according to the related information, analyzing a system version of the display equipment and a target interface required to be called by a webpage application program to be started currently;
according to the system version and the target interface, interface information of the target interface is found;
And generating an interface file corresponding to the target interface according to the interface information.
5. An interface calling method of a web application program, applied to a display device, is characterized by comprising the following steps:
for configuration content of a system version of the display device, storing interface information corresponding to the current system version in a server; the interface information is used for representing the setting content and the authority content of the display equipment corresponding to all interfaces under the current system version;
Responding to a webpage application program starting instruction sent by a browser, and initiating a WebSocket connection request to a server, wherein the WebSocket connection request is used for indicating that a display device requests to establish connection of full duplex communication on a single TCP connection with the server;
Under the condition of receiving a connection response sent back by the server, establishing WebSocket connection with the server;
Sending related information of the webpage application program and the display equipment to a server;
receiving an interface file generated according to the related information of the webpage application program and the display equipment and sent back by the server; the interface file is used for determining the use authority and parameters of a target interface which the webpage application program needs to call;
storing the interface file under a preset browser directory; the read-write permission of the browser directory is only opened for the interface calling operation of the current webpage application program;
and controlling the browser to automatically load the interface file under the browser directory so as to enable the webpage application program to call the target interface.
6. An interface calling method of a webpage application program, applied to a server, is characterized by comprising the following steps:
Storing interface information corresponding to the current system version aiming at configuration content of the display equipment system version; the interface information is used for representing the setting content and the authority content of the display equipment corresponding to all interfaces under the current system version;
receiving a WebSocket connection request initiated by display equipment; the WebSocket connection request is a request initiated by the display device when responding to a webpage application program starting instruction sent by the browser, and is used for indicating that the display device requests to establish connection of full duplex communication on a single TCP connection with the server;
Sending a connection response back to the display equipment, and establishing WebSocket connection with the display equipment;
receiving a webpage application program and related information of the display device, wherein the webpage application program and the related information of the display device are sent by the display device;
Generating an interface file required for calling a target interface on the display equipment according to the related information and the pre-stored interface information corresponding to the current system version of the display equipment; the interface file is used for determining the use authority and parameters of the target interface;
The interface file is sent back to the display equipment, so that the display equipment stores the interface file under a preset browser directory; the read-write permission of the browser directory is only opened for the interface calling operation of the current webpage application program; and enabling a browser on the display device to automatically load an interface file under the browser directory, and enabling the webpage application program to call the target interface.
CN202011109971.1A 2020-10-14 2020-10-16 Interface calling method of webpage application program, display equipment and server Active CN112256449B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202011109971.1A CN112256449B (en) 2020-10-16 2020-10-16 Interface calling method of webpage application program, display equipment and server
PCT/US2021/055004 WO2022081859A1 (en) 2020-10-14 2021-10-14 Page loading method and display apparatus
EP21881097.6A EP4229527A4 (en) 2020-10-14 2021-10-14 Page loading method and display apparatus
US18/065,487 US20230111113A1 (en) 2020-10-14 2022-12-13 Page loading method and display apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011109971.1A CN112256449B (en) 2020-10-16 2020-10-16 Interface calling method of webpage application program, display equipment and server

Publications (2)

Publication Number Publication Date
CN112256449A CN112256449A (en) 2021-01-22
CN112256449B true CN112256449B (en) 2024-05-17

Family

ID=74244309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011109971.1A Active CN112256449B (en) 2020-10-14 2020-10-16 Interface calling method of webpage application program, display equipment and server

Country Status (1)

Country Link
CN (1) CN112256449B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515767B (en) * 2021-08-02 2024-01-23 杭州粉象家科技有限公司 Interface request management method and device based on mixed mode mobile application
CN113778422A (en) * 2021-08-04 2021-12-10 山东浪潮通软信息科技有限公司 Method and device for publishing mobile application

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516890A (en) * 2013-09-27 2015-04-15 腾讯科技(深圳)有限公司 Business processing method, business processing device and electronic equipment
CN106970790A (en) * 2017-03-09 2017-07-21 腾讯科技(深圳)有限公司 Method, relevant device and system that a kind of application program is created
CN106993009A (en) * 2016-01-20 2017-07-28 青岛海信移动通信技术股份有限公司 A kind of method and apparatus for loading webpage in a browser
CN110765381A (en) * 2019-10-10 2020-02-07 许昌许继软件技术有限公司 Web publishing method and system of distribution network main station based on WebAssembly technology
CN111639281A (en) * 2020-05-29 2020-09-08 海信视像科技股份有限公司 Page resource display method and display equipment
CN111654753A (en) * 2020-05-22 2020-09-11 青岛海信传媒网络技术有限公司 Application program starting method and display device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013067000A1 (en) * 2011-11-01 2013-05-10 Google Inc. Launching applications from webpages

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516890A (en) * 2013-09-27 2015-04-15 腾讯科技(深圳)有限公司 Business processing method, business processing device and electronic equipment
CN106993009A (en) * 2016-01-20 2017-07-28 青岛海信移动通信技术股份有限公司 A kind of method and apparatus for loading webpage in a browser
CN106970790A (en) * 2017-03-09 2017-07-21 腾讯科技(深圳)有限公司 Method, relevant device and system that a kind of application program is created
CN110765381A (en) * 2019-10-10 2020-02-07 许昌许继软件技术有限公司 Web publishing method and system of distribution network main station based on WebAssembly technology
CN111654753A (en) * 2020-05-22 2020-09-11 青岛海信传媒网络技术有限公司 Application program starting method and display device
CN111639281A (en) * 2020-05-29 2020-09-08 海信视像科技股份有限公司 Page resource display method and display equipment

Also Published As

Publication number Publication date
CN112256449A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN111752518A (en) Screen projection method of display equipment and display equipment
CN112214189B (en) Image display method and display device
CN112019782B (en) Control method and display device of enhanced audio return channel
CN112135180B (en) Content display method and display equipment
CN111787377B (en) Display device and screen projection method
CN111970549B (en) Menu display method and display device
CN112118400B (en) Display method of image on display device and display device
CN112243141B (en) Display method and display equipment for screen projection function
CN112087671B (en) Display method and display equipment for control prompt information of input method control
CN112256449B (en) Interface calling method of webpage application program, display equipment and server
CN112306604B (en) Progress display method and display device for file transmission
CN111818654B (en) Channel access method and display device
CN116017006A (en) Display device and method for establishing communication connection with power amplifier device
CN112040340A (en) Resource file acquisition method and display device
CN112017415A (en) Recommendation method of virtual remote controller, display device and mobile terminal
CN114390190B (en) Display equipment and method for monitoring application to start camera
CN111787115B (en) Server, display device and file transmission method
CN111857936B (en) User interface display method and display device of application program
CN111787117A (en) Data transmission method and display device
CN112668546A (en) Video thumbnail display method and display equipment
CN111818368A (en) Method for managing display device authority, mobile terminal and server
CN113810747A (en) Display equipment and signal source setting interface interaction method
CN112231088B (en) Browser process optimization method and display device
CN113438553B (en) Display device awakening method and display device
CN111913755B (en) Application scanning method and display device

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