[mythtv] Using TV from the program guide
Steven Cruysberghs
steven.cruysberghs at tiscali.be
Fri Jun 18 11:48:22 EDT 2004
I think you should try pressing the M button while watching live tv
before you continue.
Op vr 18-06-2004, om 17:34 schreef Jonathan Abrams:
> Greetings,
>
> I'm trying to add functionality to the Program Guide so that you can
> watch Live TV directly from the program guide.
> I've cut and pasted code from ProgramGuide.cpp into GuideGrid.cpp.
> However, all that happens when I execute the code from the Program
> Guide is a black window and a hung program. My TV function in
> GuideGrid is as follows:
>
> void GuideGrid::Playback(ProgramInfo *rec)
> {
> if (!rec)
> return;
>
> TV *tv = new TV();
> tv->Init();
>
> setEnabled(false);
> //state = kKilling; // stop preview playback and don't restart it
>
> if (tv->LiveTV(true))
> {
> cerr << "Entering Live TV.\n";
> qApp->unlock();
> while (tv->GetState() != kState_None)
> {
> //qApp->unlock();
> qApp->processEvents();
> usleep(10000);
> }
> qApp->lock();
>
> }
>
> cerr << "Exited Live TV.\n";
> //state = kStarting; // restart playback preview
> setEnabled(true);
>
> update(fullRect);
>
> delete tv;
> update(fullRect);
>
> }
>
> Any tips would be appreciated.
>
> - Jonathan Abrams
>
> ______________________________________________________________________
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
More information about the mythtv-dev
mailing list