예제 #1
0
 public NetStreamMp3Player(String host, int port)
 {
     mp3Client = new Mp3Client(host, port);
     mp3Client.PlayStateChanged  += Mp3Client_PlayStateChanged;
     mp3Client.OnReceivedMessage += Mp3Client_OnReceivedMessage;
     mp3Client.Disposing         += Mp3Client_Disposing;
 }
예제 #2
0
 public NetStreamMp3Player(TcpClient client)
 {
     mp3Client = new Mp3Client(client);
     mp3Client.PlayStateChanged  += Mp3Client_PlayStateChanged;
     mp3Client.OnReceivedMessage += Mp3Client_OnReceivedMessage;
     mp3Client.Disposing         += Mp3Client_Disposing;
 }