Youtube Video Player
Posted: Mon Jun 14, 2010 6:43 pm
hello
Tutorial Name: Youtube Video Player:
Tutorial Difficulty: 1(Easy)
Tutorial Requirements: Vb 2008, A Brain
In this tut im going to show you how to make a youtube video player in vb 2008. This tutorial is very simple as long as you follow the tutorial as the code is onlike like 3 lines.
Now go to your toolbox and on the rightclick menu click choose items.
Now Insert The Following Controls:
- Panel (Dock = Bottom)
- Button ( Inside the panel)
- Textbox (Inside the panel)
- WindowsMediaPlayer (Dock = Fill)
Souurce and demo download: Click Here (Try Attachment if this doesnt work)
Enjoy
Tutorial Name: Youtube Video Player:
Tutorial Difficulty: 1(Easy)
Tutorial Requirements: Vb 2008, A Brain
In this tut im going to show you how to make a youtube video player in vb 2008. This tutorial is very simple as long as you follow the tutorial as the code is onlike like 3 lines.
Now go to your toolbox and on the rightclick menu click choose items.
Now Insert The Following Controls:
- Panel (Dock = Bottom)
- Button ( Inside the panel)
- Textbox (Inside the panel)
- WindowsMediaPlayer (Dock = Fill)
Code: Select all
Textbox
Name: Txt_URL
Code: Select all
Now double click on the button (Cmd_Play) and in the code type:
Button
Name: Cmd_Play
Text: Play
Code: Select all
Now Save and debug the project and try it.If Not TXT_URL.Text = "" Then
Dim VidURL As String = TXT_URL.Text.Replace("/watch?v=", "/v/")
AxWindowsMediaPlayer1.URL = VidURL
Else
MsgBox("There is no url in the box, Please type a url and try again", MsgBoxStyle.Information, "No Video To Play")
End If
Souurce and demo download: Click Here (Try Attachment if this doesnt work)
Enjoy