mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Fix safari issue
This commit is contained in:
		
							parent
							
								
									ec2b0e0f78
								
							
						
					
					
						commit
						385c580358
					
				@ -132,8 +132,8 @@ const ProgressText = () => {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const toTimerString = (timer?: number, duration?: number) => {
 | 
			
		||||
	if (timer === undefined) return "??:??";
 | 
			
		||||
	if (!duration) duration = timer;
 | 
			
		||||
	if (timer === undefined || duration === undefined || isNaN(duration) || isNaN(timer)) return "??:??";
 | 
			
		||||
	if (duration >= 3600) return new Date(timer * 1000).toISOString().substring(11, 19);
 | 
			
		||||
	return new Date(timer * 1000).toISOString().substring(14, 19);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -185,6 +185,8 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
 | 
			
		||||
			src={source.uri}
 | 
			
		||||
			muted={muted}
 | 
			
		||||
			autoPlay={!paused}
 | 
			
		||||
			controls={false}
 | 
			
		||||
			playsInline
 | 
			
		||||
			onCanPlay={() => onBuffer?.call(null, { isBuffering: false })}
 | 
			
		||||
			onWaiting={() => onBuffer?.call(null, { isBuffering: true })}
 | 
			
		||||
			onDurationChange={() => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user