CN110191169A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN110191169A
CN110191169A CN201910439935.2A CN201910439935A CN110191169A CN 110191169 A CN110191169 A CN 110191169A CN 201910439935 A CN201910439935 A CN 201910439935A CN 110191169 A CN110191169 A CN 110191169A
Authority
CN
China
Prior art keywords
data
web page
terminal device
sent
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910439935.2A
Other languages
Chinese (zh)
Inventor
周戈
张曙光
徐豪杰
孙观楠
韩延杰
纪孝桢
邱东生
李鞠佑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201910439935.2A priority Critical patent/CN110191169A/en
Publication of CN110191169A publication Critical patent/CN110191169A/en
Pending legal-status Critical Current

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4222Remote control device emulator integrated into a non-television apparatus, e.g. a PDA, media center or smart toy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42226Reprogrammable remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Abstract

The application discloses a kind of data processing method and device, and wherein the data processing method includes: the web data acquisition request that receiving terminal apparatus is sent;Target webpage data are sent to the terminal device, so that the terminal device loads the target webpage data and generates Interactive Web Page;If receiving the web page operation for the Interactive Web Page that the terminal device is sent to instruct, web page operation instruction is converted into the application program instructions that the destination application executes, the web page operation instruction is packaged based on webpage transport protocol;The destination application is called to execute the application program instructions.Using the technical solution of the application, the deployment cost of terminal device can be reduced, and compatibility is strong.

Description

