Class: shaka.util.MimeUtils

A set of utility functions for dealing with MIME types.

Source:

Members

(private, static, constant, non-null) EXTENDED_MIME_PARAMETERS_ :Object.<string, string>

A map from Stream object keys to MIME type parameters. These should be ignored by platforms that do not recognize them. This initial set of parameters are all recognized by Chromecast.
Type:
  • Object.<string, string>
Source:

Methods

(static) getExtendedType(stream) → {string}

Takes a Stream object and produces an extended MIME type with information beyond the container and codec type, when available.
Parameters:
Name Type Description
stream shakaExtern.Stream
Source:
Returns:
Type
string

(static) getFullType(mimeType, opt_codecsopt) → {string}

Takes a MIME type and optional codecs string and produces the full MIME type.
Parameters:
Name Type Attributes Description
mimeType string
opt_codecs string <optional>
Source:
Returns:
Type
string