Youtube Video Player
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
5 posts
Page 1 of 1
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
You do not have the required permissions to view the files attached to this post.
this is a pretty cool idea man but it didnt work for me, after pasting the link it just said connecting and then ready but wouldnt play lol
same here jeezy
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

un kn0 wn wrote:hellosorry man it doesnt work, the replace code isnt working - try this - viewtopic.php?f=53&t=1874
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 allTextbox Name: Txt_URL
Code: Select allNow double click on the button (Cmd_Play) and in the code type:Button Name: Cmd_Play Text: Play
Code: Select allNow 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
and the videos dont play because the Flv, so you have to use a flash player... lol other than that i look and the url does open the video cooll;, so if you fix those problems you will have a youtube video player

- Livengood
srry ill see if there is another way cus i tried it first and it worked maybe i made a mistake.
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023