Re: Preventing WiMP from being launched
- From: Dave Brown <key88sf@xxxxxxxxx>
- Date: Fri, 23 Nov 2007 10:45:33 -0800 (PST)
On Nov 23, 9:52 am, Dave Brown <key8...@xxxxxxxxx> wrote:
On Nov 23, 6:43 am, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
"Dave Brown" <key8...@xxxxxxxxx> wrote in message
news:652cebf2-c75e-4502-9629-274ab7c67a27@xxxxxxxxxxxxxxxxxxxxxxxxxxx
My app hosts a web browser control, and if the user clicks on a link
which launches a video (say a streaming ASX or MMS link), I get
Windows Media Player launched as an external app. I'd like to be able
to handle this myself -- so I want my program to both prevent the
launching of media player, and also grab the URL that was fed to media
player and do something with it.
It's not enough to just look at the clicked url and check for a WMV or
ASX extension. A lot of pages simply return a MIME type of video/x-ms-
asf, which then launches the media player. I need to handle these
events too.
The only way I can think of to grab the MIME type early enough is with
this:
http://groups.google.com/group/microsoft.public.inetsdk.programming.m...
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Thanks Igor - I will check it out! Have you seen this article:http://groups.google.com/group/microsoft.public.inetsdk.programming.w...
Perhaps that is also a way to do it..though I'm not totally clear on
what he's doing :)- Hide quoted text -
- Show quoted text -
Just to followup -- I have implemented an Asyc Plug Protocol handler
for "http" which is just a passthru right now. Question is - is there
any way to obtain the MIME-Type from within the Start() method? Looks
like I'd need to get IInternetProtocolInfo interface, but I can't see
how to get that.
Do I have to create a MIME-filter instead??
Thanks.
.
- Follow-Ups:
- Re: Preventing WiMP from being launched
- From: Igor Tandetnik
- Re: Preventing WiMP from being launched
- References:
- Preventing WiMP from being launched
- From: Dave Brown
- Re: Preventing WiMP from being launched
- From: Igor Tandetnik
- Re: Preventing WiMP from being launched
- From: Dave Brown
- Preventing WiMP from being launched
- Prev by Date: Re: Preventing WiMP from being launched
- Next by Date: Re: Preventing WiMP from being launched
- Previous by thread: Re: Preventing WiMP from being launched
- Next by thread: Re: Preventing WiMP from being launched
- Index(es):
Relevant Pages
|