Titanium.Media.createSound on OSX
Since it turned out that the (HTML5) Audio() object is not working on Win32, I reverted to Titanium.Media.createSound until the next version is released.
To my agony I just found out that Titanium.Media.createSound does not work as expected on OSX! See below example:
nowPlaying = Titanium.Media.createSound(file);
nowPlaying.play();
This example works fine on Windows XP, but it doesn't play the sound on OSX. It just does nothing. No errors, no warnings, but also no sound.
Please help?
Jouke
3 Answers
-
Could it be that you are using an unsupported audio format? What file format are you using? What's the value of
file
? -
Jouke, why not file a Titanium Desktop bug at http://appcelerator.lighthouseapp.com with some more detailed information (and preferably the file you're trying to play). Thanks!
-
I've filed a bug: https://appcelerator.lighthouseapp.com/projects/25719-titanium-desktop/tickets/336-titaniummediacreatesound-different-behaviour-on-osx-and-windows
It's not a simple matter of "it does nothing" but "it behaves differently on both platforms"