title: asp.net mvc return actionresult for video
body: <p>What action result should I use when I am trying to return an mp4 video using asp.net mvc csharp?</p>
  
  <p>Currently, I hide my videos behind a method to protect it from unauthorized access. I call these videos from JWPlayer in a web browser. However, the header information seems to be missing or the video is prepared for download and not for playing. Something strange, anyways.</p>
  
  <p>How should I return the file? Should I specify additional headers?</p>
  
  <p>This is what I currently do:</p>
  
  <pre><code>return File(path, file.MimeType, fileName);
  </code></pre>