Data processing method and device
Technical field
The present invention relates to Internet technical field more particularly to a kind of data processing method and devices.
Background technique
As smart television is gradually popularized, the application program of smart television is also more and more abundant, but only by remote controler It is able to achieve the simple control operation to the application program of smart television, for some complex operations, for example text input, long list The controls operation such as rolling, search, using remote controler with regard to very inconvenient.Therefore it occurs as soon as using mobile terminal and controls intelligent electricity Depending on application program example, such as the current more commonly used technical solution for being namely based on Infrared Transmission agreement, with infrared Corresponding infrared intelligent TV is searched and matched to the terminal device of module, such as mobile phone, by red according to Infrared Transmission agreement The specific order of external signal coding, realizes control function.In realizing process of the present invention, inventor is had found in the prior art at least There are the following problems: terminal device has specific infrared module, needs to install specific software, and instruction or data are converted It is emitted for infrared signal.And this scheme also needs that (most of terminal devices are not supported by external hardware adapter It is infrared) emit infrared signal.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method and device, realizes the control to application program by Interactive Web Page System can reduce the deployment cost of terminal device, and compatibility is strong.
In a first aspect, the embodiment of the invention provides a kind of data processing methods, comprising:
The web data acquisition request that receiving terminal apparatus is sent;
Target webpage data are sent to the terminal device, so that the terminal device loads the target webpage data Generate Interactive Web Page;
If receiving the web page operation for the Interactive Web Page that the terminal device is sent to instruct, the webpage is grasped Make instruction and be converted to the application program instructions that the destination application executes, the web page operation instruction is based on webpage transmission association View is packaged;
The destination application is called to execute the application program instructions.
In a kind of possible realization, the method also includes:
If detecting the data-pushing instruction of the destination application, destination application number to be pushed is obtained According to content;
The data content is encapsulated as the first data packet based on webpage transport protocol;
First data packet is sent to the terminal device, so that the terminal device is according to first data packet The data content described in the Interactive Web Page loaded and displayed.
In a kind of possible realization, the web page operation instruction includes that data acquisition instructs, the data acquisition instruction Identification information comprising the web data for needing to obtain, it is described that web page operation instruction is converted into the destination application The application program instructions of execution, comprising:
The web page operation instruction is parsed, the identification information is obtained;
The identification information is re-packaged into be used to indicate the destination application and obtain the identification information and is marked The application program instructions of the web data of knowledge;
It is described that the destination application is called to execute the application program instructions, comprising:
The destination application is called to obtain the webpage that the identification information is identified according to the application program instructions Data;
The web data is encapsulated as the second data packet based on webpage transport protocol;
Second data packet is sent to the terminal device, so that the terminal device is according to second data packet The web data described in the Interactive Web Page loaded and displayed.
In a kind of possible realization, the web page operation instruction includes that event action instructs, the event action instruction Operation information comprising the object run for needing to carry out, it is described that web page operation instruction is converted into the destination application The application program instructions of execution, comprising:
The web page operation instruction is parsed, the operation information is obtained;
The operation information is re-packaged into and is used to indicate the destination application and carries out answering for the object run Use program instruction;
It is described that the destination application is called to execute the application program instructions, comprising:
The destination application is called to execute the target according to the operation information in the application program instructions Operation.
In a kind of possible realization, the webpage transport protocol includes websocket protocol;It is described by target network number of pages According to being sent to after the terminal device, further includes:
Receive the websocket connection request that the terminal device is sent;
Establish the websocket network connection channel between the smart television and the terminal device;
If the web page operation for the Interactive Web Page for receiving terminal device transmission instructs, the webpage is grasped Make instruction and be converted to the application program instructions that the destination application executes, comprising:
The interactive network is directed to based on what websocket network connection channel was sent if receiving the terminal device Web page operation instruction is converted to the application program instructions that the destination application executes by the web page operation instruction of page;
It is described that first data packet is sent to the terminal device, comprising:
First data packet is sent to the terminal device based on websocket network connection channel.
In a kind of possible realization, the web data acquisition request is hypertext transfer protocol http request, described Web data acquisition request includes to need the address information of the target webpage data obtained;
It is described that target webpage data are sent to the terminal device, comprising:
The target webpage data are obtained according to the address information, and are based on http agreement for the target webpage data It is sent to the terminal device.
In a kind of possible realization, before the webpage connection request that the receiving terminal apparatus is sent, further includes:
Output includes the graphic code of the address information, so that graphic code described in the terminal device scans obtains describedly Location information.
Second aspect, the embodiment of the present invention provide a kind of data processing equipment, are applied to smart television, the smart television Installation targets application program, the data processing equipment include:
First receiving module, the web data acquisition request sent for receiving terminal apparatus;
First sending module, for target webpage data to be sent to the terminal device, so that the terminal device adds It carries the target webpage data and generates Interactive Web Page;
Conversion module, if referring to for receiving the web page operation for the Interactive Web Page that the terminal device is sent It enables, web page operation instruction is converted into the application program instructions that the destination application executes, the web page operation refers to It enables and being packaged based on webpage transport protocol;
Calling module, for calling the destination application to execute the application program instructions.
In a kind of possible design, described device further include:
Module is obtained, if obtaining the target application for detecting that the data-pushing of the destination application instructs Program data content to be pushed;
Package module, for the data content to be encapsulated as the first data packet based on webpage transport protocol;
Second sending module, for first data packet to be sent to the terminal device, so that the terminal device According to first data packet data content described in the Interactive Web Page loaded and displayed.
In a kind of possible design, the web page operation instruction includes that data acquisition instructs, the data acquisition instruction Identification information comprising the web data for needing to obtain, the conversion module include:
First resolution unit obtains the identification information for parsing the web page operation instruction;
First encapsulation unit is used to indicate the destination application acquisition for the identification information to be re-packaged into The application program instructions for the web data that the identification information is identified;
The calling module includes:
Call unit, for calling the destination application to obtain the identification information according to the application program instructions The web data identified;
Second encapsulation unit, for the web data to be encapsulated as the second data packet based on webpage transport protocol;
Transmission unit, for second data packet to be sent to the terminal device so that the terminal device according to Second data packet web data described in the Interactive Web Page loaded and displayed.
In a kind of possible design, the web page operation instruction includes that event action instructs, the event action instruction Operation information comprising the object run for needing to carry out, the conversion module include:
Second resolution unit obtains the operation information for parsing the web page operation instruction;
Third encapsulation unit is used to indicate the destination application progress for the operation information to be re-packaged into The application program instructions of the object run;
The calling module is specifically used for calling the destination application according in the application program instructions Operation information executes the object run.
In a kind of possible design, the webpage transport protocol includes websocket protocol;Described device further include:
Second receiving module, the websocket connection request sent for receiving the terminal device;
Module is established, the websocket network connection for establishing between the smart television and the terminal device is logical Road;
If the conversion module is specifically used for receiving the terminal device based on websocket network connection channel The web page operation for the Interactive Web Page sent instructs, and web page operation instruction is converted to the destination application The application program instructions of execution;
Second sending module is specifically used for being connected to the network channel for first data packet based on the websocket It is sent to the terminal device.
In a kind of possible design, the web data acquisition request is hypertext transfer protocol http request, described Web data acquisition request includes to need the address information of the target webpage data obtained;
First sending module is specifically used for obtaining the target webpage data according to the address information, and is based on The target webpage data are sent to the terminal device by http agreement.
In a kind of possible design, described device further include:
Output module, for exporting the graphic code comprising the address information, so as to scheme described in the terminal device scans Shape code obtains the address information.
The third aspect, the embodiment of the present invention provide a kind of data processing equipment, are applied to smart television, the smart television Installation targets application program, the data processing equipment include processor and memory;
The processor is connected with memory, wherein for storing program code, the processor is used for the memory Said program code is called, to execute method described in first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer storage medium, which is characterized in that the computer storage Media storage has computer program, and the computer program includes program instruction, and described program instructs when being executed by a processor, Execute method described in first aspect.
In the embodiment of the present invention, the web data acquisition request that receiving terminal apparatus is sent sends target webpage data The terminal device is given, which loads the target webpage data and generate Interactive Web Page, if receiving terminal device transmission For the web page operation instruction of the Interactive Web Page, the application program that web page operation instruction is converted to destination application execution is referred to It enables, web page operation instruction is packaged based on webpage transport protocol, and invocation target application program executes the application program Instruction.This mode does not need terminal device and additionally increases hardware, does not need additionally to install application program, it is only necessary to which terminal is set yet Standby supported web page loaded and displayed can greatly reduce the deployment cost of terminal device in this way, and compatibility is strong.
Detailed description of the invention
In order to illustrate the embodiment of the present invention or technical solution in the prior art, embodiment or the prior art will be retouched below Attached drawing needed in stating is briefly described.
Fig. 1 is a kind of system architecture diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of data processing method provided in an embodiment of the present invention;
Fig. 3 is a kind of functional module interaction figure provided in an embodiment of the present invention;
Fig. 4 is a kind of webpage interaction diagrams provided in an embodiment of the present invention;
Fig. 5 is a kind of queue schematic diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of data processing equipment provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another data processing equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
Fig. 1 is please referred to, is a kind of system architecture diagram provided in an embodiment of the present invention, as shown, the system architecture includes Terminal device and smart television, the smart television installation targets application program, the installing terminal equipment can arbitrarily show Web page The application program in face, such as browser or instant communication client etc..Smart television and terminal device can be by wireless The mode of local area network is connected to the network, and terminal device can send web data acquisition request to smart television, such as super literary This transport protocol (Hyper Text Transport Protocol, http) request, optionally, the web data acquisition request It may include the address information for needing the target webpage data obtained, can optionally, in smart television embed a service Server functional module, web data are stored in the server functional module, and address information is web data in the server The address information of functional module, for example web data is in the network interconnection agreement (Internet of the server functional module Protocol, IP) address and port numbers.Specific optional, terminal device can pass through the two dimensional code of scanning smart television output Mode, alternatively, user directly terminal device input IP address and port numbers mode, to smart television send web data Acquisition request.Smart television receives web data acquisition request, and target webpage data are sent to terminal device, the target network Page data can be operable Web page (including direction key, search box, acknowledgement key, contents list etc. of smart television Deng) corresponding web data, terminal device loads the target webpage data and generates Interactive Web Page, which is intelligent electricity Depending on operable Web page.User can carry out web page operation on the Interactive Web Page, for example, carry out text input operation, Long list slide etc..When user is when Interactive Web Page carries out web page operation, terminal device sends needle to smart television Web page operation instruction to the Interactive Web Page, web page operation instruction are packaged based on webpage transport protocol, the webpage Transport protocol can be Websocket agreement.Corresponding operation, intelligence are executed in order to can control the destination application of smart television Web page operation instruction is converted to the application program instructions that destination application is able to carry out, and invocation target application by energy TV Program executes the application program instructions.
In above-mentioned whole flow process, does not need terminal device and any application program is additionally installed, do not need terminal device volume yet The outer corresponding hardware device of configuration, thus it is not high for the configuration requirement of terminal device, the end of webpage load arbitrarily may be implemented End equipment can be realized, can greatly reduce the deployment cost of terminal device, and compatibility is strong.
Below in conjunction with attached drawing 2- attached drawing 5, describe in detail to data processing method provided in an embodiment of the present invention.
Fig. 2 is referred to, for the embodiment of the invention provides a kind of flow diagrams of data processing method.As shown in Fig. 2, The data processing method of the embodiment of the present invention may comprise steps of S101- step S107.
S101, the web data acquisition request that receiving terminal apparatus is sent;
In one embodiment, terminal device is that same local area network and energy loaded and displayed webpage are in smart television Platform device, for example can be smart phone, tablet computer, PC etc..Web data acquisition request can be http request,
It optionally, may include the address information for needing the target webpage data obtained in the web data acquisition request, The address information is used to indicate target webpage data in the storage address of smart television.Optionally, smart television includes server Functional module, the address information can be target webpage data in the address information of server functional module, such as server function The IP address and port numbers of energy module.
Optionally, user can be in the IP address and port numbers of terminal device input target webpage data, to trigger end End equipment sends web data acquisition request or the graphic code of terminal device scans smart television output also can be used in user Mode, it includes IP address and port numbers in the graphic code, graphic code can that triggering terminal equipment, which sends web data acquisition request, To be two dimensional code.The web data acquisition request that smart television receiving terminal apparatus is sent, and parse web data acquisition and ask It asks.
It optionally, can not include address information in the web data acquisition request, for example the smart television only includes The web data of one Interactive Web Page, alternatively, the web data acquisition request is that obtain the smart television to smart television current The page resource of the shown page, it is also not necessary to carry address information.
Smart television may include service server functional module, and server functional module and terminal device carry out webpage friendship Mutually, optionally, as shown in figure 3, the server functional module can be built in inside destination application, server functional module By being interacted between message processing module and destination application.The server functional module support simultaneously http agreement and Websocket agreement.Some target webpage data for needing to show user can be loaded in server functional module (HTML, JS, CSS etc.).Smart television can be by the IP address of target webpage data and port numbers with graphic code (such as two dimension Code) or the form of text show user, user inputs IP address and port numbers in terminal device or user utilizes terminal device The graphic code of smart television output is scanned, to send web data acquisition request to smart television.Wherein, IP address and port Number it can be 192.168.1.110:8888.
Target webpage data are sent to the terminal device by S102, so that the terminal device loads the target network Page data generates Interactive Web Page;
In one embodiment, target webpage data can be sent to terminal device by http agreement by smart television, Terminal device receives the target webpage data, and loads the target webpage data and generate Interactive Web Page, which includes side To key, search box, acknowledgement key, contents list etc..User can operate in the Interactive Web Page, for example search for some song Song, or the list of songs for searching for some singer etc..Optionally, web data acquisition request includes the ground of target webpage data Location information, such as target webpage data are then needed in the IP address and port numbers of server functional module according to the address information Target webpage data are obtained, http agreement is then based on by target webpage data and is sent to terminal device.
Optionally, terminal device is when loading Interactive Web Page, the embedded logic of Interactive Web Page can automatically in terminal device and A WebSocket network connection channel is established between server functional module.Optionally, terminal device is in load target webpage After data, js logic actively initiates a WebSocket connection request, server function to the server functional module of smart television The WebSocket connection request of energy module response terminal device, and establish WebSocket network connection channel.It is based on WebSocket is connected to the network channel, and terminal device and smart television carry out the bi-directional of order and data, reaches remote control intelligence The purpose of TV.
S103 is instructed if receiving the web page operation for the Interactive Web Page that the terminal device is sent, will be described Web page operation instruction is converted to the application program instructions that the destination application executes, and the web page operation instruction is based on webpage Transport protocol is packaged;
In one embodiment, destination application can be any one application program that smart television is installed, than Such as music class application program.When operating on the Interactive Web Page that terminal device is loaded, terminal device is based on user Websocket is connected to the network channel and sends the web page operation instruction for being directed to the Interactive Web Page to smart television, which refers to Order is packaged based on webpage transport protocol, which can be Websocket agreement.Implement in the present invention In example, smart television includes server functional module, the target of the server functional module as terminal device and smart television The bridge linked up between application program and intermediary, smart television is by the received web page operation instruction input server function mould of institute Web page operation instruction is converted to the application program instructions of destination application execution by block, server functional module, i.e., Server functional module parses the web page operation instruction of Websocket protocol encapsulation, and is re-packaged into target application The application program instructions that program can be identified and be executed.
Optionally, as shown in figure 3, being carried out between server functional module and destination application by message processing module The application program instructions after then server functional module is packaged into application program instructions, are inputted message processing module by interaction, should Inside message processing module, an instruction queue is maintain, can be joined the team to instruction and dequeue operation.The application program refers to Enqueue operations are carried out after enabling in inbound message processing module, to guarantee the orderly execution of instruction.
S104 calls the destination application to execute the application program instructions.
In one embodiment, the destination application executing application instruction for calling the smart television to be installed, from And realize corresponding operation.Optionally, application program instructions can be is executed by way of instruction queue.
Optionally, above-mentioned web page operation instruction includes that data acquisition instructs, and data acquisition instruction is needed comprising terminal device The identification information for the web data to be obtained, such as terminal device need to obtain the list of songs of some singer, then the mark is believed Breath can be the name of the singer.Web page operation instruction is to be encapsulated based on webpage transport protocol, for example Websocket is assisted View.After the server functional module of smart television receives web page operation instruction, web page operation instruction is parsed, is obtained The identification information for taking web page operation instruction to carry, and the instruction format executed according to application program, again by the identification information It is packaged as application program instructions, which is the instruction that destination application can be identified and directly be executed. When invocation target application program executes the application program instructions, the data-interface of the destination application is called, obtains mark letter Identified web data is ceased, for example identification information is the name of singer, then obtains the corresponding webpage of list of songs of the singer Data.Due to being communicated based on webpage transport protocol between smart television and terminal device, also need based on net The web data is encapsulated as the second data packet by page transport protocol, which can be Websocket agreement.Into one Second data packet is sent to terminal device based on the network connection channel Websocket by step, and terminal device is based on Websocket Agreement parses second data packet, obtains web data, and in the Interactive Web Page loaded and displayed web data.
Optionally, above-mentioned web page operation instruction includes that event action instructs, and event action instruction includes to need to carry out The operation information of object run, optionally, object run can be program point selection operation, cursor slide etc..Work as user When Interactive Web Page carries out corresponding operation, terminal device sends corresponding event action instruction, the event to smart television Operational order is packaged based on webpage transport protocol, and webpage transport protocol can be Websocket agreement.Smart television Server functional module be based on webpage transport protocol parse the web page operation instruction, obtain operation information, and according to apply journey The operation information is re-packaged into and is used to indicate the application that destination application carries out object run by the instruction format that sequence executes Program instruction.Invocation target application program is operated according to the operation information performance objective in application program instructions.
S105 obtains the destination application and waits pushing away if detecting the data-pushing instruction of the destination application The data content sent;
In one embodiment, the destination application of smart television can also to terminal device propelling data content, than Such as the data content of update, optionally, destination application generates data-pushing instruction, and the data-pushing instruction input is disappeared The instruction queue of breath processing module join the team etc. pending.When executing data-pushing instruction, the server of smart television Functional module obtains destination application data content to be pushed.
The data content is encapsulated as the first data packet based on webpage transport protocol by S106;
Optionally, the server functional module of smart television is based on webpage transport protocol and the data content is encapsulated as first Data packet, the webpage transport protocol can be Websocket agreement.
First data packet is sent to the terminal device, so that the terminal device is according to described first by S107 Data packet data content described in the Interactive Web Page loaded and displayed.
In one embodiment, which is based on Websocket net by the server functional module of smart television First data packet is sent to terminal device by network interface channel, and terminal device is connected to the network channel reception by Websocket First data packet, and in the Interactive Web Page loaded and displayed data content.
As shown in figure 5, being server functional module, destination application and Message Processing provided in an embodiment of the present invention Interaction schematic diagram between module, message processing module are the intermediaries for connecting server functional module and destination application, such as Shown in figure, server functional module and destination application join the team instruction into the instruction queue of message processing module, such as scheme It is shown, in order to distinguish various application program instructions, indicates that data acquisition instruction is corresponding using data command in Fig. 5 and apply journey Sequence instruction indicates that event action instructs corresponding application program instructions, data command, event command and number using event command It joins the team into instruction queue according to push instruction, in addition there are a separate threads to recycle, and it constantly takes out and instructs from instruction queue, Then it executes, guarantees the order of instruction execution.
As shown, the event action instruction that event command is mainly terminal device transmission is converted by server functional module The application program instructions obtained afterwards carry out instruction enqueue operations by server functional module.The instruction is given after queue taking-up Destination application is handled.
Data command is mainly that the data acquisition instruction of terminal device transmission is obtained after the conversion of server functional module Application program instructions carry out instruction enqueue operations by server functional module.The instruction gives target application after queue taking-up Program is handled, and is then given acquired web data to server functional module and is packaged, it is concurrent to obtain data packet The interaction page for giving terminal device carries out loaded and displayed.
Data-pushing instruction is mainly that destination application needs to generate to interaction page active push data content, by Destination application carries out instruction enqueue operations.After queue taking-up, the propelling data of invocation target application program is connect for the instruction Mouthful, the data content that will acquire is given server functional module and is packaged, and the friendship that data packet is sent to terminal device is obtained The mutual page carries out loaded and displayed.
In the embodiment of the present invention, the web data acquisition request that receiving terminal apparatus is sent sends target webpage data The terminal device is given, which loads the target webpage data and generate Interactive Web Page, if receiving terminal device transmission For the web page operation instruction of the Interactive Web Page, the application program that web page operation instruction is converted to destination application execution is referred to It enables, web page operation instruction is packaged based on webpage transport protocol, and invocation target application program executes the application program Instruction.This mode does not need terminal device and additionally increases hardware, does not need additionally to install application program, it is only necessary to which terminal is set yet Standby supported web page loaded and displayed can greatly reduce the deployment cost of terminal device in this way, and compatibility is strong.
As shown in figure 4, being a kind of interaction figure of terminal device and smart television provided in an embodiment of the present invention, as schemed institute Show, service module function and destination application are respectively positioned on smart television, and service module function can also be that being nested in target answers With in program, as shown, various components interactive process is as follows:
1, timing is established in connection:
<1>the terminal device client of Web page (i.e. interaction page), scanning two dimension can be shown in any same local area network Code or input IP address and port numbers can send http request to the built-in services server functional module of smart television, Obtain web resource.
<2>server functional module built in receives the http request of client, by the web resource of server (html, js, Css terminal device) is transferred to by http agreement.
<3>terminal device load web resource finishes, and js logic actively initiates one to server functional module WebSocket connection request.
<4>the WebSocket request of server functional module response terminal device, it is established that a WebSocket network Interface channel.
2, data acquisition instruction processing timing (Web page of terminal device need to obtain the data of destination application into Row is shown):
<1>Web page of terminal device, in the web data of the destination application of request smart television, hair It send the data acquisition based on the encapsulation of webpage transport protocol to instruct and gives server functional module.
<2>server functional module parsing data acquisition instruction, and be re-packaged into application program and can identify and execute Data command, data command is put into message processing module.
<3>destination application obtains data command, calls data-interface, and acquired web data is returned to Server functional module.
<4>server functional module is based on webpage transport protocol and web data is encapsulated as data packet, returns to terminal and sets Standby Web page.
<5>web data is parsed and is shown by the Web page of terminal device.
3, event action instruction processing timing (for example user puts selection operation in Web page):
<1>Web page of terminal device sends event action and instructs to smart television after user's operation Server functional module.
<2>server functional module parsing event action instruction, and be re-packaged into application program and can identify and execute Event command, event command is put into message processing module.
<3>destination application obtains event command, executes event according to event command.
4, (destination application has new data content needs to be pushed to the data content push timing of destination application Web page):
<1>destination application gets out data content to be pushed, and generates data-pushing instruction, which refers to The identification information comprising data content to be pushed is enabled, which is instructed into the instruction team into message processing module that joins the team It arranges medium pending, when executing data-pushing instruction, obtains data content to be pushed according to identification information, and by the number Server functional module is given according to content push.
<2>server functional module is based on webpage transport protocol and data content is encapsulated as data packet, returns to terminal and sets Standby Web page.
<3>data content is parsed and is shown by the Web page of terminal device.
Fig. 6 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of data processing equipment.As shown in fig. 6, The data processing equipment of the embodiment of the present invention may include:
First receiving module 11, the web data acquisition request sent for receiving terminal apparatus;
In one embodiment, terminal device is that same local area network and energy loaded and displayed webpage are in smart television Platform device, for example can be smart phone, tablet computer, PC etc..Web data acquisition request can be http request,
It optionally, may include the address information for needing the target webpage data obtained in the web data acquisition request, The address information is used to indicate target webpage data in the storage address of smart television.Optionally, smart television includes server Functional module, the address information can be target webpage data in the address information of server functional module, such as server function The IP address and port numbers of energy module.
Optionally, user can be in the IP address and port numbers of terminal device input target webpage data, to trigger end End equipment sends web data acquisition request or the graphic code of terminal device scans smart television output also can be used in user Mode, it includes IP address and port numbers in the graphic code, graphic code can that triggering terminal equipment, which sends web data acquisition request, To be two dimensional code.The web data acquisition request that smart television receiving terminal apparatus is sent, and parse web data acquisition and ask It asks.
It optionally, can not include address information in the web data acquisition request, for example the smart television only includes The web data of one Interactive Web Page, alternatively, the web data acquisition request is that obtain the smart television to smart television current The page resource of the shown page, it is also not necessary to carry address information.
Smart television may include service server functional module, and server functional module and terminal device carry out webpage friendship Mutually, optionally, as shown in figure 3, the server functional module can be built in inside destination application, server functional module By being interacted between message processing module and destination application.The server functional module support simultaneously http agreement and Websocket agreement.Some target webpage data for needing to show user can be loaded in server functional module (HTML, JS, CSS etc.).Smart television can be by the IP address of target webpage data and port numbers with graphic code (such as two dimension Code) or the form of text show user, user inputs IP address and port numbers in terminal device or user utilizes terminal device The graphic code of smart television output is scanned, to send web data acquisition request to smart television.Wherein, IP address and port Number it can be 192.168.1.110:8888.
First sending module 12, for target webpage data to be sent to the terminal device, so that the terminal device It loads the target webpage data and generates Interactive Web Page;
In one embodiment, target webpage data can be sent to terminal device by http agreement by smart television, Terminal device receives the target webpage data, and loads the target webpage data and generate Interactive Web Page, which includes side To key, search box, acknowledgement key, contents list etc..User can operate in the Interactive Web Page, for example search for some song Song, or the list of songs for searching for some singer etc..Optionally, web data acquisition request includes the ground of target webpage data Location information, such as target webpage data are then needed in the IP address and port numbers of server functional module according to the address information Target webpage data are obtained, http agreement is then based on by target webpage data and is sent to terminal device.
Optionally, terminal device is when loading Interactive Web Page, the embedded logic of Interactive Web Page can automatically in terminal device and A WebSocket network connection channel is established between server functional module.Optionally, terminal device is in load target webpage After data, js logic actively initiates a WebSocket connection request, server function to the server functional module of smart television The WebSocket connection request of energy module response terminal device, and establish WebSocket network connection channel.It is based on WebSocket is connected to the network channel, and terminal device and smart television carry out the bi-directional of order and data, reaches remote control intelligence The purpose of TV.
Conversion module 13, if referring to for receiving the web page operation for the Interactive Web Page that the terminal device is sent It enables, web page operation instruction is converted into the application program instructions that the destination application executes, the web page operation refers to It enables and being packaged based on webpage transport protocol;
In one embodiment, destination application can be any one application program that smart television is installed, than Such as music class application program.When operating on the Interactive Web Page that terminal device is loaded, terminal device is based on user Websocket is connected to the network channel and sends the web page operation instruction for being directed to the Interactive Web Page to smart television, which refers to Order is packaged based on webpage transport protocol, which can be Websocket agreement.Implement in the present invention In example, smart television includes server functional module, the target of the server functional module as terminal device and smart television The bridge linked up between application program and intermediary, smart television is by the received web page operation instruction input server function mould of institute Web page operation instruction is converted to the application program instructions of destination application execution by block, server functional module, i.e., Server functional module parses the web page operation instruction of Websocket protocol encapsulation, and is re-packaged into target application The application program instructions that program can be identified and be executed.
Optionally, as shown in figure 3, being carried out between server functional module and destination application by message processing module The application program instructions after then server functional module is packaged into application program instructions, are inputted message processing module by interaction, should Inside message processing module, an instruction queue is maintain, can be joined the team to instruction and dequeue operation.The application program refers to Enqueue operations are carried out after enabling in inbound message processing module, to guarantee the orderly execution of instruction.
Optionally, the web page operation instruction includes that data acquisition instructs, and the data acquisition instruction is comprising needing to obtain Web data identification information, the conversion module includes:
First resolution unit obtains the identification information for parsing the web page operation instruction;
First encapsulation unit is used to indicate the destination application acquisition for the identification information to be re-packaged into The application program instructions for the web data that the identification information is identified;
The calling module includes:
Call unit, for calling the destination application to obtain the identification information according to the application program instructions The web data identified;
Second encapsulation unit, for the web data to be encapsulated as the second data packet based on webpage transport protocol;
Transmission unit, for second data packet to be sent to the terminal device so that the terminal device according to Second data packet web data described in the Interactive Web Page loaded and displayed.
Optionally, above-mentioned web page operation instruction includes that data acquisition instructs, and data acquisition instruction is needed comprising terminal device The identification information for the web data to be obtained, such as terminal device need to obtain the list of songs of some singer, then the mark is believed Breath can be the name of the singer.Web page operation instruction is to be encapsulated based on webpage transport protocol, for example Websocket is assisted View.After the server functional module of smart television receives web page operation instruction, web page operation instruction is parsed, is obtained The identification information for taking web page operation instruction to carry, and the instruction format executed according to application program, again by the identification information It is packaged as application program instructions, which is the instruction that destination application can be identified and directly be executed. When invocation target application program executes the application program instructions, the data-interface of the destination application is called, obtains mark letter Identified web data is ceased, for example identification information is the name of singer, then obtains the corresponding webpage of list of songs of the singer Data.Due to being communicated based on webpage transport protocol between smart television and terminal device, also need based on net The web data is encapsulated as the second data packet by page transport protocol, which can be Websocket agreement.Into one Second data packet is sent to terminal device based on the network connection channel Websocket by step, and terminal device is based on Websocket Agreement parses second data packet, obtains web data, and in the Interactive Web Page loaded and displayed web data.
Optionally, the web page operation instruction includes that event action instructs, and the event action instruction is comprising needing to carry out Object run operation information, the conversion module includes:
Second resolution unit obtains the operation information for parsing the web page operation instruction;
Third encapsulation unit is used to indicate the destination application progress for the operation information to be re-packaged into The application program instructions of the object run;
Optionally, above-mentioned web page operation instruction includes that event action instructs, and event action instruction includes to need to carry out The operation information of object run, optionally, object run can be program point selection operation, cursor slide etc..Work as user When Interactive Web Page carries out corresponding operation, terminal device sends corresponding event action instruction, the event to smart television Operational order is packaged based on webpage transport protocol, and webpage transport protocol can be Websocket agreement.Smart television Server functional module be based on webpage transport protocol parse the web page operation instruction, obtain operation information, and according to apply journey The operation information is re-packaged into and is used to indicate the application that destination application carries out object run by the instruction format that sequence executes Program instruction.Invocation target application program is operated according to the operation information performance objective in application program instructions.
The calling module is specifically used for calling the destination application according in the application program instructions Operation information executes the object run.
Calling module 14, for calling the destination application to execute the application program instructions.
In one embodiment, the destination application executing application instruction for calling the smart television to be installed, from And realize corresponding operation.Optionally, application program instructions can be is executed by way of instruction queue.
Optionally, as shown in fig. 6, the data processing equipment further include:
Module 15 is obtained, if obtaining the target for detecting that the data-pushing of the destination application instructs and answering With program data content to be pushed;
In one embodiment, the destination application of smart television can also to terminal device propelling data content, than Such as the data content of update, optionally, destination application generates data-pushing instruction, and the data-pushing instruction input is disappeared The instruction queue of breath processing module join the team etc. pending.When executing data-pushing instruction, the server of smart television Functional module obtains destination application data content to be pushed.
Package module 16, for the data content to be encapsulated as the first data packet based on webpage transport protocol;
Optionally, the server functional module of smart television is based on webpage transport protocol and the data content is encapsulated as first Data packet, the webpage transport protocol can be Websocket agreement.
Second sending module 17, for first data packet to be sent to the terminal device, so that the terminal is set For according to first data packet data content described in the Interactive Web Page loaded and displayed.
In one embodiment, which is based on Websocket net by the server functional module of smart television First data packet is sent to terminal device by network interface channel, and terminal device is connected to the network channel reception by Websocket First data packet, and in the Interactive Web Page loaded and displayed data content.
As shown in figure 5, being server functional module, destination application and Message Processing provided in an embodiment of the present invention Interaction schematic diagram between module, message processing module are the intermediaries for connecting server functional module and destination application, such as Shown in figure, server functional module and destination application join the team instruction into the instruction queue of message processing module, such as scheme It is shown, in order to distinguish various application program instructions, indicates that data acquisition instruction is corresponding using data command in Fig. 5 and apply journey Sequence instruction indicates that event action instructs corresponding application program instructions, data command, event command and number using event command It joins the team into instruction queue according to push instruction, in addition there are a separate threads to recycle, and it constantly takes out and instructs from instruction queue, Then it executes, guarantees the order of instruction execution.
As shown, the event action instruction that event command is mainly terminal device transmission is converted by server functional module The application program instructions obtained afterwards carry out instruction enqueue operations by server functional module.The instruction is given after queue taking-up Destination application is handled.
Data command is mainly that the data acquisition instruction of terminal device transmission is obtained after the conversion of server functional module Application program instructions carry out instruction enqueue operations by server functional module.The instruction gives target application after queue taking-up Program is handled, and is then given acquired web data to server functional module and is packaged, it is concurrent to obtain data packet The interaction page for giving terminal device carries out loaded and displayed.
Data-pushing instruction is mainly that destination application needs to generate to interaction page active push data content, by Destination application carries out instruction enqueue operations.After queue taking-up, the propelling data of invocation target application program is connect for the instruction Mouthful, the data content that will acquire is given server functional module and is packaged, and the friendship that data packet is sent to terminal device is obtained The mutual page carries out loaded and displayed.
In the embodiment of the present invention, the web data acquisition request that receiving terminal apparatus is sent sends target webpage data The terminal device is given, which loads the target webpage data and generate Interactive Web Page, if receiving terminal device transmission For the web page operation instruction of the Interactive Web Page, the application program that web page operation instruction is converted to destination application execution is referred to It enables, web page operation instruction is packaged based on webpage transport protocol, and invocation target application program executes the application program Instruction.This mode does not need terminal device and additionally increases hardware, does not need additionally to install application program, it is only necessary to which terminal is set yet Standby supported web page loaded and displayed can greatly reduce the deployment cost of terminal device in this way, and compatibility is strong.
The specific step that executes may refer to the description of 2 embodiment of the method for earlier figures, not repeat herein.
The embodiment of the invention also provides a kind of computer storage medium, the computer storage medium can store more Item instruction, described instruction are suitable for being loaded by processor and being executed the method and step of embodiment as shown in Figure 2 above, specifically executed Journey may refer to illustrating for embodiment illustrated in fig. 2, herein without repeating.
Fig. 7 is please referred to, is the structural schematic diagram of another data processing equipment provided in an embodiment of the present invention, such as Fig. 7 institute Show, the data processing equipment 1000 may include: at least one processor 1001, such as CPU, at least one communication interface 1003, memory 1004, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing between these components Connection communication.Communication interface 1003 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).Storage Device 1004 can be high speed RAM memory, be also possible to non-labile memory (non-volatile memory), such as At least one magnetic disk storage.Memory 1004 optionally can also be that at least one is located remotely from depositing for aforementioned processor 1001 Storage device.As shown in fig. 7, as may include that operating system, network are logical in a kind of memory 1004 of computer storage medium Believe module and program instruction.
In data processing equipment 1000 shown in Fig. 7, processor 1001 can be used in load store device 1004 storing Program instruction, and specifically execute following operation:
The web data acquisition request that receiving terminal apparatus is sent;
Target webpage data are sent to the terminal device, so that the terminal device loads the target webpage data Generate Interactive Web Page;
If receiving the web page operation for the Interactive Web Page that the terminal device is sent to instruct, the webpage is grasped Make instruction and be converted to the application program instructions that the destination application executes, the web page operation instruction is based on webpage transmission association View is packaged;
The destination application is called to execute the application program instructions.
Optionally, the processor 1001 is also used to execute following operation:
If detecting the data-pushing instruction of the destination application, destination application number to be pushed is obtained According to content;
The data content is encapsulated as the first data packet based on webpage transport protocol;
First data packet is sent to the terminal device, so that the terminal device is according to first data packet The data content described in the Interactive Web Page loaded and displayed.
Optionally, the web page operation instruction includes that data acquisition instructs, and the data acquisition instruction is comprising needing to obtain Web data identification information, it is described that web page operation instruction is converted to the application journey that the destination application executes Sequence instruction, comprising:
The web page operation instruction is parsed, the identification information is obtained;
The identification information is re-packaged into be used to indicate the destination application and obtain the identification information and is marked The application program instructions of the web data of knowledge;
It is described that the destination application is called to execute the application program instructions, comprising:
The destination application is called to obtain the webpage that the identification information is identified according to the application program instructions Data;
The web data is encapsulated as the second data packet based on webpage transport protocol;
Second data packet is sent to the terminal device, so that the terminal device is according to second data packet The web data described in the Interactive Web Page loaded and displayed.
Optionally, the web page operation instruction includes that event action instructs, and the event action instruction is comprising needing to carry out Object run operation information, it is described that web page operation instruction is converted to the application journey that the destination application executes Sequence instruction, comprising:
The web page operation instruction is parsed, the operation information is obtained;
The operation information is re-packaged into and is used to indicate the destination application and carries out answering for the object run Use program instruction;
It is described that the destination application is called to execute the application program instructions, comprising:
The destination application is called to execute the target according to the operation information in the application program instructions Operation.
Optionally, the webpage transport protocol includes websocket protocol;It is described target webpage data are sent to it is described After terminal device, further includes:
Receive the websocket connection request that the terminal device is sent;
Establish the websocket network connection channel between the smart television and the terminal device;
If the web page operation for the Interactive Web Page for receiving terminal device transmission instructs, the webpage is grasped Make instruction and be converted to the application program instructions that the destination application executes, comprising:
The interactive network is directed to based on what websocket network connection channel was sent if receiving the terminal device Web page operation instruction is converted to the application program instructions that the destination application executes by the web page operation instruction of page;
It is described that first data packet is sent to the terminal device, comprising:
First data packet is sent to the terminal device based on websocket network connection channel.
Optionally, the web data acquisition request is hypertext transfer protocol http request, and the web data obtains Request includes the address information for the target webpage data for needing to obtain;
It is described that target webpage data are sent to the terminal device, comprising:
The target webpage data are obtained according to the address information, and are based on http agreement for the target webpage data It is sent to the terminal device.
Optionally, before the webpage connection request that the receiving terminal apparatus is sent, further includes:
Output includes the graphic code of the address information, so that graphic code described in the terminal device scans obtains describedly Location information.
It should be noted that specific implementation procedure may refer to illustrating for embodiment of the method shown in Fig. 2, herein not into Row repeats.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium In, the program when being executed, the process of the embodiment including such as above-mentioned each method.Wherein, the storage medium can for magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..

