 		
 		protected function recordingDuration():int
 		{
-			var latency = 650;
-			var duration = int(getTimer() - recordingStartTime - latency);
+			var duration = int(getTimer() - recordingStartTime);
 			return Math.max(duration, 0);
+		}
+
+		protected function playDuration():int
+		{
+			return int(channel.position);
 		}
 		
 		protected function recordSampleDataHandler(event:SampleDataEvent):void

			ExternalInterface.addCallback("audioData",      this.audioData);
			ExternalInterface.addCallback("showFlash",      this.showFlash);
			ExternalInterface.addCallback("recordingDuration",     this.recordingDuration);
			triggerEvent("initialized", {});
			logger.log("Recorder initialized");
		}

			}
			playingProgressTimer = new Timer(250);
			playingProgressTimer.addEventListener(TimerEvent.TIMER, function playingProgressTimerHandler(event:TimerEvent){
				triggerEvent('playingProgress', this.platDuration());
			});
			playingProgressTimer.start();
		}
