#Red5 Pro Android 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 /app/src/main/res/values/values.xml (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.
##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
|
| 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 |
| | Cluster | Connect to a stream that is published in a simple cluster server setup. | | Stream Image Capture | Capture an image from a subscribing R5Stream
##Notes
- 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.
- You can see a list of active streams by navigating to http://your_red5_pro_server_ip:5080/live/streams.jsp
- Click on the flash link (for example, flash_publisher) in the streams list displayed to view the published stream in your browser.