Details

      Description

      {html}<div><p>from community. create and play sound in a set timeout. fire 3
      setTimeouts and the sound stops playing after the 3rd time. sound
      file is attached. fyi - issue does not occur if sound variable is
      declared outside of setTimeout (i.e., var siren = null</p>
      <p>var label = Titanium.UI.createLabel({<br></p>
      <pre>
      <code>color: '#fff',
      text:'Sound will stop in 3 ...',
      textAlign: 'center',
      font:{fontSize:20,fontFamily:'Helvetica Neue'}</code>
      </pre>
      <p>}); win.add(label);</p>
      <p>setTimeout(function(){<br></p>
      <pre>
      <code>var siren= Ti.Media.createSound({url:'airraid.wav'});
      siren.play();</code>
      </pre>
      <p>}, 1);</p>
      <p>setTimeout(function(){ label.text = '2'; }, 1000);<br>
      setTimeout(function(){ label.text = '1'; }, 2000);<br>
      setTimeout(function(){ label.text = 'Stopped'; }, 3000);</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              jhaynie Jeff Haynie (Inactive)
              Reporter:
              nwright Nolan Wright (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-498
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration