mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 12:53:08 +00:00
Update explayer
This commit is contained in:
parent
823bf90031
commit
e4f0cf9bcf
6 changed files with 5 additions and 15 deletions
|
@ -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"
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue