
nigel at ind
Nov 19, 2008, 11:26 PM
Post #2 of 3
(798 views)
Permalink
|
> Is there a function in MythTV which can retrieve the current chanid a > sourceinput is tuned on? Not that I know of ('though I'm not an expert on the TV stuff). 1) If you are just doing debugging, the default output from mythbackend contains something like: 2008-11-20 18:14:08.276 MainServer::ANN Playback 2008-11-20 18:14:08.277 adding: macaque.ind.tansu.com.au as a client (events: 0) 2008-11-20 18:14:08.279 TVRec(4): Changing from None to WatchingLiveTV 2008-11-20 18:14:08.284 TVRec(4): HW Tuner: 4->4 Sadly, the output doesn't list the channel until you stop the LiveTV session: 2008-11-20 18:19:23.895 TVRec(4): Changing from WatchingLiveTV to None 2008-11-20 18:19:24.163 Finished recording Seven News: channel 1060 but if you need to know the channel at the time, have a look at the 'tvchain' table in the database 2) You could add some debug in the file libs/libmythtv/tv_rec.cpp, method TVRec::TuningCheckForHWChange(), to also print out channum? -- Nigel Pearson, nigel [at] ind|"Things you own | Telstra Net. Eng., Sydney, Australia | end up owning you"| Office: 9202 3900 Fax: 9212 6348 | Tyler, | Mobile: 0408 664435 Home: 9792 6998 | Fight Club | _______________________________________________ mythtv-dev mailing list mythtv-dev [at] mythtv http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
|