Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 337 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 337 Bytes

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