Wednesday, April 10, 2013

[android-developers] Android MediaPlayer localhost

Hello there,
I'm developing an application that creates a socket using native code to stream audio files.
I tested on Galaxy Note 10.1, Galaxy Note II, Galaxy S3 and Galaxy Tab 7.1. All of these devices works perfectly, but when I tried to play the audio content 
in Galaxy S2 I got this Log Cat message:

04-10 14:30:34.786: E/MediaPlayer(29618): setDataSource JAVA path 
04-10 14:30:34.786: E/MediaPlayer-JNI(29618): setDataSource: outside path in JNI is �x @
04-10 14:30:34.786: D/MediaPlayerService(2587): getPlayerType. Ln=908
04-10 14:30:34.786: D/MediaPlayerService(2587): createPlayer. type=4
04-10 14:30:34.786: D/MediaPlayerService(2587):  create StagefrightPlayer
04-10 14:30:34.786: V/AwesomePlayer(2587): constructor
04-10 14:30:34.786: V/AwesomePlayer(2587): reset
04-10 14:30:34.786: V/AwesomePlayer(2587): cancelPlayerEvents (keepBufferingGoing=0)
04-10 14:30:34.786: V/AwesomePlayer(2587): setAudioSink
04-10 14:30:34.786: I/StagefrightPlayer(2587): setDataSource('http://172.16.5.85:7777/UMG_audclp_00008811034528_01_001_67_256k_full_drm.ism/manifest')
04-10 14:30:34.786: V/AwesomePlayer(2587): setDataSource (http://172.16.5.85:7777/UMG_audclp_00008811034528_01_001_67_256k_full_drm.ism/manifest)
04-10 14:30:34.786: V/AwesomePlayer(2587): cancelPlayerEvents (keepBufferingGoing=0)
04-10 14:30:34.791: E/MediaPlayer(29618): In prepareAsync
04-10 14:30:34.791: V/AwesomePlayer(2587): prepareAsync
04-10 14:30:34.796: V/AwesomePlayer(2587): finishSetDataSource_l
04-10 14:30:34.796: W/IInputConnectionWrapper(29618): getExtractedText on inactive InputConnection
04-10 14:30:34.796: I/NuHTTPDataSource(2587): HTTP url
04-10 14:30:34.796: I/NuHTTPDataSource(2587): 1'th connecting...
04-10 14:30:34.796: I/NuHTTPDataSource(2587): connect_l to 172.16.5.85:7777/UMG_audclp_00008811034528_01_001_67_256k_full_drm.ism/manifest @0
04-10 14:30:34.796: I/HTTPStream(2587): disconnect
04-10 14:30:34.796: E/HTTPStream(2587): Connect to 172.16.5.85:7777 
04-10 14:30:34.796: I/HTTPStream(2587): GetAddrInfo new address. (Cache) : 172.16.5.85
04-10 14:30:34.801: E/NuHTTPDataSource(2587): [android::status_t android::NuHTTPDataSource::connect_l(const char*, unsigned int, const char*, const android::String8&, off_t)] Connection Failed --> Disconnected.
04-10 14:30:34.801: I/NuHTTPDataSource(2587): 0th retirial, 0.0 s elapsed
04-10 14:30:34.801: E/HTTPStream(2587): Both sockfd and network interface name are not given.
04-10 14:30:34.806: W/IInputConnectionWrapper(29618): getExtractedText on inactive InputConnection
04-10 14:30:39.800: I/NuHTTPDataSource(2587): destruct
04-10 14:30:39.800: I/HTTPStream(2587): disconnect
04-10 14:30:39.800: I/HTTPStream(2587): disconnect
04-10 14:30:39.800: I/AwesomePlayer(2587): mConnectingDataSource->connect() returned -1
04-10 14:30:39.800: E/MediaPlayer(29618): error (1, -1)
04-10 14:30:39.800: E/MediaPlayer(29618): Error (1,-1)
04-10 14:30:39.800: E/MediaPlayerService(2587): Client::notify In

I tried to set mediaplayer data source using "localhost" and the device ip, but both didn't work.

Thanks a lot.
Kind regards,

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment