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