|  |  |  | @ -113,17 +113,14 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => { | 
			
		
	
		
			
				
					|  |  |  |  |         log() | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     //循环播放, 累计时长不能清空 | 
			
		
	
		
			
				
					|  |  |  |  |     async function onEnded() { | 
			
		
	
		
			
				
					|  |  |  |  |       log(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         logId = null | 
			
		
	
		
			
				
					|  |  |  |  |         logCount = 1 | 
			
		
	
		
			
				
					|  |  |  |  |         lastUpdatedTime = 0 | 
			
		
	
		
			
				
					|  |  |  |  |         sumTimePlayed = 0 | 
			
		
	
		
			
				
					|  |  |  |  |         initLog = false | 
			
		
	
		
			
				
					|  |  |  |  |         isLoging = false | 
			
		
	
		
			
				
					|  |  |  |  |         isSeeking = false | 
			
		
	
		
			
				
					|  |  |  |  |         pos = [] | 
			
		
	
		
			
				
					|  |  |  |  |       }, true) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -142,6 +139,8 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => { | 
			
		
	
		
			
				
					|  |  |  |  |               log() | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           lastUpdatedTime = newTime | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -180,6 +179,9 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => { | 
			
		
	
		
			
				
					|  |  |  |  |       el.current.removeEventListener('seeking', onSeeking) | 
			
		
	
		
			
				
					|  |  |  |  |       el.current.removeEventListener('seeked', onSeeked) | 
			
		
	
		
			
				
					|  |  |  |  |       el.current.removeEventListener('timeupdate', onTimeupdate) | 
			
		
	
		
			
				
					|  |  |  |  |       if (el.current.playing) { | 
			
		
	
		
			
				
					|  |  |  |  |         log() | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, [el, src]) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |