MP4 files are sometimes downloaded, and other times they play in the browser.
What is the difference between these two links?
1) If you open this URL in Chrome, the video will download:
http://video.video-mall.com/video_mall/400241188377_video.mp4
2) If you open this URL on Chrome, the video will play in the browser:
http://www.simplethoughtproductions.com/wp-content/uploads/SimpleShorts/Morning_Mail/morning_mail.mp4
Why is that?
If the video has already been downloaded, but you can't play it on your Android phone, then it can have the following reasons. The video could not be downloaded properly from its source. The header of the video file could be missing or corrupted. There can be issues with the syncing of its video or audio component.
Sometimes, JavaScript accidentally gets disabled. This is a quick and easy fix. Just go into your Chrome settings and turn it on to enable video playback.
To make certain file types OPEN on your computer, instead of Chrome Downloading... You have to download the file type once, then right after that download, look at the status bar at the bottom of the browser. Click the arrow next to that file and choose "always open files of this type". DONE.
First link has Content-Type: application/octet-stream
header, while the second one Content-Type: video/mp4
.
With Serg's answer , I would also like to add about Content-Disposition
header . If you set the Content-Disposition as inline
, then your video/content will play within the browser and if you set Content-Disposition as attachment
, then your browser will download it .
More info on this can be found here .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With