Connecting Tech Pros Worldwide Forums | Help | Site Map

Client/Server sockets and WMP Problem! Need help!

Dumdidum
Guest
 
Posts: n/a
#1: Nov 20 '05
Hello

I am a newbie to VB.NET, normally I code in VB6!
Now I have a big problem:

I want to have a server which has a windows media player-Control on
it. With the client I should remotly remote windows media player!

Therefore I took the sample "Sockets" from 101 samples for VB.NET from
microsoft
(http://www.microsoft.com/downloads/d...displaylang=en)

This is working perfectly, now I have added a WMP9-Controll!

The server is now listening und if the data which arrives is "1" then
he opens a playlist in the media player like this:

If data = "1" Then

AxWindowsMediaPlayer1.URL = ("C:\Metallica.m3u")

End If

That is working! Now I want to control the following:

Playing next song in Playlist! This is:
AxWindowsMediaPlayer1.Ctlcontrols.next()

OK: That's why I added this:

If data = "2" Then

AxWindowsMediaPlayer1.Ctlcontrols.next()

End If

Logically or not? The Problem is: It is not working! If I enter "1"
into the client, the media player start with the playlist! But if I
then enter "2" the server receives "2" but then he does not play the
next song!

When I replace AxWindowsMediaPlayer1.Ctlcontrols.next() with msgbox
"hello" then it is working, so the problem is with
AxWindowsMediaPlayer1.Ctlcontrols.next()! Why is this not working?

After he failes, he will not receive any more message, so the
connection is blocked...



What's the problem?!

For any help I really want to thank you in advance!!


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Closed Thread