Serving content locally

Your application can serve local files through the media://local/ protocol. This allows content stored on the user's device to be accessed directly within your app without first uploading or copying the file.

For example, a video element can play a local file by setting its source to:

media://local/C:/Users/Example/Videos/largefile.mp4

This approach is especially useful when working with large files, since the content can be streamed directly from the user's filesystem instead of being processed or transferred first.

It allows media such as videos, images, or audio to load quickly and behave like normal web resources within your application.