[mythtv] launching movies from mythweb - html question
Tim Harvey
tharvey at alumni.calpoly.edu
Sat Oct 18 10:35:21 EDT 2003
Actually, I've tried all kinds of variants using forward slashes,
backslashes, double backslashes, etc. I really think its some sort of
security thing in the browser. If there were not such a security
feature what would stop someone from creating a link to a destructive
program on a users local drive? Perhaps there is some way to disable
the security per site or something?
Try it in a local test page on your system and I think you'll see the
same results. I could swear I used to put together pages with local
music files in this fashion.
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
> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org
[mailto:mythtv-dev-bounces at mythtv.org]
> On Behalf Of Joseph A. Caputo
> Sent: Saturday, October 18, 2003 5:05 AM
> To: Development of mythtv
> Subject: Re: [mythtv] launching movies from mythweb - html question
>
> Tim Harvey wrote:
>
> > I've made some changes my local mythweb to have it embed links to
launch
> > movies from the 'MythVideo' page but I can't get it to work cleanly.
> > Note that I'm talking about launching movies that are completely
> > compatible with the local system's player not necessarily the MythTV
> > modules 'nuv' files.
> >
> > I cannot get the following links to work correctly:
> >
> > <A HREF="file://nas1/Video/Movies/Movie1.avi">Movie1</A>
> >
> > The idea here is that the movie is available locally from
> > '//nas1/Video/Movies/Movie1.avi' (I can run this from the windows
> > cmdline and my movie is launched and plays fine... yes I'm
attempting
> > this from a windows client).
> >
> > Is this some security issue regarding not being able to launch local
> > files from a browser?
> >
> > Alternatively If I do the following:
> >
> > <a href="myprog: \\nas1/Videos/Movies/Movie1.avi">Movie1</A>
> >
> > and create the proper registry keys to treat 'myprog' as a protocol
that
> > launches my player passing the parameter it works fine. However, I
> > think it's a lousy solution to have to hack the registry to create a
> > custom protocol for this.
> >
> > Am I missing something simple here? If anyone can provide me with a
> > more elegant solution to launching the file locally without creating
an
> > http transfer I will gladly post a patch for mythweb that does so.
> >
> > Thanks,
> >
> > Tim
>
> I think you're missing a "/" from your link. Try:
>
> file:///nas1/Videos/Movies/Moview1.avi
> ^
> |
> note the extra '/'
>
> -JAC
More information about the mythtv-dev
mailing list