Wiki
Command unknown: diff13327233
 

MP4/H264/F4V Video Streaming

Since 4.1RC2, LSWS support streaming of MP4/H264/F4V video files with random seek.

1) litespeed settings

To enable the feature, make sure file with suffix “.mp4” or “.f4v” has a MIME type of “video/mp4”.

the MIME settings file is /path/to/lsws/conf/mime.properties, or you can view/edit it in web admin console:

Server-->General-->MIME Settings
Suffix: f4v,mp4
Mime Type: video/mp4

2) test it at your own website

flowplayer is a nice flash player. Let's use it to demo the MP4 streaming and random seek.

Here's one of flowplayer's demo pages:

http://flowplayer.org/demos/plugins/streaming/index.htm

download all the files in above demo page to one folder under your website's document root.

Here's the file list:

flowplayer.org/demos/plugins/streaming/index.htm
flowplayer.org/js/flowplayer-3.1.4.min.js
flowplayer.org/demos/standalone.css
flowplayer.org/swf/flowplayer-3.1.5.swf
flowplayer.org/swf/flowplayer.pseudostreaming-3.1.3.swf
flowplayer.controls-3.1.5.swf
flowplayer.org/video/flowplayer-700.flv

Now there's one file left:

flowplayer.org/video/Extremists.flv

This is the video file to play, you can select not download it. instead, using your .mp4/.f4v file, and modify the index.htm accordingly.

UPDATE: just tried JW Player 5.2, it's much simple and straightforward for mp4 streaming:

<embed
      flashvars="file=yourvideo.mp4&provider=http&http.startparam=start"
      id="player2" name="player2"
      width="320" height="240"
      src="player.swf"
      allowfullscreen="true"
      allowscriptaccess="always"
      wmode="transparent"
/>
 
litespeed/wiki/feature/mp4_streaming.txt · Last modified: 2013/08/19 03:19 by NiteWave