ASP NET MVC and HTML5 audio - file not playing
<p>I am trying to create a table containing audio files, which should start playing when the user clicks the play button. This is what I've tried so far:</p>

<p>Controller:</p>

<pre><code>    [HttpGet]
    public ActionResult PlayFile(string FilePath)
    {
        WebClient WC = new WebClient();
        WC.Credentials = new System.Net.NetworkCredential("username", "password");
        byte[] buff = WC.DownloadData(FilePath);
        var SplitFileName = FilePath.Split('\\');
        string FileName = "Recording_" + SplitFileName[SplitFileName.Count() - 1];

        Response.AddHeader("Content-Disposition", "inline; filename=" + FileName);
        MemoryStream stream = new MemoryStream(buff);
        return new FileStreamResult(stream, "audio/wav");

        //I have also tried:
        //return File(buff, "audio/wav");
    }
</code></pre>

<p>The audio tags look like this:</p>

<pre><code>&lt;td&gt;
  &lt;audio controls preload='none'&gt;
     &lt;source src='/Components/PlayFile?FilePath=[filename.wav]' type='audio/wav'&gt;
  &lt;/audio&gt;
&lt;/td&gt;
</code></pre>

<p>When running the site locally in Chrome, all the files have the length 0:00, and you can click the play button once but the file is not played. After the play button has been clicked once it is not possible to click it again. It is however possible to download the file 
and play it. When running the site locally in Firefox, the files also have the length 0:00, and when you click the play button the control disappears. It is also possible to download the file in Firefox. Does anyone know what could be causing this?</p>