play video .wmv files while they are uploaded with rsync
I have a public server updated with rsync running each minute from a local server. The files copied are videos for our customers. These videos are constantly produced in .wmv format, some 400 each day. Our customers must be able to see them as soon as posible, they access them using a home-developed php web site that publish them.
The problem is, the video cant be viewed until finished the rsync. videos can be any size from 1 Mb to 150 Mb, with my internet access speed that can be anything from a few seconds to dozens of minutes.
While copying a file, rsync creates a temporary file with the real name of the file, but with a '.' prefix and a ramdomly generated suffix. So, from php I can know that a file is being uploaded, an actually start the play, but then rsync finish the transmission and mv the file to its correct name. To play the file I use this: <object id="MediaPlayer" width="320" height="320" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ...
<param name="FileName" value="myvideo.wmv">
<param name="AutoStart" value="true">
Is there a way to stream the file without interruption during its upload to the server, and even after finishing the upload, while it is moved (renamed)?
thanks in advance,