Claims (14)

1. a kind of data processing method is applied to smart television, which is characterized in that the smart television installation targets application journey Sequence, which comprises
The web data acquisition request that receiving terminal apparatus is sent;
Target webpage data are sent to the terminal device, so that the terminal device loads the target webpage data and generates Interactive Web Page;
If receiving the web page operation for the Interactive Web Page that the terminal device is sent to instruct, the web page operation is referred to Enable and be converted to the application program instructions that the destination application executes, the web page operation instruction based on webpage transport protocol into Row encapsulation;
The destination application is called to execute the application program instructions.
2. the method as described in claim 1, which is characterized in that the method also includes:
If detecting the data-pushing instruction of the destination application, obtain in destination application data to be pushed Hold;
The data content is encapsulated as the first data packet based on webpage transport protocol;
First data packet is sent to the terminal device, so that the terminal device is according to first data packet in institute State data content described in Interactive Web Page loaded and displayed.
3. the method as described in claim 1, which is characterized in that the web page operation instruction includes that data acquisition instructs, described Data acquisition instruction includes the identification information of web data that needs to obtain, it is described web page operation instruction is converted to it is described The application program instructions that destination application executes, comprising:
The web page operation instruction is parsed, the identification information is obtained;
The identification information is re-packaged into and is used to indicate the destination application and obtains what the identification information was identified The application program instructions of web data;
It is described that the destination application is called to execute the application program instructions, comprising:
The destination application is called to obtain the web data that the identification information is identified according to the application program instructions;
The web data is encapsulated as the second data packet based on webpage transport protocol;
Second data packet is sent to the terminal device, so that the terminal device is according to second data packet in institute State web data described in Interactive Web Page loaded and displayed.
4. the method as described in claim 1, which is characterized in that the web page operation instruction includes that event action instructs, described Event action instruction includes the operation information of object run that needs to carry out, it is described web page operation instruction is converted to it is described The application program instructions that destination application executes, comprising:
The web page operation instruction is parsed, the operation information is obtained;
The operation information is re-packaged into and is used to indicate the application journey that the destination application carries out the object run Sequence instruction;
It is described that the destination application is called to execute the application program instructions, comprising:
The destination application is called to execute the object run according to the operation information in the application program instructions.
5. method according to claim 2, which is characterized in that the webpage transport protocol includes websocket protocol;It is described Target webpage data are sent to after the terminal device, further includes:
Receive the websocket connection request that the terminal device is sent;
Establish the websocket network connection channel between the smart television and the terminal device;
If the web page operation for the Interactive Web Page for receiving terminal device transmission instructs, the web page operation is referred to It enables and is converted to the application program instructions that the destination application executes, comprising:
If receive the terminal device based on websocket network connection channel send for the Interactive Web Page Web page operation instruction is converted to the application program instructions that the destination application executes by web page operation instruction;
It is described that first data packet is sent to the terminal device, comprising:
First data packet is sent to the terminal device based on websocket network connection channel.
6. method as claimed in claim 5, which is characterized in that the web data acquisition request is hypertext transfer protocol Http request, the web data acquisition request include to need the address information of the target webpage data obtained;
It is described that target webpage data are sent to the terminal device, comprising:
The target webpage data are obtained according to the address information, and are sent the target webpage data based on http agreement To the terminal device.
7. method as claimed in claim 6, which is characterized in that the webpage connection request that the receiving terminal apparatus is sent it Before, further includes:
Output includes the graphic code of the address information, so that graphic code described in the terminal device scans obtains the address letter Breath.
8. a kind of data processing equipment is applied to smart television, which is characterized in that the smart television installation targets application journey Sequence, the data processing equipment include:
First receiving module, the web data acquisition request sent for receiving terminal apparatus;
First sending module, for target webpage data to be sent to the terminal device, so that the terminal device loads institute It states target webpage data and generates Interactive Web Page;
Conversion module will if instructing for receiving the web page operation for the Interactive Web Page that the terminal device is sent The web page operation instruction is converted to the application program instructions that the destination application executes, and the web page operation instruction is based on Webpage transport protocol is packaged;
Calling module, for calling the destination application to execute the application program instructions.
9. device as claimed in claim 8, which is characterized in that described device further include:
Module is obtained, if obtaining the destination application for detecting that the data-pushing of the destination application instructs Data content to be pushed;
Package module, for the data content to be encapsulated as the first data packet based on webpage transport protocol;
Second sending module, for first data packet to be sent to the terminal device so that the terminal device according to First data packet data content described in the Interactive Web Page loaded and displayed.
10. device as claimed in claim 8, which is characterized in that the web page operation instruction includes that data acquisition instructs, described Data acquisition instruction includes the identification information for the web data for needing to obtain, and the conversion module includes:
First resolution unit obtains the identification information for parsing the web page operation instruction;
First encapsulation unit is used to indicate described in the destination application acquisition for the identification information to be re-packaged into The application program instructions for the web data that identification information is identified;
The calling module includes:
Call unit is marked for calling the destination application to obtain the identification information according to the application program instructions The web data of knowledge;
Second encapsulation unit, for the web data to be encapsulated as the second data packet based on webpage transport protocol;
Transmission unit, for second data packet to be sent to the terminal device, so that the terminal device is according to Second data packet web data described in the Interactive Web Page loaded and displayed.
11. device as claimed in claim 8, which is characterized in that the web page operation instruction includes that event action instructs, described Event action instruction includes the operation information for the object run for needing to carry out, and the conversion module includes:
Second resolution unit obtains the operation information for parsing the web page operation instruction;
Third encapsulation unit is used to indicate described in the destination application progress for the operation information to be re-packaged into The application program instructions of object run;
The calling module is specifically used for calling the destination application according to the operation in the application program instructions Information executes the object run.
12. device as claimed in claim 9, which is characterized in that the webpage transport protocol includes websocket protocol;Institute State device further include:
Second receiving module, the websocket connection request sent for receiving the terminal device;
Module is established, the websocket for establishing between the smart television and the terminal device is connected to the network channel;
If the conversion module is specifically used for receiving the terminal device based on websocket network connection channel transmission The web page operation for the Interactive Web Page instruct, web page operation instruction is converted into the destination application and is executed Application program instructions;
Second sending module is specifically used for sending first data packet based on websocket network connection channel To the terminal device.
13. device as claimed in claim 12, which is characterized in that the web data acquisition request is hypertext transfer protocol Http request, the web data acquisition request include to need the address information of the target webpage data obtained;
First sending module is specifically used for obtaining the target webpage data according to the address information, and is assisted based on http The target webpage data are sent to the terminal device by view.
14. device as claimed in claim 13, which is characterized in that described device further include:
Output module, for exporting the graphic code comprising the address information, so that graphic code described in the terminal device scans Obtain the address information.
CN201910439935.2A 2019-05-24 2019-05-24 Data processing method and device Pending CN110191169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910439935.2A CN110191169A (en) 2019-05-24 2019-05-24 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910439935.2A CN110191169A (en) 2019-05-24 2019-05-24 Data processing method and device

