You will need a functional, running Red5 Pro server web- (or locally-) accessible for the client to connect to. If you already have a Red5 Pro Account, you can find the Red5 Pro Server download at https://account.red5pro.com/download.
For more information visit Red5Pro.com.
A Red5 Pro SDK License Key is required to use the iOS Mobile SDK. If you already have a Red5 Pro Account, you can find your Red5 Pro SDK License Key at https://account.red5pro.com/overview.
You will need to copy the
SDK License
into thelicense_key
property field of the tests.xml resource file.
You will need to modify app/src/res/raw/test.xml (the domain value) to point to your host
server instance's IP address and update the license_key
property to that of your Red5 Pro SDK License. If you do not, the examples will not function when you build. If you are running the server locally, then your machine and mobile device need to be on the same WiFi network.
Once you have modified your settings, you can run the application for simulator or device.
If prompted to upgrade gradle, you should ignore.
1080p |
---|
A high quality publisher. Note that this is the publish test with a non-default 'bitrate' and camera size values set in tests.xml |
|
| ABR
| A high bitrate publisher with AdaptiveBitrateController
|
| Authentication
| An example of publishing a stream as an authenticated user
|
| Camera Swap
| Touch the screen to swap which camera is being used! Verify using flash that camera is swapping properly and no rendering problems occur.
|
| Custom Video Source
| Uses a custom controller to supply video data to the publisher.
|
| Image Capture
| Touch the publish stream to take a screen shot that is displayed!
|
| Device Orientation
| After starting a broadcast, rotate your device from portrait to landscape. You will notice that the view updates on the broadcasting device. Additionally, if you subscribe with mobile or the browser-based players, you will see their orientation update with the change to device orientation.
|
| Record
| A publish example that records stream data on the server.
|
| Remote Call
| The publish portion of the remote call example - sends the remote call.
|
| Send
| An example of sending data and messages from a Broadcaster to N-Subscribers.
|
| Stream Manager
| A publish example that connects with a server cluster using a Stream Manger
|
| Two Way
| An example of simultaneously publishing while subscribing - allowing a conversation. Includes stream detection and auto-connection.
|
| Shared Object
| An example of sending data and messages between clients through remote shared objects.
Aspect Ratio |
---|
Change the fill mode of the stream. scale to fill, scale to fit, scale fill. Aspect ratio should be maintained on first 2. |
|
| [Authentication]((app/src/main/java/red5pro/org/testandroidproject/tests/SubscribeAuth)
| An example of subscribing to a stream as an authenticated user
|
| Bandwidth Test
| Detect Insufficient and Sufficient BW flags. Test on a poor network using a publisher that has high video quality. Video should become sporadic or stop altogether. The screen will darken when no video is being received.
|
| Cluster
| An example of conecting to a cluster server.
|
| Image Capture
| Touch the subscribe stream to take a screen shot that is displayed!
|
| No View
| A proof of using an audio only stream without attaching it to a view.
|
| Reconnect
| An example of reconnecting to a stream on a connection error.
|
| Remote Call
| The subscribe portion of the remote call example - receives the remote call.
|
| Send
| An example of receiving data and messages from a Broadcaster using the send
API.
|
| Stream Manager
| A subscribe example that connects with a server cluster using a Stream Manger.
|
| Two Streams
| An example of subscribing to multiple streams at once, useful for subscribing to a presentation hosted by two people using a Two Way connection.
- 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.