This project demonstrates an implementation of a multi-stream WebRTC viewer using Amazon Kinesis Video Streams. It allows dynamic creation and management of multiple WebRTC stream viewers, each capable of independently establishing and controlling a WebRTC connection and data channel.
- Dynamic Viewer Creation: Create multiple viewer instances on-the-fly, each with its own WebRTC connection.
- Custom Channel Naming: Utilize a flexible channel naming system allowing user-defined patterns.
- Independent Stream Control: Each stream viewer operates independently, with individual control over start, stop, and message handling functionalities.
- Real-Time Messaging: Integrated data channels for real-time message exchange between viewers and the stream source.
- Amazon Kinesis Video Streams setup
- A modern web browser supporting WebRTC
-
Clone the repository:
git clone https://github.com/your-repository/multi-stream-webrtc-viewer.git
-
Configure your AWS credentials and other necessary settings in a configuration file or environment variables.
- Open
index.html
in your web browser to access the application.
- Create Viewer: Input the desired channel name pattern and any AWS credentials
- Control Stream: Use the controls in each viewer instance to start or stop the stream, and to send or receive messages.
- Monitor Streams: Observe the real-time metrics and messages for each active stream.
Contributions to this project are welcome! Please fork the repository and submit a pull request with your proposed changes.
This project is licensed under Apache 2.0 based on the source example project. See the LICENSE file for more details.