This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Do you have a more specific question? In other words, are there certain aspects that you want help with? Your question is now so general that it's hard to answer; I don't think anyone has a complete example for a working IPTV system ready to use for you.
It sounds like you're asking "I want to build a big and complicated system, I don't really have an idea of what it is, can anybody give me some pseudocode to start with?".
You should stop thinking about code, and start thinking about the requirements of the system. What exactly is an IPTV system? What does it need to do? Is it going to run on a regular PC or on special hardware? Does it need to interface with other systems? What parts will the system consist of? How are those parts going to work together? Is there a user interface? If yes, then how should the user interface work?
Nobody builds big software systems by immediately starting to write code. You first need to have a clear and detailed idea of what your system is, what its functionality is going to be and what other requirements it will have. You'll need to spend time to get this clear before you start thinking about writing code. Nobody can give you example code or even pseudo-code without knowing what the requirements of the system are.