DecryptLogin icon indicating copy to clipboard operation
DecryptLogin copied to clipboard

[HTML5] Direct Mp4 Download Links Do Not Load

Open kyle8998 opened this issue 7 years ago • 1 comments

Direct mp4 links work, but some are direct download links that will not load. Perhaps using a different player?

kyle8998 avatar Dec 22 '18 22:12 kyle8998

Besides some links that may actually be loading an HTML wrapper (dropbox does this), it's likely just a matter of headers.

For downloading:

Content-Type: video/mp4
Content-Disposition: attachment; filename="filename.mp4"

For viewing:

Content-Type: video/mp4
Content-Disposition: inline; filename="filename.mp4"

For some applications it may be possible to intercept an attachment header and modify it so that it plays inline instead, but this is getting more and more difficult as browsers work to support the servers' wishes instead (see CORS).

Joshfindit avatar Aug 28 '19 17:08 Joshfindit