I am trying to implement video and audio streaming on my website (to enable seeking in Chrome) and I recently found out that .NET Core 2.0 apparently provides a relatively s
My answer is based on Yuli Bonner, but with the adaptations so that it answers the question directly, and with Core 2.2
public IActionResult GetFileDirect(string f)
{
var path = Path.Combine(Defaults.StorageLocation, f);
var res = File(System.IO.File.OpenRead(path), "video/mp4");
res.EnableRangeProcessing = true;
return res;
}
This allowed for seeking in the browser.