# Class: SourceUpdater

## SourceUpdater(mediaSource, mimeType)

#### new SourceUpdater(mediaSource, mimeType)

A queue of callbacks to be serialized and applied when a MediaSource and its associated SourceBuffers are not in the updating state. It is used by the segment loader to update the underlying SourceBuffers when new data is loaded, for instance.

##### Parameters:

Name | Type | Description
--- | --- | ---
`mediaSource` | MediaSource | the MediaSource to create the SourceBuffer from
`mimeType` | String | the desired MIME type of the underlying SourceBuffer

Source:
  - source-updater.js, line 8