Yield control to the browser between appending FLV tags
Pushing an entire segment worth of FLV tags into the source buffer at once caused noticeable delays with high-bitrate segments. Instead, wrap each call to appendBuffer in a setTimeout of zero so that the browser has a chance to render frames while the segment is being transferred to the SWF. Make sure that appends-in-progress are cleared if a seek is initiated.
Showing
7 changed files
with
217 additions
and
32 deletions
src/async-queue.js
0 → 100644
test/async-queue_test.js
0 → 100644
-
Please register or sign in to post a comment