createAudioPlayer crashes app

You must Login before you can answer or comment on any questions.

Doing something as simple as running the code below will crash my app. Even when this is the only thing going on. I have many earlier apps that use the createAudioPlayer function, and none of them work with the latest version of titanium.


var audioPlayer = Ti.Media.createAudioPlayer({ url: 'http://mms-live.online.no/P5_Oslo' });

audioPlayer.start();

— asked 7 months ago by Thomas Bensmann
5 Comments
  • Hi Thomas, can you provide some more information... like platform and log error message which you are getting.

    — commented 7 months ago by Ashish Nigam

  • Actually, I don' t get any errors, just the normal exit mesage. It's pretty weird.

    When it comes to platform, I am running appcelerator 2.1.2.GA on OS X ML, and working on an iOS project.

    — commented 7 months ago by Thomas Bensmann

  • Oops, I meant 2.1.3.GA

    — commented 7 months ago by Thomas Bensmann

  • Show 2 more comments

1 Answer

If you have recently added the media api to your project by using Ti.Media.createAudioPlayer for the first time, try cleaning your project to force the TiSDK scripts to add the media module to the build.

Your Answer

Think you can help? Login to answer this question!