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

iOS: createSound causing app to crash in 4.3

    Details

      Description

      {html}<div><p>When you play() a sound created by createSound() with iOS SDK
      4.3 it causes the app to crash. The same code works fine with iOS
      SDK 4.2.</p>
      <p>Step 1: copy the example below into your app.js<br>
      Step 2: run the app using iOS 4.3<br>
      Step 3: click on the 'Play' button<br>
      Step 4: notice the app crash<br>
      Step 5: repeat the same steps with iOS 4.2 and it will play the
      sound without crashing</p>
      <pre>
      <code class="javascript">var win = Titanium.UI.createWindow({
      title:'main win',
      backgroundColor:'#fff',
      exitOnClose:true,
      fullscreen:false
      });

      var btn = Titanium.UI.createButton({
      title:'Play'
      });
      var sound = Titanium.Media.createSound({url:'button.mp3'});
      btn.addEventListener('click', function(){
      sound.play();
      });

      win.add(btn);
      win.open();</code>
      </pre>
      <h3>Tested On</h3>
      <p>Ti SDK 1.6.1, iOS SDK 4.3, iOS SDK 4.2</p>
      <h3>Associated Helpdesk Ticket</h3>
      <p><a href=
      "http://support-admin.appcelerator.com/display/KYE-93251-885">http://support-admin.appcelerator.com/display/KYE-93251-885</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              jalter Jon Alter
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration