Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

link to a specific recording

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


zagor.fp at gmail

Feb 19, 2008, 2:02 AM

Post #1 of 5 (490 views)
Permalink
link to a specific recording

My kids always want to watch the same recording.
How can I add a link to that recording in the main menu? Say, just
below the "watch TV" button?
Would it be easier if it was a video instead of a recording?

Thanks
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


ron at ronfrazier

Feb 19, 2008, 5:09 AM

Post #2 of 5 (447 views)
Permalink
Re: link to a specific recording [In reply to]

I've never tried doing such, but I think I can see how.

First, the menu development guide explains how to modify menus:
http://www.mythtv.org/wiki/index.php/Menu_theme_development_guide

At the bottom of that page, look in the Special Actions section for
the EXEC action. You should be able to use that to launch it in
mplayer or xine.

If you'd rather do it in the internal player, you could have it launch
a script that echos some commands to the mythfrontend Network Control
Port (port 6546 by default). To figure out what command you need to
run, you can test it out from the command line:

telnet localhost 6546
query recordings

that will give you a list of shows. Find the one you want and copy the
chanid and timestamp. Then test it out as follows:

play program 1029 2008-02-12T22:58:00

If that works as you expect, then your command to run would be:

echo play program 1029 2008-02-12T22:58:00 | telnet localhost 6546

--
Ron
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


zagor.fp at gmail

Feb 19, 2008, 7:59 AM

Post #3 of 5 (443 views)
Permalink
Re: link to a specific recording [In reply to]

> Date: Tue, 19 Feb 2008 08:09:37 -0500
> From: "Ronald Frazier" <ron [at] ronfrazier>
> Subject: Re: [mythtv-users] link to a specific recording
> To: "Discussion about mythtv" <mythtv-users [at] mythtv>
>
> If you'd rather do it in the internal player,

Yes, this is what I'm looking for: I couldn't set properly the remote
so far and couldn't let it control xine or mplayer, yet.

> you could have it launch
> a script that echos some commands to the mythfrontend Network Control
> Port (port 6546 by default). To figure out what command you need to
> run, you can test it out from the command line:
>
> telnet localhost 6546
> query recordings
>
> that will give you a list of shows. Find the one you want and copy the
> chanid and timestamp. Then test it out as follows:
>
> play program 1029 2008-02-12T22:58:00
>
> If that works as you expect, then your command to run would be:
>
> echo play program 1029 2008-02-12T22:58:00 | telnet localhost 6546

Great, thanks!
I'll try it and post the result.

Thanks
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


zagor.fp at gmail

Feb 20, 2008, 1:24 AM

Post #4 of 5 (432 views)
Permalink
Re: link to a specific recording [In reply to]

> Date: Tue, 19 Feb 2008 16:59:05 +0100
> From: "F P" <zagor.fp [at] gmail>
> Subject: Re: [mythtv-users] link to a specific recording
> To: mythtv-users [at] mythtv
> Message-ID:
> <5411f2460802190759x5feaacebp6f80b99266171fd1 [at] mail>
> Content-Type: text/plain; charset=ISO-8859-1
>
> > Date: Tue, 19 Feb 2008 08:09:37 -0500
> > From: "Ronald Frazier" <ron [at] ronfrazier>
> > Subject: Re: [mythtv-users] link to a specific recording
> > To: "Discussion about mythtv" <mythtv-users [at] mythtv>
> >
> > If you'd rather do it in the internal player,
>
> Yes, this is what I'm looking for: I couldn't set properly the remote
> so far and couldn't let it control xine or mplayer, yet.
>
> > you could have it launch
> > a script that echos some commands to the mythfrontend Network Control
> > Port (port 6546 by default). To figure out what command you need to
> > run, you can test it out from the command line:
> >
> > telnet localhost 6546
> > query recordings
> >
> > that will give you a list of shows. Find the one you want and copy the
> > chanid and timestamp. Then test it out as follows:
> >
> > play program 1029 2008-02-12T22:58:00
> >
> > If that works as you expect, then your command to run would be:
> >
> > echo play program 1029 2008-02-12T22:58:00 | telnet localhost 6546
>

It didn't completely work.
I had firstly to enable network connections to port 6546, in the
setup/general page and restart the frontend.
Then I could telnet to localhost, query recordings and play my recording.
Unfortunately, the audio was there, but video was green, with a ghost
image of my recording underneath.
Hoping it was going to be better if I launched it through a
mythfrontend link, I've tried to edit the mainmenu.xml, adding a
button like this:

<button>
<type>TV_WATCH_RECORDING</type>
<text>Madagascar</text>
<action>echo play program 1029 2008-02-12T22:58:00 | telnet
localhost 6546</action>
</button>

but when pressing the button, nothing happens.
Now I realize that maybe the type is TV_WATCH_RECORDINGS (plural),
don't know if that might be the trick. I'll try this evening, unless
someone has any other suggestions.

Also, any hint on the green screen? I can obviously watch recordings
all right, through mythfrontend "Watch recordings" interface

Thanks
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


ron at ronfrazier

Feb 20, 2008, 3:59 AM

Post #5 of 5 (447 views)
Permalink
Re: link to a specific recording [In reply to]

It works fine for me:

<button>
<type>TV_WATCH_RECORDINGS</type>
<text>Test</text>
<action>EXEC /usr/local/scripts/watch.sh</action>
</button>


In the scrtipt, you have a single line:

echo play program 1029 2008-02-12T22:58:00 | telnet localhost 6546


And make sure the script is executable by mythtv:

chmod 755 /usr/local/scripts/watch.sh


--
Ron
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.