video_player_web_hls icon indicating copy to clipboard operation
video_player_web_hls copied to clipboard

Headers not working

Open abdulllrashid opened this issue 2 years ago • 2 comments

I'm trying to pass the headers when playing m3u8 videos. Unfortunately, it isn't working somehow. Please refer to the screenshots.

My Code being

 _videoPlayerController =
              VideoPlayerController.network(videoUrl, httpHeaders: {
        'Cookie': "Cookies dummy string",
        'useCookie': "true",
        'useCookies': "true",
      })
Screenshot 2022-10-31 at 5 31 46 PM

abdulllrashid avatar Oct 31 '22 12:10 abdulllrashid

try document.cookie = "some value" before initializing the video

balvinderz avatar Oct 31 '22 13:10 balvinderz

i think cookie is not send when using localhost ( I can be wrong)

balvinderz avatar Oct 31 '22 13:10 balvinderz