4

我正在开发 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

播放视频时,日志会显示“保持活动状态”消息。当视频停止时,它会显示上述日志。

我不知道到底发生了什么以及如何解决这个问题。如果你有任何想法,请告诉我。提前致谢

4

2 回答 2

1

Keep Alive 是 Youtube 的服务器和您的客户端之间的“ping”消息......如果客户端或服务器没有收到保持活动,您失去了连接,被客户端或服务器中断......

“E/InputDispatcher(1153):通道'4080cb58 com.android.launcher/com.android.launcher2.Launcher(服务器)'〜消费者关闭输入通道或发生错误。事件= 0x8”在这里你失去了与服务器,但没有代码我真的不知道更多^^

“W/WindowManager(1153): java.lang.IllegalArgumentException: 请求的窗口 android.os.BinderProxy@4080c968 不存在” 你在这里调用一个不存在的窗口?我认为你的应用程序在这里崩溃了......寻找它;)

于 2014-04-15T06:49:15.197 回答
-2

android:configChanges="orientation" 用于AndroidManifest.xml启动屏幕的活动。

我遇到了同样的异常,但这与相机有关,但通常是由于方向变化引起的,方向变化没有通知活动,因此导致崩溃。

于 2012-09-15T00:21:41.823 回答