我正在开发 android youtube 应用程序。我们可以完美地获取数据和所有其他东西。通过使用 openyoutubeplayer 播放 youtube 视频。我们正在传递 videoid 来播放 openyoutubeplayer 中的视频。在播放视频时,我们在一段时间后遇到“消费者关闭输入通道或发生错误。事件 = 0x8”[其随机]。请查看以下日志。
I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
E/InputDispatcher( 1153): channel '4080cb58 com.android.launcher/com.android.launcher2.Launcher (server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 1153): channel '4080cb58 com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed!
W/IMediaDeathNotifier( 2431): media server died
W/MediaMetadataRetriever( 1243): MediaMetadataRetriever server died!
E/MediaPlayer( 2431): error (100, 0)
I/ServiceManager( 1077): service 'media.audio_flinger' died
I/ServiceManager( 1077): service 'media.player' died
I/ServiceManager( 1077): service 'media.camera' died
I/ServiceManager( 1077): service 'media.audio_policy' died
W/AudioSystem( 2431): AudioFlinger server died!
W/AudioSystem( 1153): AudioFlinger server died!
I/WindowManager( 1153): WINDOW DIED Window{4080cb58 com.android.launcher/com.android.launcher2.Launcher paused=false}
W/AudioSystem( 1153): AudioPolicyService server died!
I/ActivityManager( 1153): Process com.android.launcher (pid 1592) has died.
E/MediaPlayer( 2431): Error (100,0)
D/VideoView( 2431): Error: 100,0
W/WindowManager( 1153): Failed looking up window
W/WindowManager( 1153): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4080c968 does not exist
W/WindowManager( 1153): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8181)
W/WindowManager( 1153): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8172)
W/WindowManager( 1153): at com.android.server.WindowManagerService$WindowState$DeathRecipient.binderDied(WindowManagerService.java:7031)
W/WindowManager( 1153): at android.os.BinderProxy.sendDeathNotice(Binder.java:381)
W/WindowManager( 1153): at dalvik.system.NativeStart.run(Native Method)
I/WindowManager( 1153): WIN DEATH: null
I/ ( 2857): ServiceManager: 0xad50
I/CameraService( 2857): CameraService started (pid=2857)
D/AudioHardwareALSA( 2857): openOutputStream called for devices: 0x00000002
I/ALSAModule( 2857): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
I/AudioFlinger( 2857): AudioFlinger's thread 0x16c00 ready to run
D/ALSAModule( 2857): route called for devices 00000002 in mode 0...
E/AudioService( 1153): Media server died.
E/AudioService( 1153): Media server started.
W/AudioPolicyManagerBase( 2857): setPhoneState() setting same state 0
播放视频时,日志会显示“保持活动状态”消息。当视频停止时,它会显示上述日志。
我不知道到底发生了什么以及如何解决这个问题。如果你有任何想法,请告诉我。提前致谢