Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6465] Android: Titanium.Media.Sound - V8/Rhino - Sound.setPaused method not found at runtime

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2014-03-07T00:12:12.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsparity
ReporterDustin Hyde
AssigneeBiju pm
Created2011-12-05T15:54:46.000+0000
Updated2017-03-22T21:36:24.000+0000

Description

In Android, the Titanium.Media.Sound.setPaused method is not found at runtime. This method is in the documentation. This is not new, as it affects Android V8/Rhino in 1.8.0.1 and 1.7.5. Log and screen capture attached. iOS is not affected. Could be a doc bug or functional bug. Steps to Reproduce: 1. Run code, or check documentation: Titanium.Media.Sound.setPaused.
var sound = Titanium.Media.createSound();
sound.setPaused(true);
Expected Result: App should run without runtime errors, or docs should not reference an unsupported method. Actual Result: App generates runtime error indicating "Sound.setPaused" method not found.

Attachments

FileDateSize
setPaused_capture.png2011-12-05T15:54:46.000+000067098
setPaused_log.txt2011-12-05T15:54:46.000+000011022

Comments

  1. Biju pm 2013-10-11

    In documentation Sound.setPaused method only On iOS and Tizen . consider this as new feature ?
  2. Ingo Muschenetz 2013-10-11

    If docs are correct, now moved to feature. Thanks!
  3. Biju pm 2013-10-22

    PR:- https://github.com/appcelerator/titanium_mobile/pull/4820
  4. Biju pm 2014-02-14

    TestCase
        
       var w = Ti.UI.createWindow({backgroundColor:'white'});
       var b = Ti.UI.createButton({title:'Play' , left : 10});
       var b1 = Ti.UI.createButton({title:'Pause' });
       var b2 = Ti.UI.createButton({title:'UnPause' , right : 10});
       var m = Ti.Media.createSound({
           url: 'music.aac',
            
       });
       b.addEventListener('click', function () {
           m.play();
       });
       
       b1.addEventListener('click', function () {
           m.setPaused(true);
       });
       b2.addEventListener('click', function () {
           m.setPaused(false);
       });
       w.add(b);
       
       w.add(b1);
       w.add(b2);
       w.open();
       
  5. Biju pm 2014-02-14

    New PR :- https://github.com/appcelerator/titanium_mobile/pull/5354
  6. Hieu Pham 2014-03-07

    It's documented that 'paused' is read-only for Android. If you want to pause the sound, use 'pause' method.
  7. Lee Morris 2017-03-22

    Closing ticket as "Won't Fix".

JSON Source