Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/youkaclub/mediasync

sync html media elements
https://github.com/youkaclub/mediasync

audio html5 mediaelement sync video

Last synced: 3 months ago
JSON representation

sync html media elements

Awesome Lists containing this project

README

        

# mediasync
sync html media elements (video/audio).

## usage
```js
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