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>