Android :: Possible Mit Sdk1.6 Audio Decoder To Access Without Using MediaPlayer?

Oct 13, 2009

Is it now possible mit sdk1.6 the audio decoder to access/use without using MediaPlayer ?

I saw : New version of OpenCore

Android 1.6 includes the updated OpenCore 2 media engine, which has:

* Support for OpenMAX encoders* Support for additional audio codecs in AuthorEngine* Improved buffering model supports shared buffers allocated in the decoder. but dont know how!

Android :: Possible mit sdk1.6 audio decoder to access without using MediaPlayer?


Android :: Streaming Audio From URL Using MediaPlayer?

Dec 27, 2009

I've been trying to stream mp3's over http using Android's built in MediaPlayer class. The documentation would suggest to me that this should be as easy as :

MediaPlayer mp = new MediaPlayer();
mp.setDataSource(URL_OF_FILE);
mp.prepare();
mp.start();

However I am getting the following repeatedly. I have tried different URLs as well. Please don't tell me that streaming doesn't work on mp3's.

E/PlayerDriver( 31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported
W/PlayerDriver( 31): PVMFInfoErrorHandlingComplete
E/MediaPlayer( 198): error (1, -4)
E/MediaPlayer( 198): start called in state 0
E/MediaPlayer( 198): error (-38, 0)
E/MediaPlayer( 198): Error (1,-4)
E/MediaPlayer( 198): Error (-38,0)

View 8 Replies View Related

Android :: Audio (MediaPlayer) On (Archos 5 IT)

Apr 27, 2010

Does anyone know the filepath for an Archos? I'm trying to get some media/audio to play, and it just won't find it...

public void onClick(View v1) {
final MediaPlayer mp = new MediaPlayer();
try {
mp.setDataSource("ARCHOS5:/Music/manowar.mp3");
mp.start();
Toast.makeText(Textbox.this, "Working", Toast.LENGTH_LONG).show();
mp.setLooping(true);
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();............................

View 1 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 To Play Live Streaming Audio

Nov 8, 2010

In my music app, i would like to play live streaming like radio broadcasting with mediaplayer as Mediaplayer mp = new Mediaplayer(); mp.setDataSource(LiveStreamingURL); mp.prepare(); mp.start(); but after playing for few seconds it is stopped. I dont know how to overcome it. Give me your suggestions for this.

View 3 Replies View Related

Android :: How To Implement An Audio Player - Using MediaPlayer And MediaController

Feb 8, 2010

I want to create an Android application that is a client for an Internet radio station. And I want it look native to Android? But im confused with Android API logic and documentation. What i've got is that I need MediaPlayer and MediaController classes. Am I right, and is there any good example of AUDIO player for Android?

Especially, I'm very interested how to use MediaPlayer and MediaController classes together.

UPD:

Finally I've got the code, that does exactly what I want:

CODE:..............

View 1 Replies View Related

Android :: Correctly Set MediaPlayer Audio Stream Type

Aug 21, 2010

I'm trying to create a way to adjust volume settings for each of the different streams (media, notification, ringtone, etc) and have a way to preview the output sound level of each stream. I believe I have the correct implementation, but when I set the output stream type, there is no sound that plays.

Here is the code that correctly plays the user's selected alarm sound:

CODE:.................

That commented out line is what is causing me problems. I would like to hear the alarm sound at the volume levels of the different audio streams, but when I include that line for STREAM_ALARM or any other audio stream, no sound at all plays.

View 1 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 :: MediaPlayer Provides Wrong Duration On Audio Streaming

May 27, 2010

I am having the following problem: I am using Android's MediaPlayer to play an mp3 through an HTTP connection. The audio is played correctly, but the MediaPlayer returns an incorrect duration (calling mediaPlayer.getDuration() ). Depending on the mp3 the duration is either shorter or longer. The code that plays the audio is the following:

mediaPlayer = new MediaPlayer(); mediaPlayer.setOnCompletionListener(this); mediaPlayer.setOnErrorListener(this); mediaPlayer.setOnPreparedListener(this); mediaPlayer.setOnBufferingUpdateListener(this); mediaPlayer.setDataSource("a valid URL"); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.prepareAsync();............................

View 2 Replies View Related

Android :: Native MediaPlayer Plays Audio But Not Video - 3gp Format

Jun 16, 2009

I have the following native source code that is supposed to display video. It plays 3gp file ok and I can hear the audio, but the video is not shown.

CODE:..............

View 4 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 :: 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 :: APK Decoder / Decompiler Available Around?

Jul 2, 2010

I know it is not right to do this, but is there any APK decoder/decompiler available around?

View 1 Replies View Related

Android :: Way To Access Audio Of Call Manager?

Sep 19, 2010

I would like to access the audio that my call manager captures while a call is active.
I would like to access it before it is transmitted to the other party.

View 1 Replies View Related

Android :: Access A URI Such As Content://drm/audio/2 - Ringtone

Jul 5, 2009

I am trying to play a ringtone that is specified as the Default system ringtone. Unfortunately when i get the actual URI I get the above (content://drm/audio/2) and then when I try to play it, I hear the fallback ringtone - the one that you'd hear if the default was unavailable.

Ringtones appear to get this URI when downloaded through sites such as Myxer and the like.

Now it seems that when the default ringtone is on the SD card under a folder called 'ringtones' I do not run into this problem.

I have tried to add the line:

<uses-permission android:name="android.permission.ACCESS_DRM" />

...to the manifest but that doesn't seem to work either.

If anyone has an idea as how I would be able to play this ringtone, I would be eternally grateful! I have been researching this and I can't seem to find anywhere any documentation on how to do this.

View 8 Replies View Related

Android :: Audio Record Using Droid NDK / Access And Use It?

Jul 21, 2010

I try to record audio using android ndk. people say I can use "frameworks/base/media/libmedia/AudioRecord.cpp". but it is in kernel. how can I access and use it?

View 2 Replies View Related

Android :: Base64 Decoder In API Level 7

Jun 25, 2010

How to decode a base64 encoded string to byte array on Android API level 7?

Can it be done using any standard packages of Java?

Should i copy the source code from google search results?

Should i re-implement encoder and decoder according to RFC?

API level 8 has util package android.util.Base64 that does this, but i have to do development based on API level 7.

View 2 Replies View Related

HTC EVO 4G :: Can Android Apps Share Access To Audio Output

Sep 28, 2010

Can android apps share access to the audio output? I sometimes use Maps Navigation, which will give audible turn by turn instructions. I plug the EVO to my car stero using a patch cord so that I hear the instructions over my radio.

However, if I'm using another application that outputs audio, like Pandora or the music player, they go silent as soon as Maps speaks an instruction.

What I would like is for the apps to be able to share the audio output with some kind of priority set, so that Pandora would pause momentarily while Maps spoke an instruction and then resume.

Is that possible?

View 4 Replies View Related

Android :: Decoder - Decode Returned False

Mar 29, 2010

In my application during downloading of images, for some of the images i got the error like

D/skia (374): --- decoder->decode returned false

View 2 Replies View Related

Android :: SDK1.5 - AsyncTask ?

Apr 10, 2010

My program was going wonderfully. It is a search engine that connects to our back end database by sending Get requests to our server and displays the results. I've managed to get it to query my server and back end database, return results using JSON, return the first headers and pour them into a ListView widget in the main activity. Then when the user clicks on one of the headers it then sends another query from a sub-activity. It then parse those results and format them neatly into a WebView embedded into the sub-activity.

All this works perfectly. That is until I come to make a second query on the main activity. Listed below is my stack trace of where the error happens. I think I know why this is happening, but obviously not clearly understanding it.

I think it is because I am trying to call AsyncTask again. I remember reading that the AT can only be called once, but I presumed quite wrongly that this meant you can not do concurrent calls. I thought that once an AT had done it's task it was cleared and then could be called again, but this does not seem to be the case. Is it because of AT attempts at more than one call ? If so, would I be better changing that section into a Handler with a Runnable on the main activity?

-----Stack Trace----

CODE:.....................

View 3 Replies View Related

Android :: Simulating GPS On SDK1.5 ?

May 7, 2009

I'm writing a software and using GPS simulator on SDK1.5 I use an AVD device by command : android create avd --target 2 --name AVD_15 My problem is when i change location up to the third times, my program can not receive this change. I do not understand but I can be sure that my program worked well on SDK 1.1 Do you know what happens in SDK1.5?

View 3 Replies View Related

Android :: App Widget - Sdk1.5

May 2, 2009

app widget problem(sdk1.5)

CODE:......................

View 3 Replies View Related

Android :: Can Maps.apk In SDK1.0 Run On 1.0

Apr 2, 2009

I found that Google Maps didn't exist in Android 1.0 release version. So I tried to put Maps.apk/GoogleApps.apk/Street.apk into /system/app but it didn't run. So I'd like to kown if Maps.apk from SDK 1.0 can run on Android 1.0 ? What modification should I do?

View 2 Replies View Related

Android :: Microphone Access / Audio Processing And Recording Simultaneously

Mar 8, 2010

Is it only possible for one object to access the microphone at a time? That is, could I simultaneously use an AudioRecord to do some audio processing and use a MediaRecorder to record the incoming audio?

View 2 Replies View Related

Android :: Method To Access Digital Output Of Audio Codec

Apr 27, 2009

Is there a method to access the digital output of the audio codec without first storing it into a file, a streaming output?

View 5 Replies View Related

Android :: BitmapFactory: Decoder - Decode Returned False

Oct 27, 2009

For my current application I collect images from different "event providers" in Spain.

However, when downloading images from salir.com I get the following logcat output: 13970 Gallery_Activity

I Fetching image 2/8 URL: http://media.salir.com/_images_/verticales/a/0/1/0/2540-los_inmortale... 13970 ServiceHttpRequest

I Image [url] fetched in [146ms] 13970 skia D --- decoder->decode returned false

Searching for that error message didn't provide much useful results.

View 4 Replies View Related

Android :: New AlertDialog Of Sdk1.1_r1 ?

Feb 13, 2009

Problem about the new AlertDialog of sdk1.1_r1

View 3 Replies View Related

Android :: Using SDK1.0 And Trying To Load Google Map

May 28, 2009

I am using android SDK1.0 and trying to load google map. I am able to browse maps.google.com site from android emulator so I feel internet may not be the problem. I also have obtained the Map API key as mentioned in the the document.

My AndroidManifest.xml file looks like this:

CODE:................

Java Codes:

CODE:.........................

View 2 Replies View Related

Android :: Skia Decoder Fails To Decode Remote Stream / What To Do?

May 7, 2010

I am trying to open a remote Stream of a JPEG image and convert it into a Bitmap object code...
The decoder returns null and in the logs I get the following message:

DEBUG/skia(xxxx): --- decoder->decode returned false

Note:
1. the content length is non-zero and content type is image/jpeg
2. When I open the URL in browser I can see the image.

What is that I am missing here?

View 1 Replies View Related

Android :: Sdk1.5 - Where To Find Sqlite Db In System

Sep 23, 2009

Am creating the Android application in that application i created one DB and querying the db values , its working fine. but i need to know where the SQLITE Db is stored in my system.

View 3 Replies View Related







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