Check Mobile App
Read now
Start a Project

Play audio file and save to document directory in iOS (Swift)

Save

Play audio , save in document directory.

Some time we need to play a songs in application by using URL or pre save audio file. for this we need to follow some steps:

Steps are :

1: Avaudio player provides this facility;

Declare AVaudio player

Note: here “music ” is local store mp3 file .

2: by using URL:

for this we need to first download and play.

 

3: For access the downloaded file and again play.

 

4: you can also perform play and pause command .

 

 

 

 

 

 

 

 

 

 

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


8 comments

  • Bablu
    Nice one Bhai ji
    • kunal prasad (Moderator)
      thanks
    • kunal prasad (Moderator)
      thanks for your valuable comment , if you have any feed back or suggestion regarding blog content , you can share with us.
  • James
    Hello, Mr. kunal
    I need the same objective-c code.

    Thanks.

    • kunal prasad (Moderator)
      we will update soon .
  • SWATI
    LIFE SAVER..THNX ALOT..
    • kunal prasad (Moderator)
      thanks for your valuable comment , if you have any feed back or suggestion regarding blog content , you can share with us.
  • Waheed
    Thanks for this guide. It was really helpful.
  • css.php

    Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.

    Osama
    Talk to Sales

    Global

    Live Chat
    Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home