Skip to content

Arnab-m1/WebRTC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebRTC

WebRTC Live Streaming

This project provides a simple WebRTC live streaming application with a Node.js server and a desktop client built using AngularJS. Signaling is handled via Socket.io.

Features

Prerequisites

Getting Started

1. Cloning the Repository

git clone https://github.com/arnab-m1/WebRTC.git
cd WebRTC/

2. Running the Application Locally (Without Docker)

To run the application locally without Docker, follow these steps:

Install Dependencies:

npm install

Start the Server:

npm start

The server will run on port 3000. You can test it in your browser (Chrome or Firefox) by navigating to:

http://localhost:3000

Running with Warnings Trace:

If you encounter any issues or need to debug warnings, run the app with:

node --trace-warnings app.js

3. Running the Application with Docker

If you prefer to use Docker, you can build and run the application inside a container.

Build the Docker Image:

In the root directory of the project, run:

docker build -t webrtc-app .

This will build a Docker image named webrtc-app.

Run the Docker Container:

docker run -p 3000:3000 webrtc-app

This will start the app and expose it on port 3000. You can access the app in your browser at:

http://localhost:3000

Running with Warnings Trace in Docker:

If you want to trace warnings while running the app in Docker, use the following command:

docker run -p 3000:3000 webrtc-app node --trace-warnings app.js

This will enable warning tracing while running your application inside the Docker container.

4. Docker Compose (Optional)

If you prefer to use Docker Compose for easier setup, create a docker-compose.yml file like this:

yaml
Copy code
version: '3'
services:
  webrtc-app:
    build: .
    ports:
      - "3000:3000"
    command: node --trace-warnings app.js

Then, you can start the application using:

docker-compose up

Troubleshooting

If you encounter any issues with the WebRTC connection or signaling, try running the application with the --trace-warnings flag to trace potential circular dependencies or other warnings:

node --trace-warnings app.js

This will output detailed information about warnings in the terminal, which can help with debugging.

Author

About

WebRTC Live Streaming Build on nodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published