Mirza Showvik
Mirza Showvik

Reputation: 44

How can I add a Youtube playlist with video in my flutter app?

I need to add a Youtube playlist with a Youtube player to my Flutter application. How can I do that?

Upvotes: -3

Views: 859

Answers (2)

Fabio Chen
Fabio Chen

Reputation: 1

Use the https://pub.dev/packages/youtube_explode_dart package:

var yt = YoutubeExplode();

// Get playlist metadata.
var playlist = await yt.playlists.get('xxxxx');

Upvotes: 0

Omatt
Omatt

Reputation: 10491

You can check this youtube_player_flutter plugin and see if it fits your use case. The plugin doesn't seem to support playlist URLs directly, but you can create a List<String> videoURls containing all the video URLs you need for the playlist.

Upvotes: 0

Related Questions