This repository contains a simple project with a number of iOS examples that can be used for testing and reference.
Swift Objective-C C
Latest commit 2a0ef22 Feb 17, 2017 @beetlejesss beetlejesss committed on GitHub Merge pull request #72 from red5pro/develop
Develop

Readme.md

Red5 Pro iOS Streaming Testbed

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 Red5Pro.com.

Setup

You will need to modify /Red5ProTestbed/tests.plist (the domain value) to point to your server instance's IP address. 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.

Note: Publishing does not currently work on simulator!

Examples

Publishing

1080p
A high quality publisher. Note that this is the publish test with a non-default 'bitrate' and camera size values set in tests.plist
ABR
A high bitrate publisher with AdaptiveBitrateController
Camera Swap
Touch the screen to swap which camera is being used! erify with flash, android, or other iOS device running subscribe test that camera is swapping properly and no rendering problems occur.
Mute/Unmute
Touch the screen to toggle between sending Audio & Video, sending just Video, sending just Audio, and sending no Audio or Video. Turning off and on the media sources is considered mute and unmute events, respecitively
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
Rotate the device to update the orientation of the broadcast stream. Verify with browser-based players (WebRTC, Flash, HLS), Android, or other iOS device running subscribe test that image is rotating properly and no rendering problems occur.
Orientation
Touch the screen to rotate the output video 90 degrees. Verify with browser-based players (WebRTC, Flash, HLS), Android, or other iOS device running subscribe test that image is rotating properly and no rendering problems occur.
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.
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.

Subscribing

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.
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.
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.

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, http://your_red5_pro_server_ip:5080/live.
  2. You can see a list of active streams by navigating to http://your_red5_pro_server_ip:5080/live/subscribe.jsp (will need to refresh this page after you have started publishing).
  3. Click on the flash link to view the published stream in your browser.

Analytics