Android :: Mp3 Files <=0.34 Secs Not Playing On Droid X Using MediaPlayer

Jul 16, 2010

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%.

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


Android :: MediaPlayer Not Playing Music Track / Why Is This?

Aug 9, 2010

I have followed the steps to create my media player object but I cant understand why it is not playing the music track. I used the following code...

but no sound is playing through the emulator, and furthermore when i check the method mp.isPlaying() it returns false. What have I missed?

View 2 Replies View Related

Android :: Playing Default Ringtone With SoundPool Or MediaPlayer

Oct 31, 2010

How do I get the default ringtone to play? I've tried using SoundPool (preferred method) and MediaPlayer to play it but I'm getting nowhere. I've done so many dumb things, I'll just include the last fail. In the following snippet: String ringtone = Settings.System.DEFAULT_RINGTONE_URI.getPath(); SoundPool ringPhone = new SoundPool(1, AudioManager.STREAM_RING, 0); int soundID = ringPhone.load Settings.System.DEFAULT_RINGTONE_URI.getPath(), 1); ringPhone.play(soundID, 0.99f, 0.99f, 1, 0, 1.0f);

loads but plays nothing. When I display Settings.System.DEFAULT_RINGTONE_URI.getPath(), it's returning /system/ ringtone

View 2 Replies View Related

Android :: Playing Audio Stream Not Working Using MediaPlayer

Nov 27, 2009

I am trying to make a very simple radio player for Android and I cannot get the audio streaming to work. In my latest attempt it plays for about 1 second and stops for some streams and it doesnt work at all for some other streams. Logcat doesn't give much useful information to me. I am testing on HTC Hero (Android 1.5).

If I hook the completion and buffer events I see the audio gets a complete event but it keeps buffering. Is there anything wrong with the code below? Should I be able to stream the the audio streams below? Is there a complete example somewhere of a working radio streaming?................

View 5 Replies View Related

Android :: MediaPlayer Stops Playing When Streaming Over 3G On The Nexus One

Apr 23, 2010

I am maintaining a streaming music player, and I'm running into a similar problem as http://www.last.fm/group/Last.fm+Android/forum/114391/_/593575

My player stop after roughly 1-2 minutes, and there are no log messages except for "I/AudioHardwareQSD( 52): AudioHardware pcm playback is going to standby" just after the playback stops.

This happens when I run it on the Nexus One over 3G. It does not happen over Wifi, and it does not happen on my HTC Hero with android 1.5 over 3G.

Do you guys have any hints on how to debug this? Is it e.g. possible to monitor the memory available to the media player object?

View 5 Replies View Related

Android :: Noisy Music Sound While Playing (MediaPlayer)?

Jul 19, 2010

is there a way to find the 'noise produced' by a currently playing sound (MediaPlayer) -Like in many music editor software you import a song and it does a graphical layout of the song -like a graph with it higher up at louder bits. Hard to explain. But there must be a way to do this on android...

View 1 Replies View Related

Android :: Mediaplayer - Stop Button And That Stops Audio From Playing

Nov 18, 2009

I have a activity which is called from another activity as an intent... This activity loads and starts playing a audio file. All is good - that much works. The activity also has a "stop" button and that stops the audio from playing - that is also fine.

But how do I stop the file from playing if the user uses the back button to leave the activity without clicking on the "Stop" button?

View 3 Replies View Related

Android :: Need To Use MediaPlayer - Multiple Sound Files

Mar 10, 2010

I need to use MediaPlayer to play some sounds, as they were too large in size for the SoundPool class.

The constructor takes a single sound file. I have, potentially, around 20 files that I want to play, randomly and instantly, like sounds in a game.

Do I have to create a new MediaPlayer object for each sound? i.e...

MediaPlayer mp1 = MediaPlayer.create(context, R.raw.sound1); MediaPlayer mp2 = MediaPlayer.create(context, R.raw.sound2); MediaPlayer mp3 = MediaPlayer.create(context, R.raw.sound3); MediaPlayer mp4 = MediaPlayer.create(context, R.raw.sound4);

That seems expensive...

View 6 Replies View Related

Android :: Audio Files Return 0 From MediaPlayer.getDuration()

Apr 8, 2009

Some audio files return 0 from MediaPlayer.getDuration(), even though they're perfectly valid files that play ok and that players on Windows can find the duration of. There seem to be two different cases here: certain file types such as .wma and .wav always return 0 duration, and others only do so sometimes. I haven't been able to find any pattern in the latter case, but it does seem consistent per file. The music player displays 0:00 duration for these, so it's not just my code.

View 3 Replies View Related

Android :: How To Handle Alarm Clock & Alarm Reciever Broad Casting To Pause Playing Mediaplayer

Jun 22, 2010

