Skip to content Skip to sidebar Skip to footer

.net Core| Mvc Pass Audio File To Html5 Player. Enable Seeking

Hi i have problem with html5 player and seeking. This is my action method: public IActionResult GetAudio(string url) { var file = System.IO.File.ReadAllBytes(url);

Solution 1:

Ok, this:

Response.Headers.Add("Accept-Ranges", "bytes");
Response.Headers.Remove("Cache-Control");

Resolved my problem.

Post a Comment for ".net Core| Mvc Pass Audio File To Html5 Player. Enable Seeking"