Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17996] iOS: Ti.Media.AudioPlayer.setTime() stops playback at specified time; should be unsupported

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.4.0
Fix Version/sn/a
ComponentsiOS
Labelsaudioplayer, ios, media, qe-3.4.1
ReporterEric Wieber
AssigneeUnknown
Created2014-11-10T18:34:51.000+0000
Updated2018-02-28T19:55:49.000+0000

Description

Ti.Media.AudioPlayer.setTime() is an Android only method. However, when it is used on iOS, it will force the AudioPlayer to stop playing at the time passed in. *Steps to reproduce issue*: 1. Create a new project involving the below code:
var audioPlayer = Ti.Media.createAudioPlayer({
	url: 'http://www.tonycuffe.com/mp3/tail%20toddle.mp3',
});   
audioPlayer.setTime(25500);
audioPlayer.start();
2. Run the app on an Android device and notice that the playback begins from the specified time location. 3. Run the app on an iOS device and notice that the playback begins from 0:00 and plays until the specified time location. *Expected Results*: Either setTime() should work on iOS the same way that it is described in the docs for Android (doesn't seem possible due to TIMOB-14552), the setTime() on iOS should be a different method to indicate its current behavior (endTime()?), or calling setTime() on iOS should have no effect.

Comments

  1. Juan Pablo Gonzalez Barrientos 2015-05-17

    HI, does somebody has a workaround for this issue? I need to set the Time on IOS. The audio is 45 minutes long and i need to set a method to make the audioplayer start from minute 23 to 45.
  2. kosso 2015-08-06

JSON Source