PC Review


Reply
Thread Tools Rate Thread

Client/Server sockets and WMP Problem! Need help!

 
 
Dumdidum
Guest
Posts: n/a
 
      26th Feb 2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sockets: c# server with c++ client =?ISO-8859-1?Q?Herbert_VON_GR=DCNENWALD?= Microsoft C# .NET 4 28th Apr 2005 12:57 AM
TCP Client Server Demonstration using Sockets Andrew Baker Microsoft C# .NET 0 21st Jan 2005 04:42 PM
Re: Sockets Server / Sockets Client - unable to read data from the transport connection m_doolio@hotmail.com Microsoft Dot NET 0 27th Jul 2004 10:15 PM
Sockets Server / Sockets Client - unable to read data from the transport connection Mike Dole Microsoft Dot NET 4 6th Jun 2004 07:18 PM
Sockets Server / Sockets Client - unable to read data from the transport connection Mike Dole Microsoft VB .NET 4 6th Jun 2004 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:26 PM.