I am able to play songs from iPod library using AVPlayer class.
Now what I want to do is to insert equalizer to the audio produced.
Anybody has experienced in doing this?
There is no way to play MPMediaItem and adding sound equalizer with AVPlayer. We have to use Audio Unit processing.
I have done this leveraging a class provided in the Apple Samples:
http://developer.apple.com/library/ios/#samplecode/avTouch/Listings/Classes_CALevelMeter_h.html
Hope this helps.
Related
I am trying to make a video player with custom audio effects. To perform an effect I've written an audio unit. To play video stream I use AVPlayer with muted sound. The problem is that audio and video are out of sync. And it gets awful when I pause and resume the playback.
Could you please suggest any ideas about how to sync the two things? Maybe use something else instead of AVPlayer?
Thanks in advance.
I shall answer my own question.
There is a thing called MTAudioProcessingTap. It allows for doing audio manipulation stuff just like an audio unit but inside AVPlayer.
There's a link for more details: https://chritto.wordpress.com/2013/01/07/processing-avplayers-audio-with-mtaudioprocessingtap/.=
I have to do a Video streaming app (using a remote url) in swift. But there is no any exact video format. Sometimes it can be m3u8 sometimes mp4 etc.. but my video player should support for what ever the format comes from the back end.
Also when the app is in background, the audio should play and when the app comes foreground video should play without any time delay between the vide and the audio.
I want to know whether is it possible to achieve my objectives using AVPlayerViewController or else what is the best player that I can use to achieve my targets. Please help me.
Thanks
AVPlayerViewController supports m3u8 and mp4 both format. For playing video's audio you need some extra configuration. You can check from here...
How do I get my AVPlayer to play while app is in background?
Is it possible to play video using Avplayer in Background?
So according to me AVPlayerViewController is best option for your requirement.
I am developing an iOS app which require to play audio from soundcloud. I can successfully play audio using AVPlayer with live audio stream.
Now, I want to set equalizer for AVPlayer so, user can manage output sound for this.
I search for this but all documents are so complicated.
So, can anyone please guide me regarding this? So, I can set equalizer effect for this. Thanks in advance.
i think AVPlayer is not support for Equalizer Effect, for this you need to apply bands for all audio units but by using STKAudioPlayer u can achieve it easily. refer following link it will help you.
https://github.com/tumtumtum/StreamingKit
I am using iPodMusicPlayer to play songs from iPod Library.
Now i want to play songs from document directory with iPodMusicPlayer.
I don't want to play with AVPlayer.
If i can , how can i play it?
Thanks for your help.
I'm pretty sure you can. Try checking out this Apple document: http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMusicPlayerController_ClassReference/Reference/Reference.html
I'm building an app in iOS 5.0.
I want to record sound and video while playing a YouTube video.
The video is not a problem, but I can't record the sound.
Anyone have an idea ?
Best regards,
Martin