Update explayer

This commit is contained in:
Felix 2019-04-25 19:51:24 +02:00
parent 823bf90031
commit e4f0cf9bcf
6 changed files with 5 additions and 15 deletions

View file

@ -84,6 +84,8 @@ dependencies {
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
api 'com.google.android.exoplayer:exoplayer:2.9.6'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0'
api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

View file

@ -99,8 +99,7 @@ dependencies {
implementation "com.android.support:leanback-v17:${rootProject.ext.supportLibraryVersion}"
implementation "com.android.support:preference-leanback-v17:${rootProject.ext.supportLibraryVersion}"
implementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibraryVersion}"
implementation 'com.google.android.exoplayer:exoplayer:2.6.1'
implementation 'com.google.android.exoplayer:extension-leanback:2.6.1'
implementation 'com.google.android.exoplayer:extension-leanback:2.9.6'
implementation 'com.github.bumptech.glide:glide:4.6.1'
androidTestImplementation('com.android.support.test:rules:0.5') {
exclude module: 'support-annotations'

View file

@ -81,7 +81,7 @@ class EventDetailsFragment : DetailsSupportFragment() {
ExoPlayerFactory.newSimpleInstance(
activity,
DefaultTrackSelector(
AdaptiveTrackSelection.Factory(DefaultBandwidthMeter())))
AdaptiveTrackSelection.Factory()))
}
private val player: SimpleExoPlayer by playerDelegate
private lateinit var playerAdapter: LeanbackPlayerAdapter

View file

@ -121,7 +121,6 @@ dependencies {
noFreeImplementation('pl.droidsonroids:casty:1.0.8') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
implementation 'com.google.android.exoplayer:exoplayer:r2.5.2'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0'
implementation 'com.github.bumptech.glide:glide:4.6.1'

View file

@ -174,7 +174,7 @@ public class ExoPlayerFragment extends Fragment implements PlayerEventListener.P
DefaultRenderersFactory renderersFactory = new DefaultRenderersFactory(getContext(), null, DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF);
exoPlayer = ExoPlayerFactory.newSimpleInstance(renderersFactory, trackSelector, loadControl);
exoPlayer = ExoPlayerFactory.newSimpleInstance(renderersFactory, trackSelector);
PlayerEventListener listener = new PlayerEventListener(exoPlayer, this);
exoPlayer.addVideoListener(listener);
exoPlayer.addListener(listener);

View file

@ -23,11 +23,6 @@ class PlayerEventListener implements Player.EventListener, SimpleExoPlayer.Video
this.listener = listener;
}
@Override
public void onTimelineChanged(Timeline timeline, Object manifest) {
}
@Override
public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {
@ -74,11 +69,6 @@ class PlayerEventListener implements Player.EventListener, SimpleExoPlayer.Video
Log.d(TAG, errorMessage, error);
}
@Override
public void onPositionDiscontinuity() {
}
@Override
public void onPlaybackParametersChanged(PlaybackParameters playbackParameters) {