As of 4.1RC2, LSWS supports the streaming of MP4/H264/F4V video files with random seek.
To enable this feature, make sure that files with suffixes “.mp4” or “.f4v” have a MIME type of “video/mp4”.
The MIME settings file is located under /path_to_lsws/conf/mime.properties, or you can view/edit the file from the WebAdmin Console:
Navigate to Server > General > MIME Settings.
If you cannot find an entry for the mp4 or f4v suffixes, you can add them by clicking the “Add” button at the top right of the page and entering the following information:
Suffix: f4v,mp4
Mime Type: video/mp4
There are two very simple methods of testing this out:
Method 1: Viewing Your MP4 Directly
If everything is working correctly, your video should be displayed and able to play.
Method 2: Embedding Your MP4 In A Page
<video width="320" height="240" controls> <source src="video.mp4" type="video/mp4"> </video>
The video should now appear on the associated web page of your site. For more Information on embedding MP4 videos using HTML as well as some more options available with this method, visit w3schools.com.