GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lsongdev/node-rtmp: A Node.js implementation of RTMP Server

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
example
example
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 
server.js
server.js
 
 

Repository files navigation

RTMP-Server

A Node.js implementation of RTMP Server

  • Supports only RTMP protocol.
  • Supports only H.264 video and AAC audio.

Install

npm install --save rtmp2

Usage

const RTMP = require('rtmp2');

const rtmpServer = RTMP.createServer();

rtmpServer.on('client', client => {
  client.on('command', command => {
  //  console.log(command.cmd, command);
  });

  client.on('connect', () => {
     console.log('connect', client.app);
  });
  
  client.on('play', ({ streamName }) => {
    console.log('PLAY', streamName);
  });
  
  client.on('publish', ({ streamName }) => {
    console.log('PUBLISH', streamName);
  });
  
  client.on('stop', () => {
    console.log('client disconnected');
  });
});

rtmpServer.listen(1935);

You can now publish streams to rtmp://localhost:1935/live/mytv and use any unique stream key.

~$ ffmpeg -f avfoundation -i "1" -vcodec libx264 -f flv rtmp://localhost:1935/live/mytv

The stream will then be available at rtmp://localhost:1935/live/mytv.

License

This project is under MIT license.

About

A Node.js implementation of RTMP Server

npmjs.org/rtmp2

Topics

rtmprtmp-serverrtmp-stream

Resources

Readme
GPL-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

25 stars

Watchers

3 watching

Forks

8 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.