Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        public void EndStreaming()
        {
            if (audioSender != null)
            {
                audioSender.StopFileSend();
            }

            audioSender = null;
        }