[TIMOB-3477] iOS: createSound causing app to crash in 4.3
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T03:45:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | ios, ios4.3, regression, reported-1.6.1, rplist |
Reporter | Jon Alter |
Assignee | Reggie Seagraves |
Created | 2011-04-15T03:45:42.000+0000 |
Updated | 2017-03-02T22:47:27.000+0000 |
Description
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.
Step 1: copy the example below into your app.js
Step 2: run the app using iOS 4.3
Step 3: click on the 'Play' button
Step 4: notice the app crash
Step 5: repeat the same steps with iOS 4.2 and it will play the
sound without crashing
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();
Tested On
Ti SDK 1.6.1, iOS SDK 4.3, iOS SDK 4.2
Associated Helpdesk Ticket
http://support-admin.appcelerator.com/display/KYE-93251-885">http://support-admin.appcelerator.com/display/KYE-93251-885
Closing ticket as invalid.