From cd7e1c5fce77b31008159e366f4c62e8f27a578e Mon Sep 17 00:00:00 2001 From: devresaja Date: Tue, 22 Oct 2024 22:40:47 +0700 Subject: [PATCH] fix play from youtube --- lib/src/utils/video_apis.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/utils/video_apis.dart b/lib/src/utils/video_apis.dart index 69153a19..d9d4b663 100644 --- a/lib/src/utils/video_apis.dart +++ b/lib/src/utils/video_apis.dart @@ -138,8 +138,10 @@ class VideoApis { ), ); } else { - final manifest = - await yt.videos.streamsClient.getManifest(youtubeIdOrUrl); + final manifest = await yt.videos.streamsClient.getManifest( + youtubeIdOrUrl, + ytClients: [YoutubeApiClient.mediaConnect], + ); urls.addAll( manifest.muxed.map( (element) => VideoQalityUrls(