mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-01 19:17:16 -04:00 
			
		
		
		
	Fix safari issue
This commit is contained in:
		
							parent
							
								
									ec2b0e0f78
								
							
						
					
					
						commit
						385c580358
					
				| @ -100,10 +100,10 @@ const VolumeSlider = () => { | ||||
| 					isMuted || volume == 0 | ||||
| 						? VolumeOff | ||||
| 						: volume < 25 | ||||
| 						? VolumeMute | ||||
| 						: volume < 65 | ||||
| 						? VolumeDown | ||||
| 						: VolumeUp | ||||
| 							? VolumeMute | ||||
| 							: volume < 65 | ||||
| 								? VolumeDown | ||||
| 								: VolumeUp | ||||
| 				} | ||||
| 				onPress={() => setMuted(!isMuted)} | ||||
| 				{...tooltip(t("player.mute"), true)} | ||||
| @ -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