One time use link to play mp4 in browser not download

I found many code examples to generate a one-time use hyperlink which can be emailed but the code always downloads the .mp4 video instead of playing the video in the browser. An example is at the link below. Everything I have tried always downloads the video instead of playing the video in the browser. I tried setting the “header(“Content-Type: video/mp4”);” and I tried changing the header disposition type. "header(“Content-Disposition: attachment;” If I change “attachment” to “inline” nothing happens because the script does not pass the filename.
http://cloud.joshpangell.com/singleuse/

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.