Exoplayer2 OutOfMemoryError exeption和app崩溃

时间:2017-10-05 05:48:48

标签: android out-of-memory exoplayer exoplayer2.x

在我的游戏机中,我收到此崩溃报告,我该如何处理?

这是崩溃报告。

  

java.lang.OutOfMemoryError:at   android.media.AudioTrack.getTimestamp(AudioTrack.java:1396)at   com.google.android.exoplayer2.audio.AudioTrack $ AudioTrackUtilV19.updateTimestamp   (AudioTrack.java)在   com.google.android.exoplayer2.audio.AudioTrack.maybeSampleSyncParams   (AudioTrack.java)在   com.google.android.exoplayer2.audio.AudioTrack.getCurrentPositionUs   (AudioTrack.java)在   com.google.android.exoplayer2.audio.MediaCodecAudioRenderer.getPositionUs   (MediaCodecAudioRenderer.java)   com.google.android.exoplayer2.ExoPlayerImplInternal.updatePlaybackPositions   (ExoPlayerImplInternal.java)at   com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork   (ExoPlayerImplInternal.java)at   com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage   (ExoPlayerImplInternal.java)在android.os.Handler.dispatchMessage上   (Handler.java:98)在android.os.Looper.loop(Looper.java:154)at   android.os.HandlerThread.run(HandlerThread.java:61)

1 个答案:

答案 0 :(得分:1)

使用Exoplayer最新版本库并检查播放器不同的视频可能是您的视频编解码器中的问题。