CN105933721A - Design method for function interfaces of digital television receiver - Google Patents

Design method for function interfaces of digital television receiver Download PDF

Info

Publication number
CN105933721A
CN105933721A CN201610511334.4A CN201610511334A CN105933721A CN 105933721 A CN105933721 A CN 105933721A CN 201610511334 A CN201610511334 A CN 201610511334A CN 105933721 A CN105933721 A CN 105933721A
Authority
CN
China
Prior art keywords
digital television
television receiver
designing
http
service end
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
CN201610511334.4A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610511334.4A priority Critical patent/CN105933721A/en
Publication of CN105933721A publication Critical patent/CN105933721A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/226Characteristics of the server or Internal components of the server
    • 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/4104Peripherals receiving signals from specially adapted client 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • 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
    • H04N21/4431OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB characterized by the use of Application Program Interface [API] libraries

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to the field of a digital television receiving device, and discloses a design method for function interfaces of a digital television receiver. The method is used for solving the problem that the digital television function interfaces on the traditional digital television receiver are inconvenient for calling in a universal browser, and cannot be called on other network terminal devices such as a mobile phone by the network. The method comprises following steps of a, dividing digital television function software in the digital television receiving device into two kinds of a server and a client according to realization modes; b, packaging the functions of a digital television into a set of APIs (Application Programming Interfaces), wherein the set of interfaces satisfy JSON RPC 2.0 specifications, and transmission is carried out by using an HTTP protocol; and C, finishing the interaction function between a client device and the server of the digital television receiving device by calling the APIs. The method is applicable to the design for the function interfaces of the digital television receiver.

Description

