- add back lines where we need to generate unique filenames for webcam streams

This commit is contained in:
Richard Alam 2011-04-14 15:02:44 -04:00
parent f8de22e00b
commit c2fd6f6c20

View File

@ -142,7 +142,13 @@
camWidth = Number(res[0]);
camHeight = Number(res[1]);
_nAspectRatio = (camWidth/camHeight);
this.streamName = cmbResolution.selectedLabel.concat(this.streamName);
/**
* Add timestamp to create a unique stream name. This way we can record
* stream without overwriting previously recorded streams.
*/
var curTime:Number = new Date().getTime();
this.streamName = cmbResolution.selectedLabel.concat(this.streamName) + "-" + curTime;
}
public function set userrole(role:String):void{