Capture sound while plying a YouTube video - ios

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

Related

AVPlayerViewController video's audio background playing and support for multiple formats

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.

Recording a video with the front-facing camera while another video is being played on the phone.

I am currently learning Swift in order to build an iOS app for my research project which involves recording someone's face while they watch a video on an iPhone. I've looked through a few tutorials on how to get a video playing and how to record video in Swift but I'm not sure on how to merge the two together. Particularly, I will have a "Play Video" button that as soon as the user presses it, the front-facing camera will start recording and a video will begin to play.
I've found this post - Record video while other video is playing - that is very similar to the question that I'm asking but I don't really understand the code that is written.
Thanks a lot!

Need youtube audio to continue to play when iOS app enters background

My app has a UIWebView that plays specific youtube content within the app. Some of these videos can be lengthy and are more audio centric (e.g. lectures and/or music). I'd like users of the app to be able to leave the app but have the audio of the youtube video continue to play, without the need for hitting a resume or play button. How can this be done? I'm willing to abandon the UIWebView if there is a better alternative.
Thank You.
I work on the same troube. The problem come from the mpmovieplayer which play the movie in ios.
An article of Matt Gallagher said:
"This pause is sent from the CALayer displaying the video frames. This is a private class for an MPMoviePlayerController and is your own AVPlayerLayer for an AVPlayer."
source - http://www.cocoawithlove.com/2011/04/background-audio-through-ios-movie.html
This article is very old (2011), but maybe the problem is similar.
Good luck

Record audio over a live video

I have a video file and I want to suppress the audio of the video file while playing and record my own audio through my iPad application. Can anyone suggest me the ways to achieve it?

How to record cocos2d game play?

In my cocos2d game, i need to record game play as a video including sound produced by the game.
How can I implement this? Anybody can help me. Please suggest a way to implement this.
Finally i find out kamcord(http://kamcord.com/) SDK for recording game play
Kamcord is a built-in gameplay video and audio recording technology for iOS. This repository contains a Kamcord SDK that works with cocos2d-1.0.1 and allows you, the game developer, to capture gameplay videos with a very simple API. Your users can then replay and share these gameplay videos via YouTube, Facebook, Twitter, and email.
get code here https://github.com/kamcord/cocos2d-kamcord-ios/wiki
Try using a iPad to HDMI converter. From there you can capture video and sound.
Or you can get sound by using the jack on the device and record video with a well placed camera :)

Resources