Publications (1)

Publication Number Publication Date
CN110191169A true CN110191169A (en) 2019-08-30

Family

ID=67717646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910439935.2A Pending CN110191169A (en) 2019-05-24 2019-05-24 Data processing method and device

Country Status (1)

Country Link
CN (1) CN110191169A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015495A (en) * 2020-08-28 2020-12-01 平安国际智慧城市科技股份有限公司 Method, device, equipment and medium for mutual calling between Native and H5

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038812A (en) * 2014-05-09 2014-09-10 海信集团有限公司 Information push method and device
CN105791960A (en) * 2014-12-22 2016-07-20 深圳Tcl数字技术有限公司 Local area network device communication method and system
CN106028106A (en) * 2016-06-06 2016-10-12 乐视控股(北京)有限公司 Television control method and device
CN109275032A (en) * 2018-10-08 2019-01-25 深圳康佳电子科技有限公司 Mobile phone manipulation interaction processing method, system and storage medium based on smart television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038812A (en) * 2014-05-09 2014-09-10 海信集团有限公司 Information push method and device
CN105791960A (en) * 2014-12-22 2016-07-20 深圳Tcl数字技术有限公司 Local area network device communication method and system
CN106028106A (en) * 2016-06-06 2016-10-12 乐视控股(北京)有限公司 Television control method and device
CN109275032A (en) * 2018-10-08 2019-01-25 深圳康佳电子科技有限公司 Mobile phone manipulation interaction processing method, system and storage medium based on smart television

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015495A (en) * 2020-08-28 2020-12-01 平安国际智慧城市科技股份有限公司 Method, device, equipment and medium for mutual calling between Native and H5
CN112015495B (en) * 2020-08-28 2022-09-23 深圳赛安特技术服务有限公司 Method, device, equipment and medium for mutual calling between Native and H5

