Skip to content

tibor-kocsis/videojs-livestream-keeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

videojs-livestream-keeper

Experimental video.js plugin handling chrome's and firefox's autoplay and 'video pause in background' features for live streams. This plugin used in a project to watch live streams from ip cameras (ip camera rtsp stream -> rtmp -> flv-websocket -> flv.js -> videojs-flvjs in browser)

  • In every seconds the plugin gets the end of the seekable timerange and seeks before it
  • If player is paused, the plugin calls play

Usage

Install with npm:

npm i --save videojs-livestream-keeper

Insert into the html page, after videojs script

<script src="node_modules/videojs-livestream-keeper/dist/livestream-keeper.js"></script>

Activate the plugin:

var player = videojs('...', { ... }).liveStreamKeeper();

About

A video.js plugin that takes care of the chrome's and firefox's autoplay and 'video pause in background' features

Resources

License

Stars

Watchers

Forks

Packages

No packages published