MediaAttachment

class MediaAttachment(val fileName: String, val mimeType: String?, val data: ByteArray)

One file attached to a container, as the container wrote it. See PlayerMediaSource.attachments.

mimeType is the container's own claim and may be missing or wrong, so isFont also accepts the file extensions font files actually carry.

Constructors

Link copied to clipboard
constructor(fileName: String, mimeType: String?, data: ByteArray)

Properties

Link copied to clipboard

SHARED, not copied: a font can be megabytes and is read once. Treat it as read-only.

Link copied to clipboard

The name the container stored the file under.

Link copied to clipboard

True for the TrueType and OpenType files a typesetter can shape with.

Link copied to clipboard

The media type the container declares, when it declares one.

Functions

Link copied to clipboard
open override fun toString(): String