Cleanup the current source when loading a new one
If src() is called when a src is already loaded, make sure to abort any outstanding work and reset the state of the SourceBuffer. Switching sources after initial load occasionally caused weird audio and video artifacts because the underlying decoder was working from the old state.
Showing
2 changed files
with
65 additions
and
37 deletions
-
Please register or sign in to post a comment