removeSourceBuffer method
Removes a source buffer from the MediaSource object.
Important This method is not supported in Internet Explorer 11 on Windows 7.
![]() |
Syntax
MediaSource.removeSourceBuffer(sourceBuffer);Parameters
- sourceBuffer [in]
-
Type: SourceBuffer
The source buffer to remove.
Return value
This method does not return a value.
Remarks
This method is used to periodically clean up buffers that have already played. IE11 does an automatic garbage collection when the memory taken by buffers reaches approximately 200mb per audio or video buffer. However, it is a better practice to manage used buffers as you go along.
See also
Show:
