I am using the video tag to play videos.
I using php files for the playback like this:
The browser identifies the video content from the header sent to it with the request. Just manipulate the header and keep the PHP extension. It will work perfect