Giter Site home page Giter Site logo

rtsp-web's Introduction

Node.js + WebSocket + FFmpeg + flv.js

注意:此项目的服务端仅做测试用

HTML5播放RTSP视频文章中的方案。

网页直播rtsp视频 node.js+ffmpeg+websocket+flv.js

server端

server目录是服务端代码。

运行前,先根据自身系统安装FFmpeg,并将bin目录设置到系统环境变量中。

目录

|-server
|-dist
|  |-index.js # babel编译后
|-src
|  |-index.js

启动

  1. 先安装依赖
yarn
# or
npm install
  1. 运行服务
npm start # 会先babel编译src/index.js,然后运行dist/index.js

# or
npm run build
node ./dist/index.js

client端

client目录是web端代码。使用的是vue+iview

运行前,先运行server端,视频才能观看。

视频源是Wowza Streaming Engine: RTSP Streaming

如果失效了,上去看看是不是改地址了或者自行找视频地址更换。

更换VideoModal.vue,data中的rtspUrl

目录

|-src
|  |-App.vue
|  |-components
|  |  |-Cameras.vue # 摄像列表
|  |  |-VideoModal.vue # 视频弹窗
|  |-main.js

启动

  1. 先安装依赖
yarn
# or
npm install
  1. 运行服务
npm run serve

rtsp-web's People

Contributors

littlebaozi 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.