how to share iOS game screen in real time? - ios

I created a simple game on iPhone. I want to show my play in real time to my friend's iPhone through network.
Do you know any open source to implement the part?
Or, can you let me know which part I should study to implement it? open gl? cocoa 2d?
thank you.

AFAIK there's no such a think as screen sharing features on iOS and even if there were they would probably be prohibited by Apple. The only screen sharing feature there is is Air Play, which is available for developers to use, but this sharing is only done through an Apple TV. Check out this documents and see, however: Multiple Display Programming Guide for iOS and Air Play Overview.
If you want to make a multiplayer game (either when players play simultaniusly or a turn-based game) you should use the Game Center APIs instead of sharing a screen directly. Please check the Game Center Programming Guide.

Related

How to turn off auto sleep ios in my website

I have a website to play the game. When user plays the game in my web, the ios device auto sleep and turn off the screen then the game can't play anymore.
Do you know that and any idea for that?
Thanks so much!
I understand that you want to prevent the user's device to go to sleep when your game is open but the user doesn't touch the screen for a period of time.
There is no official support in iOS for this kind of feature.
NoSleep.js tries to offer some "hacky" way to keep the device awake, but according to it's issues it's not very reliable and clearly not future-proof.
If you want to have more control on the device consider the creation of a native app for your game.

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.

How do I take a screenshot in a form of a video on my iPod touch 5G?

I have a YouTube channel which I post game reviews and best apps videos. I am currently using my old ipod to record but since I have quite a lot of subscribers I want the video quality to be better. Is there any app I can download to take a screen video on a non jailbroken iPod touch 5G.
You can share screen of your iPod to your desktop computer using AirPlay and record screencast from this computer. It will look like you recorded screen of your iPod. For this you will need anything like this: http://www.airsquirrels.com/reflector/record-iphone-screen/
Or you can try solution from Apple Support Community: https://discussions.apple.com/thread/4893020?start=0&tstart=0
They suggest following:
Get RecordMyScreen from emu4ios.weebly.com on your iPhone. Sroll down
untill you find RecordMyScreen then press install. When it asks if you
want to install the app press indtall. It may take more than one try,
so if it doesn't work the first time tap retry. I have it and it works
great.

rubymotion, game centre and creating a multiplayer game

Does anyone know of any good resources/tutorials/sample code for creating multiplayer functionality within a rubymotion iOS game?
I am currently using Joybox and I want to integrate iOS Game Center to enable two players to play the same game at once.
I have found a great tutorial by Ray Wenderlich:
http://www.raywenderlich.com/3276/game-center-tutorial-for-ios-how-to-make-a-simple-multiplayer-game-part-12
But it's Xcode and Objective-C centric, and I'm having a hard time translating it to RM, so any other source of information would potentially be a big help. Any advice is very welcome.
Thanks.

iPad application - Mirroring the app in airplay

I've a kids application which is rich in graphics.
It don't have any videos in it. Only background audio will be there
It has some activities like counting numbers, reading alphabets etc.
Can I mirror the application in apple tv using airplay so that what ever they see on iPad app must be shown on TV also?
I googled a lot... but i couldn't find any code. But I read that its possible. Can some one guide in how to proceed with this feature?
To use AirPlay your application does not necessarily have to do anything special. AirPlay is built-into iOS, and any app or game can take advantage of it. The user simply has to double-tap the Home button, swipe to the left, press the AirPlay button and select the mirroring option. This works for all apps automatically, including video and sound.

Resources