Static BytesStatic supportedThe set of supported media mime types
Array of mime type strings
Static supportedThe overall set of supported mime types
This is a union of all specifically supported mime types
Static supportedThe set of supported package mime types
Array of mime type strings
Static supportedThe set of supported PDF types
Array of PDF type strings
Static supportedThe set of supported text mime types
Array of mime type strings
Static supportedThe set of supported XML mime types
Array of mime type strings
Static AsStatic FileWhether the given filename's extionsion matches any of the provided extensions
the filename to test
a set of extensions to compare against. Expected to be lower case.
The lower case variant of the file extension is compared.
Static ReadStatic compareStatic Private extractStatic extractTries to infer useful track metadata from the URL, by splitting the URL into parts, if possible.
The artist is not guessed, it's always empty.
Static extractStatic getStatic getStatic getStatic getReturns the response content as a promise that resolves with a file
the response to read the content from. The body and headers, especially the content length, are expected to be available
the callback function to use for periodic update. The progress is reported as percentage.
This works similar to the the Response.blob() function, but returns a file and additionally provides some progress information.
Static getMaps a URL to a locally usable file name
can be used to match a track URL to a stored media file
Just removes the protocol
Full URL's (with protocol) are not usable for Replayer here as file names because they will be invalid as path insided a ZIP archive.
Static getStatic handleHandles the given filename and blob as having media content and converts it into a MediaBlob
Guesses the MIME type from the file name extension
This is used when a file is read from the ZIP package and not yet available as blob
Static hasStatic isReturns whether the given file name (by prefix/suffix) is a supported audio file name by Replayer
the filename to test, which also can be a full URL
track types should later be determined by MIME type. For this, the MIME type should become part of the (readonly) track information, determined when the track URL is evaluated.
Static isStatic isStatic isStatic isStatic isReturns whether the given file name (by prefix/suffix) is a supported PDF file name by Replayer
the filename to test, which also can be a full URL
track types should later be determined by MIME type. For this, the MIME type should become part of the (readonly) track information, determined when the track URL is evaluated.
Static isStatic isStatic isStatic isStatic isStatic isStatic isStatic isReturns whether the given file name (by prefix/suffix) is a supported media file name by Replayer
the filename to test, which also can be a full URL
Currently, some audio, video, youtube plus txt, pdf, with name variations, are supported
Static isStatic isStatic isStatic isStatic isReturns whether the given MIME type is a supported package MIME type by Replayer
See https://stackoverflow.com/a/72232884/79485 about mime types
Static isReturns whether the given file name (by prefix/suffix) is a supported text file name by Replayer
the filename to test, which also can be a full URL
track types should later be determined by MIME type. For this, the MIME type should become part of the (readonly) track information, determined when the track URL is evaluated.
Static isStatic isStatic isReturns whether the given file name (by prefix/suffix) is a supported video file name by Replayer
the filename to test, which also can be a full URL
track types should later be determined by MIME type. For this, the MIME type should become part of the (readonly) track information, determined when the track URL is evaluated.
Static isStatic isStatic isStatic isStatic remove
Provides handling methods for package, media and compilation files, originating both from the local file system or an online resource.