Skip to content
videojs-flow(flv live over websocket), low latency live streaming plugin for videojs.
Branch: master
Clone or download

Latest commit

Latest commit 9e3dfc3 Jan 16, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Add webrtc demonstration Aug 6, 2017
.gitignore Add webrtc demonstration Aug 6, 2017
LICENSE Initial commit Sep 7, 2016
README.md Update README.md Jan 16, 2020

README.md

videojs-flow

videojs-flow(flv live over websocket), low latency live streaming plugin for videojs.

+---------------+       +----------------+       +--------------+        +----------------------+
| videojs(MSE)  +---<---+ videojs-flow   +---<---+ demo/mse.go  +--<-----+      Media Server    +
+---------------+       + (js flv2mp4)   +       + (http to ws) +        +   (http flv live)    +
                        +----------------+       +--------------+        +----------------------+

Remark: Please use bilibili/flv.js for videojs-flow.

Usage

To check your browser whether support MSE, click here.

To start SRS with a live stream http://localhost:8081/live/livestream.flv, please read here.

To run demo/mse.go to transmux HTTP-FLV to WebSocket-FLV ws://localhost:8080/live/livestream.flv:

go get golang.org/x/net/websocket &&
go run mse.go -l 8080 -b 8081

Links

H5 capabilities:

  1. http://ossrs.net/mse/html5.html

About Websocket:

  1. https://tools.ietf.org/html/rfc6455
  2. https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
  3. https://en.wikipedia.org/wiki/WebSocket
  4. http://caniuse.com/#search=websocket

About MSE(Media Source Extension):

  1. https://www.w3.org/TR/media-source
  2. https://developer.mozilla.org/en-US/docs/Web/API/MediaSource
  3. https://en.wikipedia.org/wiki/Media_Source_Extensions
  4. http://caniuse.com/#feat=mediasource

About Videojs:

  1. http://videojs.com/getting-started/
  2. http://ossrs.net/mse/videojs.html

Remark: The MSE(Chrome) requires segment starts with keyframe, read videojs.

Winlin 2016

You can’t perform that action at this time.