balvinderz/video_player_web_hls

Headers not working

abdulllrashid opened this issue · 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

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

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