Giter Club home page Giter Club logo

ajk-local-video-streaming's Introduction

TCtreaming

TCtreaming is a local video streaming and chatting web based application. It consist of server, client, and streamer.

TCtreaming is build by open broadcaster software or broadcast me, nginx, projekktor, rtmp module.

INSTALLATION

1. Video Streaming

-- Server --

Installing nginx with RTMP module

  • installing tools for nginx
$ sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
  • Download nginx and RTMP Module
$ wget http://nginx.org/download/nginx-1.9.15.tar.gz
$ wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
  • Unpack the downloaded package
$ tar -zxvf nginx-1.9.15.tar.gz
$ unzip master.zip
$ cd nginx-1.9.15
  • Build nginx
$ ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master
$ make
$ sudo make install
  • Nginx installed and start the nginx
$ sudo /usr/local/nginx/sbin/nginx
  • Test to make sure nginx is running, text http:/// to your browser and you should get the "Welcome to nginx!" page.

Configuring nginx to use RTMP

  • Open your config file, located by default at /usr/local/nginx/conf/nginx.conf and add the following at the very end of the file:
rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;
                }
        }
}
  • Restart nginx
$ sudo /usr/local/nginx/sbin/nginx -s stop
$ sudo /usr/local/nginx/sbin/nginx
2. Chatting

-- Server --

  • Install NodeJs
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt install nodejs-legacy
  • Instalasi NPM
sudo apt-get install npm
  • Instalasi nodemon
sudo npm install -g nodemon

FILES REQUIREMENT

HOW TO USE TCtreaming FOR SERVER

  • Move the files to /usr/local/nginx/html
  • Edit The IP in the index.html at html directory
  • Start Nginx server - if nginx already started do next stage
  • open TChat directory
cd /usr/local/nginx/html/TChat
  • Start NodeJs Server using nodemon
nodemon index.js

HOW TO USE TCtreaming FOR STREAMER

  • Use Open Broadcaster Software (OBS)
Streaming Service: Custom
Server: rtmp://<your server ip>/live
Play Path/Stream Key: test
  • Use Broadcast Me

Setting the URL

rtmp://<your server ip>/live/test/

All Done.

ajk-local-video-streaming's People

Stargazers

 avatar

Watchers

 avatar

Forkers

avianandadj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.