how to add airplay function in our application? [duplicate] - iphone

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
AirPlay support, MPMoviePlayerController and MPVolumeView relation
I am implementing one iphone application in which I want to add airplay functionality.
I dont know is possible of not.
Please give me idea about that.
Thanks in advance

If the device supporting airplay is enabled and within the same network, the player provides the option to play via airplay automatically. However there is a explicit flag which you can set stating to enable airplay for MPMovieController. Youtube player detects its autmatically, so does the quicktime player.

Related

What's the best way to play a .mp3 in iPhone App ? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Iphone sdk support for playing mp3 files over the network
I need to play a .mp3 in my iPhone app. The .mp3 is on a server, and I just have the URL of it. It would be nice if it could be played in a UIWebView. In any case I want to stay in my app, and stream it.
The easiest way is to use MPMoviePlayerController. Despite the name, it fully supports audio-only streaming.
What omz said.
Btw, this is a very nice article which gives an overview of the history of iDevice media APIs:
http://cocoawithlove.com/2011/03/history-of-ios-media-apis-iphone-os-20.html
It will give you some idea of the options available.

How to get and play iPhone Default sound files? [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Play alert sound (same as default message ringtone)
Hi,
How to get and play iPhone default Sound files in iPhone.
You can do this, but it's undocumented. You wouldn't be able to do this in an App Store app. See here: Play alert sound (same as default message ringtone)

Play song from the internet [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
downloading mp3 file from server in iphone programing.
How can I play music from the internet in my iPhone program? I want to play the song depending on the rate of download. Please guys, help. I have tried for one week.
I assume you try to open it with Safari? Could you be more specific as to why it doesn't work and what kind of source (file) that is?
Ideally you download it on your Mac or PC and sync it to your iPhone. If that is not possible you could try another browser like Opera. Alternatively there are several streaming apps which play music (free of charge) like last.fm or pandora.
good luck*

Speech recognition in iphone sdk? [duplicate]

This question already has answers here:
iPhone App › Add voice recognition? [closed]
(4 answers)
Closed 9 years ago.
Is there any via which we can identify the speech saved by the user at any time.what i want to do i want to save some user voices in the iphone and when user call any one sound iphone should react on that way i.e like if i say camera it would open the camera and if i say gallry it would open the photo gallery.
Is there any API provided by apple in any SDK upto 4.0 beta.or we have to use any third party tool for it .
Thanks
There's no api as far as i know... Overall iPhone isn't a kind of device you want to do such things on, in terms of performance at least. The regular scheme to do speech recognition on the iphone is to sample the mic, send the recorded stuff onto server, and fetch the result.

Is there a way I can capture my iPhone screen as a video? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to be able to capture my iPhone's screen as a video, but I'm not sure the best way to do this.
Can anyone help guide me on how to best do this without jailbreak?
Here's my solution in a nutshell:
In recent years, when needing to produce moving visual content from the interface of an iOS app, I would require the developer provide a compiling of the app designed for the Simulator, (must be separately compiled because the apps are, by default compiled to run on the iPhone's ARM processor, whereas the Simulator runs on the Mac's Intel processor). This would then be screen captured on the Mac with something like Snapz Pro, Screenflow or something similar.
Beyond that, typical solutions required jailbreaking the device and installing a screen capture application sourced from the Cydia Store.
With the introduction of the iPad 2, Apple enabled full interface mirrored video output via either an authorized dock connector to HDMI dongle, or a dock connector to VGA dongle. (Note: Apple's composite and component options do not port mirrored content.) While the typical intent for these output mechanisms are to display the interface content to an external projector or High Definition Television, it is possible to record this mirrored content with a device capable of recording or transcoding content from such an incoming source. This option was also made possible with the introduction of the iPhone 4S. Quite often, recording this video content is done with HDMI capture cards installed on the capturing computer, such as those produced by Black Magic or AJA, among others. This is, or course limited to using computers that are capable of having such a capture card installed. Other options may include some HDMI record-enabled DVR devices (though many detect and disable such options) or firewire-based transcoding devices (like the Grass Valley ADVC-HD50, which I use).
Since getting the iPad 2 earlier this year, I have been using the Grass Valley ADVC HD50 to capture iOS screen motion from dock connected HDMI to a HDV compatible video capture application on my Mac. It has thus far worked flawlessly.
Here is an example from a video I recorded showing such captured content from both the iPHone 4S and the iPad 2.
http://youtu.be/k7jlPx8NAmw
However, now that Apple has enabled wireless iOS mirroring via Airplay in iOS 5, I find it is now much more convenient to connect an Apple TV device to the Grass Vally ADVC HD50, and capture the iOS interface screen recording wirelessly.
Here is a recent short video example in which the iPhone 4S interface was captured wirelessly via Airplay mirroring.
http://youtu.be/UKsixjcCXdI
I hope this helps.
As others have suggested, AirPlay mirroring is the way to go. To mirror directly to your computer use an AirPlay server like http://www.airserverapp.com/. Then, since it's showing up directly on your computer you can capture it using the built-in Quicktime app (File > New Screen Recording). Works great!
You can use Lookback. It records your screen, face, voice and all gestures, and uploads them to your account on the web.
Here's a demo: https://lookback.io/watch/JK354d5jcEpA7CNkE
Loren Brichter the developer of Tweetie2 wrote this little app called SimFinger to make iphone screencasts top notch!
http://blog.atebits.com/2009/03/not-your-average-iphone-screencast/
Love apps that make amateurs look like pros :)
I made a plugin for the simulator that does just this. You can find it at my blog.
It actually records the screen. It does not rely on another screen capture program like iShowU.
It will install icons for the default apps and change the carrier text to look like a real device.
Short of using a video camera, no.
Many youtube videos for demonstrating iPhone applications are made with a screen grabber application (such as iShowU, ScreenFlow, or Snapz Pro) and the simulator. Be aware that the speed of response in the simulator can be dramatically different than a device - so it's possible to get effects (and miss) with the simulator you'll never see on a device. In particular, default animations can flash by in the simulator, where they just look quick on a device.
using ScreenCaptureView class we can capture the iphone screen as video.The source code is available here.The recorded video is saved in a NSUrl,outputURL.Use that NSUrl in a method like below to play the recorded video,
-(void)playvideo
{
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:outputURL ];
[player.view setFrame:CGRectMake(0,0,320,480)];
[player setMovieControlMode:MPMovieControlModeHidden];
[player setScalingMode:MPMovieScalingModeAspectFit];
[player setBackgroundColor:[UIColor blackColor]];
[player setFullscreen:YES animated:YES];
[player play];
[self addSubview:player.view];
}
call this method before releasing NSUrl in completeRecordingSession method ..it will replay what you did in the iphone screen as a video.
Note: This answer is outdated
www.iphonevideorecorder.com. There's a free trial I think, but after that you'd need to buy it. And you need to jailbreak your iphone.
You could use the video-out and capture that somehow with a firewire or sumthing..
The class MPTVOutWindow can help you out! Here's a nice sample of that!
http://iphone-developers-nc.googlegroups.com/web/UIApplication_TVOut.m
I used ScreenFlow to record the Simulator, and zoomed it and added static images as necessary. I then embedded the movie in an iPhone frame on my website. Turned out okay. See the Tweeps page for the result.
i guess it is so obvious now that no one has posted this but for the noobs.... note: iPhone 4S only
just airplay to an apple tv and video mirror then output the atv to a device that can record - like tivo, dvr etc. you can also use a video out cable on the iPad [1 and 2] now
not sure if the cable works on the iPhone 4S as I havent tested that myself
its clunky but there is no other way i can see atm.
I've continued to research this item myself, and it does appear to remain beyond us at this point.
I even tried buying a Apple Composite AV Cable, but it doesn't capture screen, just video playing like YouTube, etc.
So I decided to go with the iShowU path and that has worked out well so far.
Thanks Guys!
For a nice looking screencast, have a look at SimFinger. You will still need a screen recoder such as Snapz Pro.
Just for anyone who is still looking for solutions:
The RecordMyScreen jailbreak app is opensourced and works fine even on non-jailbreak devices if we have the developer license. You can have a look at the source: https://github.com/coolstar/RecordMyScreen
I dont believe this is possible.
Your best bet is to get something like iShowU and capture from the simulator.