Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13704] Android: Add setTime() method to allow playback from arbitrary locations in a stream

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-07-28T21:43:59.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 15 API, 2013 Sprint 15, Release 3.2.0
ComponentsAndroid
Labelsandroid, audiploayer, exalture, module_media, qe-testadded
ReporterSheran Gunasekera
AssigneeBiju pm
Created2013-04-27T07:23:42.000+0000
Updated2013-10-29T03:09:35.000+0000

Description

In order for an audio stream to be played back from an arbitrary location within the stream, a setTime() method would be beneficial. Usage would be like this:
function doClick(e) {  
    audioPlayer.url = "http://domain/to/mp3_file.mp3";
	audioPlayer.setTime(55000); // Playback from the 55th second
	audioPlayer.start();
}

Comments

  1. Sheran Gunasekera 2013-04-27

    Made a Pull Request for this: https://github.com/sheran/titanium_mobile/commit/2f7b2f253e95a76615ac9416beeebd0a86ecf836 I've tested on OS X 10.8.3 and works well. Would appreciate anyone else that is willing to test.
  2. Biju pm 2013-05-27

    Added time property to AudioPlayer. https://github.com/appcelerator/titanium_mobile/pull/4331
  3. Hieu Pham 2013-07-28

    master PR: https://github.com/appcelerator/titanium_mobile/pull/4219
  4. Paras Mishra 2013-10-10

    Verified fix on: Device : HTC desire V , Android version : 4.0.3 SDK: 3.2.0.v20131008154043 CLI version : 3.2.0 OS : MAC OSX 10.8.4 Alloy : 1.2.2 Appcelerator Studio, build: 3.2.0.201310092427 XCode : 5
  5. Ki Song 2013-10-28

    Does the setTime work when playing local mp3 files?
  6. Sheran Gunasekera 2013-10-29

    Yes, it works for local files as well

JSON Source