changed event forward method
This commit is contained in:
		
							parent
							
								
									899ee1088a
								
							
						
					
					
						commit
						cf942c5700
					
				
					 4 changed files with 28 additions and 7 deletions
				
			
		|  | @ -132,13 +132,19 @@ p.prototype.build = function (options) { | |||
|           break; | ||||
|       } | ||||
|     } | ||||
|     me.adderror(msg); | ||||
|     //prevent onerror loops
 | ||||
|     if (e.target == me.element) { | ||||
|       e.message = msg; | ||||
|     } | ||||
|     else { | ||||
|       me.adderror(msg); | ||||
|     } | ||||
|   }); | ||||
|   var events = ['abort','canplay','canplaythrough','durationchange','emptied','ended','interruptbegin','interruptend','loadeddata','loadedmetadata','loadstart','pause','play','playing','ratechange','seeked','seeking','stalled','volumechange','waiting','progress']; | ||||
|   for (var i in events) { | ||||
|     ele.addEventListener(events[i],function(e){ | ||||
|       me.addlog('Player event fired: '+e.type); | ||||
|     },true); | ||||
|     }); | ||||
|   } | ||||
|    | ||||
|   return cont; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cat
						Cat