Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17996

iOS: Ti.Media.AudioPlayer.setTime() stops playback at specified time; should be unsupported

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.4.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Appcelerator Studio 3.4.0.201409261245
      Titanium SDK 3.4.0.GA
      CLI 3.4.0
      Xcode 6.1.0
      iPhone 6, iOS 8.1
      iPhone 5 Simulator, iOS 8.1

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ewieber Eric Wieber (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration