Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daybrush/scenejs-media
🎬 A library for playing or controlling media
https://github.com/daybrush/scenejs-media
audio dom media scene scenejs video
Last synced: about 2 months ago
JSON representation
🎬 A library for playing or controlling media
- Host: GitHub
- URL: https://github.com/daybrush/scenejs-media
- Owner: daybrush
- Created: 2019-03-30T07:07:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T16:25:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T00:05:42.390Z (about 2 months ago)
- Topics: audio, dom, media, scene, scenejs, video
- Language: TypeScript
- Homepage:
- Size: 166 KB
- Stars: 12
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @scenejs/media [![npm version](https://badge.fury.io/js/%40scenejs%2Fmedia.svg)](https://badge.fury.io/js/%40scenejs%2Fmedia)
A library for playing or controlling media with **[scenejs](github.com/daybrush/scenejs)**
## Installation
### npm
```sh
$ npm i @scenejs/media
```### script
```html```
## How to use
```js
const mediaScene = new MediaScene();mediaScene
.addMedia("./clapper.mp3")
.seek(0, 0.452)
.setVolume(0.5)
.setPlaySpeed(2)
.setDelay(1);```