Hello, I am trying to stream some audio from an http server using a MediaPlayer with MediaController . The audio file is mp3 with the size of about 5Mb. I have opened the MediaController with show(0) to leave it open indefinitely.
If I leave the audio to play without touching anything everything works fine, but the instant I touch anywhere in the activity window the MediaController disappears and throws the following warning in LogCat and the audio continues to play. 04-14 02:30:56.749: WARN/InputManagerService(55): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@43cfef38 Note that if I touch the Notification bar this does not happen. It is only when the activity window is touched. This happens in the emulator as well as my Nexus One. Both running 2.1. Here is a complete log starting from the call to play(): 04-14 02:30:40.828: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:40.847: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:42.179: INFO/PlayerDriver(31): buffering (1) 04-14 02:30:44.796: DEBUG/AudioSink(31): bufferCount (4) is too small and increased to 12 04-14 02:30:45.189: INFO/PlayerDriver(31): buffering (9) 04-14 02:30:45.572: WARN/AudioFlinger(31): write blocked for 72 msecs, 1 delayed writes, thread 0xb388 04-14 02:30:47.759: DEBUG/dalvikvm(208): GC freed 4715 objects / 307896 bytes in 90ms 04-14 02:30:50.616: WARN/AudioFlinger(31): write blocked for 99 msecs, 42 delayed writes, thread 0xb388 04-14 02:30:51.219: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:51.586: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:51.667: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:52.029: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:52.046: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:52.287: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:52.317: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:52.597: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:52.617: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:52.877: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:52.937: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:53.235: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:53.235: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:53.485: WARN/MediaPlayer(208): info/warning (1, 44) 04-14 02:30:53.506: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:53.677: INFO/MediaPlayer(208): Info (1,44) 04-14 02:30:55.350: INFO/PlayerDriver(31): buffering (38) 04-14 02:30:55.839: WARN/AudioFlinger(31): write blocked for 97 msecs, 65 delayed writes, thread 0xb388 04-14 02:30:56.749: WARN/InputManagerService(55): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@43cfef38 04-14 02:31:00.889: WARN/AudioFlinger(31): write blocked for 94 msecs, 106 delayed writes, thread 0xb388 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

