User-474980206 posted
The content-disposition header is the hint to the browser to download or display file.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
How well this works depends on the browser, o/s, and plugins installed. Take PDFs for example. Safari always support displaying because it’s builtin to the o/s. Firefox uses a JavaScript routine to display PDFs.
to display video, you need to render a page that has a media control which a src to the video.