mp3 files <=0.34 secs not playing on Droid X using MediaPlayer

by Mark Carter » Sat, 17 Jul 2010 01:14:55 GMT


Sponsored Links
 Getting reports that mp3 files <= 0.34 secs in length, are not played
(or, at least, inaudible) on the Droid X.  Works fine on other devices
I've tried (e.g. Nexus One, Hero, G1)

All files longer than 0.34 secs are working fine. I've tested this
with about 100 files (mixture of short and long) and the correlation
is 100%.

Has anyone else experienced this?

--



mp3 files <=0.34 secs not playing on Droid X using MediaPlayer

by Mark Carter » Sat, 17 Jul 2010 01:18:25 GMT


 Should also mention the file format:

44100Hz, 64kbps, mono




--


Sponsored Links


mp3 files <=0.34 secs not playing on Droid X using MediaPlayer

by Mark Carter » Sat, 17 Jul 2010 01:42:19 GMT


 Comparing the logs of a file that plays and one that doesn't play.
Well, they are the same except the one that does play has these
additional entries:

D/AudioHardwareMot( 7494): AudioStreamOut::wake: disabling SRC
D/AudioHardwareMot( 7494): Output 0x11c48 exiting standby
D/OMX_MP3 ( 7494): MP3DEC_HandleUSNError():3548
IUALG_WARN_PLAYCOMPLETED!
E/ProfileVideoFrameDrops( 7494): PVMediaOutputNodePort :: Early 0
frames :: OnTime 0 frames :: Late 0 frames :: Total 9 frames
E/ProfileVideoFrameDrops( 7494): PVMediaOutputNodePort :: Early
0.000000 % :: OnTime 5245.171875 % :: Late -0.000000 %

So, it appears not even an attempt is made to play the shorter file
(but no error message is given) and the log simply reads:

D/        ( 7494): sourceURL is /sdcard/veryshort.mp3
D/        ( 7494): PVMFCPMMotPlugInOMA1:SetSourceInitializationData
MOT_SVC_drm_openSession not oma drm file
D/TIOMX_CORE( 7494): Found component OMX.TI.MP3.decode with refCount 0
D/OMX_MP3 ( 7494): OMX_ComponentInit():216 Entering OMX_ComponentInit
W/MediaPlayer(20385): info/warning (1, 44)
I/MediaPlayer(20385): Info (1,44)
D/        ( 7494): enter SharedLibraryLookup
D/        ( 7494): enter GetFactoryAndMimeString
D/OMX_MP3 ( 7494): MP3DEC_LCML_Callback():2585 stop ack. received.
stop waiting for sending disable command completed
D/TIOMX_CORE( 7494): Found matching pHandle(0xc24e0) at index 5 with
refCount 1





--



Other Threads

1. Displaying virtual keyboard in a custom View

Hello all!

I am building a custom view and would like to pragmatically display
the default on-screen input method (if any) when certain conditions
are met. Due to some specific features of the view I am not able to
reuse the TextView and EditText views with all the functionality
already present. The idea was to simply display the keyboard and
capture the keypress events in the view.

inputMethodManager = (InputMethodManager) getSystemService
( Context.INPUT_METHOD_SERVICE );
inputMethodManager.showSoftInput ( editorView,
InputMethodManager.SHOW_FORCED );

While the approach seems to work with EditText I was not able to show
the on-screen keyboard ( showInputMethodPicker () seems to work ).
While browsing the TextView source code I came across the following
method:

@Override public InputConnection onCreateInputConnection(EditorInfo
outAttrs)

that (basically) returns

InputConnection ic = new EditableInputConnection(this);

I was not able to find the class EditableInputConnection in the
documentation or in the source code.

I would appreciate any kind of advice on how to show the on screen
keyboard and how to properly register my view so it can receive the
keypress events.

Many Thanks,
Martin S.
--~--~---------~--~----~------------~-------~--~----~

2. Protecting /system/app packages from extraction

Sorry, there isn't any way to do this.  Applications need to be world
readable so that other applications can access their resources -- for
example for a home app to display its icon and label, for intent resolvers
to display icon and label, for an app widget host to inflate the widget from
its resources, for a status bar to display its icon and inflated details
layout, etc.







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

3. Virtual Keyboard on custom input field

4. Edit text change input type in code

5. System Privileges on emulator

6. Error to add WAV file into Android database

7. How to slow down SensorEventListener ?