video-event-debug
v1.0.0
Published
Log HTML5 video player events
Downloads
2
Maintainers
Readme
video-event-debug
Log (ie. console.log
) all HTML5 video player events in real-time. Demonstration here: http://scottyfillups.io/video-event-debug
Installation
$ yarn add video-event-debug --dev
# Or,
$ npm install video-event-debug --save-dev
Usage
import videoDebugger from 'video-event-debug'
const $video = document.createElement('video')
videoDebugger($video)
$video.src = 'http://my.videourl.com'
document.body.appendChild($video)
$video.play()
Acknowledgements
List of media events retrieved from MDN: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events