Exemplo n.º 1
0
        public HttpResponseMessage GetAudioContent(string songKey, Guid songID)
        {
            SongBLL songBLL = new SongBLL();

            songBLL.CountPlayback(new SongViewModel()
            {
                Id = songID
            });

            var audio = new AudioStream(songKey);

            var httpResponse = Request.CreateResponse();

            httpResponse.Content = new PushStreamContent(audio.WriteToStream, new MediaTypeHeaderValue("audio/wav"));
            return(httpResponse);
        }
Exemplo n.º 2
0
 public SongController()
 {
     this.songBLL = new SongBLL();
 }