Is there a way to record the audio output of a certain application on OSX programmatically? - objective-c

Is there a way to record the audio output of a certain application(for example only record chrome while chrome is playing video and apple music is playing music) on OSX programmatically? Does it need to implement an audio driver to achieve it?
Is there a way to record the audio output of a certain application(for example only record chrome or itune while chrome is playing video and apple music is playing music) on OSX programmatically? Does it need to implement an audio driver to achieve it?

Related

MPMoviePlayer or AVPlayer play advertisements(ads) in the middle of a video iOS

We are trying to play ads while playing a video using MPMoviePlayer or AVPlayer in our iOS app. What is the best way to achieve this functionality? Can anyone suggest the right way to make it work as YOUTUBE Player which plays ads in the middle of video.
https://github.com/androidios/AVEditDemo is the wonderful example for merging multiple videos in iOS.
Here is apple WWDC video for editing videos in iOS http://adcdownload.apple.com//videos/wwdc_2010__hd/session_407__editing_media_with_av_foundation.mov

AVPlayer Video Playback No Sound

I'm using AVPlayer to play back some embedded (.mov) video clips in the bundle and I can't get the audio to playback. Any advice on how to get the audio to play? All I see is the video playing with no audio.
Make sure that the audio in the movie is using one of the support audio codecs. These are listed in the Multimedia Programming Guide if you're using iOS. If you're using OS X, then this list might be more appropriate.

How can I prevent my application (using AVPlayer) is muted when the ringtone is muted?

The topic may sound strange, but please keep reading on.
I am using AVPlayer to play some sound from the iPod library and everything works fine when using it with headphones plugged in, but when I want to use the app to play from the built in speakers there is no sound output. (The time counter and everything else in the application is still working like there would be sound output. Like it is just muted.)
I checked the volume and the mute lock and then found out that the ringtone was muted. But ringtone muting doesn't affect other applications like the iPod app itself or the Spotify music app.
How can I prevent my application (using AVPlayer) is muted when the ringtone is muted and behave like other music player apps?
You should set your app's audio session to AVAudioSessionCategoryPlayback. From the docs:
Use this category for an
application whose audio playback is of primary importance. Your audio
plays even with the screen locked and with the Ring/Silent switch set
to silent.

Can an iOS app access the subtitles or closed captions of a video in the device's Videos library?

Is there a way to do this, by using the Media Player Framework or any other means?
I would like to build an app that allows the user to work with the subtitles of a store-bought video.
Starting from iOS5, UIAccessibility protocol specifies a method UIAccessibilityIsClosedCaptioningEnabled() to get the value of Settings->Video->Closed Captioning switch value.

Get Audio Levels of Music Playing

I'd like to create some sort of visualization in my app that uses the music that's already playing in on the device (iPhone or iPad). Is it possible to get the audio data that is being played by other apps, such as the default music app, or even something (third party) like Spotify?
Basically, I just want my UI to react to the music playing, but I'd rather not force the user to use my music player for the UI to react.
No, that is not possible. Sorry.