View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Jan 16, 2006 6:53 am 
Offline
Joined: Sat Nov 12, 2005 10:15 am
Posts: 7
Location: Holland
If you are start "watching tv" is it posible to send an extra command to start a external script or program. If you tuned to a new channel than it have to also send the command again.

Thanks for any help or suggestions.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 16, 2006 1:23 pm 
Offline
Joined: Mon Jan 05, 2004 1:30 pm
Posts: 139
Location: New Hope, MN
Yes. It's possible.

Ah, I detect an interest in 'how to accomplish' the possible as well. That's a bit more work.

The question becomes what's the best point to insert code to accomplish your desired task. First of all remember that selecting to 'watch tv' does not always force a channel change. As a result, kicking off a script to say log to syslog that the viewer started watching TV at this time would be as simple as editing the file that tells MythFrontEnd what to do when you select 'Watch Live TV' off the top menu. There are a few tips and tricks about to edit these files, So I will simply point you at the various forum and Wiki and suggest looking for some of those.

Kicking off an event when you 'change the channel' is a bit more difficult. Basicly you will need to find the code that handles channel changing and do modifications there. As I understand it, channel changing involves a script that basically disconnects the front end from the video stream, tells the back end to change the channel on the tunner being used, (which amoung other things discards the stream file on the cache partition, and creates a new stream file) then attaches the front end to the new video stream. Not all of this is handled by the script, some of it is actually taken care of by the back end.

Have a good one.

-Rusty

_________________
Master:
- AMD 1800XP on a MSI KT4V motherboard, via KT400 bios
- 120 G Segate Baracuda /, /cache, /myth, swap
- 200 G Segate Baracuda /myth/tv
- 3 Haupauge! WinTV PVR250s
- 19" Daewoo Monitor (1280x1024 ni)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 16, 2006 3:52 pm 
Offline
Joined: Sun Jun 12, 2005 2:39 pm
Posts: 464
Location: UK
For channel changing you might want to look at how people with ir blasters do it. I'm fairly sure that launches a script.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 16, 2006 5:59 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
What are you trying to accomplish? We can give you a better answer? The channel change script simply runs instead of the changing of the tuner's channel, so I dont think would work.
My first guess would be to create an irc event, then just press that key on the remote, depending on what you want to do.

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu