CN109831701A - The extended method of digital television devices browser and cross-page plane system event - Google Patents

The extended method of digital television devices browser and cross-page plane system event Download PDF

Info

Publication number
CN109831701A
CN109831701A CN201910082497.9A CN201910082497A CN109831701A CN 109831701 A CN109831701 A CN 109831701A CN 201910082497 A CN201910082497 A CN 201910082497A CN 109831701 A CN109831701 A CN 109831701A
Authority
CN
China
Prior art keywords
system event
built
digital television
television devices
cross
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.)
Granted
Application number
CN201910082497.9A
Other languages
Chinese (zh)
Other versions
CN109831701B (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.)
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 CN201910082497.9A priority Critical patent/CN109831701B/en
Publication of CN109831701A publication Critical patent/CN109831701A/en
Application granted granted Critical
Publication of CN109831701B publication Critical patent/CN109831701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of digital television devices browser and the extended methods of cross-page plane system event, it include: that module is uniformly processed in system event, for forwarding the system event messages received by websocket protocol, the method is the following steps are included: digital television devices built-in system event occurs, and sends system event for built-in system event and module is uniformly processed;System event is uniformly processed module and establishes connection, and it is forwarded to application layer by built-in system event;Internal system event is monitored and handled using JS code;Browser injection built-in system event is monitored and handled using JS code, the present invention solves the problems, such as the cumbersome and cross-page face of extension.

Description

The extended method of digital television devices browser and cross-page plane system event
Technical field
The present invention relates to digital television devices technical field, especially a kind of digital television devices browser and cross-page face The extended method of system event.
Background technique
With the arrival of Internet era, digital television devices all have two-way and browser function substantially.DTV Equal system events need processing in time and response, the way before based on browser environment expansion of digital television system event are all Event methods and attribute are extended based on browser kernel, but this method, there are two main problems, one is to need to modify Browser kernel extends corresponding attribute and method, and realization is relatively complicated and complicated, another is to cannot achieve cross-page face thing Part is monitored and processing, needs to realize digital television system event monitoring processing code in each page, but for some thirds Square application page is helpless.
Summary of the invention
To solve problems of the prior art, the object of the present invention is to provide a kind of digital television devices browser with And the extended method of cross-page plane system event, solve the problems, such as the cumbersome and cross-page face of extension.
To achieve the above object, the technical solution adopted by the present invention is that: a kind of digital television devices browser and cross-page The extended method of plane system event, comprising: module is uniformly processed in system event, receives for being forwarded by websocket protocol The system event messages arrived, the method the following steps are included:
Step S10, digital television devices built-in system event occurs, and sends system event system for built-in system event One processing module;
Step S20, system event is uniformly processed module and establishes connection, and it is forwarded to application layer by built-in system event;
Step S30, internal system event is monitored and is handled using JS code;
Step S40, browser injection built-in system event is monitored and is handled using JS code.
As a preferred embodiment, the step S10 is specifically included:
Step S11, digital television devices built-in system event occurs;
Step S12, built-in system event is sent to system event by the message mechanism of system and module is uniformly processed.
As another preferred embodiment, the step S20 is specifically included:
Step S21, websocket server is established, the client of connection is recorded;
Step S22, the built-in system event message received is transmitted to all connections by websocket protocol client。
As another preferred embodiment, the step S30 is specifically included:
Step S31, start websocket connection;
Step S32, websocket system event messages are monitored;
Step S33, parsing and processing DTV built-in system event message.
As another preferred embodiment, the step S40 is specifically included:
Step S41, start new page to be loaded into and judge whether to be loaded into new page, new page mark is set;
Step S42, it is loaded into if it is new page, loading internal system event is monitored and processing JS code.
As another preferred embodiment, the built-in system event includes CA event, tuning event, video thing Part.
As another preferred embodiment, the built-in system event message uses JSON format.
The beneficial effects of the present invention are: the present invention, which is flutterred using websocket mechanism from browser application layer, obtains system event, And realize that the mechanism of obtaining is flutterred in cross-page face automatically, solve the cross-page face of digital television devices browser, digital television system event Extend cumbersome and cross-page face problem.
Detailed description of the invention
Fig. 1 is the flow diagram of the embodiment of the present invention;
Fig. 2 is the flow diagram that browser injects built-in system event in the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
Embodiment
As shown in Figure 1, the extended method of a kind of digital television devices browser and cross-page plane system event, comprising: be Module is uniformly processed in system event, for forwarding the system event messages received, the method packet by websocket protocol Include following steps:
A, digital television devices built-in system event occurs, and built-in system incident is sent to system event by message mechanism Module is uniformly processed:
A1. digital television devices occur;
A2. system sends unified receiving module for built-in system event by message mechanism, and code is as follows:
A3. unify receiving module and receive message, extract event content data;
B, system event is uniformly processed module and establishes connection, and it is forwarded to application layer by built-in system event:
B1. websocket server is established, the client of connection is recorded, code is as follows:
B2. the built-in system event message received is transmitted to by websocket protocol the client of all connections, Local and other lan devices are supported to access DVB application simultaneously, the content of the present embodiment built-in system event message uses JSON format, JSON are a kind of grammers of storage and exchange of texts information, it and XML characteristic having the same are a kind of data Storage format, it is but smaller than XML, faster, be easier to people and write and read, be more easily generated and parse, code is as follows:
C, internal system event is monitored and handled using JS code: c1. starts websocket connection, and code is such as Under:
C2. websocket system event messages are monitored, code is as follows:
B3. DTV built-in system event message is parsed and handles, signal code snippet is seen below:
D, as shown in Fig. 2, browser injection built-in system event is monitored and handled using JS code: d1. starts New page is loaded into and judges whether to be loaded into new page, and new page mark is arranged, and code is as follows:
D2. it is loaded into if it is new page, loading internal system event is monitored and processing JS code, code are as follows:
A specific embodiment of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.

