Hello, there is a problem. Google chrome 54.0.2840.99 m does not rewind when playing audio files.

 <audio class="callPlayer" type="audio/mp3" src="/GetAudio?path=" + audiopath + \"" controls></audio> \n 

the controller that returns the audio record from the byte array looks like this.

  [HttpGet] public ActionResult GetAudio(string path) { byte[] audiobytes = _callRepo.GetAudioByPath(path); if (audiobytes != null) { MemoryStream stream = new MemoryStream(audiobytes, 0, audiobytes.Length); return new FileStreamResult(stream, "audio/mp3"); } else { return null; } } 

In other browsers, everything works fine. What can it be connected with? Audio is played but it cannot be rewound. I tried to play audio from the local path, it works fine. But I would not like to download a file from the database to a local folder.

    1 answer 1

    Faced the same problem. I corrected the fact that I added the following to the controller header: header ('Content-Length:'. File size); header ('accept ranges: bytes');