monotouch play music when device is locked

Posted by Ali Shafai on Stack Overflow See other posts from Stack Overflow or by Ali Shafai
Published on 2010-04-26T12:23:38Z Indexed on 2010/04/26 17:03 UTC
Read the original article Hit count: 240

Filed under:
|

I'm trying to make my monotouch app continue playing when the device is locked, I found this snippet in ObjC, was wondering if mt already has bindings for it or not.

AudioSessionInitialize (NULL,NULL,interruptionListenerCallback,self);
UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback;
AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory), &sessionCategory);

© Stack Overflow or respective owner

Related posts about monotouch

Related posts about sound