Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1913] Setting url of Sound object outside create method causes crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsdefect, ios, iphone, sound
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:05:26.000+0000
Updated2011-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();

Comments

  1. Jeff Haynie 2011-04-15

    (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...

  2. Jeff Haynie 2011-04-15

    (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...

  3. Thomas Huelbert 2011-04-15

    5th gen ipod touch mobile sdk build 1.5.0.d5d8dbe

JSON Source