If we put a MP4 file directly on the server and then open it in Google Chrome, the browser will watch it online by default.
But often files are not so naked to save, if it is to use PHP to output MP4 files, a long time, the browser will be directly as a file download, and will not try to play online.
At first I thought it was necessary to support the disconnection download, and then change it, and then it is useless, the browser or default directly as a file download.
I wonder if Daniel can solve this problem which has made me headache for a long time.
Reply to discussion (solution)
Write HTML code in PHP script, use HTML5 video tag to solve playback problem
Write HTML code in PHP script, use HTML5 video tag to solve playback problem
I do not want this, if so, then the phone will not be able to play directly.
I've solved this problem, look underneath.
This problem I have solved, the code is as follows