首先介绍了IPTV系统中EPG模块的系统结构和设计方案,然后结合一个终端用户获取热门影片信息的例子说明了EPG的具体实现过程.接着针对实际开发中用户与机顶盒交互可能产生的不可预知的错误,并考虑后期EPG功能的扩展和代码维护,提出了一种基于事务机制的Handler对象的设计和实现方案.实验结果表明,本方案正确可行,有利于系统扩展和维护.%this article, the system architecture and design of the EPC module in IPTV system are firstly introduced, and the realization process in EPC development is illustrated by combining with an example of an end-user demands hot playlists information. Then, aiming at unpredictable errors in the interaction with a set-top box in the actual development, and taking into account EPC later extensions and code easy to maintain, a Handler object transaction-based mechanism is proposed and its design and implementation process are given. Experimental results show that the kind of program is correct, feasible and beneficial to system expansion and maintenance.
展开▼