sumseflut
sumseflut

Reputation: 678

YouTube video in video_player package

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?

Upvotes: 5

Views: 6199

Answers (1)

user14662881
user14662881

Reputation:

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.

Upvotes: 11

Related Questions