/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#import <AudioToolbox/AudioToolbox.h> -(void) viewDidLoad{ AudioSessionInitialize(NULL,NULL,NULL,NULL); //カテゴリをMediaPlaybackã«ã™ã‚‹ UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty =(kAudioSessionProperty_AudioCategory, &sessionCategory); AudioSessionSetActive(YES); }