Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3477] iOS: createSound causing app to crash in 4.3

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:45:43.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsios, ios4.3, regression, reported-1.6.1, rplist
ReporterJon Alter
AssigneeReggie Seagraves
Created2011-04-15T03:45:42.000+0000
Updated2017-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

Comments

  1. Lee Morris 2017-03-02

    Closing ticket as invalid.

JSON Source