Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
094851cc7d
|
@ -178,6 +178,10 @@ public abstract class BasePlayer implements Player.EventListener, AudioManager.O
|
||||||
if (DEBUG) Log.d(TAG, "initPlayer() called with: context = [" + context + "]");
|
if (DEBUG) Log.d(TAG, "initPlayer() called with: context = [" + context + "]");
|
||||||
initExoPlayerCache();
|
initExoPlayerCache();
|
||||||
|
|
||||||
|
if (audioManager == null) {
|
||||||
|
this.audioManager = ((AudioManager) context.getSystemService(Context.AUDIO_SERVICE));
|
||||||
|
}
|
||||||
|
|
||||||
AdaptiveTrackSelection.Factory trackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);
|
AdaptiveTrackSelection.Factory trackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);
|
||||||
DefaultTrackSelector defaultTrackSelector = new DefaultTrackSelector(trackSelectionFactory);
|
DefaultTrackSelector defaultTrackSelector = new DefaultTrackSelector(trackSelectionFactory);
|
||||||
DefaultLoadControl loadControl = new DefaultLoadControl();
|
DefaultLoadControl loadControl = new DefaultLoadControl();
|
||||||
|
|
Loading…
Reference in New Issue