2013-07-16 1 views
0

서버에 연결하는 Android에서 MP3 스트림 서비스가 있습니다. MediaPlayer를 사용합니다. 또한 스트림에서 XML 또는 ID3 태그를 가져 오기 위해 서버에 연결합니다. 작업하는 동안 몇 가지 오류가 발생합니다.안드로이드에서 MediaPlayer MP3 스트리밍 중 IO 오류가 발생했습니다.

07-16 17:40:22.535: I/System.out(2669): [socket][116] connection host(0) 
07-16 17:40:26.871: W/MediaPlayer(2669): info/warning (701, 0) 
07-16 17:40:26.872: I/MediaPlayer(2669): Info (701,0) 
07-16 17:40:27.535: I/System.out(2669): [socket][117] connection host(0) 
07-16 17:40:32.536: I/System.out(2669): [socket][118] connection host(0) 
07-16 17:40:37.535: I/System.out(2669): [socket][119] connection host(0) 
07-16 17:40:42.535: I/System.out(2669): [socket][120] connection host(0) 
07-16 17:40:43.585: I/System.out(2669): [socket][121:51945] exception 
07-16 17:40:47.535: I/System.out(2669): [socket][121] connection host(0) 
07-16 17:40:48.583: I/System.out(2669): [socket][122:33875] exception 
07-16 17:40:52.536: I/System.out(2669): [socket][122] connection host(0) 
07-16 17:40:53.584: I/System.out(2669): [socket][123:41711] exception 
07-16 17:40:57.734: I/InetAddress(2669): InetAddress_getaddrinfo> 
07-16 17:40:57.734: I/InetAddress(2669): InetAddress_getaddrinfo< 
07-16 17:40:57.735: I/System.out(2669): [socket][123] connection host(0) 
07-16 17:40:58.135: E/MediaPlayer(2669): error (261, -1004) 
07-16 17:40:58.136: E/MediaPlayer(2669): Error (261,-1004) 
07-16 17:40:58.136: E/MediaPlayer(2669): stop called in state 0 
07-16 17:40:58.136: E/MediaPlayer(2669): error (-38, 0) 
07-16 17:40:58.159: W/MediaPlayer(2669): mediaplayer went away with unhandled events 
07-16 17:40:58.584: I/System.out(2669): [socket][124:41579] exception 
07-16 17:41:00.805: I/System.out(2669): [socket][/192.168.0.110:49622] 
07-16 17:41:01.074: I/System.out(2669): close [socket][/0.0.0.0:49622] 
07-16 17:41:01.584: I/System.out(2669): [socket][/192.168.0.110:45166] 
07-16 17:41:01.923: D/dalvikvm(2669): GC_CONCURRENT freed 787K, 54% free 2923K/6343K, external 0K/0K, paused 4ms+4ms 
07-16 17:41:01.937: I/System.out(2669): close [socket][/0.0.0.0:45166] 
07-16 17:41:02.538: I/System.out(2669): [socket][124] connection host(0) 
07-16 17:41:02.547: I/System.out(2669): [socket][/192.168.0.110:41556] 
07-16 17:41:02.810: I/System.out(2669): close [socket][/0.0.0.0:41556] 
07-16 17:41:03.584: I/System.out(2669): [socket][125:36225] exception 
07-16 17:41:07.538: I/System.out(2669): [socket][125] connection host(0) 
07-16 17:41:07.864: I/System.out(2669): [socket][/192.168.0.110:39862] 
07-16 17:41:08.420: D/dalvikvm(2669): GC_CONCURRENT freed 855K, 55% free 2893K/6343K, external 0K/0K, paused 4ms+4ms 
07-16 17:41:08.427: I/System.out(2669): close [socket][/0.0.0.0:39862] 
07-16 17:41:08.584: I/System.out(2669): [socket][126:55248] exception 

이 부분 (2669), 특히 E/MediaPlayer를 무엇을 의미 하는가 : 오류 (261 -1004) :

07-16 17:40:53.584: I/System.out(2669): [socket][123:41711] exception 
07-16 17:40:57.734: I/InetAddress(2669): InetAddress_getaddrinfo> 
07-16 17:40:57.734: I/InetAddress(2669): InetAddress_getaddrinfo< 
07-16 17:40:57.735: I/System.out(2669): [socket][123] connection host(0) 
07-16 17:40:58.135: E/MediaPlayer(2669): error (261, -1004) 
07-16 17:40:58.136: E/MediaPlayer(2669): Error (261,-1004) 
07-16 17:40:58.136: E/MediaPlayer(2669): stop called in state 0 
07-16 17:40:58.136: E/MediaPlayer(2669): error (-38, 0) 
07-16 17:40:58.159: W/MediaPlayer(2669): mediaplayer went away with unhandled events 

예를 들어 (호스트 주소는 "호스트"로 대체됩니다)?

답변

1

-1004MEDIA_ERROR_IO을 의미합니다 (파일 또는 네트워크 관련 작업 오류, here 참조).

일반적으로 전체 오류 코드는 (1,-1004)입니다. 261이 이상하게 보입니다. 어떤 Android 기기를 사용 하시나요?

+0

나를 위해이 오류가 나와 내 안드로이드 장치 4.4.2 !!에 등장했습니다! –

관련 문제