javascript - Custom progressive audio streaming in browser -


say create own progressive streaming mechanicsm in javascript because i'm finding browser's built in streaming mechanism not fault-tollerant enough or implement own custom method on websocket. create buffer holds downloaded segments of continous media file (say arraybuffer or that). possible play file if it's not downloaded start-to-end?

my idea web audio api has noteon() function preceisely timing start of each segment. don't know how gapeless be. introduces problem have know audio files can cut safely on server side next part can decoded without loss , gaps. e.g. mp3's bit reservoir stores audio data in neighbour audio frames in cbr mode makes things difficult.

what creating scriptprocessornode feeds incoming buffers? biggest issue making sure segments convertible raw audio samples, otherwise write simple function in onaudioprocess event handler pulls in next available buffer chunk , copies node's output buffers. since pull-on-demand mechanism, wouldn't need worry timing segment playback.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -