html5 red5,GitHub - softuvo/streaming-html5: Testbed examples for Red5 Pro HTML SDK usage

f8e7cb82d9ef3b573da707a0645bfff0.png

Red5 Pro HTML5 Streaming Testbed

This repository contains a simple project with a number of examples that can be used for testing and reference for the Red5 Pro HTML SDK.

These examples are also shipped with the Red5 Pro Server and can be found in the webapp webrtcexamples.

##Requirements

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

For more information visit Red5Pro.com.

Browser Compability

While the Red5 Pro HTML SDK aims to utilize WebRTC for its streaming solution (both publishing and subscribing), the SDK does support fallback support for non-supporting browsers in both contexts. The default failover order for both contexts, which can be redfined by developers, is:

Publisher

Subscriber

More information about browser compability can be viewed at the WebRTC Peer Connnection information on caniuse.com.

Setup

You will need to modify the Host field from the Settings page 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.

Note on TLS and CORS

It is important to note that some of these examples - specifically those that involve publishing using WebRTC - require being run on TLS and, thusly, served over HTTPS. If running the examples on localhost you should not see an issues, but if your server is deployed remotely you will need to be sure that these examples are served over HTTPS and the proper Cross Origin Resource Sharing (CORS) settings are defined for the server.

Instructions

To define the server instance's IP address, open the testbed webapp in a browser and navigate to the Settings page if not presented upon launch. To access the Settings back, select the Home item from the examples list located at the top.

To define the Host with the server instance's IP, click the Host field f the form and enter in the local or remote IP address - e.g., 10.0.0.5, 76.199.199.199.

Hint: You can also open the landing page of your server instance at port 5080 (i.e., http://localhost:5080 if launched locally) and the page will display its IP in the upper-right corner.

Examples

*Basic publisher example using WebRTC with failover.

i.e, if no WebRTC browser support, then Flash Player if detected.

A high quality publisher.

Demonstrates authentication with the Simple-Auth-Plugin for publishing.

Demonstrates selecting the desired camera to publish with.

Demonstrates capturing an image of a live video being published.

Muting and unmuting audio for a live video being published.

*Demonstrates utilizing the Red5 Pro Stream Manager API to publish to an autoscaling cluster's origin.

Demonstrates utilizing the Red5 Pro Stream Manager as an SSL WebSocket Proxy to publish WebRTC to an autoscaling cluster's origin.

Demonstrates recording a stream to the server for VOD (Video-On-Demand) playback.

Demonstrates record-append function a stream to the server for VOD (Video-On-Demand) playback.

Demonstrates sending a remote message to all subscribed clients.

Demonstrates using remote Shared Object to send and recieve information between connected clients.

Demonstrates simultaneously publishing while subscribing - allowing a conversation. Includes stream detection and auto-connection.

*Basic subscriber example with failover.

i.e, if no WebRTC browser support, then first Flash Player is detected, then HLS.

Demonstrates playback of audio-only stream.

Demonstrates authentication with the Simple-Auth-Plugin for subscribing.

Demonstrates capturing an image of a live video being consumed.

Demonstrates accessing an IP from the Red5 Pro Cluster API to subcribe to a live stream.

Demonstrates utilizing the Red5 Pro Stream Manager API, and acting as SSL WebSocket Proxy, to access an Edge server IP to subscribe to a live stream.

Demonstrates utilizing the Red5 Pro Stream Manager API to access an Edge server IP to subscribe to a live stream.

Demonstrates receiving a remote message from broadcaster.

Demonstrates using remote Shared Object to send and recieve information between connected clients.

Notes

For the Subscriber examples, you will need to have a live stream currently being published and named based on the Stream 1 Name field of the Settings. You can use another device to start streaming using this webapp, or you can also use a web browser to publish via Flash, http://your_red5_pro_server_ip:5080/live.

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

You can access the server IP of your Red5 Pro Server install - to be used in the Host field of the Settings - by opening http://your_red5_pro_server_ip:5080/ and finding the IP printed in the upper-right of the page.

6cbc0d4ede94642c09eba994493468e7.gif

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值