揭秘ExoPlayer错误

时间:2018-07-09 06:18:56

标签: android exoplayer

我有一个运行良好的Android应用程序。我已经将ExoPlayer的内容复制/粘贴到了一个新的应用程序中,该应用程序当然具有不同的设计和逻辑,但是仍然可以播放视频。

关键是,我在新应用中遇到错误,无法理解它记录的神秘消息。

我进行了搜索,在许多论坛中都注意到不支持视频格式。但是,我可以在旧应用程序上播放相同的视频。 相同的IDE,相同版本的所有内容,相同模拟器,两个应用程序的所有内容都相同,因此URL和视频格式不会成为问题。

它必须与第二个应用程序有关,但是我找不到。这是logcat,并在末尾标记了红线(可能是错误):

I/ExoPlayerImpl: Init dc6a5c8 [ExoPlayerLib/2.8.2] [generic_x86, Android SDK built for x86, Google, 27]
D/SoftwareRenderer: setting dataspace on output surface to #104
D/AudioTrack: Client defaulted notificationFrames to 6000 for frameCount 12000
D/EGL_emulation: eglCreateContext: 0xb1065f40: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xb1065f40: ver 2 0 (tinfo 0x945ffcd0)
E/EGL_emulation: eglQueryContext 32c0  EGL_BAD_ATTRIBUTE // red line here
E/EGL_emulation: tid 31097: eglQueryContext(1777): error 0x3004 (EGL_BAD_ATTRIBUTE) // red line here
D/SurfaceUtils: connecting to surface 0x94306008, reason connectToSurface
I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 31719426
D/SurfaceUtils: disconnecting from surface 0x94306008, reason connectToSurface(reconnect)
D/SurfaceUtils: connecting to surface 0x94306008, reason connectToSurface(reconnect)
D/SurfaceUtils: disconnecting from surface 0x96e60008, reason disconnectFromSurface
I/zygote: Do partial code cache collection, code=499KB, data=277KB
I/zygote: After code cache collection, code=499KB, data=277KB
I/zygote: Increasing code cache capacity to 2MB
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
I/chatty: uid=10089(com.hamrahfarda.amoozeshyar) RenderThread identical 1 line
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
I/OMXClient: Treble IOmx obtained
D/SurfaceUtils: connecting to surface 0x96e6d008, reason connectToSurface
I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 31719427
D/SurfaceUtils: disconnecting from surface 0x96e6d008, reason connectToSurface(reconnect)
D/SurfaceUtils: connecting to surface 0x96e6d008, reason connectToSurface(reconnect)
E/ACodec: [OMX.google.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010 // red line here
I/ACodec: codec does not support config priority (err -1010)
I/OMXClient: Treble IOmx obtained
I/ACodec: codec does not support config priority (err -2147483648)
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
D/AudioTrack: Client defaulted notificationFrames to 6000 for frameCount 12000
D/MediaCodec: [OMX.google.h264.decoder] setting dataspace on output surface to #104
D/SoftwareRenderer: setting dataspace on output surface to #104
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
I/chatty: uid=10089(com.hamrahfarda.amoozeshyar) RenderThread identical 4 lines
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
I/chatty: uid=10089(com.hamrahfarda.amoozeshyar) RenderThread identical 23 lines
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
D/AudioTrack: stop() called with 254976 frames delivered
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
D/AudioTrack: stop() called with 254976 frames delivered
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)
D/EGL_emulation: eglMakeCurrent: 0xa9405ea0: ver 2 0 (tinfo 0xa9403650)

有人可以帮我弄清楚这里可能是什么问题吗?

0 个答案:

没有答案