Claims (7)

1. the extended method of a kind of digital television devices browser and cross-page plane system event characterized by comprising system Module is uniformly processed in event, and for forwarding the system event messages received by websocket protocol, the method includes Following steps:
Step S10, digital television devices built-in system event occurs, and sends built-in system event at system event unification Manage module;
Step S20, system event is uniformly processed module and establishes connection, and it is forwarded to application layer by built-in system event;
Step S30, internal system event is monitored and is handled using JS code;
Step S40, browser injection built-in system event is monitored and is handled using JS code.
2. the extended method of digital television devices browser according to claim 1 and cross-page plane system event, special Sign is that the step S10 is specifically included:
Step S11, digital television devices built-in system event occurs;
Step S12, built-in system event is sent to system event by the message mechanism of system and module is uniformly processed.
3. the extended method of digital television devices browser according to claim 1 or 2 and cross-page plane system event, It is characterized in that, the step S20 is specifically included:
Step S21, websocket server is established, the client of connection is recorded;
Step S22, the built-in system event message received is transmitted to all connections by websocket protocol client。
4. the extended method of digital television devices browser according to claim 3 and cross-page plane system event, special Sign is that the step S30 is specifically included:
Step S31, start websocket connection;
Step S32, websocket system event messages are monitored;
Step S33, parsing and processing DTV built-in system event message.
5. the extended method of digital television devices browser according to claim 1 and cross-page plane system event, special Sign is that the step S40 is specifically included:
Step S41, start new page to be loaded into and judge whether to be loaded into new page, new page mark is set;
Step S42, it is loaded into if it is new page, loading internal system event is monitored and processing JS code.
6. the extended method of digital television devices browser according to claim 1 and cross-page plane system event, special Sign is that the built-in system event includes CA event, tuning event, Video Events.
7. the extended method of digital television devices browser according to claim 3 and cross-page plane system event, special Sign is that the built-in system event message uses JSON format.
CN201910082497.9A 2019-01-28 2019-01-28 Digital television equipment browser and method for expanding cross-page system event Active CN109831701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082497.9A CN109831701B (en) 2019-01-28 2019-01-28 Digital television equipment browser and method for expanding cross-page system event

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082497.9A CN109831701B (en) 2019-01-28 2019-01-28 Digital television equipment browser and method for expanding cross-page system event