I am using service class to play the mp3 file using media player object on Android platform, problem is, i am not able to handle the alarm interruption.When any previous set alarm clock reach to it's alarm time it starts to play in parallel with mp3.I want that mp3 should become paused and after alarm it again start to play,same thing should happen with snooze.

View 1 Replies View Related

Motorola Droid : Trouble Playing My Own Music Files On 2.2

Aug 23, 2010

first the M4A file issues: Since i have been upgraded to 2.2, I can no longer play m4a files NOR files imported into iTunes from my own cd and then put on my phone. I get an error saying, this file type is not supported. Obviously the error is self describing by why did Android stop supporting these file. What am I supposed to do now? if these files are DRM free why would Android have a problem playing them. do they want to push their own music service. If so, thats fine, but thats not even out yet. Most of my searches on this topic come up unanswered. ALSO, when I go to play a song in mSpot, it starts to download and then it says "There was an error during song playback" I can play the song on the mspot website, but not through the app. Anyone else a little peeved by this update for these reasons?

View 6 Replies View Related

Android :: MediaPlayer.start - Doesnot Work Fine After Calling MediaPlayer.seekTo - 0

Apr 27, 2009

I have a requirement to play several sounds many times in my game so instead of creating the MediaPlayer again and again I have called mp.seekTo(0) in onCompletion(mp) so that it will restart. Sometimes the sound is not audible from the device when I call mp.start () after setting mp.seekTo(0); but the player calls onCompletion() without playing any sound, this is observed randomly on most of the sounds

My sounds are of short duration mostly less than a second.

I am using a separate MediaPlayer for each sound (as I need this) -

There are almost 28 sounds in my game so i will be creating 28 MediaPlayers.

Below is the attached code for player

Also If I try to play many sounds one after the other in a short period of time i get an error saying "no more track names available". can u tell Why this is happening...?

check the below code:

CODE:........

View 9 Replies View Related

Android :: Playing Multiple Audio Files

Oct 1, 2010

I think I should know this, but my mind has gone blank. I'm making an app that has a few hundred small sound files and I want it to play a certain file dependent on a String I pass to the function. Where I hit the brick wall is getting the resId of the sound file.

View 1 Replies View Related

Android :: Playing (M3U Files) With Media Player

Jan 8, 2010

I'm trying to play a playlist I get using the MediaStore provider. However, when I try playing a playlist nothing happens. Can a MediaPlayer play a playlist (m3u file) and do I need to set the first track to play? This is my test code in the onCreate() method:

Uri uri = MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI;
if(uri == null) { Log.e("Uri = null");
} String[] projection = new String[] { MediaStore.Audio.Playlists._ID,
MediaStore.Audio.Playlists.NAME, MediaStore.Audio.Playlists.DATA };
Cursor c = managedQuery(uri, projection, null, null, null);
if(c == null) { Toast.makeText(getApplicationContext(),
R.string.alarm_tone_picker_error, Toast.LENGTH_LONG).show();
return; } if(!c.moveToFirst()) { c.close();
Toast.makeText(getApplicationContext(), R.string.alarm_tone_picker_no_music,
Toast.LENGTH_LONG).show(); return; } c.moveToFirst(); try {
MediaPlayer player = new MediaPlayer(); player.setDataSource(c.getString(2));
player.start(); } catch(Exception e) { e.printStackTrace(); }
I have turned on every volume stream.

View 1 Replies View Related

Android :: Support Receiver Mode For Playing Audio Files?

Nov 16, 2010

I have a requirement where I need to play an audio file in receiver mode(earpiece).I am not sure whether higher versions of Android SDK supports this receiver mode.I went through some links which said about 1.5/1.6 having changes in these Audio APIs and hence not sure.

View 1 Replies View Related

Android :: Bad Sound Quality When Recording / Playing Audio Files

Oct 16, 2010

Hey, I have a problem with android programing when I try to record and then play the file that was just recored. I can both record and play the sound but the quality stinks. Its not just bad is really hard to listen to and sound abit like its a computer generated voice. I use the andriod SDK-emulator. The code that sets up the recording looks like this;

MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();

And the code playing the file later looks like this;
MediaPlayer mp = new MediaPlayer(); mp.reset();
mp.setDataSource(path); mp.prepare(); mp.start();
I don't know what part that makes the audio file sound really bad or if its just the emulator that makes it bad and that it would work on a real phone.

View 2 Replies View Related

Android : Handle Runtime Exception On Playing Audio Files?

Mar 15, 2010

I have a button that plays an audio file on its click listener. If the button is clicked again and again while the audio file is being played then the app crashes. What's the solution?

Here is some code for reference...

View 1 Replies View Related

Jelly Bean :: Android 4.1.1 - Playing Music Files In Order

Nov 24, 2013

