mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Update to ExoPlayer 2.11.5
This commit is contained in:
		| @@ -217,7 +217,7 @@ public abstract class BasePlayer implements | ||||
|  | ||||
|         final TrackSelection.Factory trackSelectionFactory = PlayerHelper | ||||
|                 .getQualitySelector(context); | ||||
|         this.trackSelector = new CustomTrackSelector(trackSelectionFactory); | ||||
|         this.trackSelector = new CustomTrackSelector(context, trackSelectionFactory); | ||||
|  | ||||
|         this.loadControl = new LoadController(); | ||||
|         this.renderFactory = new DefaultRenderersFactory(context); | ||||
|   | ||||
| @@ -1,5 +1,6 @@ | ||||
| package org.schabi.newpipe.player.playback; | ||||
|  | ||||
| import android.content.Context; | ||||
| import android.text.TextUtils; | ||||
| import android.util.Pair; | ||||
|  | ||||
| @@ -26,8 +27,9 @@ import com.google.android.exoplayer2.util.Assertions; | ||||
| public class CustomTrackSelector extends DefaultTrackSelector { | ||||
|     private String preferredTextLanguage; | ||||
|  | ||||
|     public CustomTrackSelector(final TrackSelection.Factory adaptiveTrackSelectionFactory) { | ||||
|         super(adaptiveTrackSelectionFactory); | ||||
|     public CustomTrackSelector(final Context context, | ||||
|                                final TrackSelection.Factory adaptiveTrackSelectionFactory) { | ||||
|         super(context, adaptiveTrackSelectionFactory); | ||||
|     } | ||||
|  | ||||
|     private static boolean formatHasLanguage(final Format format, final String language) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Robin
					Robin