Publications (2)

Publication Number Publication Date
CN109831701A true CN109831701A (en) 2019-05-31
CN109831701B CN109831701B (en) 2021-12-21

Family

ID=66862626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082497.9A Active CN109831701B (en) 2019-01-28 2019-01-28 Digital television equipment browser and method for expanding cross-page system event

Country Status (1)

Country Link
CN (1) CN109831701B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089687A1 (en) * 2007-09-28 2009-04-02 Yahoo! Inc. System and method for drill-down search results
CN102662840A (en) * 2012-03-31 2012-09-12 天津大学 Automatic detecting system and method for extension behavior of Firefox browser
US20120290935A1 (en) * 2011-05-12 2012-11-15 Koji Ihara Information processing apparatus, server device, information processing method, computer program, and content sharing system
US20120290951A1 (en) * 2011-05-12 2012-11-15 Shingo Utsuki Content sharing system
CN103064667A (en) * 2012-12-06 2013-04-24 郑州威科姆科技股份有限公司 Method for controlling hardware equipment based on JavaScript extension
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103929668A (en) * 2014-04-28 2014-07-16 Tcl集团股份有限公司 Control method and device based on television applying Android system
CN104199714A (en) * 2014-08-25 2014-12-10 广州菜鸟信息科技有限公司 Method for achieving mobile terminal GIS platform on android system and apple system
CN104965871A (en) * 2015-06-09 2015-10-07 北京金山安全软件有限公司 Page loading method and device and electronic equipment
CN105260153A (en) * 2015-10-15 2016-01-20 西安诺瓦电子科技有限公司 Image output apparatus and image output method
CN105740324A (en) * 2016-01-21 2016-07-06 中科院成都信息技术股份有限公司 Cross-platform and efficient visual workflow engine
CN105743955A (en) * 2014-12-11 2016-07-06 中国科学院声学研究所 Method for JavaScript object expansion
CN106250062A (en) * 2016-08-15 2016-12-21 成都天奥信息科技有限公司 Electronic chart realization method and system based on browser
CN107665257A (en) * 2017-10-11 2018-02-06 成都知道创宇信息技术有限公司 Suspend method movable in the page during a kind of browser window switching
CN107743266A (en) * 2017-10-10 2018-02-27 武汉斗鱼网络科技有限公司 Flash efficiently renders the means of communication, storage medium, equipment and system with the JS pages
CN107888683A (en) * 2017-11-10 2018-04-06 郑州云海信息技术有限公司 A kind of client exchange method and device
CN109213950A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 The data processing method and device of IPTV Intelligent set top box browser application
CN109271213A (en) * 2018-08-20 2019-01-25 平安普惠企业管理有限公司 Loading method, device, computer equipment and the storage medium of the HTML5 page

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089687A1 (en) * 2007-09-28 2009-04-02 Yahoo! Inc. System and method for drill-down search results
US20120290935A1 (en) * 2011-05-12 2012-11-15 Koji Ihara Information processing apparatus, server device, information processing method, computer program, and content sharing system
US20120290951A1 (en) * 2011-05-12 2012-11-15 Shingo Utsuki Content sharing system
CN102662840A (en) * 2012-03-31 2012-09-12 天津大学 Automatic detecting system and method for extension behavior of Firefox browser
CN103064667A (en) * 2012-12-06 2013-04-24 郑州威科姆科技股份有限公司 Method for controlling hardware equipment based on JavaScript extension
CN103246739A (en) * 2013-05-16 2013-08-14 百度在线网络技术(北京)有限公司 Web browsing control method of multiple Web Views and browser
CN103929668A (en) * 2014-04-28 2014-07-16 Tcl集团股份有限公司 Control method and device based on television applying Android system
CN104199714A (en) * 2014-08-25 2014-12-10 广州菜鸟信息科技有限公司 Method for achieving mobile terminal GIS platform on android system and apple system
CN105743955A (en) * 2014-12-11 2016-07-06 中国科学院声学研究所 Method for JavaScript object expansion
CN104965871A (en) * 2015-06-09 2015-10-07 北京金山安全软件有限公司 Page loading method and device and electronic equipment
CN105260153A (en) * 2015-10-15 2016-01-20 西安诺瓦电子科技有限公司 Image output apparatus and image output method
CN105740324A (en) * 2016-01-21 2016-07-06 中科院成都信息技术股份有限公司 Cross-platform and efficient visual workflow engine
CN106250062A (en) * 2016-08-15 2016-12-21 成都天奥信息科技有限公司 Electronic chart realization method and system based on browser
CN109213950A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 The data processing method and device of IPTV Intelligent set top box browser application
CN107743266A (en) * 2017-10-10 2018-02-27 武汉斗鱼网络科技有限公司 Flash efficiently renders the means of communication, storage medium, equipment and system with the JS pages
CN107665257A (en) * 2017-10-11 2018-02-06 成都知道创宇信息技术有限公司 Suspend method movable in the page during a kind of browser window switching
CN107888683A (en) * 2017-11-10 2018-04-06 郑州云海信息技术有限公司 A kind of client exchange method and device
CN109271213A (en) * 2018-08-20 2019-01-25 平安普惠企业管理有限公司 Loading method, device, computer equipment and the storage medium of the HTML5 page

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHUAI WANG: "《Discovering User-Difined Event Handlers in Presence of JavaScript Libraries》", 《2015 ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE》 *
温馨: "《基于Node.js的Web前端框架的研究与实现》", 《中国优秀硕士学位论文全文数据库》 *

