CN103442256B - A kind of method and system that electric program menu is realized based on HTML5 - Google Patents

A kind of method and system that electric program menu is realized based on HTML5 Download PDF

Info

Publication number
CN103442256B
CN103442256B CN201310390495.9A CN201310390495A CN103442256B CN 103442256 B CN103442256 B CN 103442256B CN 201310390495 A CN201310390495 A CN 201310390495A CN 103442256 B CN103442256 B CN 103442256B
Authority
CN
China
Prior art keywords
epg
information
clients
program menu
electric 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.)
Active
Application number
CN201310390495.9A
Other languages
Chinese (zh)
Other versions
CN103442256A (en
Inventor
崔艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201310390495.9A priority Critical patent/CN103442256B/en
Publication of CN103442256A publication Critical patent/CN103442256A/en
Application granted granted Critical
Publication of CN103442256B publication Critical patent/CN103442256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and system that electric program menu is realized based on HTML5, belong to field of computer technology.Methods described includes:The header of connection request, packing processing is carried out by user authentication information and connectivity request message in EPG clients modification WebSocket protocol informations;EPG server adds the parsing information to relative users authentication information in EPG client request headers in WebSocket parsing modules so that EPG service ends are receiving the solicited message for the EPG clients changed;EPG clients are set up with EPG server and are connected, and carry out data exchange process.The system includes:EPG clients and EPG server.The present invention is by the electronic program menu system and method, and the problem of solving the poor compatibility between TV platform and network improves Consumer's Experience.

Description

A kind of method and system that electric program menu is realized based on HTML5
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method that electric program menu is realized based on HTML5 And system.
Background technology
EPG (Chinese:Electric program menu;English full name:Electronic Program Guide) system as IPTV, I.e. the gate system of interactive network TV service, mainly completes and interface, the parsing of user command and the interaction of user simultaneously will As a result user is returned to, guide is provided for end user's consumption, and allow user to enjoy IPTV service.
At present, the IPTV service of China is also in starting stage, partial TV platform, operator and set top box production firm pin Some EPG systems are developed to some network or a certain set top box, and EPG serviced using http communication host-host protocol Device and EPG clients carry out data interaction, and concrete mode is:User end to server send connectivity request message, server with Client is set up after connection, and user end to server sends user authentication information, after server authentication success, is returned according to its request Corresponding resource is returned, a data interaction is completed;When client needs to ask resource to server again, again with server Connectivity request message is sent, sets up after connectivity request message, resource request could be carried out, realizes that the system of electric program menu is handed over Mutual process.
During the present invention is realized, inventor has found that prior art at least has problems with:
On the one hand, the content of EPG system lacks unified data format, and EPG is exchanged between each TV station and each network When poor compatibility so that each digital TV platform must design and develop respective EPG system, and set top box business has to For each platform overlapping development EPG applications, a large amount of repeated labors are caused;On the other hand, because http protocol carries out data friendship Resource mutually is asked again, it is necessary to which EPG Web page could be shown for a long time, it is necessary to set up after connection request so that Consumer's Experience It is poor.
The content of the invention
The problem of in order to solve poor compatibility and poor user experience in EPG system in the prior art, the embodiment of the present invention is carried A kind of method and system for realizing electric program menu are supplied.The technical scheme is as follows:
On the one hand, the embodiments of the invention provide a kind of method for realizing electric program menu, methods described includes:
EPG clients add user authentication information parameter in the header of the connectivity request message of WebSocket agreements, The data division of user authentication information is added in connectivity request message again, packing processing is completed;
The connectivity request message and user authentication information of processing of having packed are sent to the EPG and taken by the EPG clients Business device;
When the EPG server receives the connectivity request message and user authentication information that EPG clients are sent, to institute State connectivity request message and user authentication information is parsed;
The EPG server is according to Websocket agreements according to the corresponding connection of connectivity request message generation after parsing Request-reply information, and the corresponding electric program menu information of the user authentication information is obtained, by the electric program menu The parameter of information is added in the header of the connection request response, then by the data division of the electric program menu information Added in the connection request response message, packing processing, the connection request response message after packing is handled are completed The EPG clients are returned to electric program menu information;
The EPG clients receive and connection reply information and electronics section after the packing processing that the EPG server is returned During mesh menu information, the electric program menu information is obtained.
Second aspect, the embodiments of the invention provide a kind of system for realizing electric program menu, the system includes:
EPG clients and EPG server;
The EPG clients, including:First connection request module, the first transport module and acquisition module;
The head that the connection request processing module is used for connectivity request message of the EPG clients in WebSocket agreements is believed User authentication information parameter is added in breath, then the data division of user authentication information is added in connectivity request message, is completed Packing is handled;
First transport module is used for EPG clients by the connectivity request message and user authentication information of processing of having packed The EPG server is sent to, information and electronics are connection replyed after the packing processing that the EPG server is returned for receiving Program menu information;
The acquisition module is used for EPG clients and receives connection replying after the packing processing that the EPG server is returned When information and electric program menu information, the electric program menu information is obtained;
The EPG server, including:Second transport module, parsing module and responder module;
Second transport module is used for EPG server and receives the connectivity request message and the use that EPG clients are sent Family authentication information, is additionally operable to the connection request response message after EPG server handles packing and electric program menu letter Breath returns to the EPG clients;
The connectivity request message and user authentication information that the parsing module is used to receive EPG server are solved Analysis;
The reply process module is used for EPG server and believed according to Websocket agreements according to the connection request after parsing The corresponding connection request response message of breath generation, and the corresponding electric program menu information of the user authentication information is obtained, will The parameter of the electric program menu information is added in the header of the connection request response, then by the electronic programming dish The data division of single information is added in the connection request response message, completes packing processing.
The beneficial effect that the technical scheme that the present invention is provided is brought is:
By the method based on the HTML5 electric program menus realized, data interaction is carried out with WebSocket agreements real The Web presentation layers of existing EPG system so that Web presentation layers may operate in any support HTML5 EPG clients, effectively The problem of solving the poor compatibility between each TV platform and network, improves the availability of product, and using HTML5's WebSocket technologies replace traditional http protocol to realize the communication between EPG clients and EPG server, can preferably save Save EPG server resource and bandwidth and reach real-time communication, user authentication information is added in connectivity request message, band is shortened There is the display time of the exclusive electric program menu presentation of information page of user authentication information, improve the experience of user.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
A kind of method flow diagram for realizing electric program menu that Fig. 1 provides for first embodiment of the invention;
A kind of method flow diagram for realizing electric program menu that Fig. 2 provides for second embodiment of the invention;
A kind of method flow diagram for realizing electric program menu that Fig. 3 provides for third embodiment of the invention;
A kind of system structure diagram for realizing electric program menu that Fig. 4 provides for fourth embodiment of the invention;
A kind of system structure diagram for realizing electric program menu that Fig. 5 provides for fifth embodiment of the invention;
A kind of system structure diagram for realizing electric program menu that Fig. 6 provides for sixth embodiment of the invention;
Fig. 7 is the structural representation of storage processing module in Fig. 6.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiment of the present invention one provides a kind of method for realizing electric program menu, and referring to Fig. 1, methods described includes:
101:EPG clients add user authentication information in the header of the connectivity request message of WebSocket agreements Parameter, then the data division of user authentication information is added in connectivity request message, complete packing processing.
Specifically, EPG clients change the header of connection request in WebSocket protocol informations, and user authentication is believed Breath and connectivity request message carry out packing processing.
Above-mentioned packing processing procedure is specifically included:EPG client calls WebSocket interface function is initiated WebSocket handshake requests, EPG client Web engines are when receiving the WebSocket handshake requests, from WebSocket Interface in obtain the user authentication information, in standard WebSocket connectivity request message head add user authentication letter Parameter is ceased, and the data division of user authentication information is added in connectivity request message, packing processing is completed.
Wherein, the user authentication information can be:User profile or facility information, the user authentication information is by repairing Change WebSocket JavaScript interface, it is incoming by JavaScriptEPG client codes, or by being repaiied in EPG clients Change the content obtaining in Web engines.
102:The connectivity request message and user authentication information of processing of having packed are sent to the EPG and taken by EPG clients Business device.
In the present embodiment, the user authentication information refers to information of the registered user to carry out authentication, bag Include:The information such as ID, key information, user account, can also be facility information.
Wherein, when setting up connection request, user authentication information parameter is added in connectivity request message head, is serviced with EPG The HTML5 codes that device sets up connection request process are as follows:
Websocket=new WebSocket (" ws://localhost:8888/demo”,userinfo);
websocket.onmessage()。
103:The EPG server receives the connectivity request message and user authentication information that EPG clients are sent, right The connectivity request message and user authentication information are parsed.
Specifically, above-mentioned resolving includes:EPG server calls the analytical function of Websocket agreements, from the letter EPG client-side informations parameter and user authentication information parameter are obtained in the header of breath, and is believed respectively according to the EPG clients Parameter and the corresponding EPG client address of user authentication information parameter acquiring and user authentication information are ceased, and the user is recognized Card information is verified.
104:The EPG server generates corresponding according to Websocket agreements according to the connectivity request message after parsing Connection request response message, and the corresponding electric program menu information of the user authentication information is obtained, by the electronic programming The parameter of menu information is added in the header of the connection request response, then by the data of the electric program menu information Part is added in the connection request response message, completes packing processing, the connection request response after packing is handled Information and electric program menu information return to the EPG clients.
Wherein, the electric program menu information refers to obtain the corresponding electric program menu letter of the user authentication information Breath can be obtained and the customized electronic programming of ID, generation electric program menu information according to ID.
In the present embodiment, the information that connection replys refers to that EPG server is sent according to the connection request that user sends Response, the corresponding electric program menu information of active user refer to after being authenticated according to the authentication information of user from EPG take The exclusive electric program menu information of the active user obtained in business device, for example, the customized program of active user is American-European film, The related electric program menu information of American-European film and ID etc. are returned to the user;
It should be noted that EPG server receives the connectivity request message and user authentication of EPG clients transmission Before information, in addition to:EPG server parses addition user authentication information subfunction in connectivity request message analytical function, Allow EPG server when parsing connectivity request message while parsing user authentication information.
105:The EPG clients receive and connection reply information and electricity after the packing processing that the EPG server is returned During sub- program menu information, the electric program menu information is obtained.
The EPG clients get the electric program menu information, can show the electronic programming dish of active user Single-page.
The present embodiment enters line number by the method based on the HTML5 electric program menus realized with WebSocket agreements The Web presentation layers of EPG system are realized according to interaction so that Web presentation layers may operate in any support HTML5 EPG clients On, the problem of efficiently solving the poor compatibility between each TV platform and network improves the availability of product, and adopts Traditional http protocol is replaced to realize the communication between EPG clients and EPG server, energy with HTML5 WebSocket technologies Preferably save EPG server resource and bandwidth and reach real-time communication, user authentication information is added in connectivity request message, The display time that the exclusive electric program menu menu information with user authentication information shows the page is shortened, user is improved Experience.
Embodiment two
With reference to the embodiment of the present invention one, after EPG clients and EPG server are set up and be connected, EPG server will update Electronic programming resource supplying give corresponding EPG clients, as shown in Fig. 2 methods described flow includes:
201:EPG clients add user authentication information in the header of the connectivity request message of WebSocket agreements Parameter, then the data division of user authentication information is added in connectivity request message, complete packing processing.
Specifically, EPG clients change the header of connection request in WebSocket protocol informations, and user authentication is believed Breath and connectivity request message carry out packing processing.
Above-mentioned packing processing procedure is specifically included:EPG client calls WebSocket interface function is initiated WebSocket handshake requests, EPG client Web engines are when receiving the WebSocket handshake requests, from WebSocket Interface in obtain the user authentication information, in standard WebSocket connectivity request message head add user authentication letter Parameter is ceased, and the data division of user authentication information is added in connectivity request message, packing processing is completed.
Wherein, the user authentication information can be:User profile or facility information, the user authentication information can lead to Modification WebSocket JavaScript interface is crossed, it is incoming by JavaScriptEPG client codes, can also be by EPG Content obtaining in client modification Web engines.
202:The connectivity request message and user authentication information of processing of having packed are sent to the EPG and taken by EPG clients Business device.
In the present embodiment, the user authentication information refers to information of the registered user to carry out authentication, bag Include:The information such as ID, key information, user account, can also be facility information.
Wherein, when setting up connection request, user authentication information parameter is added in connectivity request message head, is serviced with EPG The HTML5 codes that device sets up connection request process are as follows:
Websocket=new WebSocket (" ws://localhost:8888/demo”,userinfo);
websocket.onmessage()。
203:The EPG server receives the connectivity request message and user authentication information that EPG clients are sent, right The connectivity request message and user authentication information are parsed.
Specifically, above-mentioned resolving includes:EPG server calls the analytical function of Websocket agreements, from the letter EPG client-side informations parameter and user authentication information parameter are obtained in the header of breath, and is believed respectively according to the EPG clients Parameter and the corresponding EPG client address of user authentication information parameter acquiring and user authentication information are ceased, and the user is recognized Card information is verified.
204:The EPG server generates corresponding according to Websocket agreements according to the connectivity request message after parsing Connection request response message, and the corresponding electric program menu information of the user authentication information is obtained, by the electronic programming The parameter of menu information is added in the header of the connection request response, then by the data of the electric program menu information Part is added in the connection request response message, completes packing processing, the connection request response after packing is handled Information and electric program menu information return to the EPG clients.
Wherein, obtaining the corresponding electric program menu information of the user authentication information can obtain with using according to ID Electronic programming customized family ID, generation electric program menu information returns to EPG clients.
In the present embodiment, the information that connection replys refers to that EPG server is sent according to the connection request that user sends Response, the corresponding electric program menu information of active user refer to after being authenticated according to the authentication information of user from EPG take The exclusive electric program menu information of the active user obtained in business device, for example, the customized program of active user is American-European film, The related electric program menu information of American-European film and ID etc. are returned to the user;
It should be noted that EPG server receives the connectivity request message and user authentication of EPG clients transmission Before information, in addition to:EPG server parses addition user authentication information subfunction in connectivity request message analytical function, Allow EPG server when parsing connectivity request message while parsing user authentication information.
205:The EPG clients receive and connection reply information and electricity after the packing processing that the EPG server is returned During sub- program menu information, the electric program menu information is obtained.
The EPG clients get the electric program menu information, can show the electronic programming dish of active user Single-page.
206:When EPG server detects the electric program menu information updating of the EPG clients of currently-established connection When, the electric program menu information of renewal is pushed to corresponding EPG clients by EPG server.
207:EPG clients receive the electric program menu information that EPG server is pushed, and the electric program menu is believed Breath carries out corresponding analysis processing.
Further, above-mentioned EPG clients carry out corresponding analysis processing procedure to electric program menu information, are specially:
EPG clients are analyzed the electric program menu information, it is determined that the electronic programming that need to be updated and generate more New prompting frame, to prompt the user whether to be updated, the display page for updating electric program menu is operated according to the determination of user Face.
It should also be noted that, after EPG clients and EPG server have been set up and be connected, EPG clients can also basis Its demand to EPG server send electric program menu information request, its detailed process, including:
208:EPG clients send electric program menu information request to EPG server.
In the present embodiment, after EPG clients and EPG server, which are set up, to be connected, what EPG clients can be new according to user The customized demand of electric program menu sends to EPG server and asked.
209:EPG server receives the electric program menu information request, please according to the electric program menu information Ask and electric program menu information is analyzed, the electric program menu information after corresponding update is sent to EPG clients.
In the present embodiment, EPG server is received after the electric program menu information request of EPG clients, is obtained and electricity The related information of sub- program guide simultaneously returns to client;For example, the customized new program " horror film " of user, it is possible in EPG visitors Family is operated on end, and the request of electronic programming resource " horror film " is sent to EPG server, and EPG server receives described After request, the electric program menu related to " horror film " is sent to EPG clients, and " horror film " related program updating It is shown in the electric program menu page of relative users.
210:EPG clients receive the electric program menu information after updating, by the electric program menu information after renewal The electric program menu information deposited is replaced, refreshes electric program menu and shows the page.
In the present embodiment, EPG clients are received after the electric program menu information of EPG server return, can be automatic Refresh electric program menu and show the page.
It should be noted that the system is realized based on HTML5, and communicated using WebSocket agreements.
The present embodiment enters line number by the method based on the HTML5 electric program menus realized with WebSocket agreements The Web presentation layers of EPG system are realized according to interaction so that Web presentation layers may operate in any support HTML5 EPG clients On, the problem of efficiently solving the poor compatibility between each TV platform and network improves the availability of product, and adopts Traditional http protocol is replaced to realize the communication between EPG clients and EPG server, energy with HTML5 WebSocket technologies Preferably save EPG server resource and bandwidth and reach real-time communication, user authentication information is added in connectivity request message, The display time that the exclusive electric program menu menu information with user authentication information shows the page is shortened, user is improved Experience;In addition, set up with WebSocket agreements after connection, can be according to the customized electric program menu of EPG clients The update status of corresponding electric program menu can push corresponding information mutually in demand and EPG server, reduce interaction times, Improve the utilization rate in broadband.
Embodiment three
In conjunction with the embodiments one, a kind of method for realizing electric program menu is present embodiments provided, the offline of HTML5 is utilized EPG Web presentation layer files are stored in after EPGEPG clients, EPGEPG client terminal start-ups directly from local slow by storage mode Deposit document analysis and show that electric program menu shows the page, then CACHE DIRECTORY file request, EPG services are sent to EPG server Device returns to the catalogue file updated and returns to EPG clients, EPG client re-requests caching in need electronic programming dish Single information, EPG server returns to the electric program menu information for requiring caching, and EPG clients receive and store EPG services The electric program menu information that device is returned, and update event is triggered, refresh electric program menu and show the page.Specifically, referring to Fig. 3, methods described includes:
301:EPG clients determine whether local cache file, are then to perform step 302-306;Otherwise step is performed 307-310。
Wherein, the local cache file refers to EPG Web presentation layer files, and specially EPG clients are locally stored With the electric program menu information of user-specific, for example, EPG clients and EPG server interact and get electronic programming EPG clients are stored in during menu information and using the electric program menu information as local cache file, again from EPG visitors When family end starts EPG system, then directly local cache file can be obtained from local EPG clients.
302:EPG clients parse local cache file and show that electric program menu shows the page.
In the present embodiment, EPG clients are according to user's electric program menu information in local cache file with having recorded Show that the corresponding electric program menu of active user shows the page.
303:EPG clients send directory file information to EPG server.
Wherein, the directory file information includes:The corresponding electric program menu catalogue of active user, index information and The electric program menu information currently shown.
304:EPG server receives the directory file information that the EPG clients are sent, and according to catalogue text Part information judges whether electric program menu information has renewal, when the electric program menu information has renewal, then performs step Rapid 305;Otherwise operation is not performed.
Specifically, judge whether electric program menu information has renewal above according to directory file information, including:
Electric program menu information and index information are obtained from the directory file information, is obtained according to the index information Take corresponding electric program menu information in EPG server, the electric program menu information that EPG clients are sent with it is described Electric program menu information in EPG server is compared, and determines whether to update.
For example, the customized program of user is " happiness sheep sheep and ash too wolf ", when sending catalogue file request, if described order Program " happiness sheep sheep and ash too wolf " processed has renewal, and the information of renewal is returned to EPG clients by the EPG server.
305:EPG server updates electric program menu information, and the electronics after the renewal after updating is returned to EPG clients Program menu information.
306:EPG clients receive the electric program menu information after the renewal that EPG server is returned, and store updated Electric program menu information simultaneously replaces the electric program menu information in original directory file information, and refresh electronic programming dish It is single to show the page.
In addition, when an insufficient storage space exists, the prompt message of memory space inadequate is returned to user.
307:EPG clients send electric program menu information request to EPG server.
Wherein, the electric program menu information, can include:The information such as ID, key information, user account, are used The customized programme information in family.
308:EPG server receives the electric program menu information request that the EPG clients are sent, and parses the electronics Program menu information is asked, and obtains corresponding electric program menu information.
Wherein it is possible to be obtained and the customized electronic program information of ID, generation program menu information according to ID EPG clients are returned to, for example, electronic programming is " horror film " in the customized electric program menu of ID, to EPG server Electric program menu request is sent, EPG server is received after the request, obtains the electronic programming dish related to " horror film " Single information.
309:EPG server sends the electric program menu information to EPG clients.
For example, EPG clients will be sent to after " horror film " related electric program menu information package.
310:EPG clients receive the electric program menu information, according to electric program menu presentation of information electricity Sub- program guide shows the page.
Wherein, " horror film " related program updating is shown in the electric program menu page of relative users.
The present embodiment enters line number by the method based on the HTML5 electric program menus realized with WebSocket agreements The Web presentation layers of EPG system are realized according to interaction so that Web presentation layers may operate in any support HTML5 EPG clients On, the problem of efficiently solving the poor compatibility between each TV platform and network improves the availability of product, and adopts Traditional http protocol is replaced to realize the communication between EPG clients and EPG server, energy with HTML5 WebSocket technologies Preferably save EPG server resource and bandwidth and reach real-time communication, user authentication information is added in connectivity request message, The display time of the exclusive electric program menu presentation of information page with user authentication information is shortened, the body of user is improved Test;Delay in addition, the Web presentation layer files of EPG system are stored in as local cache file using HTML5 offline storages mode There is EPGEPG clients, be effectively shortened the display time of the EPG clients start page, improve Consumer's Experience.
Example IV
The embodiment of the present invention four provides a kind of system for realizing electric program menu, the system and the embodiment of the present invention The one method correspondence provided, as shown in figure 4, the system 40 includes:EPG clients 41 and EPG server 42,
EPG clients 41, including:Connection request processing module 411, the first transport module 412 and acquisition module 413;
Connection request processing module 411 is used for header of the EPG clients in the connectivity request message of WebSocket agreements Middle addition user authentication information parameter, then the data division of user authentication information is added in connectivity request message, completion is beaten Bag processing;
First transport module 412 is used for EPG clients by the connectivity request message and user authentication information of processing of having packed The EPG server is sent to, receives and connection replys information and electronic programming after the packing processing that the EPG server is returned Menu information;
Acquisition module 413 is used to connection reply letter after the packing processing that the EPG clients reception EPG server is returned When breath and electric program menu information, the electric program menu information is obtained;
EPG server 42, including:Second transport module 421, parsing module 422 and reply process module 423;
Second transport module 421 is used for EPG server and receives the connectivity request message and the user that EPG clients are sent Authentication information, is additionally operable to the connection request response message and electric program menu information after EPG server handles packing Return to the EPG clients;
The connectivity request message and user authentication information that parsing module 422 is used to receive EPG server are parsed;
Reply process module 423 is used for EPG server according to Websocket agreements according to the connectivity request message after parsing Corresponding connection request response message is generated, and obtains the corresponding electric program menu information of the user authentication information, by institute The parameter of electric program menu information is stated added in the header of the connection request response, then by the electric program menu The data division of information is added in the connection request response message, completes packing processing.
In the system, interface of the connection request processing module 411 specifically for EPG client calls WebSocket Function initiate WebSocket handshake requests, EPG client Web engines when receiving the WebSocket handshake requests, from The user authentication information is obtained in WebSocket interface, adds and uses in standard WebSocket connectivity request message head Family authentication information parameter, and the data division of user authentication information is added in connectivity request message, complete packing processing;
The authentication information can be:User profile or facility information, are connect by the JavaScript for changing WebSocket Mouthful, it is incoming by JavaScriptEPG client codes, or pass through the content obtaining in EPG clients modification Web engines.
Parsing module 422, the connectivity request message specifically for receiving the transmission of EPG clients when EPG server During with user authentication information, the analytical function of Websocket agreements is called, EPG client is obtained from the header of described information Client information parameter and user authentication information parameter, and joined respectively according to the EPG client-side informations parameter and user authentication information Number obtains corresponding EPG client address and user authentication information, and the user authentication information is verified.
The present embodiment enters line number by the method based on the HTML5 electric program menus realized with WebSocket agreements The Web presentation layers of EPG system are realized according to interaction so that Web presentation layers may operate in any support HTML5 EPG clients On, the problem of efficiently solving the poor compatibility between each TV platform and network improves the availability of product, and adopts Traditional http protocol is replaced to realize the communication between EPG clients and EPG server, energy with HTML5 WebSocket technologies Preferably save EPG server resource and bandwidth and reach real-time communication, user authentication information is added in connectivity request message, The display time that the exclusive electric program menu menu information with user authentication information shows the page is shortened, user is improved Experience.
Embodiment five
The system provided with reference to the embodiment of the present invention four, the embodiment of the present invention five realizes electric program menu there is provided one kind System, the system is corresponding with the method that the embodiment of the present invention two is provided, as shown in figure 5, the EPG server 42 is also wrapped Include:Pushing module 424, the electric program menu letter of the EPG clients for detecting currently-established connection when EPG server When breath has renewal, the electronic programming resource data of renewal is pushed to corresponding EPG clients by EPG server;
EPG clients 41 also include:Analysis module 414, for when electric program menu information has renewal, EPG to be serviced New electric program menu information data is pushed to corresponding EPG clients by device;
Wherein, the first transport module 412 is additionally operable to receive the electric program menu information that EPG server is pushed.
Wherein, analysis module 414, are analyzed the electric program menu information specifically for EPG clients, it is determined that The electronic programming that need to update simultaneously generates renewal prompting frame, to prompt the user whether to be updated, and is operated according to the determination of user Update the display page of electric program menu.
The present embodiment enters line number by the method based on the HTML5 electric program menus realized with WebSocket agreements The Web presentation layers of EPG system are realized according to interaction so that Web presentation layers may operate in any support HTML5 EPG clients On, the problem of efficiently solving the poor compatibility between each TV platform and network improves the availability of product, and adopts Traditional http protocol is replaced to realize the communication between EPG clients and EPG server, energy with HTML5 WebSocket technologies Preferably save EPG server resource and bandwidth and reach real-time communication, user authentication information is added in connectivity request message, The display time that the exclusive electric program menu menu information with user authentication information shows the page is shortened, user is improved Experience;In addition, set up with WebSocket agreements after connection, can be according to the customized electric program menu of EPG clients The update status of corresponding electric program menu can push corresponding information mutually in demand and EPG server, reduce interaction times, Improve the utilization rate in broadband.
Embodiment six
With reference to the embodiment of the present invention four provide system, present embodiments provide it is a kind of realize electric program menu be System, the system is corresponding with the method that the embodiment of the present invention three is provided, referring to Fig. 6, the EPG clients 41, in addition to:Storage Processing module 415, referring specifically to Fig. 7, storage processing module 415 includes:
Judging unit 4151, resolution unit 4152, memory cell 4153, trigger element 4154,
Judging unit 4151, for determining whether local cache file,
Resolution unit 4152, for when there is local cache file, the EPG clients parsing local cache file simultaneously to show Show that electric program menu shows the page,
Memory cell 4153, for storing the cache file and replacing EPG client local cache directory file informations In electric program menu,
Trigger element 4154, the page is shown for refreshing electric program menu.
Wherein, the first transport module 412 is additionally operable to send directory file information to EPG server;It is additionally operable to receive EPG clothes Electric program menu information after the renewal that business device is returned;
First transport module 412 is additionally operable to send electric program menu information request, is additionally operable to receive EPG server return Renewal after electric program menu information, the analysis module 414 is additionally operable to replace the electric program menu information after renewal Corresponding electric program menu information is changed, and refreshes electric program menu and shows the page;
In EPG server 42, the second transport module 421 is additionally operable to receive the catalogue file that EPG clients are sent Information;For when EPG server updates electric program menu information, the electronic programming dish after updating to be returned to EPG clients Single information;
The parsing module 422 is used to judge whether electric program menu information has more according to the directory file information Newly, the present embodiment carries out data friendship by the method based on the HTML5 electric program menus realized with WebSocket agreements Mutually realize the Web presentation layers of EPG system so that Web presentation layers may operate in any support HTML5 EPG clients, have The problem of effect ground solves the poor compatibility between each TV platform and network, improves the availability of product, and use HTML5 WebSocket technologies replace traditional http protocol to realize the communication between EPG clients and EPG server, can be more Good saving EPG server resource and bandwidth simultaneously reach real-time communication, and user authentication information is added in connectivity request message, contract The display time of the short exclusive electric program menu presentation of information page with user authentication information, improve the body of user Test;Delay in addition, the Web presentation layer files of EPG system are stored in as local cache file using HTML5 offline storages mode There is EPGEPG clients, be effectively shortened the display time of the EPG clients start page, improve Consumer's Experience.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (14)

1. a kind of method for realizing electric program menu, it is characterised in that methods described includes:
EPG clients add user authentication information parameter in the header of the connectivity request message of WebSocket agreements, then will The data division of user authentication information is added in connectivity request message, completes packing processing;
The connectivity request message and user authentication information of processing of having packed are sent to EPG server by the EPG clients;
When the EPG server receives the connectivity request message and user authentication information that the EPG clients are sent, to institute State connectivity request message and user authentication information is parsed;
The EPG server generates corresponding connection request according to Websocket agreements according to the connectivity request message after parsing Response message, and the corresponding electric program menu information of the user authentication information is obtained, by the electric program menu information Parameter added added in the header of the connection request response, then by the data division of the electric program menu information Into the connection request response message, packing processing, the connection request response message and electricity after packing is handled are completed Sub- program menu information returns to the EPG clients;
The EPG clients receive and connection reply information and electronic programming dish after the packing processing that the EPG server is returned During single information, the electric program menu information is obtained.
2. according to the method described in claim 1, it is characterised in that the EPG clients please in the connection of WebSocket agreements Addition user authentication information parameter in the header of information is sought, then the data division of user authentication information is added to connection request In information, packing processing is completed, is specifically included:
EPG client calls WebSocket interface function initiates WebSocket handshake requests, and EPG client Web engines exist When receiving the WebSocket handshake requests, the user authentication information is obtained from WebSocket interface, in standard User authentication information parameter is added in WebSocket connectivity request message head, and the data division of user authentication information is added Add in connectivity request message, complete packing processing;
The authentication information is:User profile or facility information, the user authentication information is by changing WebSocket's JavaScript interface, by JavaScriptEPG client codes it is incoming or by EPG clients change Web engines in Content obtaining.
3. according to the method described in claim 1, it is characterised in that the EPG server receives the described of EPG clients transmission When connectivity request message and user authentication information, the connectivity request message and user authentication information are parsed, including:
When EPG server receives the connectivity request message and user authentication information of the transmission of EPG clients, call The analytical function of Websocket agreements, obtains EPG client-side informations parameter and user authentication letter from the header of described information Cease parameter, and respectively according to the EPG client-side informations parameter and the corresponding EPG clients of user authentication information parameter acquiring Location and user authentication information, and the user authentication information is verified.
4. according to the method described in claim 1, it is characterised in that methods described also includes:
When EPG server detects the electric program menu information updating of the EPG clients of currently-established connection, EPG clothes The electric program menu information of renewal is pushed to corresponding EPG clients by business device;
EPG clients receive the electric program menu information of EPG server push, and the electric program menu information is carried out Corresponding analysis processing.
5. method according to claim 4, it is characterised in that the EPG clients receive the electricity of EPG server push During sub- program menu information, corresponding analysis processing is carried out to the electric program menu information, specifically included:
EPG clients are analyzed the electric program menu information, it is determined that the electronic programming that need to be updated and generating renewal and carrying Show frame, to prompt the user whether to be updated, electric program menu is updated according to the determination of user operation and shows the page.
6. according to the method described in claim 1, it is characterised in that methods described also includes:
EPG clients determine whether local cache file;
When there is local cache file, the EPG clients parsing local cache file simultaneously shows that electric program menu shows page Face;
The EPG clients send directory file information to EPG server;
The EPG server receives the directory file information that the EPG clients are sent, and is believed according to the catalogue file Breath judge whether electric program menu information has renewal, when the electric program menu information has renewal, EPG server then to EPG clients return to the electric program menu information after updating;
The EPG clients receive the electric program menu information after the renewal that EPG server is returned, and store updated electronics Program menu information simultaneously replaces the electric program menu information in EPG client local cache directory file informations, and refresh electricity Sub- program guide shows the page.
7. the method according to claim any one of 1-6, it is characterised in that methods described also includes:
EPG clients send electric program menu information request to EPG server;
The EPG server receives the electric program menu information request, according to the electric program menu information request pair Electric program menu information is analyzed, and the electric program menu information after corresponding update is sent into EPG clients;
The EPG clients receive the electric program menu information after updating, and replace original electric program menu information, and root Refresh electric program menu according to the electric program menu after renewal and show the page.
8. a kind of system for realizing electric program menu, it is characterised in that the system includes:
EPG clients and EPG server;
The EPG clients, including:Connection request processing module, the first transport module and acquisition module;
The connection request processing module is used in the header of connectivity request message of the EPG clients in WebSocket agreements User authentication information parameter is added, then the data division of user authentication information is added in connectivity request message, packing is completed Processing;
First transport module is used for EPG clients and sends the connectivity request message for processing of having packed and user authentication information To the EPG server, information and electronic programming are connection replyed after the packing processing that the EPG server is returned for receiving Menu information;
The acquisition module is used to connection reply information after the packing processing that the EPG clients reception EPG server is returned During with electric program menu information, the electric program menu information is obtained;
The EPG server, including:Second transport module, parsing module and reply process module;
Second transport module is used for the connectivity request message of EPG server reception EPG client transmissions and user recognizes Information is demonstrate,proved, the connection request response message after EPG server handles packing is additionally operable to and electric program menu information is returned Back to the EPG clients;
The connectivity request message and user authentication information that the parsing module is used to receive EPG server are parsed;
The reply process module is used for EPG server and given birth to according to Websocket agreements according to the connectivity request message after parsing Into corresponding connection request response message, and the corresponding electric program menu information of the user authentication information is obtained, will be described The parameter of electric program menu information is added in the header of the connection request response, then the electric program menu is believed The data division of breath is added in the connection request response message, completes packing processing.
9. system according to claim 8, it is characterised in that the connection request processing module is specifically for EPG client End calls WebSocket interface function to initiate WebSocket handshake requests, EPG client Web engines receive it is described During WebSocket handshake requests, the user authentication information is obtained from WebSocket interface, standard WebSocket's User authentication information parameter is added in connectivity request message head, and the data division of user authentication information is added to connection request In information, packing processing is completed;
The authentication information is:User profile or facility information, the user authentication information is by changing WebSocket's JavaScript interface, it is incoming by JavaScriptEPG client codes, or changed by EPG clients in Web engines Hold and obtain.
10. system according to claim 8, it is characterised in that the parsing module, specifically for being connect when EPG server When receiving the connectivity request message and user authentication information of EPG clients transmission, the parsing letter of Websocket agreements is called Number, obtains EPG client-side informations parameter and user authentication information parameter from the header of described information, and respectively according to described EPG client-side informations parameter and the corresponding EPG client address of user authentication information parameter acquiring and user authentication information, and it is right The user authentication information is verified.
11. system according to claim 8, it is characterised in that in the EPG server, in addition to:
Pushing module, the pushing module is used for when EPG server detects the electronics of the EPG clients of currently-established connection When program menu information has renewal, the electric program menu information of renewal is pushed to corresponding EPG clients by EPG server;
In the EPG clients, the first transport module is additionally operable to receive the electric program menu information that EPG server is pushed;
The EPG clients also include:Analysis module, for carrying out corresponding analysis processing to the electric program menu information.
12. system according to claim 11, it is characterised in that
The analysis module, is analyzed the electric program menu information specifically for EPG clients, it is determined that need to update Electronic programming simultaneously generates renewal prompting frame, to prompt the user whether to be updated, and electronics is updated according to the determination of user operation Program guide shows the page.
13. system according to claim 8, it is characterised in that
The EPG clients also include:Processing module is stored, the storage processing module is specifically included:Judging unit, parsing Unit, memory cell, trigger element,
The judging unit, for determining whether local cache file,
The resolution unit, for when there is local cache file, the EPG clients parsing local cache file simultaneously to show electricity Sub- program guide shows the page,
The memory cell, for storing the cache file and replacing in EPG client local cache directory file informations Electric program menu information,
The trigger element, the page is shown for refreshing electric program menu,
First transport module is additionally operable to send directory file information to EPG server;It is additionally operable to receive EPG server return Renewal after electric program menu information, in the EPG server, the parsing module is additionally operable to judge the catalogue file Whether renewal is had,
Second transport module is additionally operable to receive the directory file information that the EPG clients are sent, and is additionally operable to work as the electricity When sub- program menu information has renewal, the electric program menu information after updating is returned to EPG clients.
14. the system according to claim any one of 8-13, it is characterised in that
First transport module in the EPG clients is additionally operable to send electric program menu information request, is additionally operable to connect The electric program menu information after updating is received, display module is additionally operable to the electric program menu information after renewal replacing corresponding Electric program menu information, and show that the electronic interface menu after updating shows the page;
Second transport module in the EPG server is additionally operable to receive the electric program menu information request, also uses Electric program menu information after by corresponding update is sent to EPG clients, and the parsing module is additionally operable to according to the electricity Sub- program menu information request is analyzed electronic programming.
CN201310390495.9A 2013-08-30 2013-08-30 A kind of method and system that electric program menu is realized based on HTML5 Active CN103442256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310390495.9A CN103442256B (en) 2013-08-30 2013-08-30 A kind of method and system that electric program menu is realized based on HTML5

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310390495.9A CN103442256B (en) 2013-08-30 2013-08-30 A kind of method and system that electric program menu is realized based on HTML5

Publications (2)

Publication Number Publication Date
CN103442256A CN103442256A (en) 2013-12-11
CN103442256B true CN103442256B (en) 2017-08-04

Family

ID=49695914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310390495.9A Active CN103442256B (en) 2013-08-30 2013-08-30 A kind of method and system that electric program menu is realized based on HTML5

Country Status (1)

Country Link
CN (1) CN103442256B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872618A (en) * 2015-11-16 2016-08-17 乐视致新电子科技(天津)有限公司 Video resource sharing method and system, and related devices
CN106250315A (en) * 2016-08-04 2016-12-21 上海携程商务有限公司 A kind of automatic imitation request-reply system and method for configurableization
CN108234178B (en) * 2016-12-21 2019-02-22 视联动力信息技术股份有限公司 A kind of method and apparatus being managed collectively menu file
CN110858834B (en) * 2018-08-23 2022-02-08 中国电信股份有限公司 User information transmission method, device, system and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893638A (en) * 2005-07-07 2007-01-10 沈阳鼎通科技有限公司 Real-time identifying method of interaction type network television user
CN101159846A (en) * 2007-11-14 2008-04-09 华为技术有限公司 Method, device and system of limiting terminal access address
CN102739800A (en) * 2012-07-05 2012-10-17 合一网络技术(北京)有限公司 System and method for remotely controlling browser Web page based on internet
CN102821316A (en) * 2012-05-14 2012-12-12 南京邮电大学 Improved video on demand (VOD) transmission method based on peer-to-peer computing core algorithm

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819726B2 (en) * 2010-10-14 2014-08-26 Cyandia, Inc. Methods, apparatus, and systems for presenting television programming and related information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893638A (en) * 2005-07-07 2007-01-10 沈阳鼎通科技有限公司 Real-time identifying method of interaction type network television user
CN101159846A (en) * 2007-11-14 2008-04-09 华为技术有限公司 Method, device and system of limiting terminal access address
CN102821316A (en) * 2012-05-14 2012-12-12 南京邮电大学 Improved video on demand (VOD) transmission method based on peer-to-peer computing core algorithm
CN102739800A (en) * 2012-07-05 2012-10-17 合一网络技术(北京)有限公司 System and method for remotely controlling browser Web page based on internet

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
EPG在数字电视以及网络电视中的实现与比较;施双双、孙军;《信息技术》;20071007(第10期);第38-45页 *
The WebSocket Protocol;Alexey Melnikov;《RFC6455》;20111230;全文 *
基于HTMLS的视频网站设计与Web前端EPG系统实现;徐镇辉;《漳州职业技术学院学报》;20130630;第15卷(第2期);第1-6页 *

Also Published As

Publication number Publication date
CN103442256A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN105847988B (en) Video sharing method and apparatus
CN103442256B (en) A kind of method and system that electric program menu is realized based on HTML5
CN102263988B (en) Message service realization method of internet protocol television (IPTV) and system thereof
CN105763619B (en) The method and device that client and server-side are communicated
US10841215B2 (en) Apparatus and method for accessing a back-end service
US9244754B2 (en) Error code conversion method and system, PPPoE server and mobile terminal
CN104902343A (en) Methods for transmitting and playing audio/video and message, server and terminal
CN109547524B (en) User behavior storage method, device, equipment and storage medium based on Internet of things
CN103312800A (en) Method and device for controlling broadband customer premise equipment (CPE) through instant messaging
CN101640736B (en) Method and system for realizing visual customer service
CN103167327A (en) Method, device and system of information interaction
CN103220297B (en) Method for carrying out multi-screen interaction through social network
EP2802115A1 (en) Method, terminal and server for recovering session content transmission
CN103546493B (en) A kind of Cross-device communication method
CN103546771A (en) Television program review processing method and system based on smart terminal
CN103354563A (en) Method of customizing EPG (electronic program guide) interface based on Internet television client and apparatus thereof
CN104660547B (en) A kind of service platform for realizing telecommunication
CN102571409B (en) Service request management system and method for realizing service across-terminal application
CN103368897A (en) Method, device and system for transmitting application program
CN104778386A (en) Registration method and system for product
CN104717131B (en) Information interacting method and server
CN110475215B (en) Message editing, transmitting and displaying method, server and terminal thereof
KR101080862B1 (en) System and method for REST style Third Party Call API
US20130151723A1 (en) Stream media channel switch method, switch agent, client and terminal
CN102802197A (en) Method and device for transmitting application data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant