How to add a music file to the playlist of music players from the application

Since I searched a lot that I can access the music library to select a song, but I cannot add the recorded song file to the playlist.

Can I add a file to this playlist? The iPod api library allows it or not ..........

http://developer.apple.com/library/ios/#documentation/Audio/Conceptual/iPodLibraryAccess_Guide/AboutiPodLibraryAccess/AboutiPodLibraryAccess.html

+4
source share
1 answer

Assuming you want to distribute your application through the AppStore, this is

  • It is not possible to access the iPod library through file system calls, since iOS applications are sandboxed (this means that you cannot directly write the file to the iTunes library on the device, only to record files in your application space)
  • no iPod api can provide this function for you, it only allows you to read the library, not write to it.

If you plan to use jailbroken devices, you can use the libipodimport library.

+1
source

Source: https://habr.com/ru/post/1440264/


All Articles