Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <script src='./effect_chain_mixer.js'></script>
- <script>
- console.log("start");
- var container = '{"audiofile":{"sources": {"filehttp://127.0.0.1:8000/royal.mp3": {"volume": 1.0}},"consumers": [],"effect":{"effect_id": "clip","timepoints": [{"timepoint": 0,"duration": 0,"change": {"offset": {"value": 0, "<type>": "<type>"},"trim": {"value": 0,"<type>": "<type>"},"duration": {"value": 180,"<type>": "<type>"},"mode": {"value": "normal","<type>":"<type>"}}}]}}}';
- console.log("container:" + container);
- var mixer = new EffectChainMixer(container);
- mixer.init();
- </script>
- <a href="javascript:void(0)" onclick="mixer.play();">play</a><br>
- <a href="javascript:void(0)" onclick="mixer.pause();">pause</a><br>
- <a href="javascript:void(0)" onclick="mixer.stop();">stop</a><br>
- <br><br>
- <a href="javascript:void(0)" onclick="mixer.seek(mixer.times.songPos+10);">+10sec</a><br>
- <a href="javascript:void(0)" onclick="mixer.seek(mixer.times.songPos-10);">-10sec</a><br>
- <br><br>
- <a href="javascript:void(0)" onclick="console.log(CONTEXT.currentTime);">time</a><br>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement