 			_timer = new Timer(0,0);
 			_timer.addEventListener(TimerEvent.TIMER, _readData);
 		};
+		
+		/** add new data into Buffer */
+		public function addData(newData:ByteArray):void {
+		  newData.readBytes(_data,_data.position);
+		  _timer.start();
+		}
 		
 		/** Read a small chunk of packets each time to avoid blocking **/
 		private function _readData(e:Event):void {

							videoTags[videoTags.length-1].keyframe = true;
							if(_firstKey == -1) {
								_firstKey = i;
							}
						}
					}

		public var _timer:Timer;
		/** Byte data to be read **/
		private var _data:ByteArray;
		/* last key Frame PES packet */
		private var _lastKeyFrame:PES = null;
		
		
		/** Transmux the M2TS file into an FLV file. **/
