npm

Need private packages and team management tools?Check out npm Orgs. »

@scenejs/media

0.1.6 • Public • Published

@scenejs/media npm version

A library for playing or controlling media with scenejs

Installation

npm

$ npm i @scenejs/media

script

<script src="//daybrush.com/scenejs/release/latest/dist/scene.js"></script>
<script src="//daybrush.com/scenejs-media/release/latest/dist/media.js"></script>

How to use

const mediaScene = new MediaScene();
 
mediaScene
    .addMedia("./clapper.mp3")
    .seek(0, 0.452)
    .setVolume(0.5)
    .setPlaySpeed(2)
    .setDelay(1);
 

install

npm i @scenejs/media

Downloadsweekly downloads

3

version

0.1.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability