Skip to content

Commit

Permalink
fix play from youtube
Browse files Browse the repository at this point in the history
  • Loading branch information
devresaja committed Oct 22, 2024
1 parent f3ea20e commit cd7e1c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/utils/video_apis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cd7e1c5

Please sign in to comment.