static async filterManifest(drmEngine, manifest, preferredKeySystems = [],
      keySystemsMapping = {}) {
    await shaka.util.StreamUtils.filterManifestByMediaCapabilities(
        drmEngine, manifest, manifest.offlineSessionIds.length > 0,
        preferredKeySystems, keySystemsMapping);
    shaka.util.StreamUtils.filterTextStreams_(manifest);
    await shaka.util.StreamUtils.filterImageStreams_(manifest);
  }
Alters the given Manifest to filter out any unplayable streams.

@param {shaka.drm.DrmEngine} drmEngine
@param {shaka.extern.Manifest} manifest
@param {!Array<string>=} preferredKeySystems
@param {!Object<string, string>=} keySystemsMapping