Digital television receiver functional interface method for designing
Technical field
The present invention relates to apparatus of digital television receiving field, be specifically related to a kind of digital television receiver functional interface method for designing.
Background technology
In traditional digital television receiver, the design of digital television function interface usually not divides client and service end.Though Also point client and the service end so having, but interface is mainly the interface of C language style, or Android system provides The interface of java diction, the data standard called and the language of use mutually bundle, and this situation is in different terminals Calling relatively difficult, especially inconvenience goes to call by javascipt in a browser.
In NGB (Next Generation Broadcasting Network, broadcasting network of future generation) specification, define tune With the Javascipt interface of digital television function.But this socket relies on the browser of customization, and must be to extend NGB rule The browser of model could use.Support that the digital television function in NGB specification calls the most at present, can only be at Digital TV Receiving Realize on equipment, also not at general browser such as IE, the browser such as Chrome, FireFox realizes, also not at other Realizing on personal network's terminal unit, serious obstruction DTV is shared by real-time performance multi-screen.
Summary of the invention
The technical problem to be solved is: proposes a kind of digital television receiver functional interface method for designing, solves tradition On digital television receiver, digital television function interface inconvenience is called in general browser, also cannot be by network at mobile phone Deng the problem called on other network-termination devices.
The technical solution adopted for the present invention to solve the technical problems is: digital television receiver functional interface method for designing, including Following steps:
A., in apparatus of digital television receiving, digital television function software is divided into from implementation service end and client two Big class;
B. the function package of DTV being become a set of api interface, this socket meets JSON RPC 2.0 specification, uses HTTP Protocol transmission;
C. interactive function is completed by calling api interface between client device and the service end of apparatus of digital television receiving.
As optimizing further, in step a, described division, is before application level, on bottom layer driving, departing from firmly Part correlation properties, divide in the intermediate layer of function definition.
As optimizing further, in step b, the mode of described use http protocol transmission is: use HTTP POST mode or Person is to use HTML5WEB SOCKET mode to transmit.
As optimizing further, when using the http protocol of HTTP POST mode, the HTTP service of service end is set Device supports that service end supports XMLHttpRequest Level 2, i.e. supports cross-domain transmission.
As optimizing further, HTTPS agreement is also supported in the transmission of described api interface data.
As optimizing further, in step c, described client device is mobile phone or these networked devices of PC, or is numeral electricity Depending on reception equipment itself.
As optimizing further, in step c, when client device calls api interface acquisition audio, video data, for audio frequency and video The call address of data, uses the URL address meeting http protocol or RTSP agreement, specifies joint in URL address parameter Parameter needed for mesh, the player of client device can play certain digital television program by this address.
As optimizing further, described employing meets the URL address of http protocol or RTSP agreement, in URL address parameter Parameter needed for middle appointed program, the player of client device can be play certain digital television program by this address, have Body includes:
Client player sends HTTP or RTSP request, and service end receives request, obtains program and be correlated with from request address Parameter, carry out descrambling and filter from transmission stream the audio, video data of appointed program by these parameters, and return to by agreement Client plays out.
The invention has the beneficial effects as follows: can be easily on all kinds of digital television devices and personal network's terminal unit, it is achieved full The digital television function calling interface of the NGB specification that foot general browser requires.Related application can be deployed to as WEB application On website, front end, this is the most very convenient for renewal, the interpolation of application function.
Accompanying drawing explanation
Fig. 1 is client call service end FB(flow block);
Fig. 2 is for calling data encapsulation process schematic diagram.
Detailed description of the invention
It is contemplated that propose a kind of digital television receiver functional interface method for designing, solve on conventional digital TV receiver, Digital television function interface inconvenience is called in general browser, also cannot be by network at other network-termination devices such as mobile phones On the problem called.
On implementing, the digital television receiver functional interface method for designing in the present invention, comprise the following steps:
1., at Set Top Box, in the apparatus of digital television receiving such as television set, digital television function software, it is divided into from implementation Service end and the big class of client two.Before this is divided in application level, on bottom layer driving, departing from hardware correlation properties, Divide in the intermediate layer of function definition.
2. the function package of DTV is become a set of API (Application Programming Interface, application program DLL) interface, this socket meets JSON RPC 2.0 specification, uses http protocol transmission;
3. the functional interface API of client call service end realizes function.
Based on this api interface, client and service end have the feature that alternately
1) client can be other networked devices such as mobile phone or PC, it is also possible to and service end is at an equipment.Client kimonos The API interaction data of business end transmits on the http protocol.The meaning using http protocol transmission is conveniently to enter in a browser Row accesses, and is also convenient for relevant function application section to be deployed on front-end WEB server.
2) described http protocol is specially and uses HTTP POST method or HTML5WEB SOCKET both modes to transmit. Use HTTP POST method can bring load, the parameter of transfer complex, AJAX can be used again easily on browser page (Asynchronous JavaScript and XML) calls;Use WEB SOCKET mode can keep alternately client and The connection of service end, reduces expense.
3) load data transmitted meets JSON RPC 2.0 specification;This specification is mainly characterized by being sent a JSON by client Data, service end returns JSON data and carrys out complete call, and the JSON data sent and return are specified by specification;With JSON form is as mutual data form, and it is advantageous that in browser that Javascript can directly process JSON data is The object of Javascript, Javascript object can also be converted directly into JSON data, uses very convenient.
As it is shown in figure 1, from HTTP client, it is common that run in the Javascript script of the html page on browser, send out HTTP POST request, request is sent to be sent to service end http server, JSON RPC 2.0 specification in http server Load data is delivered to JSON RPC 2.0 processing module, and processing module is called bottom layer driving interface and OS etc. and completed funcall, Return value returns to http server, and http server returns to client return value.
4) transmission can select to support HTTPS agreement;The effect of this agreement is can be with the data of encrypted transmission, to transmission data Safety can be adopted in this way when requiring.
5) for the call address of audio, video data, the URL address meeting http protocol or RTSP agreement is used.Player Certain digital television program can be play, the parameter such as frequency specifying TV programme in address parameter by this address.There is provided Such URL interface is convenient to be played out in player.In this manner, client player sends HTTP or RTSP Request, service end receives request, obtains the parameter that program is relevant, carry out descrambling and from biography by these parameters from request address Defeated stream filters the audio, video data of appointed program, and returns to client by agreement and play out.
6) transmission of HTTP POST method can support that XML HttpRequest Level 2, the i.e. AJAX of the second layer call, Namely support cross-domain transmission.This needs service end support to use.Here XMLHttpRequest is for HTML In the page, Javascript calls the Javascript object of POST method.Use this object reference method to complete POST Method call.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 performs, from the HTML of front end website Just can be called the function on set-top box device by XMLHttpRequest in Javascript code in the page, address can Directly to use http: // 127.0.0.1.Cross-domain transmission is the New function of HTML5, if not supporting, it is impossible at a website The page on by XMLHttpRequest to another one site requests data.
Being presented herein below one to call, transmit data instance, client sends request, allows the method calculating of service end summation (sum) 1+2, (wherein italics is the load data of 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]}
Service end return data:
HTTP/1.1 200OK
Content-Type:application/jsons
Content-Length:45
{"jsonrpc":"2.0","result":3,"id":1}
Above-mentioned transmission example call data encapsulation process as in figure 2 it is shown, when calling service end and carrying out 1+2, be first Definition method name is sum, and parameter is the array of JSON form, and array element is numeric type, is then packaged as JSON RPC The data of 2.0 specifications, are sent to service end by POST, can be plus the transmission head of HTTP when POST sends.Service end HTTP Server receives transmission data, obtains the load data for JSON RPC2.0 cannonical format, parses method name and parameter, Calculating result by local function module, result is returned to client by http server, client parses JSON Data, parse end value 3 further.
Embodiment:
As a example by seeing the technical scheme of DTV on a kind of concrete PC browser;
(1) in digital television receiver, the function package of DTV being become a set of api interface, this socket meets JSON RPC 2.0 specifications, use HTTP transmission, in the http server of service end, arrange support XMLHttpRequest Level 2; And provide the URL address of HTTP or RTSP protocol format for playing programme televised live.
(2) in the http server of digital television receiver service end, DTV being searched for channel and playing channel etc. Function, with making html page, realizes DTV phase by the API in invocation step in Javascript (1) in the page Close function.Such as to play 1, central authorities, save the parameter of 1, central authorities, html page broadcasting portion when tuning in service end During the Javascript divided processes, need to call API and obtain the parameter of 1, central authorities, these parameter group are dressed up url address, Html page adds player plug-in unit and plays this url address.
(3) at PC end, the HTML function pages in firefox browser access receiver is used, when browser processes the page, The api interface that can call service end during Javascript code therein realizes the functions such as DTV, can pass through pre-when broadcasting platform The player plug-in unit that the first page is specified plays out.

