Giter Club home page Giter Club logo

823639792 / ke-rtsp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kekeqy/ke-rtsp

0.0 2.0 0.0 19 KB

一种基于Media Source Extensions(简称MSE)技术实现的html5实时视频直播方案。Node.js调用ffmpeg包装rtsp流,然后通过socket.io转发包装后的流,前端html5获取流数据并通过MSE把流一点一点喂给video标签进行视频播放。能够支持谷歌浏览器、火狐浏览器、Edge浏览器、安卓原生浏览器,不支持IE。高性能,支持同时转发多路视频,占用硬件资源不多。低延时,延时1s。

TypeScript 100.00%

ke-rtsp's Introduction

ke-rtsp

一种基于Media Source Extensions(简称MSE)技术实现的html5实时视频直播方案。Node.js调用ffmpeg包装rtsp流,然后通过socket.io转发包装后的流,前端html5获取流数据并通过MSE把流一点一点喂给video标签进行视频播放。能够支持谷歌浏览器、火狐浏览器、Edge浏览器、安卓原生浏览器,不支持IE。高性能,支持同时转发多路视频,占用硬件资源不多。低延时,延时1s。

运行示例项目

1、克隆或者下载项目到本地。

2、命令行进入到项目目录,执行命令node sample/index.js。

3、修改sample/index.html中的config对象的url参数为你的rtsp测试地址。

4、浏览器打开http://localhost:8080/。

集成到你的项目中

1、安装模块

npm i ke-rtsp

2、导入模块

import * as rtsp from 'ke-rtsp';

3、创建一个流媒体服务器对象

new rtsp.StreamingMediaServer(http);
参数http为http.Server对象。

ke-rtsp's People

Contributors

kekeqy avatar

Watchers

 avatar  avatar

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.