https://github.com/danielrohers/videojs-time
Get time of video watched
https://github.com/danielrohers/videojs-time
Last synced: over 1 year ago
JSON representation
Get time of video watched
- Host: GitHub
- URL: https://github.com/danielrohers/videojs-time
- Owner: danielrohers
- License: other
- Created: 2016-04-02T13:58:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-03T04:16:06.000Z (about 10 years ago)
- Last Synced: 2025-01-24T10:47:05.517Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://danielrohers.github.io/videojs-time
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# videojs-time
Get the time watched video
## Installation
[Node.js](https://nodejs.org)
```bash
[sudo] npm install
```
## Starting
Compile files
```bash
gulp dist
```
Watch files
```bash
gulp watch
```
View example
```bash
npm start
```
## Using
```js
videojs('my-video', {
plugins: {
time: {
get : function (currentTime) {
console.log('currentTime: ', currentTime);
},
send: window.location.href
}
}
});
```
## License
[Licence](https://github.com/danielrohers/videojs-time/blob/master/LICENSE) © Daniel Röhers Moura