/// <summary> /// Begins the streaming. /// </summary> /// <param name="audioTrack">The audio track.</param> public void BeginStreaming(TrackStreamRequest audioTrack) { streamedAudio = true; this.udpEndPoint = audioTrack.Connection; string trackLocation = audioPath + audioTrack.Track.TrackName + audioTrack.Track.TrackExtension; audioSender = new AwesomeAudio.UDPSender(udpEndPoint.Address.ToString(), trackLocation); audioSender.StartFileSend(); }
public void EndStreaming() { if (audioSender != null) { audioSender.StopFileSend(); } audioSender = null; }