sarbagyastha / youtube_player_flutter

A Flutter plugin for inline playback or streaming of YouTube videos using the official iFrame Player API.
https://youtube.sarbagyastha.com.np
BSD 3-Clause "New" or "Revised" License
707 stars 817 forks source link

[BUG] YouTube playlist support #865

Open petcupaula opened 1 year ago

petcupaula commented 1 year ago

Describe the bug

Documentation specifies that YouTube playlists are supported, and thus expected behaviour would be that one can use a playlist id. This does not seem to be the case.

To Reproduce

await _controller.loadPlaylist(list: ["PLmXxqSJJq-yXrCPGIT2gn8b34JjOrl4Xf"], listType: ListType.playlist);

Getting:

"An error occurred. Please try again later. (Playback ID: PxKRWYNW1YLoGwGZ)"

Expected behavior

Expecting the videos in the playlist (specified by the playlist id) to be loaded, and that one does not need to specify manually the videoids in the playlist.

Technical Details:

Additional context Seems like this is an issue that others ran into (https://stackoverflow.com/questions/62947626/how-to-add-youtube-playlist-with-video-in-my-flutter-app), and if it is correct that the library does not support YouTube Playlist ids, then it should be documented.

gferreirakalshi commented 1 year ago

Same problem here, if I try to load a playlist by only passing the playlist id won't work. If I try to pass multiple video id's then the plugin will work properly