Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add the http header request ? #3

Open
morchidnb opened this issue Jun 12, 2019 · 2 comments
Open

How to add the http header request ? #3

morchidnb opened this issue Jun 12, 2019 · 2 comments

Comments

@morchidnb
Copy link

Please Is there any way to add http header for the Gplayer in flutter ?

@tcking
Copy link
Owner

tcking commented Jun 28, 2019

player = GPlayer(
        uri: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
        options: [Option(1, 'headers', 'Connection: keep-alive\r\nuser-agent: okhttp\r\n')], //add headers
        mediaController: DefaultMediaController(
            title: 'bunny bear', gestureControlEnabled: true))
      ..init()
      ..addListener((_) {
        //update control button out of player
        setState(() {});
      });

@morchidnb
Copy link
Author

thanks, for the help, done bro 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants