Skip to main content
Defined in: core/context.ts:286 Options of loadMediaOf.

Properties

maxBytes?

Defined in: core/context.ts:292 Refuse media larger than this many bytes with a MediaTooLargeError: checked against the size the provider declared (before downloading anything) and while reading the download, which is cut as soon as it goes over. Default: no cap.

throwOnError?

Defined in: core/context.ts:294 Reject with the download error instead of resolving undefined. Default false.