refactor: adress formatting issues

This commit is contained in:
Jakob Kukla 2021-06-05 14:08:44 +02:00
commit 016dacfb29

View file

@ -85,11 +85,14 @@ public class LocalPlayer implements Playback {
MediaSourceFactory mediaSourceFactory = new UnknownMediaSourceFactory(buildDataSourceFactory());
AudioAttributes audioAttributes = new AudioAttributes.Builder()
.setUsage(C.USAGE_MEDIA)
.setContentType(C.CONTENT_TYPE_MUSIC)
.build();
.setUsage(C.USAGE_MEDIA)
.setContentType(C.CONTENT_TYPE_MUSIC)
.build();
exoPlayer = new SimpleExoPlayer.Builder(context).setMediaSourceFactory(mediaSourceFactory).setAudioAttributes(audioAttributes, true).build();
exoPlayer = new SimpleExoPlayer.Builder(context)
.setMediaSourceFactory(mediaSourceFactory)
.setAudioAttributes(audioAttributes, true)
.build();
exoPlayer.addListener(eventListener);
exoPlayer.prepare();