So i am currently starting to develop a iOS app that will need to play audio files from iTunes library and modify audio stream with custom DSP effect that needs to modify RAW data.... I am still trying to decide if i am going to go with swift or objective-c...
I know how to access iTunes library using MediaPlayer framework, but i need a simple way to modify RAW audio data while playing and then play the modified stream back.... So the question is how can i modify the stream and then play it back, and if i use other framework than MediaPlayer framework to play songs with my DSP will my app pass the apple review?
This is exactly what AudioUnits are for. You can start here: https://developer.apple.com/documentation/audiounit
Related
I'm barely new to iOS.
I'm able to reproduce streams(no local video) via AVPlayer using Airplay.
Also, MPNowPlayingInfo and RemoteCommandManager are supported, using external medatada, not included into the streams.
But, I would like to fill the info panel with title, artwork, etc. on AppleTv/tvOS.
The image is part of WWDC17 talk titled "Now Playing and Remote
Commands on tvOS".
My question is not about tvOS apps, which the referenced talk is about, but about a iOS app that plays video via Airplay.
My guess is that the played AVAsset needs to have medatada, which currently would be empty.
I've been checking AVMutableMetaDataItem, but still don't understand if that's what I would need to use, nor how to do it.
Does anyone has any hint?
The WWDC 2019 Talk :( https://developer.apple.com/videos/play/wwdc2019/503/ ) which is about Delivering Intuitive Media Playback with AVKit speaks about using the external metadata during Airplay and how they have provided the API for iOS now which is similar to what was present on tvOS. (Refer from duration of 7 minutes in the Video mentioned above where they explain the same.) Hope this helps:)
Can anybody tell me is this possible to programmatically export audio to tones (ringtone)? Because I want to export custom audio file as ringtone.
Does Apple support this?
That's not allowed in iOS. Still you can done with 3rd party libraries but apple will reject any app that does this kind of behavior. You might be able to save audio so that user can access them if he want can set ringtone manually.
To save audio file Refer:
Record audio and save permanently in iOS
Hi in my app I have one feature to record audio and save it application directory. Client asking me is it possible to save audio file in musics?. That is client need to play recorded audio file without our application. I searched lot but cant find solution
No all iOS applications are sandboxed and the app data generated by the app cannot be used by other apps and can't to saved into other apps. The only way to share data between apps is through UIActivityViewController and it unfortunately does not provide any way of opening a file in music app. It is possible for jailbroken devices however.
I need to read audio and video out of a .asf file that is streamed to my iOS7 application.
I've compiled ffmpeg but I'm notre really sure this is the way to go. If this is the good tool, I do not know where to go from here.
Any pointer ?
Let say I want to create an iOS app that download music files from the internet.
Is it possible then to put this music files on the Music Library so that I can play it?
It's not possible. The only way to add music to your library is through iTunes or through the iTunes Store app. Even if you did find a way, it'd probably be through some private API and you'd probably get rejected on the app store.
As Simon said, you won't get music into the native music library. You could however store the audio files and use the AVFoundation Framework (AVAudioPlayer class) to replay them. You could also possibbly use the AudioToolbox framework. Problem is you would have to implement your own music library and your own playback functionality.
Did I mention you have roughly a 0% chance of this app making it into the app store?
It is clearly possible though...even trivial...
Well, in terms of possibility, it is possible if you jailbreak your device, you'd need 2 tweaks to do it:
"Safari download enabler" or manager: to allow you to download files.
"Bride": allows you to import downloaded or saved mp3 files or mp4 video files to your iOS library.
I've been using it for a while and it works like magic
You can have private API/Library. Though I never tried, but you can.
Here is the another similar post:
Programmatically add content to music library