Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- var video = document.querySelector('video');
- var events = [
- 'abort',
- 'canplay',
- 'canplaythrough',
- 'durationchange',
- 'emptied',
- 'ended',
- 'error',
- 'loadeddata',
- 'loadedmetadata',
- 'loadstart',
- 'pause',
- 'play',
- 'playing',
- 'progress',
- 'ratechange',
- 'seeked',
- 'seeking',
- 'stalled',
- 'suspend',
- // 'timeupdate',
- 'volumechange',
- 'waiting',
- 'click',
- 'blur',
- 'focus',
- 'durationchange',
- 'ratechange',
- 'change'
- ];
- events.forEach(function(name) {
- video.addEventListener(name, function(e) {
- console.log(name, e);
- });
- });
- }())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement