Source Resolver

The source resolver takes a URL or byte stream and creates the appropriate media source for that content. The source resolver is the standard way for the applications to create media sources.

Internally, the source resolver uses handler objects:

  • Scheme handlers take a URL and create a media source or a byte stream.
  • Byte stream handlers take a byte stream and create a media source.

You can implement a custom handler and add it to the registry. Scheme handlers are registered by URL scheme, and byte stream handlers are registered by file name extension or MIME type.

This topic contains the following sections:

Media Sources