Visual Basic Shockwave Flash Object
Have you ever wanted to post Youtube videos or allow your users to submit youtube videos in your application?
This tutorial will show you how you can put youtube videos in your application by using the Shockwave Flash Object.
- Open Visual Basic and create a new Windows Forms Application
- In your Toolbox scroll down to the Components section
- Right click anywhere in the Components section and click Choose Items
- In the Choose Items dialog click on the COM Components tab
- Scroll down until you see Shockwave Flash Object, select it
- Click OK, you should now see Shockwave Flash Object component in your Components section
- Drag the control out on to your Form, it should look like a White box
- Go to Youtube and search for a video, click on the title of the video to watch that video
- You will notice the url (eg. http://www.youtube.com/watch?v=jdbqtv-5H_U)
- Replace watch?v=[ID] with v/[ID] so the complete URL would look something like this (using the link above)
- Copy it (you can use the one above as a example)
- Go back to your Visual Basic and with your Shockwave Object selected go into your Properties and scroll down to where it says Movie.
- Paste the URL you copied into that field and hit Enter on your keyboard.
- You will now see the youtube video player and thumbnail to that video on your form.
Once you debug your application (F5 on your keyboard) you will see the video appear.
I have not yet tried other video websites so feel free to experiment with other video websites.
You could probably create your own Video based program where users can watch videos from their desktop or something.
Leave a Reply
You must be logged in to post a comment.



