Android :: Getting Media Player Error While Playing File / Fix It
Mar 9, 2009
I am also getting the same error while playing the media file
E/MemoryHeapBase(31): mmap(fd=20, size=233472) failed (Invalid argument) E/VideoMIO( 31): Error creating frame buffer heap.
View 2 Replies
Aug 31, 2010
Is there any way to get the details of media files that is executed in android(default) media player?
View 3 Replies
View Related
Apr 14, 2010
I just started with creating my own media player application by looking at the code samples given in Android SDK. While I am trying to play a local media file (m.3gp), I am getting IOException error :: error(1,-4).
package com.mediaPlayer;
import java.io.IOException;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;...........
View 1 Replies
View Related
Jun 7, 2010
The tracks in an album playing alphabetically instead of by the track number?
View 3 Replies
View Related
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
Sep 8, 2009
How does the media player put itself in the "Ongoing" group when playing?
View 3 Replies
View Related
Jul 5, 2010
I would like to find an media player that plays videos but when I minimize or multitask to another app I want the videos audio to keep playing like pandora does. The reason for this is bcuz I rip videos off of youtube to mainly listen to the music.
View 2 Replies
View Related
Jul 28, 2010
I have some pretty simple Soundboard applications on the Android Market that work flawless on an LG Ally, the Motorola Droid, and the Nexus One, but I recently received an e-mail from a user with the Motorola DroidX claiming that most of the sounds do not work. I've exchanged a few e-mails with him. He claims the Soundboard is the only application running, and he's double checked to make sure that the Media Volume wasn't set to minimum. I really don't have access to one either to play around with. The application isn't doing anything cosmic to play the sounds. Below is a code snippet. Any insights into what might be causing the hang up are greatly appreciated.
public void play(Sample sample) {
Log.v(TAG, "Playing: " + getString(sample.getButtonTextResId()) + " (" + sample.getSoundResId() + ")");
if (mPlayer != null) { mPlayer.stop(); mPlayer.release();
} MediaPlayer player = MediaPlayer.create(this, sample.getSoundResId());
mPlayer = player; if (player != null) { player.setVolume(1.0f, 1.0f);
player.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
@Override public void onCompletion(MediaPlayer mp) { mp.release();
mPlayer = null; } } ); player.start(); } }
View 1 Replies
View Related
May 17, 2010
I have an application where i play music from media player continuously. I am rotating an ImageView object with RotationAnimation simultaneously while background music is playing. Before music starts playing,the rotation is fine,,but when mediaplayer starts playing music rotation disrupts,and slows down.
View 3 Replies
View Related
Apr 28, 2010
I launch the Media Player to play a mp3 file the usual way:
CODE:...........
Leaving the Media Player using the Back button stops the playback. How can I ensure that the Media Player continues playing.
View 2 Replies
View Related
Nov 4, 2010
In my android game I want to have a rhythm Mediaplayer object and a lead Mediaplayer object playing in sync. However at the moment the rhythm is a slight bit behind the playback of the lead Mediaplayer object. Is there a way I can make it so that both are started at the same time, for instance using Runnables etc?!It's quite crucial that they play in sync with each other as you can imagine!
View 1 Replies
View Related
Feb 5, 2009
I am using mp3 sound in my game (used wav format also) while playing sound I get problem as "obtainBuffer timeout (is the CPU pegged)" and then sound gets played after some time i.e it is not synchronized with the game play.
View 10 Replies
View Related
Sep 1, 2010
Is there any way to get the details of current song played by media player?
View 3 Replies
View Related
Jul 30, 2010
I love my Evo, however the music app will play EVERY song it finds, including my ringtones and YouMail messages. Can I make it just play the songs in my songs folder (and sub-folders) on my SD Card? I only want it to search my songs folder, not the whole phone or the whole SD Card.
View 8 Replies
View Related
Aug 21, 2010
Invoked device native player to play audio file, it opens android native player on top of the application but when selecting to back out or return to the application, device automatically stops playing the current media.
Sample code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"audio/*");
startActivity(intent);
How can I implement so that Device should continue to play audio in the background when selecting to back out or return to the application
View 1 Replies
View Related
Feb 22, 2010
Is there anyway to stop the stock music player on my HTC Hero from playing songs? I have a bluetooth headset and whenever I use the controls on the headset it activates the stock music player instead of the one I downloaded.
View 2 Replies
View Related
Jan 12, 2010
when I'm listening to audio with my headphones through cherry rplayer and then take the headphones out to use the speaker, I don't get any sound...I have to shut down any audio players functions before I get any sound out of the speaker. Not sure if cherry rplayer is the culprit or not. I have also noticed that my media player starts playing by itself...
View 8 Replies
View Related
Aug 21, 2012
I am new to using Android. I am wondering if there is any video (MP4) player that would continue playing the video even when I use the home button to switch to other apps (e.g. check my email etc.) I have a few documentaries/discussions to watch and sometimes minimize the video player to check other information on my phone and the video stops.
Any Video players that continue playing when minimized. I know that the Meridian Player continues playing when the screen is switched off, but it stops if you press the home button.
(I use a Galaxy Nexus with Jelly Bean.)
View 2 Replies
View Related
Sep 12, 2010
I am trying to play media player in android. But after some time it is giving following errors and the songs stop.
09-12 21:15:37.265: ERROR/PlayerDriver(31): Command PLAYER_PREPARE completed with an error or info PVMFErrResource
09-12 21:15:37.275: ERROR/MediaPlayer(333): error (1, -17)
09-12 21:15:37.295: WARN/PlayerDriver(31): PVMFInfoErrorHandlingComplete
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333): Error updating to newly loaded content.................
View 1 Replies
View Related
Dec 22, 2009
I noticed a lot of times when you play a YouTube video,it just doesn't play.Sometimes they do play and I go to switch to HD mode and then a message pops up saying the video can't be played.I thought this was a YouTube issue only,but it also happens with my app Where when I try to watch movie previews and switch to HD.Any suggestions
View 2 Replies
View Related
Mar 25, 2010
I have a MediaPlayer app which seems to be working fairly well for streaming media. However I get error codes in my OnErrorListener every so often and I have no idea what they mean. Can someone explain what the following codes mean and what the appropriate action to take is? Sometimes I get an error after I am already streaming and the stream is still available via my browser.
Codes 1, -1 1, -11 -38, 0
View 2 Replies
View Related
Sep 25, 2010
This is 2010. I refuse to believe that you can only play movies/video files that have .avi, .mp4, .mpg, .mkv file formats by converting. I remember Sony was slow on the uptake when they started the media server streaming which I use on a daily basis at home now.Is there a program that will decode the files as you stream them? Any codecs to install on the Droid X? I have thousands of video files and "converting" is time consuming not to mention creating two video files instead of one to play on devices. Converting is BS and whoever thought "Let's just have the users convert the video files" needs to take a long walk off a short pier.
View 5 Replies
View Related
Feb 12, 2009
Is there any support for avi and other media formats except mp4 and 3gpp? If there is no support may I develop a support through correct the program? Will that be too difficult ?I don't know where to put my hands into first, should I correct programs in opencore first or should I just correct programs in directory frameworks/base/include/ media . I want to have a clear mind how I can achieve my goal, I need a roadmap to guide me how to do it.
I am trying to get familiar with the SDK 1.0 now. another question, my chip is from freescale and it supports hardware codecs of mpeg4, h.263 and h.264, I don't know whether I can change the program or the architecture of mediaplayer to utilize my hardware codecs instead of software codecs provided by android opencore. I once implement an mplayer to my platform, there is problems about sync of audio and video due to the quality of my chips(CPU can support software codecs but is not fast enough to make sure sync of audio and video), So I am worried about when the android is implemented, there would also be the same problem, and for this reason, I am thinking whether I can utilize my hardware codecs for mediaplayer.
View 3 Replies
View Related
Aug 31, 2010
I want to play a alarm on my app so I need to know how to include it and to access the file with the media player?
View 2 Replies
View Related
Feb 15, 2010
We've a mpeg4 source that we would like to play in the media player. Our source is not in a file or on an rtsp server. It is hand coded to generate mpeg4 source on the fly. Imagine the data is coming from an unix pipe stream instead of rtsp or a file. How can I use that stream in media player?
View 1 Replies
View Related
Jan 5, 2010
I just got a Droid yesterday since I took advantage of dropping my Sprint contract without a ETF fee, gonna blow up my HTC Touch Pro later.Feels great, the grass is definitely greener and the abttery life is just BAMAZING.With that said, I was wondering. Isn't there ANY MP3 programs that have a file explorer so I can open certain songs and folders on my micro SD card? Or am I screwed till they release the Coreplayer for Android?
View 2 Replies
View Related
Nov 8, 2010
Do u know any music app which opening .wma files?
View 1 Replies
View Related
Feb 2, 2013
Music Player which should STOP after playing a music file and should NOT Repeat or jump play the next audio file. Option of having Stop after playing a single music file.I know except VLC beta player- which has some hanging problems & needs to be forced quit sometimes (Motorola Phone).
View 1 Replies
View Related
May 19, 2010
Every time someone leaves me a voicemail on my home phone number, VOIP home phone voice mail box sends me the voicemail as a .wav file attachment. When I try to play this .wav file the phone refuses, saying "Sorry, the player does not support this type of audio file".
So, I take it the .wav files cannot be played on Android phones. Has anyone found a workable and simple workaround to this yet?
View 7 Replies
View Related
Oct 14, 2009
I noticed that you can't adjust media volume without first playing media. Like you have to, for example, press the play button before pressing rocker volume in order to adjust media volume or else you'll just be adjusting ringer volume. This is unfortunate since games also use media volume. So if you wonna start up a quick game in a quiet setting, your in trouble if you were listening music before and never turned down/off the media volume. Unless I'm missing something and there is in fact a way to do it?
View 4 Replies
View Related