Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked March 22nd 2010 by Jouke Visser
  • desktop
  • osx
  • sound
  • win32
0 Comments

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?

    — answered March 22nd 2010 by Kevin Whinnery
    permalink
    0 Comments
  • 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!

    — answered March 22nd 2010 by Martin Robinson
    permalink
    0 Comments
  • 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"

    — answered March 24th 2010 by Jouke Visser
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.