GPlayer icon indicating copy to clipboard operation
GPlayer copied to clipboard

How to add the http header request ?

Open morchidnb opened this issue 5 years ago • 2 comments

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

morchidnb avatar Jun 12 '19 16:06 morchidnb


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(() {});
      });

tcking avatar Jun 28 '19 03:06 tcking

thanks, for the help, done bro 👍

morchidnb avatar Jun 29 '19 10:06 morchidnb