Advertisement
Guest User

test.html

a guest
Sep 6th, 2013
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.08 KB | None | 0 0
  1. <html>
  2. <body>
  3. <script src='./effect_chain_mixer.js'></script>
  4. <script>
  5. console.log("start");
  6. 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>"}}}]}}}';
  7. console.log("container:" + container);
  8. var mixer = new EffectChainMixer(container);
  9.  
  10. mixer.init();
  11. </script>
  12.  
  13. <a href="javascript:void(0)" onclick="mixer.play();">play</a><br>
  14. <a href="javascript:void(0)" onclick="mixer.pause();">pause</a><br>
  15. <a href="javascript:void(0)" onclick="mixer.stop();">stop</a><br>
  16. <br><br>
  17. <a href="javascript:void(0)" onclick="mixer.seek(mixer.times.songPos+10);">+10sec</a><br>
  18. <a href="javascript:void(0)" onclick="mixer.seek(mixer.times.songPos-10);">-10sec</a><br>
  19. <br><br>
  20. <a href="javascript:void(0)" onclick="console.log(CONTEXT.currentTime);">time</a><br>
  21.  
  22. </body>
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement