0.3.0 • Published 5 years ago

mediasync v0.3.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

mediasync

sync html media elements (video/audio).

usage

const MediaSync = require('mediasync').MediaSync
const ms = new MediaSync()
const audio = document.querySelector('#audio')
const video = document.querySelector('#video')
ms.add(audio)
ms.add(video)
ms.play()
ms.seek(42.2)
ms.pause()
ms.remove(video)

license

MIT