mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Fix hls start position
This commit is contained in:
		
							parent
							
								
									09b146928c
								
							
						
					
					
						commit
						1dbee1d79f
					
				@ -166,7 +166,7 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
 | 
			
		||||
				ref.current.src = source.uri;
 | 
			
		||||
			} else {
 | 
			
		||||
				hls.attachMedia(ref.current);
 | 
			
		||||
				hls.startLoad(source.startPosition ?? 0);
 | 
			
		||||
				hls.startLoad(source.startPosition ? source.startPosition / 1000 : 0);
 | 
			
		||||
				hls.on(Hls.Events.ERROR, (_, d) => {
 | 
			
		||||
					if (!d.fatal || !hls?.media) return;
 | 
			
		||||
					console.warn("Hls error", d);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user