Giter Site home page Giter Site logo

jsmpeg-ws-web's Introduction

jsmpeg-ws-web

jsmpeg + ws + ffmpeg 纯js实现多路视频直播浏览器播放,无插件限制

简单描述下原理, 客户端页面连接websocket将需要查看的直播地址传递过来,websocket服务端通过FFMPEG将直播视频转码为mpegts 格式发送给客户端, 客户端通过jsmpeg 解码数据 通过canvas 将直播画面绘制在页面上;

First

First of all, it's a fork of node-rtsp-stream-es6

depends

jsmpeg, FFMPEG

DEMO

test目录下提供了个demo, 启动server.js, 将view-stream.html部署在服务器上 打开即可查看效果 server.js 提供 ws服务和自动运行本地计算机上的ffmpeg 程序 解析web端传送过来的直播地址,并推送mpegts 程序到客户端, 客户端通过jsMpeg 解析数据绘制在canvas上,不依赖flash 和h5的video标签,所以也不受他们的限制,什么自动播放啥的轻松实现;

上点效果图 ^-^

效果图1 效果图2 万恶的IE也毫无压力

docker

docker-jsmpeg

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.