Audio is no longer working on iPad3 [closed]

给你一囗甜甜゛ 提交于 2019-12-14 04:08:15

问题


I've got two reports from users of my app, running iOS 5.1.1 on iPad 3 (iPad 1 & 2 are working fine), that the audio is no longer working.

I'm using the AVAudioPlayer from the AVFoundation library.

Is anybody else experiencing any similar problems.

What to do now?


回答1:


Also give this code for your audioPlayer

[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];

Hope it will solve your issue.



来源:https://stackoverflow.com/questions/12423211/audio-is-no-longer-working-on-ipad3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!