How to record cocos2d game play? - ios

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 :)

Related

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!

How to PAUSE app background music when Chartboost and AppLovin Video Ads is playing and resume app background music after close the Video Ad?

Dear fellow programmers/developers,
I am a total newbie and I am trying to learn some objective-c to do some simple re-skin for some app for iOS. I inherit a puzzle game source code and would like to implement a function to PAUSE the game background music when Video Advertisement from Chartboost and Applovin is playing. I successfully integrated Chartboost and AppLovin into the app but when the Video Advertisement is playing either from these 2 ad networks, the video ads sound is over-lapping with my game background music and it is very annoying to hear 2 sounds playing together. I would appreciate if any fellow developers can assist me or point me to the correct resources for answer. I am pasting a few screen shots from xcode and if I am missing anything please advice and I will paste more screen shots.
This is my AdManager.m
This is my AdManager.h

Using Audio Effects with iPhone music library

I'm trying to add some audio effects to an iPhone app I'm developing.
The app is a music player that allows users to choose songs from their iTunes music library. I want them to be able to carry some basic adjustments for example Bass, Middle, Treble and perhaps add some reverb. I've played around with NVDSP and looked at audio units however these don't seem to work with the iTunes library due to DRM restrictions.
Has anybody managed to achieve this? Thanks in Advance.

Playing Vimeo Videos with Custom Video Player in iOS

I have to play Vimeo videos in my iOS application using a video player. I need to log events like play, pause, seek etc. Its not possible to play using MPMoviePlayerController or AVPlayer as Vimeo videos have flash content. I am able to play using UIWebView. But, it is showing default Vimeo player controls. I need to have my own controls to play, pause etc as I need to log those events.
I have tried for lot of solutions. Nothing worked. If anyone knows how to play Vimeo videos using custom player. Please Let me know.
I am able to find out solution for this problem. I have used YTVimeoExtractor present here.
Its README.md file says following :
YTVimeoExtractor helps you get mp4 urls which can be use in iOS's native player. You can even choose between mobile, standard and high definition quality.
YTVimeoExtractor doesn't use UIWebView which makes it fast and clean.
I have used MKMoivePlayerViewController and its notifications - MPMoviePlayerPlaybackStateDidChangeNotification and ˚ notifications to get stop, pause events.
The only official way to use a player besides the Vimeo player to play Vimeo videos is to use third-party player urls provided to PRO members: https://vimeo.com/s/adg

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

Resources