iphone send video to ipad live streaming and wireless control (like AR Drone) - iphone

How can I send video from an iPhone to an iPad?
I'm building a robot that is an iPhone controlling an arduino, for the next phase I would like to be able to send some live streaming video from the iPhone to see in an iPad and have the iPad sending commands to the iPhone.
so how to send live streaming video from one device to the other (WiFi preferred or BlueTooth), and how to control one device via wireless from the other?
EDIT:
The best example for what I intend to do is the Parrot AR Drone and another app for the toy,
app clone to pilot the Quadracopter
The difference is that I would be getting the image from an iPhone and sending the control orders to the iPhone [from an iPad] as well, not a separate hardware.
Thanks a lot!

Most of the apps I've seen that do this use AVFoundation to capture data form the video camera - then push the frames to a server somewhere. You probably won't want to push every frame. For the receiving side of things I would have a server hosting a web page with an html5 video tag looking at an m3u8 playlist. Have your files from the iphone go into the playlist folder.
<video src="http://yourserver.com/path/to/stream/yourPlaylist.m3u8">
Your browser does not support the VIDEO tag
</video>
Then set your view on the ipad or computer to look at that webpage. There is for sure a more direct way of sending the files straight to the ipad for viewing - but I like being able to view the video from any broswer :)
If you want to stay away from a web view on the ipad you can also get the files as you would retrieve any file over a network. The web view is just the easiest way in my opinion.

How to integrate Live555 in XCode (iOS SDK)
hope this helps!

Related

Use the iPad's Camera for Stream in Localhost

On my Mac Book Pro, I have a MAMP server.
Address: http://localhost:8888
I create a simple page with a video tag:
On my iPad Pro, I created an application that uses the camera of the iPad.
I would like to know how to send the video from the iPad's camera to my localhost server (on the video tag).
I have no idea how to do this.
Can you help me?
Thank you so much
Note: The iPad and the MacBook are not connected by a cable.
The iPad and MacBook are in 2 different rooms.
The issue with apple is the video format which can be streamed are not supported by other browsers (m3u8 format) which cannot be viewed in chrome / mozilla only works in safari browsers. so the solution for this is to capture images from iPad (frame extractor)
Below link will help to do it
https://medium.com/ios-os-x-development/ios-camera-frames-extraction-d2c0f80ed05a
after extracting the images send this images to the localhost in the form of MJPEG format. and you can view this in you browser player.
Make sure you use GCD and Autorelease pool or while sending the images the iPad UI may freeze as it is a heavy task to extract and send it to server at the same time.
Hope this helps.

iOS streaming camera feed to another device

Has anyone tried to streaming the camera feed of one iOS device to another device? So for example a iPhone camera feed to a iPad 1. I guess you could keep taking pictures and sending over Bluetooth but that would probably work very badly.
The ideal solution would be to stream video and location over to one device via wifi and be able to send data back.
Check out this project I hope this helps.

how to use the camera roll feature which says upload video to youtube, email and mms, in our own iphone application?

i have built an iphone application which makes a video and than you can record the video further. now the main part or my application is that i want to upload it to youtube or e-mail it. now conventionally you take a video or picture for instance from the gallery and using the camera roll feature.
can i utilize that feature in my own application so that after i have recorded a video through my iphone application i dont have to go back to the camera roll feature which is there in the iphone built in gallery.
It doesn't look like you can get access to those features within your app.
You'll have to implement these features yourself.

iPhone MP3 Streaming alternative to Segmenting

I have run into a bit of a problem. I built an iPhone app that streams my podcasts via the MPMoviePlayerController. Apple will not approve it because it can use too much bandwidth over the Carrier Network. So their workaround is to use a Stream Segmenter. I am unable to install a stream segmenter on my server. Are their ANY other solutions people have come up with that can help me stream my podcast to iPhone devices? Even if I have to make it a Web Application as opposed to a native application.
Thanks,
John
You could use a simple service like Encoding.com to create iphone segmented ondemand versions of your files for multi bitrate adaptive playback. You could also provide a high and low quality and only display the high when the reachability class shows that your using wifi. I had to do the second option to get one of my apps to pass approval. Hope this helps!
Well if you don't want a native app, I think you can just put a video link on a webpage and when the user clicks it Quicktime will take over and play the file. It will play the file as it downloads it.
I don't have any experience streaming large files over the iPhone, so I can't help guide you on alternatives and keeping it a native app.

How do I stream video and play it?

How can I stream video data from the network and play it on an iPhone?
First, are you developing a Web app optimized for iPhone or a native application ?
In the first case, your only option is to transcode your video files to Quicktime H.264 (m4v or mp4 extension). You can use Quicktime Pro (use the export menu) or VLC (as a free alternative). Then simply add a hyperlink to the video file on your HTTP server. Make sure it presents the right content-type and stuff (read Safari Web Content Guide for iPhone OS: Configuring Your Server). That'll work for web and native apps (in a native app you would use the MPMoviePlayerController view). So can "stream" (technically called progressive download of a Quicktime movie file).
If you're talking about streaming live content (i.e. content that you produce live or transcode a live feed) there is currently no official way of doing it (as of iPhone OS 2.2). iPhone OS does not support RTSP/RTP streaming. A number of native iPhone applications (such as UStream.tv and Orb Live) have created their custom live streaming solution (most of them transfer a delayed streams with many seconds of latency over HTTP then somehow decode it on the phone using FFmpeg or other libraries).
Are you trying to stream video in your app or just streaming on your iPhone? For streaming video through an app, use the MPMoviePlayerController and pass the URL of your video to it. The MPMoviePlayerController will itself stream the video and play it for you.
If you're looking for a server based solution (with a very affordable Amazon EC2 option), be sure to check out Wowza at http://www.wowzamedia.com/advanced.php
It streams directly to iPhone/iPod Touch without a custom app.
note: I'm not affiliated with them at all... just a fan/customer.
edit: Just noticed how old this question was. :)