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.

Share:
879
sumseflut
Author by

sumseflut

Updated on December 26, 2022

Comments

  • sumseflut
    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
    sumseflut over 3 years
    Okay thank you. These packages (what you sent) can they play videos from different url or just youtube?
  • Admin
    Admin over 3 years
    You're welcome. Those can only play youtube videos.