YouTube video in video_player package
879
You can't use the video_player plugin for playing YouTube videos. It doesn't support that. You can play videos from network but it should be video (ends with a valid extension). YouTube videos are different.
You need to use something like youtube_player_flutter, or youtube_explode_dart. You can search other plugins on pub for this as well.
Author by
sumseflut
Updated on December 26, 2022Comments
-
sumseflut over 1 year
i started use this package: https://pub.dev/packages/video_player. But me need use this package for showing video from YouTube videos, how can i do this, cuz default ulr from YouTube not working?
-
sumseflut over 3 yearsOkay thank you. These packages (what you sent) can they play videos from different url or just youtube?
-
Admin over 3 yearsYou're welcome. Those can only play youtube videos.