Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

theonion/videojs-persistvolume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

videojs-persistvolume

A plugin for Video.js that saves user's volume setting using localStorage, but falls back to cookies if necessary.

###Usage Include the plugin:

<script src="videojs.persistvolume.js"></script>

Add persistVolume to plugins object with one option, namespace.

plugins: {
    persistvolume: {
	    namespace: 'So-Viral-So-Hot'
    }
}