Also Published As

Publication number Publication date
CN109831701B (en) 2021-12-21

Similar Documents

Publication Publication Date Title
US20230008757A1 (en) System and Method for Streaming Content from Multiple Servers
US20200245021A1 (en) Reception apparatus, reception method, program, and information processing system
US10771525B2 (en) System and method of discovery and launch associated with a networked media device
US9967295B2 (en) Automated discovery and launch of an application on a network enabled device
CN106303430B (en) The method for playing real time monitoring without plug-in unit in browser
US10880340B2 (en) Relevancy improvement through targeting of information based on data gathered from a networked device associated with a security sandbox of a client device
JP2015517266A (en) System and method for secure asynchronous event notification for adaptive streaming based on ISO base media file format
CN104539977A (en) Live broadcast previewing method and device
EP2661866A1 (en) Method and apparatus for signaling presentation
US11706498B2 (en) Playback method, system, device and readable storage medium of live broadcast content
CN112261377B (en) Web edition monitoring video playing method, electronic equipment and storage medium
CN109218093B (en) Method and system for acquiring alarm
CN116261021B (en) Video stream playing method and device, electronic equipment and storage medium
CN109831701A (en) The extended method of digital television devices browser and cross-page plane system event
US10673919B1 (en) Concurrent input monitor and ingest
CN104113509A (en) Media file push method and server
CN110730086B (en) Method and device for outputting log information
CN116962760A (en) Video compliance detection method and related equipment
CN110740292A (en) Data processing method and device for video networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190531

Assignee: Sichuan Changhong Xinwang Technology Co.,Ltd.

Assignor: SICHUAN CHANGHONG ELECTRIC Co.,Ltd.

Contract record no.: X2023980043949

Denomination of invention: Extension Method for Digital TV Device Browser and Cross page System Events

Granted publication date: 20211221

License type: Common License

Record date: 20231030

EE01 Entry into force of recordation of patent licensing contract