 		private function genericHTTPStatusHandler(event:HTTPStatusEvent):void {
             trace("genericHTTPStatusHandler: " + event);
         }
+
+		private function startVideoViewTimeTracker():void {
+			trace('startVideoViewTimeTracker');
+			var now:Date = new Date();
+			videoViewTimeStart = now.getTime();
+		}
+		
+		private function stopVideoViewTimeTracker():uint {
+			trace('stopVideoViewTimeTracker');
+			if(!videoViewTimeStart) return videoViewTime;
+			var now:Date = new Date();
+			videoViewTime += (now.getTime() - videoViewTimeStart);	// ms
+			videoViewTimeStart = 0;	// reset
+			trace('videoViewTime', videoViewTime);
+			return videoViewTime;
+		}
 		
 		
 		/* ======================== */

					break;
				}
			}
			
			try {
				video.seekTo(seekTime);
				video.play();

		/* = ANALYTICS = */
		/* ============= */
		
		public function trackEvent(eventName:String, eventValue:uint = 0):void {
			
			var actionEvents:Array = ["Play"];
			var valueEvents:Array = ["Time Watched", "Percent Watched"];
			var validEvents:Array = actionEvents.concat(valueEvents);
			if(validEvents.indexOf(eventName) == -1) return;
			
			if(trackedEvents.indexOf(eventName) == -1) {
				
				trace("tracking event: " + eventName);
				trace("eventValue", eventValue);
				
				// google analytics
				var category:String = (embeddedMode) ? "Embedded Videos" : "Videos";				
				try {
					if(valueEvents.indexOf(eventName) != -1) {
						trace('Google Analytics', category, eventName, videoPermalinkId, eventValue);
						GoogleTracker.trackEvent(category, eventName, videoPermalinkId, eventValue);
					} else {
						trace('Google Analytics', category, eventName, videoPermalinkId);
						GoogleTracker.trackEvent(category, eventName, videoPermalinkId);
					}
				} catch (error:Error) {
					trace("Unable to track GoogleAnalytics event");
				}
				
				// app view count (Play event)
				if(eventName == "Play" && config.trackPlayUrl) {
					var loader:URLLoader = new URLLoader();
					var request:URLRequest = new URLRequest(config.trackPlayUrl);				
					var variables:URLVariables = new URLVariables();