I've come to the conclusion, after trying several different file managers, music players and playlist organisers, that it simply isn't possible to choose the order in which music will be played. I have two folders of mp3 files, both of which contain track numbers on every file, but, when I try to create a playlist, it just ignores the track numbers and plays the files in alphabetical order. I have read several files explaining how to edit the order of a playlist all of which refer to options which don't exist on my phone.

It's running android 4.1.1

This seems such a basic requirement for a music player that it seems impossible that it's been overlooked and yet that seems to be the case.

View 5 Replies View Related

General :: Samsung Galaxy S3 Says 100% Battery Then In 5 Secs Its 20%

Dec 3, 2013

SAMSUNG GALAXY S3 it says its 100% battery then in 5 secs its 20%

View 2 Replies View Related

LG Eve :: Tried Playing Any Divx Files On Eve?

Jan 3, 2010

Has anyone out there tried playing any divx files on their eve?Ive registered my phone with the code given for the vod.divx.com website and played the video on my phone with no problem, but I cant seem to play any files on my phone?Ive tried several different formats and nata.Just wondering if anyone else is having similar difficulties.

View 7 Replies View Related

HTC EVO 4G :: Playing Wav Files From Voicemails?

Jun 8, 2010

I get my Verizon fios voicemails emailed to my exchange account / phone, I also get voicemails from my job emailed to my phone. I am getting a "cannot play audio file" error message on either of these two.Is there something else i can use to make this work?

View 3 Replies View Related

HTC EVO 4G :: What Program To Be Used For Playing Different Sound Files?

Oct 14, 2010

What program do you use to play these (MP4, WMV, MOV) files on your Evo? I can't they them to play.

View 3 Replies View Related

HTC EVO 4G : Audio From Mp4 Video Files Not Playing

Nov 23, 2010

Ok so I see a lot of people saying they are having problems with video playback when importing from their SD Card but Im having the opposite problem.

I just switched over from the Metro PCS Samsung Code which is a Windows 6 phone to EVO and I put my SD Card in my EVO. All my music files play and the mp4 video files play but the audio from the mp4 video files dont. Does anyone have advice on how to fix this?

View 9 Replies View Related

HTC EVO 4G :: Screen Timeout Setting - Keeps Reverting Back To The Default 30 Secs

Jul 8, 2010

I have my Screen Timeout setting set to 2 mins. Menu>Settings>Sound&Display>Screen Timeout. but it keeps reverting back to the default 30 secs. Any ideas on how to keep it set at 2 mins?

View 6 Replies View Related

Samsung Captivate :: Divx Files Not Playing

Jul 24, 2010

I tried to play the files but none of them work except for a couple that is in mp4 format. The rest is in divx. Divx is one if thee supported format for the captivate, but it doesn't work.I downloaded the videos from here: ( Super amoled videos)

View 5 Replies View Related

Samsung Moment :: Any Application For Playing MP4 Files?

Apr 8, 2010

Is there an app that plays mp4 files?

View 7 Replies View Related

HTC EVO 4G : Stock Music App Playing .wav Files After Froyo

Aug 4, 2010

I have my Vonage home line set up to email me with a wav file when I get a new voicemail at home. Before the upgrade the stock music player would play the wav file. After upgrading, it says "unable to play this type of audio file"

View 7 Replies View Related

HTC Desire :: Playing DVDs - Convert All Separate VOB Files?

Sep 13, 2010

I have a load of DVDs and am going on holiday with my HTC Desire. I want to be able to play them on the phone, but the file format is all in VOB files. I tried to convert them to MP4 with a free converter, but it stalled. Are they protected by something, and do I need to convert all the separate VOB files? Is there a dummies guide of how to do this?

View 7 Replies View Related

Sony Ericsson Xperia X10 :: Playing Wmv Media Files

Sep 13, 2010

This time I wanted to play some media , a WMV file, from FOXDIGITALCOPY, and it seems Xperia doesnt support it - atleast that's what the FOXDIGITALCOPY software tells me when I tried to sync up the media from my PC.

Also, this file doesnt even show up on the mediascape screen though I copied into the videos folder where other videos are saved.

I tried to play a more smaller and simpler file - the wildlife HD video sample from Windows - which is again a WMV file.

This time, Xperia tries to play it, but the video only comes up as stills while the audio plays as normal.

View 1 Replies View Related

General :: Battery Life Would Be Affected By Playing Large Music Files?

Mar 23, 2012

I've been watching my battery life recently as I hate my phone dying during the middle of the day and was wondering if battery life would be affected by playing large music files?

I listen to spotify quite a bit and haven't really noticed my battery severely affected by playing music for a long time but this week I was listening to a podcast which was 160MB (2Hr music podcast if you were wondering) and my battery life plummeted. This would also correlate then to why my battery life plummets when listening to other large podcasts.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved