Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter - Send headers with video player

I'm trying to use Flutter video_player plugin. But the API that the app uses requires a header for authorization.

After I looked up to the plugin's source, I found nothing about supporting the header in Flutter video player. Is there another way?

If not, how can I use an Android native plugin in flutter?

As far as I know Android itself supports this feature. Because I can't wait for the Flutter team to support this feature. My deadline is about to end.

Any help would be appreciated

like image 510
Salar Bahador Avatar asked Aug 08 '26 19:08

Salar Bahador


1 Answers

For anyone Who is currently looking for a viable http flutter video plugin a new and really good package has been created which supports http headers for video as well as many other Features. The name of the package is: https://pub.dev/packages/better_player/changelog . Hope you'll like it.

like image 141
Christian X Avatar answered Aug 10 '26 13:08

Christian X