Skip to content

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

License

Notifications You must be signed in to change notification settings

winlinvip/videojs-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published