[TIMOB-1913] Setting url of Sound object outside create method causes crash
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:57:31.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 |
| Components | iOS |
| Labels | defect, ios, iphone, sound |
| Reporter | ctredway |
| Assignee | Blain Hamon |
| Created | 2011-04-15T03:05:26.000+0000 |
| Updated | 2011-04-17T01:57:31.000+0000 |
Description
On the iphone, when creating a sound object, if the url is set outside the create method, the app crashes and does not log anything to the console window.
Sample Code:
var win = Ti.UI.currentWindow;
var newSound = Titanium.Media.createSound();
newSound.url = 'cricket.wav';
newSound.play();
(from [ee8c6064eaa4d8c9a6622a458790fce719a2a903]) [#1913 state:fixed-in-qa] Sounds now allow setting some properties outside of constructor. http://github.com/appcelerator/titanium_mobile/commit/ee8c6064eaa4d8c9a6622a458790fce719a2a903"> http://github.com/appcelerator/titanium_mobile/commit/ee8c6064eaa4d...
(from [3be604b257e1ed50373ad20008f3a2410627efef]) [#1913 state:fixed-in-qa] Sounds now allow setting some properties outside of constructor. http://github.com/appcelerator/titanium_mobile/commit/3be604b257e1ed50373ad20008f3a2410627efef"> http://github.com/appcelerator/titanium_mobile/commit/3be604b257e1e...
5th gen ipod touch mobile sdk build 1.5.0.d5d8dbe