0

Similar to Communicating with a flash server using rtmp without Flash I'd like to communicate with a RTMP server without Flash. The difference is that I'd like to publish a video stream instead of playing it.

  1. Is there a difference between publishing video streams and playing them?
  2. On a high level, how do I implement a live video chat client that records from a local webcam and publishes to a RTMP server? Is it as simple as grabbing video frames from a webcam, wrapping them in RTMP and sending them to the server? Or does something else happen along the way?
Community
  • 1
  • 1
Gili
  • 86,244
  • 97
  • 390
  • 689
  • 1
    Your non-Flash application would need to get video frames from the web cam, encode them in h263 or h264, and then use a 3rd party lib to send RTMP packets to a server. Getting this to work right is not trivial. Doing this w/Flash is trivial, so you might want to reconsider whether using Flash or not is the best approach :) – Sunil D. Apr 11 '12 at 22:54
  • @SunilD.: Adobe has abandoned Flash on mobile devices and Air is extremely buggy. See http://blogs.adobe.com/conversations/2011/11/flash-focus.html -- How hard is it to write a RTMP client that publishes? – Gili Apr 12 '12 at 15:40
  • Adobe has not abandoned Flash on mobile devices ... only Flash on mobile browsers. They are still committed to moving Adobe Air forward. As the title and content of the article state: Our future work with Flash on mobile devices will be focused on enabling Flash developers to package native apps with Adobe AIR for all the major app stores. – Sunil D. Apr 12 '12 at 15:52
  • Here's a [blog post](http://blog.ninethsense.com/publish-and-receive-webcam-with-flex-on-flash-media-server/) that does a very simple publish of a video feed and then subscribes to it. That code would work on a mobile device and PC just the same (I've done it w/IOS). – Sunil D. Apr 12 '12 at 15:55
  • @SunilD.: Under Android I get a [5 second lag](http://forums.adobe.com/message/4294837?tstart=0) (this is a post by another user). I also [read](http://forums.adobe.com/message/3992313) that Air doesn't support H264 encoding under iOS. – Gili Apr 12 '12 at 17:04
  • I wasn't aware of that issue on Android. I have to say, I'm not surprised ;) And yes, iOS doesn't allow Flash to do h264 (Apple's restriction, I believe). Unfortunately, for our live streaming application a native iOS application was not feasible (again, thanks to Apple's restrictions). Our only alternative was to use H263 and Adobe Air. I expect Air to get better in time, but understand and appreciate your issues/concerns over the current state of things. – Sunil D. Apr 12 '12 at 22:31

0 Answers0