Similar Documents

Publication Publication Date Title
CN112114979B (en) Remote procedure call method and device
CN109117361B (en) Remote debugging method, related equipment and system for small program
CN110198247B (en) Interface test method and system
CN109936587B (en) Control method, control device, electronic apparatus, and storage medium
CN100477627C (en) Multi-modal web interaction through wireless network
EP3731161A1 (en) Model application method and system, and model management method and server
CN102346770A (en) WebKit browser webpage content loading method and device
Bouloukakis et al. Automated synthesis of mediators for middleware-layer protocol interoperability in the IoT
CN101543011A (en) Bundling of multimedia content and decoding means
CN103729189B (en) Broadcasting method for converting protocol based on LUA, system, terminal
CN103577320A (en) Testing method and system of remote terminals
CN101853152A (en) Method and system for generating graphical user interface
CN104253788A (en) Data processing method and system, client, and page engine
CN108255585A (en) SDK exception controls and application program operation method, device and its equipment
CN104834534A (en) Application program function extension method, device and system
CN102045325A (en) Input method and system based on network communication
KR20110065448A (en) Composing message processing pipelines
CN103944961A (en) Application sharing method, device and system
AlShahwan et al. Mobile cloud computing for providing complex mobile web services
CN102594886A (en) Method and device for direct communication between browsers, and communication system
CN110191169A (en) Data processing method and device
CN110851211A (en) Method, apparatus, electronic device, and medium for displaying application information
CN110247926A (en) A kind of exchange method and system
CN101964742B (en) Method, system and device for using network open ability
WO2023083071A1 (en) View interaction method and apparatus, electronic device, and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190830

RJ01 Rejection of invention patent application after publication