Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3124] Android: Cannot restart stream in AudioPlayer after stream is stopped.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-08T18:45:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterChris Brooks
AssigneeIngo Muschenetz
Created2011-04-15T03:37:30.000+0000
Updated2017-06-08T18:45:15.000+0000

Description

In android, if you stop an audioplayer stream and then start the stream again, the audio plays for a couple seconds (presumably what remains in the buffer) and then the audio stops.

This does not seem recoverable currently, you MUST quit the app and restart to get audio playing again.

There is a discussion http://developer.appcelerator.com/question/64781/audioplayer-streaming-mp3-in-android#120341" title="here">Here on how this problem is fixed in the Android SDK, exposing reset() and prepare() methods to Titanium.Media.audioPlayer should allow users to overcome this problem on Android.

Titanium SDK 1.5.1 and 1.6.0.RC1
Testing on Android 2.2

Thanks!

Comments

  1. Chris Brooks 2011-04-15

    Forgot to add:

    This occurs in Titanium SDK 1.5.1 and 1.6.0.RC1
    Testing on Android 2.2

  2. Lee Morris 2017-06-08

    Closing ticket due to time passed and lack on input for the past 6 years. Any problems, please open a new ticket.

JSON Source