VEpg* VEpg::instance = NULL;
-VEpg::VEpg(VVideoLive* v, UINT currentChannel)
+VEpg::VEpg(VVideoLive* v, UINT currentChannel, ULONG streamType)
{
instance = this;
viewman = ViewMan::getInstance();
videoLive = v;
eventList = NULL;
- chanList = VDR::getInstance()->getChannelsList(VDR::VIDEO); //TODO want to be able to display video and radio together
+ chanList = VDR::getInstance()->getChannelsList(streamType); //TODO want to be able to display video and radio together
e = 0;
for(UINT listIndex = 0; listIndex < gridRows; listIndex++)
class VEpg : public View, public TimerReceiver
{
public:
- VEpg(VVideoLive* v, UINT currentChannel = 0);
+ VEpg(VVideoLive* v, UINT currentChannel, ULONG streamType);
~VEpg();
static VEpg* getInstance();
{
//player->test1();
-
- /*
- // for testing EPG in NTSC with a NTSC test video
- Video::getInstance()->setMode(Video::QUARTER);
- Video::getInstance()->setPosition(170, 5);
- VEpg* vepg = new VEpg(NULL, 0);
- vepg->draw();
- ViewMan::getInstance()->add(vepg);
- ViewMan::getInstance()->updateView(vepg);
- */
-
return 2;
}
case Remote::GREEN:
video->setMode(Video::QUARTER);
video->setPosition(170, 5); //TODO need to deal with 4:3 switching
- VEpg* vepg = new VEpg(this, currentChannel);
+ VEpg* vepg = new VEpg(this, currentChannel, streamType);
vepg->draw();
viewman->add(vepg);