From c2fd6f6c2087bfda8e13b2c0dbcb7793f2a2c5aa Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Thu, 14 Apr 2011 15:02:44 -0400 Subject: [PATCH] - add back lines where we need to generate unique filenames for webcam streams --- .../modules/videoconf/views/PublishWindow.mxml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/views/PublishWindow.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/views/PublishWindow.mxml index eefddf1e2c..e97b62f1b2 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/views/PublishWindow.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/videoconf/views/PublishWindow.mxml @@ -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{