How to stream out video from iphone? - iphone

I want to make an application to stream out a UIVIEW. So it can be watch from a webplayer for example Flash or HTML 5. But I am really lost how to start. Any Idea would be appreciated.

I've also been working on such a project recently and I found the help of these websites very useful: http://www.html5rocks.com/en/tutorials/getusermedia/intro/, http://davidwalsh.name/browser-camera, or https://simpl.info/getusermedia/sources/
It can be done via HTML5 and Javascript and it's relatively easy to do.
Hope they help!
EDIT: Maybe I misinterpreted your question. Do you want to stream the camera from the iPhone, or do you want to stream the screen of the iPhone?

Related

Best way to convert this flash application to iphone compatible?

I have an interactive flash animation which i need to be able to use on an iPhone, embedded within an iPhone app.
I'm not able to link the animation here but a screenshot of the interface (which is pretty self explanitory) can be found here - http://imgur.com/i4bUgTB
It's a very simple interaction with just dragging answers into boxes and checking whether the answers are correct. My question is what would the easiest/best way to convert this to something that can be used on the iPhone?
My initial thoughts would be to use Canvas but i've not looked deeply into what it can do so I was hoping that someone could point me in the right direction.
Thanks for your advice.
Flash embeds logic inside it via scripts. What you are referring to is not an "animation" but a working application.
You should check this link if you use Actionscript 3, I never did that myself.
If the scenario of the app is as you describe, then using your flash sources inside your iOS app shouldn't be too difficult to achieve IMHO.

Stream screen from Mac to iPhone

I want to create a program that stream the screen of my Mac to my iPhone. Kind of like it is done in Liveview. I'm still relatively new to Objective-C, so I don't know where to start to make such an application.
It seems you have to have something installed both on your Mac and on your iPhone, but how would you actually stream the screen of your Mac to your iPhone?
Hope someone can point me in the right direction.
Update of question
Thanks for the answers. Still seems a bit vague to me and I'm not sure I really need full video streaming. Implementing also seems to be a pain, since there aren't any real good resources for it.
Taking a screenshot every second or so and streaming it to my iPhone as an image, would actually be ok. I've figured out how to stream an image with Bonjour from my Mac to my iPhone.
The screenshot I need to send to my iPhone is of the design that I'm currently working on in photoshop. I've figured out how to take a screenshot and how to get a list of all open windows. But how to make a snapshot of an open PSD-file, I don't know.
Any suggestions on that?
It's a very big subject, so not really something that can be tackled with a simple response. However, I would suggest that one approach would be to write a VNC client for the iPhone. Indeed, this open source exists that's probably worth a look:
http://code.google.com/p/vnsea/
Tim
I would go with the frequent screenshot approach. You would prepare a screenshot of the item you want to transmit and then use some easy library like my DTBonjour to transmit these objects via WiFi to iOS clients.
https://www.cocoanetics.com/2012/11/and-bonjour-to-you-too/
If you were using layer-backing then you could also use the renderLayer... methods which would also include sub-layers.
The most fidelity you'd get from encoding the individual screen shots in a streaming video format, though this is way more work.
This is called RFB (or RDP), and most remote-screen applications use RFB/RDP protocol and libraries which implement it.

iOS video player metadata

My question is if there is any built-in interpretation of metadata by the video player in iOS. I know one can add meta-data to a video and interpret it within a custom application as shown here.
In iOS on ipod or iphone, an HTML video is opened within the native player. I would like to display a message above or below the video for a short duration at the beginning. Since I cannot control the native player I thought there might be some built in metadata interpretation that could be used to perform this. I have not been able to find any information on this.
Any help is appreciated.
The blog you've posted includes details on using the native player MPMoviePlayerController to display meta data, which is pretty cool actually. You learn something new every day! If you're making a Phonegap App I suppose you could write a plugin to do this?
Or alternatively, have a look at this other OS question which appears to suggest that it is possible - though not seemingly with metadata embedded in the actual video. Apparently this works on iOS.
Reading metadata from the <track> of an HTML5 <video> using Captionator

How to record and play a captured video using AVAssertWriter and AVAssertReader in iphone sdk

I am displaying the camera data (video) on the preview layer.Now I want to record the video and store it in a local file and access it to play on the screen.
I had seen some websites that it is possible with AVAssertWriter and AVAssertReader. Its very difficult for me to understand. Can any one advice me in a clearcut manner or with any sample code.
Anyone's help will be much appreciated.
Thanks to all,
Monish.

Best way to stream MP3 from an iPhone app?

I am working on an application that will stream music from a server of mine from an iPhone application.
This is my first iPhone app so I am a bit confused :
What would be the best way to do
this?
Is there something already built in
that I could use, like a MP3 player
that I just need to point toward the
correct server?
Do I need a streaming server to do
so?
I'm relatively new to Objective-C/Cocoa (touch), but I have read an article on the cocoawithlove site titled "Streaming and playing an MP3 stream" and tested the sample code on my iPhone and it works perfectly. I don't know about the licensing or anything, if you would be able to use it, but I'm sure someone or even you can figure that out.
Sorry again for not being able to provide any more information or even a link. This is my first answer on SO and cannot post hyperlinks :(
(edit: Here's the link: Streaming and playing an MP3 stream)