aspnet / StaticFiles

[Archived] Middleware for handling requests for file system resources including files and directories. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
114 stars 72 forks source link

HTTP Header Range not working on macOS Sierra #207

Closed sunary closed 7 years ago

sunary commented 7 years ago

I'm using FileStreamResult to stream video in dotnet core 2.0.0-preview2-006497 With window 10 and ubuntu, I can seek video but It doesn't work on macOS Sierra.

Tratcher commented 7 years ago

@jbagga

jbagga commented 7 years ago

@sunary Are you able to provide a sample app that is running in to this issue? Which browser are you using?

sunary commented 7 years ago

This is my sample app:

var filePath = "sample.mp4";
FileStream file = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read, 8 * 1024 * 1024);
return new FileStreamResult(file, "video/mp4");

I check it on chrome Version 59.0.3071.115 only

jbagga commented 7 years ago

@sunary I used the following sample app and was unable to repro on macOS Sierra 10.12.4. Can you provide more details? Feel free to modify my sample.

jbagga commented 7 years ago

@sunary Closing for now as it cannot be reproduced. Feel free to reopen with more details if you are still seeing the issue!

sunary commented 7 years ago

Its worked after completely remove dotnet version 1.0.4. Thanks for your support

jbagga commented 7 years ago

You can add a global.json file specifying the version you want to use to your solution directory { "sdk": { "version": "2.0.0-preview2-006497" } }

You shouldn't have to delete the older SDKs.