Top "Avaudioplayer" questions

Apple’s AVFoundation framework includes AVAudioPlayer, an easy, feature rich, Objective-C based API for playing audio files.

Playing a sound with AVAudioPlayer

I'm trying to play a sound with AVAudioPlayer but it won't work. Edit 1: Still doesn't work. Edit 2: This code works. …

ios swift audio avaudioplayer
How to play mp3 audio from URL in ios swift

I am getting mp3 url as a response of api calling. I want to play that audio, so how can …

ios swift swift2 ios9 avaudioplayer
Play sound on iPhone even in silent mode

I want to make an application which creates sound, music, or system sound when an iPhone is in silent mode. …

iphone objective-c ipad avaudioplayer
Supported Audio file formats in iPhone

What are the supported audio files formats in iPhone? If I want to play a 2 hour audio files , what is …

iphone avaudioplayer
Play music in the background using AVAudioplayer

I want to play music even if the app goes in background. I checked all stackoverflow links but none of …

objective-c iphone ipad avaudioplayer
UISlider to control AVAudioPlayer

I'm trying to implement a little function in my app. I am currently playing sounds as AVAudioPlayers and that works …

iphone objective-c avaudioplayer uislider
AVAudioPlayer not playing audio in Swift

I have this code in a very simple, single view Swift application in my ViewController: var audioPlayer = AVAudioPlayer() @IBAction func …

ios cocoa-touch swift avfoundation avaudioplayer
Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working?

I've tried using these methods in an attempt to detect that the Ring/Silent switch is active or not: How …

iphone ios4 iphone-sdk-3.0 avaudioplayer avaudiosession
How to get AVAudioPlayer output to the speaker

I'm recording audio with AVAudioRecorder as seen in How do I record audio on iPhone with AVAudioRecorder? I then use …

iphone objective-c audio avaudioplayer avaudiorecorder
AVAudioPlayer fade volume out

I have an AVAudioPlayer playing some audio (duh!) The audio is initiated when the user presses a button. When they …

iphone avaudioplayer volume