minimal sample to investigate unexpected increase memory with Media Source Extensions.
https://tasukuuno.github.io/sample-mse-memory-usage/
npm install
npm start
then open http://localhost:8080
There was a memory leak that ArrayBuffers were not removed from sourceBuffer.
See this diff.
It seems necessary to wait for SourceBuffer#remove()
to complete before calling MediaSource#endOfStream()
.