Claims (8)

1. digital television receiver functional interface method for designing, it is characterised in that comprise the following steps:
A., in apparatus of digital television receiving, digital television function software is divided into from implementation service end and client two Big class;
B. the function package of DTV being become a set of api interface, this socket meets JSON RPC 2.0 specification, uses HTTP Protocol transmission;
C. interactive function is completed by calling api interface between client device and the service end of apparatus of digital television receiving.
2. digital television receiver functional interface method for designing as claimed in claim 1, it is characterised in that
In step a, described division, is before application level, on bottom layer driving, departing from hardware correlation properties, in merit The intermediate layer that can define divides.
3. digital television receiver functional interface method for designing as claimed in claim 1, it is characterised in that in step b, institute Stating the mode using http protocol to transmit is: uses HTTP POST mode or uses HTML5WEB SOCKET Mode is transmitted.
4. digital television receiver functional interface method for designing as claimed in claim 3, it is characterised in that when using HTTP During the http protocol of POST mode, the http server arranging service end supports that service end supports XMLHttpRequest Level 2, i.e. supports cross-domain transmission.
5. digital television receiver functional interface method for designing as claimed in claim 4, it is characterised in that described api interface HTTPS agreement is also supported in data transmission.
6. digital television receiver functional interface method for designing as claimed in claim 1, it is characterised in that
In step c, described client device is mobile phone or these networked devices of PC, or is apparatus of digital television receiving itself.
7. digital television receiver functional interface method for designing as claimed in claim 1, it is characterised in that
In step c, when client device calls api interface acquisition audio, video data, for the call address of audio, video data, Use and meet the URL address of http protocol or RTSP agreement, parameter needed for appointed program in URL address parameter, The player of client device can play certain digital television program by this address.
8. digital television receiver functional interface method for designing as claimed in claim 7, it is characterised in that
Described employing meets the URL address of http protocol or RTSP agreement, appointed program institute in URL address parameter The parameter needed, the player of client device passes through this address can play certain digital television program, specifically includes:
Client player sends HTTP or RTSP request, and service end receives request, obtains program phase from request address The parameter closed, carries out descrambling and filtering from transmission stream the audio, video data of appointed program, and returns by agreement by these parameters Play out to client.
CN201610511334.4A 2016-06-29 2016-06-29 Design method for function interfaces of digital television receiver Pending CN105933721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610511334.4A CN105933721A (en) 2016-06-29 2016-06-29 Design method for function interfaces of digital television receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610511334.4A CN105933721A (en) 2016-06-29 2016-06-29 Design method for function interfaces of digital television receiver

