open-index/open-npm huggingface dataset:
npm package: @hola.org/videojs-utils
Description: Video.JS utility functions
Latest version: 0.0.1-5

videojs-utils
=============
Helper functions for Video.JS
## Local Storage
Persistent local storage support (with fallback to cookies) surviving page reloads.
```
var volume = videojs.utils.localStorage.getItem('volume');
if (volume!=null)
    player.volume(volume);
...
player.on('volumechange', function(){
    videojs.utils.localStorage.setItem('volume', player.volume());
});
```