This script that I purchased, allows a web page visitor to record a video, via his webcam. Once the user selects "stop recording" he's automatically taken to the Player page where he can Play and Save or Delete the recording.

What code can I add that will rename the file name VideoZ and give the recording a unique file name upon the user selecting "Save"?

Someone suggested changing the javascript to something like this:


Code:
so.addParam('flashvars','filename=' + new Date().getTime() +  'VideoZ&rtmpPath=rtmp://67.xxx.xxx.xxx/vid')
Is this valid javascript code that will accomplish renaming the file? If not, can you help me with this? thanks. Any help will be appreciated. Here's the Player page code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>check recorded video</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="js/swfobject.js"></script>
	</head>
	<body bgcolor="#ffffff">
		<div id="player"></div>
              <script type="text/javascript">
               // <![CDATA[
               var so = new SWFObject("player.swf", "player", "640", "480", "9", "#000000");
	      	  so.addParam('flashvars','file=VideoZ&streamer=rtmp://67.xxx.xxx.xxx/vid');
               so.write("player");
               // ]]>
               </script>
	</body>
</html>