AVAudioPlayer via Speakers

后端 未结 8 742
甜味超标
甜味超标 2021-02-06 13:16

I got the following code:

- (id)init {
    if (self = [super init]) {
        UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback;
        AudioSessionS         


        
8条回答
  •  北海茫月
    2021-02-06 13:49

    For iOS7 AudioSessionSetProperty is deprecated. The answer in the following post by foundry shows how to do this for iOS7:

    https://stackoverflow.com/a/18808124/1949877

提交回复
热议问题