Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 18.104.22.168 release ready!
Owner and Founder. Opencart
In this blog, we are going to learn about the AVFAudio framework in swift. AVFAudio is a framework that helps in play, record, and process audio files in swift. In every other app, we need to audio-video support like watching video and listening to music or audiobook.
Please follow the below steps to integrate the AVFAudio framework into your iOS project.
In this step, Create a project and create three buttons for play, stop and repeat audio player.
Import the AVFoundation framework in your project
Now we will create a player from AVAudioPlayer class and outlet for the play, stop and repeat button and also create a variable for determining the repeat state
Now create a function for the tap of the Play Button and also the required URL from the audio file, after that handle the URL and assign delegates for the player.
After that, we will create the stop and repeat button function in your project.
However, we will use AVAudioPlayerDelegate for using delegates of player.
We have integrated the audio player into our iOS App. For more information, please refer to the apple officials documentation from here.
Thanks for reading my blog. Please refer to my other blog from here.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Very good company, we did get app extension for Magento 2 website. The support was very good they help us through the process. Webkul team is very supportive, I would recommend them.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.