I want to play a local video file from nancy embedded http server. It is OK to read a txt file but once it tries to open a video file it gives error :
"The specified network name is no longer available"
on the line
return Response.AsStream(() => File.OpenRead(@"E:\test_videos\test.mp4"), "video/mp4");
I can play the video from my browser, so what is wrong then?
Update: I could play video on FireFox and IE, the error only occurs in chrome.