mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	Improve opening videos
This commit is contained in:
		@@ -97,7 +97,15 @@ struct OpenVideosModel {
 | 
			
		||||
 | 
			
		||||
        if playbackMode == .playNow || playbackMode == .shuffleAll {
 | 
			
		||||
            player.show()
 | 
			
		||||
            player.advanceToNextItem()
 | 
			
		||||
            #if os(iOS)
 | 
			
		||||
                if player.presentingPlayer {
 | 
			
		||||
                    player.advanceToNextItem()
 | 
			
		||||
                } else {
 | 
			
		||||
                    player.onPresentPlayer.append { [weak player] in player?.advanceToNextItem() }
 | 
			
		||||
                }
 | 
			
		||||
            #else
 | 
			
		||||
                player.advanceToNextItem()
 | 
			
		||||
            #endif
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user