CN105307019B - The method of digital television receiver funcall - Google Patents

The method of digital television receiver funcall Download PDF

Info

Publication number
CN105307019B
CN105307019B CN201510711097.1A CN201510711097A CN105307019B CN 105307019 B CN105307019 B CN 105307019B CN 201510711097 A CN201510711097 A CN 201510711097A CN 105307019 B CN105307019 B CN 105307019B
Authority
CN
China
Prior art keywords
side
server
digital television
data
method
Prior art date
Application number
CN201510711097.1A
Other languages
Chinese (zh)
Other versions
CN105307019A (en
Inventor
常吕伦
张雷鸣
周志武
吴纯彬
Original Assignee
四川长虹电器股份有限公司
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 四川长虹电器股份有限公司 filed Critical 四川长虹电器股份有限公司
Priority to CN201510711097.1A priority Critical patent/CN105307019B/en
Publication of CN105307019A publication Critical patent/CN105307019A/en
Application granted granted Critical
Publication of CN105307019B publication Critical patent/CN105307019B/en

Links

Abstract

The invention discloses a kind of methods of digital television receiver funcall, digital television function software is divided into server-side and customer side in the middle layer that function defines from implementation, the customer side is by calling the functional interface API of server-side to realize that interactive function, the API interaction data of the customer side and server-side pass through http protocol transmission.A kind of method of digital television receiver funcall of the invention, can be convenient on all kinds of digital television devices and personal network's terminal device, realize meet general browser requirement NGB specification digital television function calling interface.

Description

The method of digital television receiver funcall

Technical field

The present invention relates to digital TV technologies, and in particular to a kind of method of digital television receiver funcall.

Background technique

In traditional digital television receiver, usually not divide customer side and service in the design of digital television function interface End.Although some also divides customer side and server-side, interface is mainly in the interface or Android system of C language style The interface of the java diction of offer, the data standard of calling and the language used mutually bundle, in this case different Called in terminal it is relatively difficult, it is especially inconvenient to go to call by javascipt in a browser.In NGB (Next Generation Broadcasting Network, next-generation radio network) specification in, define call number TV functions Javascipt interface.But this socket relies on the browser of customization, and must extend the browser that NGB is standardized can just make With.Therefore it supports the digital television function in NGB specification to call at present, can only realize on apparatus of digital television receiving, not have also Have and realized on general browser such as IE, the browsers such as Chrome, FireFox, is not also set in other personal network's terminals Standby upper realization, it is serious to hinder DTV shared by network implementations multi-screen.

Summary of the invention

The present invention overcomes the deficiencies in the prior art, provide a kind of method of digital television receiver funcall, are used for Digital TV Receiving function is solved the technical issues of calling on general browser.

In view of the above problem of the prior art, according to one aspect of the present disclosure, the present invention uses following technology Scheme:

A kind of method of digital television receiver funcall, by digital television function software in function from implementation The middle layer of definition is divided into server-side and customer side, and the customer side is handed over by calling the functional interface API of server-side to realize The API interaction data of mutual function, the customer side and server-side is transmitted by http protocol.

In order to which the present invention is better achieved, further technical solution is:

An embodiment according to the present invention, the customer side use networked devices.

Another embodiment according to the present invention, the server-side and customer side can be located in same equipment.

Another embodiment according to the present invention, http protocol transmission include HTTP POST transmission mode or HTML5WEB SOCKET transmission mode.

Another embodiment according to the present invention, the HTTP POST transmission mode are supported to XML HttpRequest Level 2。

Another embodiment according to the present invention, XMLHttpRequest are used in html page, Javascript tune With the Javascript object of POST method, POST method calling is completed using the object reference method;The second layer XMLHttpRequest supports cross-domain transmission;During browser executes, the Javascript in the html page from front end website Code calls the function on set-top box device by XMLHttpRequest.

The load data of another embodiment according to the present invention, the http protocol transmission meets JSON RPC2.0 Specification: sending a JSON data by customer side, and server-side returns to a JSON data and carrys out complete call, and specification is to sending and return The JSON data returned provide;Using JSON format as the data format of interaction.

Another embodiment according to the present invention is also used using HTTPS agreement is supported between server-side and customer side In the transmission of encryption data.

Another embodiment according to the present invention, between server-side and customer side further include: the tune of audio, video data With address, using the address URL for meeting http protocol or RTSP agreement;Player plays some DTV by the address Program, the parameters such as frequency point of designated television program in the address parameter.

The present invention may also is that

Another embodiment according to the present invention, the customer side player send HTTP or RTSP request, service After end receives request, the relevant parameter of program is obtained from request address, and descrambling or the mistake from transport stream are carried out by the parameter The audio, video data of appointed program is filtered, and is played out by agreement back to customer side.

Compared with prior art, beneficial effects of the present invention first is that:

A kind of method of digital television receiver funcall of the invention, can be convenient in all kinds of digital television devices or On personal network's terminal device, realizes the digital television function calling interface for meeting the NGB specification of general browser requirement, promote DTV is shared by network implementations multi-screen.

Specific embodiment

The present invention is described in further detail below with reference to embodiment, embodiments of the present invention are not limited thereto.

Since on conventional digital TV receiver, digital television function interface inconvenience is called in general browser, Also it can not be called on other network-termination devices such as mobile phone by network.The present embodiment passes through the design rule for disclosing a kind of interface Model is realized on all kinds of digital television devices and personal network's terminal device and meets general browser requirement in which can be convenient The digital television function calling interface of NGB specification.Related application can be used as WEB application and be deployed on the website of front end, this for Update, the addition of application function are all very convenient.Specifically:

In set-top box, the apparatus of digital television receiving such as television set, digital television function software, divide from implementation For server-side and customer side two major classes.This be divided in application level before, on bottom layer driving, it is related special departing from hardware Property, it is divided in the middle layer that function defines.

Call functional interface API (Application Programming Interface, the application of server-side in customer side Program Interfaces) realize function, the interaction of customer side and server-side has the feature that

Customer side can be other networked devices such as mobile phone or PC, can also be located at same equipment with server-side.Customer side It is transmitted on the http protocol with the API interaction data of server-side.It is convenient in browser to be using the meaning that http protocol transmits In access, also facilitate and relevant functional application be deployed on front-end WEB server

The http protocol used is being required to transmit among the above, specifically usable HTTP POST method either HTML5WEB SOCKET this in two mode transmit.Load, the parameter of transfer complex can be taken using HTTP POST method, and can be convenient On browser page using AJAX (Asynchronous JavaScript and XML) call;WEB SOCKET mode Interaction can keep the connection of client and server-side, reduce expense.

The load data of transmission meets JSON RPC2.0 specification, this specification is mainly characterized by sending one by customer side JSON data, server-side return to a JSON data and carry out complete call, standardize and provide to the JSON data for sending and returning; Using JSON format as the data format of interaction, it is advantageous that Javascript can directly handle JSON data in browser For the object of Javascript, Javascript object can also be converted directly into JSON data, use upper very convenient

Transmission, which can choose, supports HTTPS agreement;The effect of this agreement is can be with the data of encrypted transmission, to transmission number It can be in this way when being required according to safety

The address URL for meeting http protocol or RTSP agreement can be used in the call address of audio, video data.Player is logical Some digital television program can be played by crossing the address, the parameters such as frequency point of designated television program in address parameter.This is provided The URL interface of sample is convenient to be played out in player.In this manner, customer side player sends HTTP or RTSP and asks It asks, after server-side receives request, the relevant parameter of program is obtained from request address, carry out descrambling by these parameters and from biography The audio, video data of appointed program is filtered in defeated stream, and is played out by agreement back to customer side.

The transmission of HTTP POST method can support XML HttpRequest Level 2, i.e. the AJAX tune of the second layer With, that is, support cross-domain transmission.It needs the support of server-side that could use.Here XMLHttpRequest is for HTML In the page, Javascript calls the Javascript object of POST method.The side POST is completed using the object reference method Method is called.The XMLHttpRequest of the second layer supports cross-domain transmission.Thus the function of DTV can be passed through HTML The page is deployed in front end, and terminal uses the general browser in set-top box.During browser executes, from front end website The function on set-top box device, ground can be called in Javascript code in html page by XMLHttpRequest Location can directly use http: // 127.0.0.1.Cross-domain transmission is the new function of HTML5, if it does not, can not be at one Pass through XMLHttpRequest on the page of website to another site requests data

Here be one call, transmission data instance, customer side send request, allow server-side sum (sum) method 1+2 is calculated, (the wherein load data that italics is HTTP transmission)

POST/dvb/rpc HTTP/1.1

Host:192.168.60.10:18080

Content-Length:38

Content-Type:text/plain;Charset=UTF-8

{"id":1,"method":"sum","params":[1,2]}

Server-side returned data:

HTTP/1.1200OK

Content-Type:application/jsons

Content-Length:45

{"jsonrpc":"2.0","result":3,"id":1}

The following further describes the present invention with reference to the drawings:

As shown in Figure 1, Fig. 1, which shows customer side according to an embodiment of the invention, calls server-side schematic block diagram, from The customer side HTTP sends HTTP POST request, asks usually on browser in the Javascript script of the operation html page It asks and is sent to server-side HTTP server, the JSON RPC2.0 load data standardized is transmitted to JSON in HTTP server RPC2.0 processing module, processing module call bottom layer driving interface and OS etc. to complete funcall, and return value takes back to HTTP Return value is returned to customer side by business device, HTTP server.

As shown in Fig. 2, Fig. 2 shows calling data encapsulation process schematic block diagram according to an embodiment of the invention, Fig. 2 When main explanation is called server-side progress 1+2, encapsulation and deblocking process in data call, are to define method name first For sum, parameter is the array of JSON format, and array element is numeric type, is then packaged as the number of JSON RPC2.0 specification According to, server-side is sent to by POST, it can be plus the transmission head of HTTP when POST is sent.Server-side HTTP service its receive transmission Data obtain the data that load is JSON RPC2.0 cannonical format, parse method name and parameter, pass through local function mould Block calculates as a result, result by HTTP server back to customer side, and customer side parses JSON data, further solves End value 3. is precipitated

Implement the scheme that DTV is seen on a kind of specific PC browser below;

(1) in word television receiver, the function package of DTV at a set of api interface, this socket meets JSON RPC2.0 specification, is transmitted using HTTP, and in the HTTP server of server-side, XMLHttpRequest Level is supported in setting 2;And the address URL of HTTP RTSP protocol format is provided for playing programme televised live.

(2) in the HTTP server of digital television receiver server-side, search channel and broadcasting in DTV The functions such as channel realize digital electricity with html page is made by the API in invocation step in Javascript (1) in the page Depending on correlation function.For example 1, center is played, the parameter in 1, center is saved in server-side in tuning, html page plays In partial Javascript processing, these parameters are assembled into the address url by the parameter for needing that API is called to obtain 1, center, Player plug-in unit is added in html page to play this address url.

(3) at the end PC, using the HTML function pages in firefox browser access receiver, browser handles the page When, when Javascript code therein, can call the api interface of server-side to realize the functions such as DTV, can lead to when broadcasting platform The specified player plug-in unit of the preparatory page is crossed to play out.

Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, the same or similar parts in each embodiment cross-reference.

" one embodiment " for being spoken of in the present specification, " another embodiment ", " embodiment ", etc., refer to tying Specific features, structure or the feature for closing embodiment description include at least one embodiment described in the application generality In.It is not centainly to refer to the same embodiment that statement of the same race, which occur, in multiple places in the description.Appoint furthermore, it is understood that combining When one embodiment describes a specific features, structure or feature, to be advocated be realized in conjunction with other embodiments it is this Feature, structure or feature are also fallen within the scope of the present invention.

Although reference be made herein to invention has been described for multiple explanatory embodiments of the invention, however, it is to be understood that Those skilled in the art can be designed that a lot of other modification and implementations, these modifications and implementations will fall in this Shen It please be within disclosed scope and spirit.It more specifically, within the scope of the present disclosure and claims, can be to master The building block and/or layout for inscribing composite configuration carry out a variety of variations and modifications.In addition to what is carried out to building block and/or layout Outside variations and modifications, to those skilled in the art, other purposes also be will be apparent.

Claims (4)

1. a kind of method of digital television receiver funcall, it is characterised in that from implementation that digital television function is soft Part is divided into server-side and customer side, the functional interface that the customer side passes through calling server-side in the middle layer that function defines The API interaction data of API realization interactive function, the customer side and server-side, which passes through http protocol, to be transmitted;The http protocol Transmission includes HTTP POST transmission mode or HTML5 WEB SOCKET transmission mode;The HTTP POST transmission mode is supported To XML HttpRequest Level 2;XMLHttpRequest is in html page, Javascript to call POST method Javascript object, completed using the object reference method POST method calling;The XMLHttpRequest of the second layer Support cross-domain transmission;During browser executes, the Javascript code in the html page from front end website passes through XMLHttpRequest calls the function on set-top box device;The load data of the http protocol transmission meets JSON RPC 2.0 specifications: a JSON data are sent by customer side, server-side returns to a JSON data and carrys out complete call, standardizes to transmission It is provided with the JSON data of return;Using JSON format as the data format of interaction.
2. the method for digital television receiver funcall according to claim 1, it is characterised in that in server-side and visitor Take the transmission for encryption data also using support HTTPS agreement between end.
3. the method for digital television receiver funcall according to claim 1, it is characterised in that in server-side and visitor It takes between end further include: the call address of audio, video data is using the address URL for meeting http protocol or RTSP agreement;It plays Device plays some digital television program by the address, the frequency point of designated television program in the address parameter.
4. the method for digital television receiver funcall according to claim 3, it is characterised in that broadcast the customer side It puts device and sends HTTP or RTSP request, after server-side receives request, the relevant parameter of program is obtained from request address, is passed through The parameter carries out descrambling or filters the audio, video data of appointed program from transport stream, and is broadcast by agreement back to customer side It puts.
CN201510711097.1A 2015-10-28 2015-10-28 The method of digital television receiver funcall CN105307019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510711097.1A CN105307019B (en) 2015-10-28 2015-10-28 The method of digital television receiver funcall

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510711097.1A CN105307019B (en) 2015-10-28 2015-10-28 The method of digital television receiver funcall

Publications (2)

Publication Number Publication Date
CN105307019A CN105307019A (en) 2016-02-03
CN105307019B true CN105307019B (en) 2019-05-07

Family

ID=55203689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510711097.1A CN105307019B (en) 2015-10-28 2015-10-28 The method of digital television receiver funcall

Country Status (1)

Country Link
CN (1) CN105307019B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681879B (en) * 2016-02-25 2018-10-19 四川长虹电器股份有限公司 The method and system of set-top box program request are realized in private network network
CN105933721A (en) * 2016-06-29 2016-09-07 四川长虹电器股份有限公司 Design method for function interfaces of digital television receiver
CN106648610A (en) * 2016-10-24 2017-05-10 广州华多网络科技有限公司 Function interface remote call method and device and function interface remote call response method and device
CN107592358A (en) * 2017-09-19 2018-01-16 广州视源电子科技股份有限公司 Application programming interfaces call method and device based on HTTP service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118641A (en) * 2010-12-30 2011-07-06 广州市聚晖电子科技有限公司 High-definition video system and method supporting remote mobile reservation based on set-top box
CN102938855A (en) * 2012-11-23 2013-02-20 青岛海信宽带多媒体技术有限公司 Implementation method for ordering television programs for digital television receiver
CN103297327A (en) * 2013-05-29 2013-09-11 深圳数字电视国家工程实验室股份有限公司 Message pushing method, message pushing device and display terminal
CN103813202A (en) * 2014-01-28 2014-05-21 歌尔声学股份有限公司 Smart television with interactive function, handheld device with interactive function and interactive method of smart television and handheld device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8789078B2 (en) * 2006-08-24 2014-07-22 At&T Intellectual Property I, Lp Method and apparatus for sending stored advertising data from an internet protocol television end user network interface device
US8799974B2 (en) * 2011-12-12 2014-08-05 Infosys Limited System and method for multi-standard browser for digital devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118641A (en) * 2010-12-30 2011-07-06 广州市聚晖电子科技有限公司 High-definition video system and method supporting remote mobile reservation based on set-top box
CN102938855A (en) * 2012-11-23 2013-02-20 青岛海信宽带多媒体技术有限公司 Implementation method for ordering television programs for digital television receiver
CN103297327A (en) * 2013-05-29 2013-09-11 深圳数字电视国家工程实验室股份有限公司 Message pushing method, message pushing device and display terminal
CN103813202A (en) * 2014-01-28 2014-05-21 歌尔声学股份有限公司 Smart television with interactive function, handheld device with interactive function and interactive method of smart television and handheld device

Also Published As

Publication number Publication date
CN105307019A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
US9554175B2 (en) Method, computer program, reception apparatus, and information providing apparatus for trigger compaction
US20120324076A1 (en) Method and apparatus for pairing a mobile device to an output device
US20040128342A1 (en) System and method for providing multi-modal interactive streaming media applications
KR100501334B1 (en) Apparatus and method for processing multimedia data of home media gateway improving thin client technique
US7934009B2 (en) Discovery information for IP multicast
KR20130095777A (en) Systems and methods for providing companion services to customer premises equipment using an ip-based infrastructure
AU2013332537B2 (en) Apparatus and method for processing an interactive service
US20020116407A1 (en) Conversion apparatus and method, accounting method, and script conversion system and method
US10462496B2 (en) Information processor, information processing method and program
US20020032754A1 (en) Method and apparatus for profiling in a distributed application environment
US20170374410A1 (en) Information processing apparatus, information processing method, and program
EP1950967A1 (en) Epg, streaming media scheduling and demanding system, method and apparatus
KR100772861B1 (en) Apparatus and method for providing remote user interface
CN103748896B (en) For accessing method, reception device and the information provider unit of the content from multiple content sources
JP5638803B2 (en) Method for displaying a mosaic image at a receiver for selection of an audiovisual program, receiver and associated server
WO2013031556A1 (en) Receiver and reception method
CA2889868C (en) Apparatus and method for processing an interactive service
KR101579603B1 (en) System, method and computer readable recording medium for linking a television and a smart phone using an image authentication key
JP2005505953A (en) Contextual web page system and method
TWI444216B (en) Method and apparatus for gaming based on mobile terminal
CN102891886B (en) Multi-screen interacting method and system based on cloud computing
CN104396186B (en) Device and method for handling interactive service
CN103491424A (en) Server system for IPTV multi-screen interaction and multi-screen interaction achieving method
WO2015032277A1 (en) Transmission method and device for media stream in video conference
CN1305309C (en) Televison receiver and method of operating server

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01 Patent grant