Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 6 Jun 2008 13:17:06 -0700 (PDT),    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


Retrieving flash url from browser control hosted IShockwaveFlash   
Hi - I'm handling an OnMouseOver HTMLDocumentEvent and looking for
when the mouse is over a Flash movie on the web page.

I can successfully detect when it is a flash control, and I can even
obtain the IShockwaveFlash control for the movie. The problem is --
can I obtain the URL to the flash movie itself.

For example, on this YouTube page:  http://www.youtube.com/watch?v=4c3egjro1JU

I'd like to pull the embeddable (or downloadable) URL from the flash
control, which should be this:

http://www.youtube.com/v/4c3egjro1JU&hl=en

I've tried querying the IShockwaveFlash::get_Base(), but that returns
nothing. I've also tried IHTMLObjectElement::get_BaseHref(), but that
just returns the original YouTube url, not the embeddable one.

Anyone know how to do this? Thanks!
date: Fri, 6 Jun 2008 13:17:06 -0700 (PDT)   author:   Dave Brown

Re: Retrieving flash url from browser control hosted IShockwaveFlash   
"Dave Brown"  wrote in message
news:86618162-e3d0-46e0-a9f3-2f7d1a8803ac@i36g2000prf.googlegroups.com
> Hi - I'm handling an OnMouseOver HTMLDocumentEvent and looking for
> when the mouse is over a Flash movie on the web page.
>
> I can successfully detect when it is a flash control, and I can even
> obtain the IShockwaveFlash control for the movie. The problem is --
> can I obtain the URL to the flash movie itself.

I'd try IShockwaveFlash::get_Movie
-- 
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
date: Fri, 6 Jun 2008 22:31:02 -0400   author:   Igor Tandetnik

Re: Retrieving flash url from browser control hosted IShockwaveFlash   
Hi Igor,

That doesn't seem to give me the correct URL.  For example, on a lot
of YouTube videos, that just returns:

"/swf/watch.swf"

which I think is the swf wrapper around the real content.  Any way I
can get the real content to play? Some of these websites seem able to
do it.

On Jun 6, 7:31 pm, "Igor Tandetnik"  wrote:
> "Dave Brown"  wrote in message
>
> news:86618162-e3d0-46e0-a9f3-2f7d1a8803ac@i36g2000prf.googlegroups.com
>
> > Hi - I'm handling an OnMouseOver HTMLDocumentEvent and looking for
> > when the mouse is over a Flash movie on the web page.
>
> > I can successfully detect when it is a flash control, and I can even
> > obtain the IShockwaveFlash control for the movie. The problem is --
> > can I obtain the URL to the flash movie itself.
>
> I'd try IShockwaveFlash::get_Movie
> --
> 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
date: Sat, 7 Jun 2008 23:39:41 -0700 (PDT)   author:   Dave Brown

Re: Retrieving flash url from browser control hosted IShockwaveFlash   
"Dave Brown"  wrote in message
news:46dd0976-cdf8-4f54-bd41-a91eec650a82@w1g2000prd.googlegroups.com
> That doesn't seem to give me the correct URL.  For example, on a lot
> of YouTube videos, that just returns:
>
> "/swf/watch.swf"
>
> which I think is the swf wrapper around the real content.

Yes, YouTube seems to play a trick using a wrapper video which, as far 
as I can tell, pulls the ID of the actual video from JavaScript 
variables on the page. That's how they merge in the last frame (one with 
Replay and Share buttons), which is part of the wrapper.

Of course, if you care specifically about YouTube, the actual video is 
available at http://www.youtube.com/v/<video_id>&hl=en where video_id 
can be extracted from, say, the page URL.
-- 
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
date: Sun, 8 Jun 2008 09:46:32 -0400   author:   Igor Tandetnik

Re: Retrieving flash url from browser control hosted IShockwaveFlash   
Yeah, the thing is I'm not specific about YouTube :(   I'd like to
find a generalized method to obtain the source video.  What about
creating a Async Pluggable Protocol handler for FLV, and saving the
content out to a file?

On Jun 8, 6:46 am, "Igor Tandetnik"  wrote:
> "Dave Brown"  wrote in message
>
> news:46dd0976-cdf8-4f54-bd41-a91eec650a82@w1g2000prd.googlegroups.com
>
> > That doesn't seem to give me the correct URL.  For example, on a lot
> > of YouTube videos, that just returns:
>
> > "/swf/watch.swf"
>
> > which I think is the swf wrapper around the real content.
>
> Yes, YouTube seems to play a trick using a wrapper video which, as far
> as I can tell, pulls the ID of the actual video from JavaScript
> variables on the page. That's how they merge in the last frame (one with
> Replay and Share buttons), which is part of the wrapper.
>
> Of course, if you care specifically about YouTube, the actual video is
> available athttp://www.youtube.com/v/<video_id>&hl=en where video_id
> can be extracted from, say, the page URL.
> --
> 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
date: Sun, 8 Jun 2008 11:49:16 -0700 (PDT)   author:   Dave Brown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us