I have observed this and other problems in older versions of the media
player (see Issue 398).

FWIW, at that time an effective workaround was to create another
thread to poll the progress. If the media clip failed to progress
during the polling period, then you can assume it completed.

Joe

On Oct 24, 1:07 pm, Anil <[email protected]> wrote:
> Has no one else observed this problem?
>
> On Oct 12, 2:29 pm, Anil <[email protected]> wrote:
>
>
>
>
>
>
>
> > FYI, 3gpp/amr files are created when you are recording with the cell
> > phone microphone.
>
> > On Oct 12, 1:49 pm, Anil <[email protected]> wrote:
>
> > > I also tried
> > >                 player.setLooping(false);
>
> > > On Oct 12, 1:11 pm, Anil <[email protected]> wrote:
>
> > > > In order to be notified when the clip finishes playing, I use the
> > > > callback:
>
> > > >                 player.setOnCompletionListener(new 
> > > > OnCompletionListener() {
> > > >                         @Override
> > > >                         public void onCompletion(MediaPlayer mp) {
> > > >                                 Toast.makeText(getApplicationContext(), 
> > > > "media player. play
> > > > complete", Toast.LENGTH_SHORT).show();
> > > >                         }
> > > >                 });
>
> > > > Unfortunately it is never called - I am playing 3gpp/amr audio files.
>
> > > > Is there another way to do this?
> > > > thanks,
> > > > Anil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to