Windows Media Player

Where can I find a tutorial/information on using Windows Media Player in VB 2005?

My particular question is with the URL - How do I code a "navigate" to an internet address and how do I "navigate" to an mp3 file that I want to include with the compiled application?

I can easily do this in VB6 but am lost with 2005.

Thanks

[329 byte] By [Bennie] at [2007-12-16]
# 1

You can use the MediaPlayer control in VB 2005 pretty much the same way you did in VB6. Here's what I did:

1) Add the control to the Toolbox by right clicking the Toolbox, selecting "Choose Items...", picking the COM Components tab, and checking the box for the Windows Media Player control.

2) Drag/drop the Windows Media Control onto your form.

3) Play a music file by setting the Url property on the player, e.g.,

Player.URL = "http://www.microsoft.com/rockinmusic.mp3"

That's all I had to do.

-Sean

SeanDr_MS at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

I am trying to control Windows MediaPlayer using .Net remoting. I created a Windows Service and was able to control MediaPlayer within the service. Next I created a remotable object and exposed that object through the Windows service and moved my MediaPlayer control into the remotable object.

Though I am able to see the properties and method returns I expect to see in the client when the remotable object is accessed, I do not appear to be able to control MediaPlayer. The MediaPlayer objects are all visible and have seemingly appropriate values but when I execute the play() method, I do not get sound but if I use the same code directly in the service, I do get sound.

Any help at all would be greatly appreciated.

Dale

Dale at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
There is a very powerful and flexible interface to the multi-media API, supporting the WMP called SendMCIString that really works well with basic. It may work very well with what you are doing. I found this inferface to expose dar more than the control itself and allowed you to do far more.
ReneeC at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4
Im not completely sure what you mean with the media player thing, but I can help you with browsing in visual basic...

WebBrowswer.Navigate(TextBox.Text)

Whatever the textbox is, is where the broswer will go. You can also use a string instead:

strSite = "www.msn.com"
WebBrowswer.Navigate(strSite)

I hope that helps you

iceshadow625 at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5
U can try with
process.start("http://www.msdn.com")

or process.start(http://www.xxxx.com/music1.mp3)

KENTY at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 6

i did the same steps above but the media player control dosen't appear in the toolbox

what should i do ..

Batool at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...