Skip to content

Commit

Permalink
升级exo播放器版本
Browse files Browse the repository at this point in the history
  • Loading branch information
generocket committed May 13, 2024
1 parent 917cbd5 commit 816e9f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
12 changes: 6 additions & 6 deletions player/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 16
minSdkVersion 18
targetSdkVersion 26
versionCode 1
versionName "1.0"
Expand Down Expand Up @@ -35,11 +35,11 @@ android {

dependencies {
implementation "androidx.annotation:annotation:1.3.0"
api "com.google.android.exoplayer:exoplayer-core:2.14.2"
api "com.google.android.exoplayer:exoplayer-dash:2.14.2"
api "com.google.android.exoplayer:exoplayer-hls:2.14.2"
api "com.google.android.exoplayer:exoplayer-rtsp:2.14.2"
api "com.google.android.exoplayer:extension-rtmp:2.14.2"
api "com.google.android.exoplayer:exoplayer-core:2.15.1"
api "com.google.android.exoplayer:exoplayer-dash:2.15.1"
api "com.google.android.exoplayer:exoplayer-hls:2.15.1"
api "com.google.android.exoplayer:exoplayer-rtsp:2.15.1"
api "com.google.android.exoplayer:extension-rtmp:2.15.1"
api "com.google.android.exoplayer:extension-okhttp:2.14.2"
api 'xyz.doikki.android.dkplayer:dkplayer-ui:3.3.5'
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import com.google.android.exoplayer2.DefaultLoadControl;
import com.google.android.exoplayer2.DefaultRenderersFactory;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.LoadControl;
import com.google.android.exoplayer2.PlaybackParameters;
import com.google.android.exoplayer2.Player;
Expand Down Expand Up @@ -270,12 +269,6 @@ public void onPlaybackStateChanged(int playbackState) {
}
}

@Override
public void onPlayerError(ExoPlaybackException error) {
if (mPlayerEventListener != null) {
mPlayerEventListener.onError();
}
}

@Override
public void onVideoSizeChanged(VideoSize videoSize) {
Expand Down

0 comments on commit 816e9f8

Please sign in to comment.