Reference revoke()

revoke()

Revokes the Blob URL associated with this file, if one was created.

When video or audio files are loaded via createFileInput() or myElement.drop(), p5 creates a Blob URL pointing to the media in browser memory. p5 normally releases this resource when the sketch is removed. Call revoke() sooner when the media is no longer needed while the sketch continues running, such as when replacing a video with a new one. Do not revoke the URL while a media element still needs it: after revocation, the URL cannot be used to load, play, or seek the media.

Examples

Syntax

revoke()

Parameters


Related References