[android-developers] MediaPlayer getCurrentPosition accuracy

2014-11-02 Thread Stefan Alder
I need to synchronize events to an mp4/aac file. I'm using MediaPlayer for playback and checking elapsed time from start in order to determine when it is time for successive events. I also periodically synchronize the elapsed time with MediaPlayer getCurrentPosition. From what I'm seeing,

[android-developers] MediaPlayer makes frame rate jump in my animations when loop

2014-07-21 Thread saex
I have a game that shows some animations onscreen and one MediaPlayer playing with infinite loop the background music, and i am seeing frame rate jumps when the song ends and start a loop. Why is this happening? MediaPlayer is not efficient in the loop? Can the frame rate jump be avoided?

[android-developers] MediaPlayer onCompletion is not being called accurately

2013-06-23 Thread Raneez
In my app i have created an audio player (only WAV files) using MediaPlayerhttp://developer.android.com/reference/android/media/MediaPlayer.htmlAPI. But the player doesn't give callback to onCompletion Listener everytime. Sometimes it gives callback but not everytime. I am doing some

Re: [android-developers] MediaPlayer does not play ringtone when activity started from locked screen.

2013-04-19 Thread Krishna Prasad
Did you set Wake Lock Permission in manifest? On Thu, Apr 18, 2013 at 5:30 AM, Inn0vative1 john.warm...@gmail.com wrote: I am writing an alarm (kinda) app, which registers a broadcast intent with AlarmManager with the RTC_WAKEUP flag, to go off at a specified time. Works... When the

[android-developers] MediaPlayer does not play ringtone when activity started from locked screen.

2013-04-17 Thread Inn0vative1
I am writing an alarm (kinda) app, which registers a broadcast intent with AlarmManager with the RTC_WAKEUP flag, to go off at a specified time. Works... When the broadcast is received, the receiver starts an activity that plays a ringtone with MediaPlayer using the STREAM_ALARM stream, and

[android-developers] MediaPlayer suddenly stopped working in Android 4.2

2013-02-14 Thread Brill Pappin
I've been working on an app that plays MP3 files and have started with out with the lowest supported android version and working upward toward JB. For some reason the MediaPlayer starts generating an error in Android 4.2 when it has been working just fine until now. Nobody seems to know what

[android-developers] MediaPlayer getCurrentPosition and getDuration ANR on Samsung Galaxy SIII

2013-01-30 Thread Hedami
I have a music app that received ANR reports from 2 users who both have Samsung Galaxy SIII devices (running Jellybean 4.1). The app is locking up when calling the MediaPlayer.getCurrentPosition and MediaPlayer.getDuration methods. Today I noticed that the Google Play Music app was updated

[android-developers] MediaPlayer setVolume() Left/Right Sound Channels

2013-01-07 Thread Ivanov
Such Problem: I have video file recorded with two sound channels. I have tried to switch off left sound channel by this code: Code: Videoview vv; ... vv.setOnPreparedListener(new OnPreparedListener() { @Overridepublic void onPrepared(MediaPlayer mp)

[android-developers] MediaPlayer race condition of pause/PlaybackCompleted?

2012-12-24 Thread Tamás Kovács
The official documentation about pause(): pause() Valid states: {Started, Paused} Invalid states: {Idle, Initialized, Prepared, Stopped, PlaybackCompleted, Error} Calling this method in an invalid state transfers the object to the Error state. How can I be safe when doing this: if

[android-developers] MediaPlayer video not showing

2012-11-28 Thread Davide Moriello
hallo everyone, I have to play a video in my android app but I have some problems. I hear the audio but I don't see any video. The code is this: This is where the surface is created and the game starts. [...] public void surfaceCreated(SurfaceHolder holder) { level.playerholder = holder;

[android-developers] MediaPlayer video not showing

2012-11-28 Thread Davide Moriello
Hello everyone, I have this stupid problem with playing a video on my app (game). It's very easy. Just don't work. I'm 100% sure it's not the video codec because I have tried with a video that should work 100% sure. Uri srcPath = null; switch(startVideo){ case 1: srcPath

[android-developers] Mediaplayer and localSocket

2012-08-31 Thread Herc
Hello All, I want to play a video stream using a local Socket. Does somebody knows if that is possible ? When I start the MediaPlayer I get E/MediaPlayerService( 95): offset error E/MediaPlayer( 2552): Unable to to create media player V/VideoReceiver( 2552): java.io.IOException:

[android-developers] MediaPlayer playback of progressive download M4A/MP4 files, no support?

2012-08-29 Thread MnemonicMe
I'm currently writing a feasibility study where one of many questions to answer regards how to create an Android app that plays audio retrieved by progressive download. The company I'm working for hosts loads of audio files in the form of talk radio, both in MP3 and M4A (AAC) formats. We've

Re: [android-developers] MediaPlayer pause on loop

2012-08-16 Thread johnsin
Conversion to OGG didn't work for me.. so I am in the same boat as you.. Did anyone get anywhere with this? On Tuesday, May 11, 2010 5:35:55 AM UTC-7, Jason wrote: Hi all, I am having an issue with a looping audio file using MediaPlayer. I am developing a realtime game and have a 100K

Re: [android-developers] MediaPlayer pause on loop

2012-08-16 Thread bob
Maybe try starting the audio in a background thread? On Thursday, August 16, 2012 10:08:05 PM UTC-5, johnsin wrote: Conversion to OGG didn't work for me.. so I am in the same boat as you.. Did anyone get anywhere with this? On Tuesday, May 11, 2010 5:35:55 AM UTC-7, Jason wrote: Hi all,

[android-developers] MediaPlayer setVolume broken on some ICS devices?

2012-06-26 Thread mot12
Hi, I have been using the MediaPlayer for years without issues, controlling the volume via setVolume directly rather than setting the stream volume to allow for much finer control. Recently, I get reports that the volume always plays at 100% for MP3 files while OGG files are unaffected. The

[android-developers] MediaPlayer pause denied

2012-06-19 Thread mdu
Hello, I'm working with video in my current android development. I have a VideoView, and have implemented custom controls for it (a fullscreen toggle button and a play/pause button). The VideoView plays a rtsp live stream. My question is related to the play/pause functionality. When the video

[android-developers] MediaPlayer speed control (multiply or divide with 2 )

2012-05-06 Thread Dominum018
Hi, I need to play large audio files (m4b audio books, file is around 100MB) and I need to implement speed control, to user can multiply speed by 2 or to make to go slower 2 times. Does MediaPlayer supports this i any way ? I know how to achieve this with SoundPool but in documentation stays that

[android-developers] MediaPlayer buffering in Gingerbread

2012-04-26 Thread Ultraman69
I did implement an Activity that plays a stream from an external URL. I tried using the MediaPlayer based on the sample in the Androïd SDKhttp://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Audio.html. Works fine with 2.1, not very well in

[android-developers] MediaPlayer Prepare failed: status=0x1

2012-04-26 Thread SH
Hi Android geeks. I am having a practice writing a little audio player. The app connect to http server to download mp3 files(not audio streaming). After downloading, it player the file using mediaplayer. But I tried to play it, error like title happens. Below is some pieces of my code: public

[android-developers] MediaPlayer speed playback

2012-04-16 Thread SH
Hi all. I would like to implement audio file player using MediaPlayer. I wanna have multi-speed plack. I can't find API about multi speed playback. SoundPool class has that, but I won't use it. Audio players I have downloaded from the market have multi-speed playback. So I think that there is

[android-developers] Mediaplayer Close and Reopen Http connection

2012-04-12 Thread Maypeur
Hi ! I'm using a MediaPlayer on android 4.0.3 to streaming a mp3 music. But this mediaplayer lost the connection and reopen a newone with a range byte. It doing it for every music. - It's happening with 3G and Wifi connection here the logcat : We can see the readcomplete with status 4 and

[android-developers] MediaPlayer setDisplay

2012-02-27 Thread Cliffus
Hi we're creating an application for a radio station. The concept of the application is a little bit different than a normal radio application. When the user hits the play button, a video starts playing (webcam) and with the audio in the background. To accomplish this, a have a background service

[android-developers] MediaPlayer - playing audio streaming

2012-02-19 Thread IS SOA
can anybody point me to the blog or website where i can find the sample code for playing audio file streaming using android mediaplayer? i have been looking but never get any luck. i am looking to display as control: Previous Play/Pause Next buttons and with seeker. any help? -- You received

Re: [android-developers] MediaPlayer - playing audio streaming

2012-02-19 Thread Jim Graham
On Sun, Feb 19, 2012 at 01:14:45PM -0500, IS SOA wrote: can anybody point me to the blog or website where i can find the sample code for playing audio file streaming using android mediaplayer? i have been looking but never get any luck. http://develooer.android.com/guide/index.html. If you

Re: [android-developers] MediaPlayer - playing audio streaming

2012-02-19 Thread IS SOA
the link does not work... i dont need help in learning how to search but probably you havent get what i am asking in my questions, never mind. On Sun, Feb 19, 2012 at 1:42 PM, Jim Graham spooky1...@gmail.com wrote: On Sun, Feb 19, 2012 at 01:14:45PM -0500, IS SOA wrote: can anybody point me

Re: [android-developers] MediaPlayer - playing audio streaming

2012-02-19 Thread Jim Graham
On Sun, Feb 19, 2012 at 06:29:38PM -0500, IS SOA wrote: the link does not work... i dont need help in learning how to search but probably you havent get what i am asking in my questions, never mind. You asked for sample code. I showed you where you will find your sample code (on the developers

Re: [android-developers] MediaPlayer - playing audio streaming

2012-02-19 Thread Jim Graham
On Sun, Feb 19, 2012 at 06:29:38PM -0500, IS SOA wrote: the link does not work UPDATE: I now see that I did make a typo in the link (but then, you should already have been to the developers guide so many times you don't NEED someone to post the link for you, so, we'll share the blame on that

[android-developers] MediaPlayer playing the wrong media...

2012-01-12 Thread Simon
I have a problem with MediaPlayer - I have 4 MP3 files in my res/raw/ folder, and when I build the project, I see 4 different resource id's in R.raw ... public static final class raw { public static final int alarm_1=0x7f05; public static final int

[android-developers] MediaPlayer setLooping audio gap bug

2011-12-21 Thread csyperski
I am having many users report that the there are gaps in the MediaPlayer's setLooping function where the loop isn't seamless. There is an example and details to the issues here: http://code.google.com/p/android/issues/detail?id=18756 Does anyone know of a work around that doesn't require

[android-developers] MediaPlayer HTTP streaming buffering: any settings?

2011-12-11 Thread port443
Hello, I'm developing an app which plays MP3 streams over HTTP. MediaPlayer seems to suit this task great, except one thing: pre- buffering delay. It takes 2-3 minutes from setting up to actual audio being output. The stream is narrow: 16kbps; if I use wider stream, delay becomes shorter, so this

[android-developers] MediaPlayer sound heard, screen blank hardware accelerated

2011-11-18 Thread New Developer
Hi all, No matter if I build the surfaceView dynamically or through a layout.xml because I have hardwareAccerlerated=true in my manifest I get a black window and hear the audio of the video when played video_view = new SurfaceView(ctx); screen.addView(video_view, new

Re: [android-developers] MediaPlayer sound heard, screen blank hardware accelerated

2011-11-18 Thread New Developer
An update If I click on a spinner located on the screen, then the video suddenly appears behind the spinner drop down but when I close the spinner drop down the video disappears again not sure if this helps ? On 11/18/2011 09:31 AM, New Developer wrote: Hi all, No matter if I build the

[android-developers] MediaPlayer Error (-38, 0)

2011-09-30 Thread Chad Schultz
Is there a documented list of MediaPlayer error codes anywhere? That would be very helpful. I keep getting (-38, 0) when trying to switch streams. Since I'm stopping the MediaPlayer, resetting it, setting the new URL and preparing it, I shouldn't be getting errors--especially since each URL works

[android-developers] MediaPlayer Player Question

2011-09-03 Thread dani maoz
Hi I have a question regarding Video/Audio Playback 1. Is there a way to configure buffer size 2. Is there a way to disable buffering? 3. Can the player act like a streamer. 4. Is there a YUV player application in Android Regards -- You received this message because you are subscribed to the

[android-developers] MediaPlayer: setDataSource failed (streaming)

2011-08-16 Thread Dmitry Kazakov
Hi there. I write Android app and I want to playing music from a remote URL via HTTP streaming. In official tutorial is showed this code: String url = http://;; // your URL here MediaPlayer mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);

[android-developers] MediaPlayer - mp3 audio stream Nexus Devices vs others

2011-07-17 Thread Julius Spencer
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);

[android-developers] MediaPlayer and SurfaceTexture in Android 3.0/3.1

2011-07-14 Thread cw72
I need to play a video image stream onto an OpenGL texture because in Android 3.0 rendering a translucent GLSurfaceView over a VideoView is now far too slow, whereas it was previously OK in Android 2.2 SurfaceTexture seems to be how it now supposed to work, and it mentions in the SDK docs The

[android-developers] MediaPlayer - Streaming

2011-07-08 Thread Thanh Le Cong
Hello Everybody, I want to use MediaPlayer play a file mp3 or video with Streaming. I have code: try { String path = http://codpro.tk/test.mp3;; mediaPlayer = new MediaPlayer(); mediaPlayer.setDataSource(path);

[android-developers] Mediaplayer 's setOnCompletionListener is not working

2011-07-05 Thread gaurav gupta
Hi Guys, m using service to play a audio file in background. This is my PreviewServices class . package com.hungama.myplay.activity; import java.io.IOException; import com.hungama.myplay.db.DBManager; import com.hungama.myplay.model.DataManager; import android.app.Service; import

[android-developers] MediaPlayer and IllegalStateException

2011-06-30 Thread John-Z80
I've try to copy a very small and easy sample of using MediaPlayer (for example in http://developer.android.com/guide/topics/media/index.html) but I dont know the reason I get an IllegalStateException. Code can be sumarized as: MediaPlayer mp = MediaPlayer.create(myclass_name_here.this,

Re: [android-developers] MediaPlayer and IllegalStateException

2011-06-30 Thread Kostya Vasilyev
http://developer.android.com/reference/android/media/MediaPlayer.html#create(android.content.Context, int) Convenience method to create a MediaPlayer for a given resource id. *On success, |prepare()| will already have been called and must not be called again. * -- Kostya 30.06.2011 20:11,

[android-developers] MediaPlayer Streaming using proxy

2011-06-03 Thread bhupathi ranjith
hi, I am trying to play http streaming url using MediaPlayerDemo_video of APIDemos sample application. I am recieving Not able to play the error. My WIFI connection requires a proxy for accessing internet. Does anyone know how to set proxy for MediaPlayer. Is it possible to confgure system wide

[android-developers] MediaPlayer deadlock fix (or alternative players)

2011-05-28 Thread Andrey
Hello, I've seen this question asked a few times, but have not been able to find the answer. I am developing a very simple music player that streams MP3s from a list of URLs. It works fine most of the time, but after playing several songs (or switching to a new song several times), the

[android-developers] MediaPlayer blocked(AudioFlinger write blocked) while playing animation

2011-05-20 Thread quill
Hi all, I have a thread to play audio and animation together. It's a frame animation. The drawable resources are in sdcard. When I play the animation, I use a handler to send message to refresh images one by one. Here's my code: final Handler handle = new Handler(){ public void

[android-developers] MediaPlayer and RTSP server on localhost

2011-05-16 Thread inon
Hi, I am working on an application that streams video between android devices using SIP/RTP. since android's media player does not support RTP streams directly I have come up with a solution to run an RTSP server on the client and wrap the RTP stream with RTSP stream, then set the media player's

[android-developers] MediaPlayer

2011-04-17 Thread bob
Does the MediaPlayer have a setDataSource method that can set the audio to a .wav file in your resources? Thanks. -- 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

[android-developers] MediaPlayer to play Multicast (igmp) medias?

2011-04-07 Thread zooldk
Hi, I've been searching for a while for an example of the MediaPlayer, to play multicast medias, such as live broadcast signals (e.g. igmp://224.0.18.10:8810), by setting up my own multicast stream in VLC. Is it possible through the MediaPlayer, or should I do a MulticastSocket on my own, join

[android-developers] mediaplayer

2011-04-06 Thread jram
hi, i am using mediaplayer class to play live radio. when i run the app it will start to play. and after that when i press home button, phone will reterned to home screen.but radio will be keep on playing. when i launch the app 2nd time by clicking app icon , instead of reloading the existing app

Re: [android-developers] MediaPlayer

2011-04-05 Thread Justin Anderson
What problem are you having? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Apr 2, 2011 at 4:16 PM, pharaoh edelcides.goncal...@gmail.comwrote: Can anyone tell me what is wrong with this code? package infinite.fenix.android; import

[android-developers] MediaPlayer

2011-04-04 Thread pharaoh
Can anyone tell me what is wrong with this code? package infinite.fenix.android; import java.io.IOException; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener;

[android-developers] mediaplayer surface initialized to a frame

2011-03-21 Thread droid-stricken
Hi All, I am creating a surface holder for displaying my video and creating the mediaplayer instance as well. My question is - How to display the first frame on the surfaceView and then provide a button for the user to click that starts the actual playback of the video? Currently, my screen is

[android-developers] MediaPlayer issues in certain devices

2011-02-25 Thread DanielleM
Hello all: I've searched around and have not been able to find an answer to this problem: My application plays mp3 files and mp4 files in a variety of ways. The first way is that I have an mp3 stream that I'm streaming through a MediaPlayer object...the second way is that I'm navigating to either

[android-developers] MediaPlayer callbacks not firing after calling prepareAsync() from a Service

2011-01-31 Thread Jim Benton
Hi everyone, I'm working on writing a small app that will stream mp3 files. I'm using the NPR code, but having a strange problem with mediaPlayer.prepareAsync(). I'm using a trimmed down version of the

[android-developers] MediaPlayer error( 1,-2147483648)

2011-01-26 Thread milos.pesic
Hi everyone, I'm getting an error(what 1, extra -2147483648) when trying to play audio from raw resource. Anyone knows what this error means? It's happening in 2.2. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Mediaplayer cuts off early

2011-01-25 Thread Hank
I have a recording that is around 4 minutes and when I try to play it using the MediaPlayer API, it doesn't play the full file, it cuts off early maybe at most 30 seconds into the file. Did anyone have this problem, and did they find a solution? I also called getDuration() and it is returning the

Re: [android-developers] Mediaplayer cuts off early

2011-01-25 Thread TreKing
On Tue, Jan 25, 2011 at 10:02 AM, Hank hwang...@gmail.com wrote: I have a recording that is around 4 minutes and when I try to play it using the MediaPlayer API, it doesn't play the full file, it cuts off early maybe at most 30 seconds into the file. Do you have any more information than

Re: [android-developers] MediaPlayer not working properly - causing sounds to be truncated

2011-01-20 Thread Mark Murphy
On Wed, Jan 19, 2011 at 11:12 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: I need to provide the facility to play multiple sounds (which could be large) concurrently and to know once each sound has finished playing. :: snip :: I can’t use the soundpool as I want to detect

[android-developers] MediaPlayer not working properly - causing sounds to be truncated

2011-01-19 Thread Peter Carpenter
Greetings fellow androidians, I need to provide the facility to play multiple sounds (which could be large) concurrently and to know once each sound has finished playing. Unfortunately this results in my sounds being played back quite randomly. Sometimes the first sound is truncated before the

[android-developers] [MediaPlayer] seekTo behavior after onBufferingComplete

2011-01-17 Thread Ganesh
Dear Experts, I am currently trying to understand the Media Player and had a question on the seeking part in Media Player. Basically, seekTo method can be invoked from any state except Idle, Initialized, Stopped, Error. Consider a case where playback has been completed (30 s file) i.e. Looping

Re: [android-developers] MediaPlayer StreamVideo question.

2011-01-09 Thread Mark Murphy
Step #1: Use lowercase http in URLs. Step #2: Don't use an emulator, use hardware. Step #3: Make sure the extension matches the actual file format. Step #4: Use LogCat (via DDMS or adb logcat) to look at any warnings that might be emitted by the multimedia subsystem. On Sat, Jan 8, 2011 at

[android-developers] MediaPlayer StreamVideo question.

2011-01-08 Thread Scott Deutsch
Hello Group, First question is. is it better to store the apps video as a resource on the phone? If yes, what format would you recommend. Or, would it be better to store the videos on a web server and stream the videos to the app when requested. My app is going to have lots of video's

Re: [android-developers] MediaPlayer StreamVideo question.

2011-01-08 Thread Mark Murphy
On Sat, Jan 8, 2011 at 8:24 PM, Scott Deutsch surger...@gmail.com wrote: First question is. is it better to store the apps video as a resource on the phone? I've heard of a lot of people having problems playing videos stored as resources. I haven't tried it myself, since IMHO shipping videos in

Re: [android-developers] MediaPlayer StreamVideo question.

2011-01-08 Thread Scott Deutsch
I did what you said. Instead of a file for the local path, replaced it with HTTP://.../test.3gp .. = URI uri = Uri.parse(HTTP://./test.3gp); the file format i used was .3gp? Ignore the . I had a real domain name in there. mMediaPlayer.setDataSource(this,

[android-developers] MediaPlayer makes me crazy.

2011-01-01 Thread bobo123
Hi All, My application use MediaPlayer component to auto play 2 video files in the SD card. and it continue to play these 2 video files until user touch the screen then it will quit this activity. At the beginning, The media player these 2 video files very well (no error), however when it

[android-developers] MediaPlayer server died!

2010-12-13 Thread Fang Y
Hi all, I'm writing some useful log to shared memory in native code,when the number of log written arrives to about 15,the MediaPlayer server will die.Why and how to solve?Any suggestions?The detailed logcat is below: E/PV ( 216): not useful msgs count:33 E/PV ( 216):

Re: [android-developers] MediaPlayer is Hanging in reset call

2010-12-11 Thread Julie Andrews
On Fri, Dec 10, 2010 at 9:56 PM, John jo-d...@hotmail.com wrote: VideoPlayerView = new VideoView(this); VideoPlayerView.setOnPreparedListener(VideoPrepared); VideoPlayerView.setOnCompletionListener(VideoFinished); VideoPlayerView.setOnErrorListener(VideoError);

[android-developers] MediaPlayer is Hanging in reset call

2010-12-10 Thread John
VideoPlayerView = new VideoView(this); VideoPlayerView.setOnPreparedListener(VideoPrepared); VideoPlayerView.setOnCompletionListener(VideoFinished); VideoPlayerView.setOnErrorListener(VideoError); String VideoResourcePath =

[android-developers] MediaPlayer and ShoutCast stream / how to retrieve Metadata ?

2010-12-07 Thread sebsto
As a follow up to my earlier post http://groups.google.com/group/android-developers/msg/f05b124c576b0c1c I am observing that nothing changed with 2.2.1 and 2.3 - still no OnInfo called. Any news / help about this ? Thanks Seb -- You received this message because you are subscribed to the

[android-developers] MediaPlayer - setDataSource failing - Couldn't open fd for content://..

2010-11-16 Thread S
Hi, My app downloads audio files to /sdcard/Music. When I try to play them, I am getting the following error. V/MediaPlayer-JNI( 2789): setDataSource: path content://media/external/audio/med ia/2 E/MediaPlayerService( 1130): Couldn't open fd for content://media/external/audio /media/2 If I

[android-developers] MediaPlayer

2010-10-30 Thread John Gaby
I am using the MediaPlayer to play some .mp3 files. The files seem to play correctly, however, every time I play one I see the following in LogCat: 10-31 00:24:43.953: INFO/StagefrightPlayer(34): setDataSource('/mnt/ sdcard/Android/data/com.gabysoft.myapp/cache/Audio/Aud00.mp3') 10-31

[android-developers] MediaPlayer and video problem

2010-10-01 Thread Anton Okolelov
I try to play video, but all I get is sound and black screen. I don't understand what's wrong with the code. That video is 3gp, it works on my phone if I run it using standard phone player (without my program). I tryed VideoView, but no result... Please help! here's code: package danilka.appl;

[android-developers] MediaPlayer cant play audio files from program data folder ?

2010-09-22 Thread dmtrl...@gmail.com
Hi all! When i record my audio from MIC and store file in /data/data/. why MediaPlayer can't play this file ? If i change destination to / sdcard/. - all works great. I do something wrong ? I not found limitation for MediaPlayer. Device - Samsung T959 (Galaxy S) Thanks, i hope anybody

[android-developers] Mediaplayer online streaming formats

2010-09-22 Thread Sameer
Hello, I am trying to create a small application for streaming radio broadcast that is in video/x-ms-asf format. the url has a .asx extension at the end. I have come to know that Android does not support this format currently, what other format for streaming broadcasts does it support so I can

[android-developers] MediaPlayer showstopper bug - please help

2010-09-22 Thread kk
Hi all, I'm having some trouble streaming a looping background track for my game using MediaPlayer. I have a bunch of short mp3s in /res/raw that I use as SFX and I play using SoundPool. The SFX playback all works fine...I'm mentioning it because it's relevant as you'll see below. The

Re: [android-developers] MediaPlayer cant play audio files from program data folder ?

2010-09-22 Thread dan raaka
That is due to filepermissions. I doubt this issue is specific to T959, that should be behavior on all android devices. -Dan On Wed, Sep 22, 2010 at 10:11 AM, dmtrl...@gmail.com dmtrl...@gmail.comwrote: Hi all! When i record my audio from MIC and store file in /data/data/. why

[android-developers] MediaPlayer RTSP Timeout

2010-09-17 Thread Yadnesh
Hi All, I am developing a MediaPlayer application. I have some questions about timeout of MediaPlayer in case of live stream data not received. I am using the MediaPlayer to play live stream over RTP. RTSP is used to connect to the live stream. Video and audio is fine in normal case. In case

[android-developers] MediaPlayer Error (1,-1004)

2010-08-26 Thread Priyank
Hi, I am getting an error (1,-1004) when i try to play a .amr file. The file is about 15 seconds long and after playing for about 4 seconds, it stops and I get this error. I am making the calls just as mentioned in the docs.. MediaPlayer mp = new MediaPlayer();

[android-developers] mediaplayer seekTo buffering

2010-08-18 Thread Stephen Lau
I'm noticing a problem (on my Android 2.1 test devices) where if I use MediaPlayer and have it start playing a stream and then try to seek to a point past where it buffers, the player gets out of sync. I would expect it to issue a new HTTP GET from the server with a byte range offset

[android-developers] MediaPlayer getCurrentPosition problems on Android 2.2

2010-08-04 Thread Femi Omojola
Looking for some guidance on MediaPlayer issues on Android 2.2. I've confirmed that the below code works on Android 1.5 (an ADP1). I'm playing back an MP3 file using a MediaPlayer instance and using a ProgressBar to track the progress. The method that updates the progress bar is invoked from a

[android-developers] MediaPlayer RTSP Playback Issue

2010-07-23 Thread Sanjay Dandekar
We are developing a RTSP player on Android. Our server will stream the RTP packets and MediaPlayer will play the video. The problem we are facing is as follows: Whenever the media player starts playing video, it will play only for 5-6 seconds and then it will spend the next 10-12 seconds to

[android-developers] MediaPlayer: is there way to track how many times song was played?

2010-07-08 Thread selmixxx
Is there way to track how many times song was played? something like for example in Rhytmbox in Linux, then i can use this information to create playlist based on most played songs, songs not played yet etc. or if its not possible (I didn't found any way to get this information myself), is it

[android-developers] MediaPlayer and RTP over RTSP (RTSPT)

2010-06-29 Thread Aamir
Hello - I am trying to view streaming live video from a server that is sending the data (h264) using RTP over RTSP. I believe this is also known as RTSPT. From what I understand, Android 2.1 doesn't work with this. Is that correct? I cannot pass a uri for my stream (rtspt://blahblah) that

[android-developers] MediaPlayer and ShouCAST / How to retrieve Meta Data

2010-06-07 Thread sebsto
Dear All, Like many others, I am trying to read a Shoutcast stream on Android 2.2 (Froyo). I found out that MediaPlayer handles the stream out of the box, without specific coding. However, I wonder how to retrieve the meta data (ie song title) from the stream. The OnInfoListener.onInfo is never

[android-developers] MediaPlayer provides wrong duration on audio streaming

2010-05-28 Thread Demian
Hi everyone, 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

[android-developers] MediaPlayer Breaks in FroYo

2010-05-27 Thread scp89
I have an mp4 from youtube that I'm trying to stream. It works perfectly in Android 2.1, but in Android 2.2 it reports a http 303 error. But If I dump the headers of the file, it reports a 200 (OK). Any Idea why the new mediaplayer in 2.2 would report this error, when everything works fine in 2.1?

[android-developers] MediaPlayer provides wrong duration on audio streaming

2010-05-27 Thread Demian Alonso
Hi everyone, 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

[android-developers] MediaPlayer Resource Issue

2010-05-12 Thread rebeldev
Hello All, I'm hoping someone in this group could help me with a problem I'm currently encountering. I've created a soundboard application (Android 1.6). Sound board works great, and plays as expected. That is until you exit the app. When you leave the app, and then restart it, none of the

Re: [android-developers] MediaPlayer Resource Issue

2010-05-12 Thread Second Dancer
May be you have to release thr player before exiting On May 12, 2010 3:15 PM, rebeldev fa...@mobilefringe.com wrote: Hello All, I'm hoping someone in this group could help me with a problem I'm currently encountering. I've created a soundboard application (Android 1.6). Sound board works great,

[android-developers] MediaPlayer pause on loop

2010-05-11 Thread Jason
Hi all, I am having an issue with a looping audio file using MediaPlayer. I am developing a realtime game and have a 100K MP3 file I want to loop as background music. The size of the file means I can't pre-load into memory (using SoundPool) so I am using the MediaPlayer to stream the data. All

[android-developers] MediaPlayer, AssetFileDescriptor and FileDescriptor doubt

2010-05-06 Thread Sebastián Treu
Hi, I was wondering why I needed to do this to play a single file in MediaPlayer: [code] FileDescriptor audioFd = null; AssetFileDescriptor assetFd = null; String fileName = audio/+lang+/+String.valueOf(code)+.mp3; System.out.println(AUDIO FILE NAME: +fileName); assetFd =

[android-developers] MediaPlayer skips even though PARTIAL_WAKE_LOCK is set

2010-04-25 Thread henrik
Hi. I have a problem with MediaPlayer on my HTC Hero. When I set it to decrypt play a local file in the background, it starts skipping after a minute or two, even though I have aquired the PARTIAL_WAKE_LOCK. This only happens when the phone is running on battery: I'm unable to reproduce this

[android-developers] MediaPlayer stops playing when streaming over 3G on the Nexus One

2010-04-23 Thread henrik
Hi. 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

[android-developers] MediaPlayer Error Codes

2010-03-25 Thread momojo
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

[android-developers] MediaPlayer: Changing surfaceHolder

2010-03-17 Thread VicRSTi
Is it possible to change the SurfaceHolder on a MediaPlayer object that's already been assigned a SurfaceHolder? For example if I have a small SurfaceView in activity A with a MediaPlayer streaming an online video and I launch activity B with a full screen SurfaceView, but I don't want to create

[android-developers] MediaPlayer playback is slow

2010-03-15 Thread Chris_V
Hi. I am writing a media record/player on my Android 2.1 Emulator. I have successfuly recorded an audio in the AMR format and can play it back too. However, the playback is slow. About 50% speed. I am wondering if this is an issue with the Emulator. I do not have a real device to test on. I

[android-developers] MediaPlayer failures on Android 2.1?

2010-03-15 Thread Marc Reichelt
Hi there! I developed an audioplayer for Android for our new project which plays local and online files. It works great on the G1, but somehow often fails on the Nexus One when streaming MP3s from the Internet - especially smaller files. The problem is that I am using the prepareAsync() method

[android-developers] MediaPlayer Problem

2010-03-06 Thread Bholu
Hi, I have already developed MediaPlayer Application for Android 1.5. In this mediaPlayer, I have created Local Server in Android which download data from Media Player Server and that Local Server is passed data to Media Player. MediaPlayer is Successfully Running on Android 1.5. But, When I

[android-developers] MediaPlayer MIDI gapless loop?

2010-02-23 Thread Robert Green
Trying to loop a song for a game in MIDI and I'm getting a noticeable gap when looping. I'm currently just using MediaPlayer like I use for looping OGGs normally. Is there something wrong with my file or does the current implementation (Tested on 2.1) have a short gap in the loop? -- You

[android-developers] MediaPlayer for Streaming audio.

2010-02-23 Thread momojo
I am trying to stream mpeg audio from a url on the web via MediaPlayer. I am getting an error on the prepare call. 02-23 13:05:12.626: ERROR/PlayerDriver(554): Command PLAYER_INIT completed with an error or info PVMFErrCorrupt 02-23 13:05:12.636: ERROR/MediaPlayer(1147): error (1, -10) 02-23

  1   2   >