Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/youkaclub/mediasync
- Owner: youkaclub
- Created: 2020-01-21T00:37:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-26T00:28:03.000Z (about 5 years ago)
- Last Synced: 2024-09-18T11:57:18.440Z (5 months ago)
- Topics: audio, html5, mediaelement, sync, video
- Language: JavaScript
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-repos - youkaclub/mediasync - sync html media elements (JavaScript)
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