Re: Preventing WiMP from being launched

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.
.



Relevant Pages

  • Re: Preventing WiMP from being launched
    ... which launches a video (say a streaming ASX or MMS link), ... Windows Media Player launched as an external app. ... A lot of pages simply return a MIME type of video/x-ms- ... which then launches the media player. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Preventing WiMP from being launched
    ... which launches a video (say a streaming ASX or MMS link), ... Windows Media Player launched as an external app. ... A lot of pages simply return a MIME type of video/x-ms- ... which then launches the media player. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Preventing WiMP from being launched
    ... which launches a video (say a streaming ASX or MMS link), ... Windows Media Player launched as an external app. ... which then launches the media player. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Stopping Win Media Playing from Launching
    ... This would be OK except that Media Player can't seem to ... Why can't Windows just write software that does what I want it to do and not ... I have a player that I purchased that launches and plays the tunes in proper ... How do I disable the auto launch feature of Media Play? ...
    (microsoft.public.windowsmedia.player)