isTypeSupported static method

bool isTypeSupported(
  1. String type
)

The MediaSource.isTypeSupported() static method returns a boolean value which is true if the given MIME type and (optional) codec are likely to be supported by the current .

That is, if it can successfully create SourceBuffer objects for that media type. If the returned value is false, then the user agent is certain that it cannot access media of the specified format.

Implementation

external static bool isTypeSupported(String type);