Publications (1)

Publication Number Publication Date
CN105933721A true CN105933721A (en) 2016-09-07

Family

ID=56828664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610511334.4A Pending CN105933721A (en) 2016-06-29 2016-06-29 Design method for function interfaces of digital television receiver

Country Status (1)

Country Link
CN (1) CN105933721A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108011889A (en) * 2017-12-15 2018-05-08 四川长虹电器股份有限公司 Body contents entirety encrypted transmission method in http request
CN108965932A (en) * 2017-05-17 2018-12-07 武汉斗鱼网络科技有限公司 A kind of even wheat window methods of exhibiting and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139649A (en) * 2011-11-28 2013-06-05 株式会社东芝 Information processing device, information processing method and information processing program
CN105307019A (en) * 2015-10-28 2016-02-03 四川长虹电器股份有限公司 Function scheduling method for digital television receiver

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139649A (en) * 2011-11-28 2013-06-05 株式会社东芝 Information processing device, information processing method and information processing program
CN105307019A (en) * 2015-10-28 2016-02-03 四川长虹电器股份有限公司 Function scheduling method for digital television receiver

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648610A (en) * 2016-10-24 2017-05-10 广州华多网络科技有限公司 Function interface remote call method and device and function interface remote call response method and device
CN108965932A (en) * 2017-05-17 2018-12-07 武汉斗鱼网络科技有限公司 A kind of even wheat window methods of exhibiting and device
CN107592358A (en) * 2017-09-19 2018-01-16 广州视源电子科技股份有限公司 Application programming interfaces call method and device based on HTTP service
CN108011889A (en) * 2017-12-15 2018-05-08 四川长虹电器股份有限公司 Body contents entirety encrypted transmission method in http request

Similar Documents

Publication Publication Date Title
CN105307019B (en) The method of digital television receiver funcall
RU2594295C1 (en) Device and method for processing of interactive service
KR102040623B1 (en) Apparatus and method for processing an interactive service
CN101296371B (en) IPTV terminal, IPTV system and IPTV service implementing method
US9860603B2 (en) Method and apparatus for managing applications based on application information included in a broadcasting signal
CN105933721A (en) Design method for function interfaces of digital television receiver
CN103533460A (en) Method, device, terminal and system for sharing television service
CN102340706A (en) Digital television program sharing device, method and set-top box
WO2018103644A1 (en) Live stream sharing method and device, home media apparatus, and data storage medium
KR101280271B1 (en) System and method for providing RSS content in a broadcast system
CN103986945A (en) Hybrid network system, channel content replay method and hybrid set top box
CN102421027A (en) Program playing method and system
CN102710647A (en) Set-top-box-based triple play system and implementation method
KR101282413B1 (en) Apparatus for controlling internet protocol television service and method for providing internet protocol television service using the same
CN103491420B (en) Bidirectional video-on-demand method and digital television all-in-one machine
CN101938631A (en) SDF middleware-based video-on-demand system and method
CN103986975B (en) A kind of gateway device and program transmission method
CN114401428B (en) Method for implementing remote multi-screen interaction under public network based on short link signaling channel
KR20070118645A (en) Contents distribution system, and contents distribution method
US9137501B2 (en) Method and system for communicating between a host device and user device through an intermediate device using syntax translation
KR20100129816A (en) System for digital broadcasting for multiple platform environment and method for the same
KR102620220B1 (en) System and method for terrestrial uhd broadcaster application re-transmission
CN103297822A (en) Set-top box and digital signal processing method thereof for television programs
Calixto et al. Interoperability study for interactive digital TV
JP2022183813A (en) Receiving device, client terminal device, and program

Legal Events

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

Application publication date: 20160907