[mythtv] launching movies from mythweb - html question

Tim Harvey tharvey at alumni.calpoly.edu
Sun Oct 19 12:01:36 EDT 2003


Doesn't look like it attached the '.reg' file (I think my mail program
stripped it out).

Here's the contents of the reg file you can use to register the 'myprog'
protocol to launch (in my case) the zplayer app:

<BEGIN myprog.reg>
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\myprog]
"URL Protocol"=""

[HKEY_CLASSES_ROOT\myprog\shell]

[HKEY_CLASSES_ROOT\myprog\shell\open]

[HKEY_CLASSES_ROOT\myprog\shell\open\command]
@="C:\\Program Files\\Zoom Player\\zplayer.exe %1"
<END myprog.reg>

by hand instructions:

create a 'myprog' key under HKEY_CLASSES_ROOT
create under 'myprog' the keys 'shell\open\command'
change the default string for the 'command' key to the path of your
player with a '%1' as the argument.

Tim

> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org
[mailto:mythtv-dev-bounces at mythtv.org]
> On Behalf Of Tim Harvey
> Sent: Sunday, October 19, 2003 10:35 AM
> To: 'Development of mythtv'
> Subject: RE: [mythtv] launching movies from mythweb - html question
> 
> Ok, I've attached a patch for mythweb as well as a registry file for
> windows.   This is definitely not ready for CVS as I'm fairly
disgusted
> with the whole idea of hacking the registry and creating a protocol
> handler... also I don't know how to make it work on non windows/ie
> systems (mozilla instructions anyone?).
> 
> Instructions:
> 
> - Apply patch to mythweb:
> 
>    This alters the display of songs for mythMusic and the display of
> movies for mythVideo, including links for them if properly configured.
> If the settings are not defined based on the last step this won't hurt
> anything, it simply won't provide the links.
> 
> - Edit/Apply registry patch for windows
> 
>    This defines the player app to launch for the 'myprog' protocol
used
> in the mythweb patch.  Be sure to modify this to point to the player
of
> your choice (notice that I use 'zoom player' not, windows mediaplayer
> although that should work if defined properly).  This is what gets IE
to
> launch your music/movie in the app of your choice.
> 
> - Add vars to mythconverge 'settings' table declaring the local
> mountpoint for your movies/music.
> 
>    While I use phpMyAdmin to make things easier, the following SQL
> statements will do this for you:
>     INSERT INTO `settings` ( `value` , `data` , `hostname` )
>     VALUES (
>     'MovieDir', '\\\\nas1\\\\Video\\\\Movies\\\\', NULL
>     );
>     INSERT INTO `settings` ( `value` , `data` , `hostname` )
>     VALUES (
>     'MusicDir', '\\\\nas1\\\\Audio\\\\Music\\\\', NULL
>     );
> 
>    You are defining the path that your movie files will be visible in
on
> the system using mythweb.  Note that I'm not referencing these
variables
> per host IP, therefore this should be the same path on any/all systems
> your using MythWeb from to launch your files.  In my example above I
> have a NAS with the hostname of 'nas1' with an 'Audio' share and a
> 'Music' share.
> 
> Again, I think this is a pretty ugly solution as it requires a
protocol
> handler and so far only works for windows/ie.  I'm posting it in the
> hopes that other people more knowledgeable than me can offer
suggestions
> to make it more usable.  However limited this is, it works really well
> for windows and I now have a windows system capable of using mythweb
and
> all its metadata glory to launch movies/music.
> 
> Constructive comments are welcome
> 
> Thanks,
> 
> Tim
> 
> > -----Original Message-----
> > From: mythtv-dev-bounces at mythtv.org
> [mailto:mythtv-dev-bounces at mythtv.org]
> > On Behalf Of Kent Williams
> > Sent: Saturday, October 18, 2003 9:44 AM
> > To: Development of mythtv
> > Subject: RE: [mythtv] launching movies from mythweb - html question
> >
> > I'm interested :)
> >
> > > The alternative method I'm using with the registry keys to add a
> > > protocol handler only seems to work for IE and not Mozilla.
> > >
> > > What I wanted was an easy way for my girlfriend to be able to
launch
> > > music and movies from mythweb on her windows box and that is
working
> > > well now.  I will post the patch and registry instructions if
anyone
> > is
> > > interested.
> > >
> > > Tim
> >




More information about the mythtv-dev mailing list