Hi Julius:

I'm having the same problem that you. I haven't a solution but I had
been testing my aplication in a few phones getting some conclusions:

-The app works in all Nexus, in the HTC Desire and Sansung III

-Don't work in Sansung Galaxy S and ZTE Blade. But if you have changed
rom or even only the kernel it works.

So I think that it is some kernel issue  but I don't know how to fix
it...

I hope it helps you know where look for a fix

On 17 jul, 10:51, Julius Spencer <jul...@msa.co.nz> wrote:
> Hi,
>
> I am using the following to stream mp3 or m4a files from a server:
>
>    mMediaPlayer.setOnCompletionListener(MyActivity.this);
>    mMediaPlayer.setOnPreparedListener(MyActivity.this);
>    mMediaPlayer.setOnErrorListener(MyActivity.this);
>    mMediaPlayer.setDataSource(MyActivity.this,Uri.parse(mMediaURL));
>    //mMediaPlayer.setDataSource(mMediaURL);
>    mMediaPlayer.prepareAsync();
>
> This works fine on Nexus devices. Eg I get the following in the logcat and 
> the music can be heard:
>
>    INFO/StagefrightPlayer(68): setDataSource('http://media….')
>    INFO/NuHTTPDataSource(68): connect to media…. @0
>    WARN/AudioFlinger(68): write blocked for 161 msecs, 67 delayed writes, 
> thread 0xea00
>
> However on other devices I get the following in logcat and no sound:
>
>    VERBOSE/PlayerDriver(1233): Completed command PLAYER_HELPER 
> status=PVMFSuccess
>    VERBOSE/PVPlayer(1233): setDataSource(http://media....)
>    VERBOSE/PVPlayer(1233): prepareAsync
>    VERBOSE/PVPlayer(1233):   data source =http://media....
>    VERBOSE/PlayerDriver(1233): Send player code: 4
>    VERBOSE/PlayerDriver(1233): handleSetDataSource
>    VERBOSE/PlayerDriver(1233): handleSetDataSource- scanning for extension
>    VERBOSE/PlayerDriver(1233): CommandCompleted
>    VERBOSE/PlayerDriver(1233): Completed command PLAYER_SET_DATA_SOURCE 
> status=PVMFSuccess
>    VERBOSE/PVPlayer(1233): run_init s=0, cancelled=0
>    VERBOSE/PlayerDriver(1233): Send player code: 7
>    VERBOSE/PlayerDriver(1233): xxxx headers size 0
>    VERBOSE/PlayerDriver(1233): release string is 2.2.2 len 5
>    INFO/CheckinTask(1573): Sending checkin request (1855 bytes)
>    INFO/dalvikvm(1573): Jit: resizing JitTable from 8192 to 16384
>    VERBOSE/PlayerDriver(1233): HandleInformationalEvent: PVMFInfoContentType
>    VERBOSE/PlayerDriver(1233): HandleInformationalEvent: PVMFInfoContentLength
>    VERBOSE/PlayerDriver(1233): HandleInformationalEvent: 
> PVMFInfoBufferingStart
>    DEBUG/(1233): enter PVOMA1MOTRecognizerPlugin::Recognize
>    DEBUG/(1233): enter PVGetInterface
>    DEBUG/(1233): enter Instance
>    DEBUG/(1233): enter SharedLibraryLookup
>    DEBUG/(1233): enter GetFactoryAndMimeString
>    DEBUG/(1233): PVMFCPMMotPlugInOMA1:SetSourceInitializationData in
>    DEBUG/(1233): sourceURL is
>    DEBUG/(1233): PVMFCPMMotPlugInOMA1:SetSourceInitializationData 
> m_pvfile.Open failed
>    VERBOSE/PlayerDriver(1233): HandleInformationalEvent: 
> PVMFInfoErrorHandlingStart
>    VERBOSE/PlayerDriver(1233): HandleInformationalEvent: type=26 UNHANDLED
>    WARN/MediaPlayer(5088): info/warning (1, 26)
>    INFO/MediaPlayer(5088): Info (1,26)
>    DEBUG/(1233): enter SharedLibraryLookup
>    DEBUG/(1233): enter GetFactoryAndMimeString
>    INFO/WMDRMD(1233):  unload libwmdrmdependency.so
>    VERBOSE/PlayerDriver(1233): CommandCompleted
>    VERBOSE/PlayerDriver(1233): Completed command PLAYER_INIT 
> status=PVMFFailure
>    ERROR/PlayerDriver(1233): Command PLAYER_INIT completed with an error or 
> info PVMFFailure
>    ERROR/MediaPlayer(5088): error (1, -1)
>    ERROR/MediaPlayer(5088): Error (1,-1
>
> Is there a way to get more debug or error information to find out what might 
> be going wrong or what is different?  My error listener just gives me a what 
> and extra of 1 and -1.  I have tried unsuccessfully on devices running 2.1 
> update 1 and 2.2.2.
>
> Thanks for any help.
>
> Regards,
> Julius.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to