function getAllStreams(manifest) {
    const streams = [];

    for (const variant of manifest.variants) {
      if (variant.audio) {
        streams.push(variant.audio);
      }
      if (variant.video) {
        streams.push(variant.video);
      }
    }
    for (const stream of manifest.textStreams) {
      streams.push(stream);
    }

    return streams;
  }
@param {shaka.extern.Manifest} manifest
@return {!Array<shaka.extern.Stream>}