/streaming-ios

This repository contains a simple project with a number of iOS examples that can be used for testing and reference.

Primary LanguageObjective-C

#Red5 Pro iOS Streaming Examples

This repository contains a simple project with a number of examples that can be used for testing and reference.

##Requirements

You will need a functional, running Red5 Pro server web- (or locally-) accessible for the client to connect to.

For more information visit http://red5pro.com.

##Setup

You will need to modify /Red5ProStreaming/Supporting Files/connection.plist (the domain value) to point to your server instance. If you do not, the examples will not function when you build.

Once you have modified your settings, you can run the application for simulator or device.

Note: Publishing does not currently work on simulator!

##Examples

###Publishing

Adaptive Bitrate Publishing
Utilize the AdaptiveBitrateController to dynamically adjust video bitrate with connection quality

| | Custom Video Source | Publish custom data to a Red5 Pro stream in place of standard camera input
| | Stream Send | Broadcast messages to subscribers with R5Stream.send - includes example for recieving as a subscriber
| | Swift Publishing | How to publish using Swift | | Two Way Video Chat | Starter example that shows how to implement a two way video chat using each end as both publisher and subscriber

###Subscribing

AutoReconnect
Wait for a publisher to start by monitoring connection events

| | Clustering | How to subscribe to a Red5 Pro Cluster | | Stream Image Capture | Capture an image from a subscribing R5Stream

##Notes

  1. For some of the above examples you will need two devices (a publisher, and a subscriber). You can also use a web browser to subscribe or publish via Flash.
  2. You can see a list of active streams by navigating to http://your_red5_pro_server_ip:5080/live/streams.jsp
  3. Click on the flash link (for example, flash_publisher) in the streams list displayed to view the published stream in your browser.

Additional Red5 Pro Examples Can be found at: [android-streaming-testbed] (https://github.com/red5pro/android-streaming-testbed) and [ios-streaming-testbed] (https://github.com/red5pro/ios-streaming-testbed)

Analytics