Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Process and Stream Video from Iphone to Computer

PajoloPajolo Posts: 2New Users
edited April 2011 in iPhone SDK Development
Hi guys,
I'm working on a project to:
- capture a video stream from the iPhone camera
- process it to change the colours
- display it on the screen of the iphone
- compress it and send it to a computer

Before I go out and buy all the hardware I wanted to know if this is possible using XCode, gcc-iphone on a 2.0 firmware or if it is overall impossible.
I know that the bluetooth module is rendered virtually useless.
Can I use wifi? Or can I plug in a cable to the iPhone and use that?

Any help whatsoever will be much appreciated
Thanks
Pajolo
Post edited by Pajolo on

Replies

  • Son of a BeachSon of a Beach Posts: 223Registered Users @ @
    edited March 2010
    WiFi is the only supported means of networking with the iPhone, and your options for transferring data to/from the phone are limited.

    The simplest way is to use the built in email module to send an email with an attachment. This is very quick and easy to implement.

    Other options include setting up an HTTP server on the iPhone, which is rather complicated, but there's a few open source solutions out there for doing so.

    PS. The email solution can be done as simply as the following example:
    -(IBAction)emailSomething
    {
    	if ( ! [MFMailComposeViewController canSendMail] )
    		return;
    
    	MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init];
    	mailController.mailComposeDelegate = self;
    	
    	[mailController setSubject:@"Subject"];
    	
    	[mailController addAttachmentData:routeData
    				mimeType:@"application/some-type"
    				fileName:@"filename.typ"];
    	
    	[mailController setMessageBody:@"Body" isHTML:NO];
    	[self presentModalViewController:mailController animated:YES];
    	[mailController release];
    }
    
  • PajoloPajolo Posts: 2New Users
    edited March 2010
    Thanks a mil for your help.
    So do you think streaming is possible at all?
    If not perhaps I can opt for another phone...
    Any suggestions?
    Thanks
    Paul
    WiFi is the only supported means of networking with the iPhone, and your options for transferring data to/from the phone are limited.

    The simplest way is to use the built in email module to send an email with an attachment. This is very quick and easy to implement.

    Other options include setting up an HTTP server on the iPhone, which is rather complicated, but there's a few open source solutions out there for doing so.

    PS. The email solution can be done as simply as the following example:
    -(IBAction)emailSomething
    {
    	MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init];
    	mailController.mailComposeDelegate = self;
    	
    	[mailController setSubject:@"Subject"];
    	
    	[mailController addAttachmentData:routeData
    				mimeType:@"application/some-type"
    				fileName:@"filename.typ"];
    	
    	[mailController setMessageBody:@"Body" isHTML:NO];
    	[self presentModalViewController:mailController animated:YES];
    	[mailController release];
    }
    
  • Son of a BeachSon of a Beach Posts: 223Registered Users @ @
    edited March 2010
    oops, I forgot to include the following in my sample code above (I've edited the original code to update in there too):
    	if ( ! [MFMailComposeViewController canSendMail] )
    		return;
    

    Sorry, I don't know anything about the actual streaming.
  • eldar134eldar134 Posts: 8New Users Noob
    edited April 2011
    WiFi is the only supported means of networking with the iPhone, and your options for transferring data to/from the phone are limited.

    The simplest way is to use the built in email module to send an email with an attachment. This is very quick and easy to implement.

    Other options include setting up an HTTP server on the iPhone, which is rather complicated, but there's a few open source solutions out there for doing so.

    Could you please, which open source solutions are they?
    I could not find any sample for streaming video(iPhone Camera) from iPhone to any other device.
Sign In or Register to comment.