Audio and video are quite common in the latest devices. An instance of the AVAudioPlayer class, called an audio player, provides playback of audio data from a file or memory. It is supported in iOS with the help of
AV FOUNDATION.FRAMEWORK and Media Player. framework respectively.
Interested in taking up Online IOS Training? You are at the Right Place. Start Learning!
Framework Capture15 --> Add Capture15 --> Existing FrameWork Capture 15 --> AVFoundation Frame work.
[ audioplayer set volume :1] // 0 to 1 (max value is 1)
[ audioplayer setNumberofLoops:2];
[ audioplayer PrepareToplay];
[ audioplayer setDelegate: self]
[ audioplayer play];
[ audioplayer pause];
I am Ruchitha, working as a content writer for MindMajix technologies. My writings focus on the latest technical software, tutorials, and innovations. I am also into research about AI and Neuromarketing. I am a media post-graduate from BCU – Birmingham, UK. Before, my writings focused on business articles on digital marketing and social media. You can connect with me on LinkedIn.