Rename the file each time it is saved

Discussion in 'Programming' started by chrisj, Jul 24, 2011.

  1. #1
    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"?
    Any assistance will be appreciated. Thanks.
    Here's the Player page 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>
    
    Code (markup):
     
    Last edited: Jul 24, 2011
    chrisj, Jul 24, 2011 IP