getManifest method

Future<StreamManifest> getManifest(
  1. dynamic videoId
)

Gets the manifest that contains information about available streams in the specified video.

Implementation

Future<StreamManifest> getManifest(dynamic videoId) async {
  videoId = VideoId.fromString(videoId);

  try {
    final context = await _getStreamContextFromEmbeddedClient(videoId);
    return _getManifest(context);
  } on YoutubeExplodeException {
    //TODO: ignore
  }
  final context = await _getStreamContextFromWatchPage(videoId);

  return _getManifest(context);
}