The best way to play / pause / search for large audio files with precision in the web audio API

Having read articles like this and this and this , I still don't understand how to play / pause / search for large audio tracks in javascript to the exact time.

I am developing an animation library that allows you to create temporary animation graphs that will control WebGL buffers and DOM elements, and just about anything. Here is a screenshot:

screenshot

I just got the audio tracks and he needs:

  • Ability to play large tracks
  • Play / Pause
  • Look for
  • Time accuracy
  • It would be a bonus to be able to have sound effects and control their parameters at the exact time.

, . audio element currentTime. , currentTime . Chrome currentTime , Adobe Audition, FireFox - 50 , . , , , . , Chrome Firefox, , offset, .

, .

, , , Audio API , , ( 15 , ) // .. / .

?

, - - Adobe After Effects Premiere , .

+3
1

, API -.

MDN docs, AudioBuffer " , , 45 ".

MediaElementAudioSourceNode, HTML <audio> <video>. , , .

MediaElementAudioSourceNode , , AudioBuffer, . , , , .

Chrome FireFox ( ) 45 . , . 2:56 (Africa Unite by Bob Marley), 5:50 (Method Man 36 Chambers); MP3 . , . , , Chrome Safari , , , , FireFox.

, . Web Audio API , , , API.

+1

All Articles