I have created service to return mp3 file like below.
public ActionResult GetMP3()
{
byte[] bytArray = System.IO.File.ReadAllBytes(Server.MapPath("~/App_Data/05_-_W.T.P..mp3"));
return File(bytArray, System.Net.Mime.MediaTypeNames.Application.Octet, "download.mp3");
}
and playing that using audio tag like below.
<audio controls >
<source src="https://localhost:44355/Home/GetMP3" type="audio/mp3" />
</audio>
and it is working fine audio file is playing as expected but i am not able to seek the audio, whenever i try to seek the audio it starts from beginning, can someone please explain this behavior ? and also what should i do to seek using this approach ? thanks in advanced.