CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Flash & ActionScript (http://www.codingforums.com/forumdisplay.php?f=52)
-   -   Rename file each time it is saved (http://www.codingforums.com/showthread.php?t=232860)

chrisjchrisj 07-24-2011 03:31 PM

Rename file each time it is saved
 
This script that I'm using, on a web page, allows a web page visitor to record a video, via his webcam. However, the recording is given the same file name each time (Video), thus each new recording replaces the previous stored one. How can I add code that will give each recording a unique file name - so that all recordings are saved/stored?

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>recorder</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="recorder"></div>


              <script type="text/javascript">
              // <![CDATA[
              var so = new SWFObject("recorder.swf", "recorder", "620", "470", "9", "#000000");
                          so.addParam('flashvars','filename=Video&rtmpPath=rtmp://67.xxx.xxx.xxx/vid/&finishURL=player.html')
              so.write("recorder");
              // ]]>
              </script>
</body>
</html>



All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.