Shockwave1

D Willett
SilverLounger
Posts: 1728
Joined: 25 Jan 2010, 08:34
Location: Stoke on Trent - Staffordshire - England

Shockwave1

Post by D Willett »

Just wondering if anyone is familiar with using the shockwave flash component.
I have some help video's on Youtube which I want to show in a VB6 form as opposed to the user redirected through a web browser.
I read an article which allows a local video to be shown using the Shockwave component which is easy enough but struggling to pass the url to the control and play the file....

Code: Select all

Private Sub Command1_Click()
S1.Movie = "http://www.youtube.com/watch?v=8jpu6-prm-E"
S1.Play

End Sub
Cheers ...

Dave.

User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shockwave1

Post by HansV »

What's the objection to displaying the video in the user's web browser?

Perhaps you could use the Microsoft Web Browser control?
Best wishes,
Hans

D Willett
SilverLounger
Posts: 1728
Joined: 25 Jan 2010, 08:34
Location: Stoke on Trent - Staffordshire - England

Re: Shockwave1

Post by D Willett »

Morning Hans.

Yeah, I tried that and got the control working, but you get the whole web page as opposed to just the video.
Alternatavely I could download the video and play locally but then the video's have top be stored and distributed.
I was hoping for a control to just show the video and not the full page :scratch:
Cheers ...

Dave.

User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shockwave1

Post by HansV »

If you supply the URL

http://www.youtube.com/v/8jpu6-prm-E" onclick="window.open(this.href);return false;

you get the YouTube video "fullscreen" (i.e. filling the component). And if you want it to play automatically:

http://www.youtube.com/v/8jpu6-prm-E?autoplay=1" onclick="window.open(this.href);return false;
Best wishes,
Hans

D Willett
SilverLounger
Posts: 1728
Joined: 25 Jan 2010, 08:34
Location: Stoke on Trent - Staffordshire - England

Re: Shockwave1

Post by D Willett »

Which is exactly what I was after :grin:

Cheers Hans
Cheers ...

Dave.