-
Notifications
You must be signed in to change notification settings - Fork 12
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
httpHeaders are not set correctly #45
Comments
I tried to support http headers. Please try it with the following dependency: dependencies:
video_player_win:
git:
url: https://github.com/jakky1/video_player_win.git
ref: support_http_headers If http headers not set, the package works in the same way as before. Known issues:
Please let me know if it works well :) |
Hi, thanks a lot. I can confirm that the headers are correctly set. About the known issues you highlighted:
Thanks again for the quick intervention :) |
in normal way, So I pass a
You can look into hSession = WinHttpOpen(L"A WinHTTP Example Program/1.0",
WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY,
WINHTTP_NO_PROXY_NAME,
WINHTTP_NO_PROXY_BYPASS, 0); According to WinHttpOpen readme, You can read the definition about If the proxy is secured, |
fyi: work fine on ref: support_http_headers. |
@njzimpli , I will release the solution if anyone report it works with company proxy in intranet. I also hope that when anyone sees this message, they can help test it out. Thanks :) |
Hi, sorry for the late response. I had to completely reset my OS and a lot of other things. So I was able to create a stable testing environment using a docker container to setup a proxy: I can confirm that this way video playback works perfectly even using a proxy. (So yea in the end it was my machine configured in some buggy way, after the complete rest everything works as you expected) I tried many other freely available proxy online but none of them is configured to allow for direct-streaming of requests - they all wait for the full response to arrive before forwarding it to the client so won't work even on a normal browser or any other application trying to play an mp4 from the internet |
The
VideoPlayerController.network
constructor accepts anhttpHeaders
paramether; Setting, for example, theUser-Agent
to something specific is not reflected in the HTTP request made by the controller.As an example, invoking the constructor like this:
results anyway in an HTTP call with User-Agent set to
NSPlayer/12.00.19041.5007 WMFSDK/12.00.19041.5007
The text was updated successfully, but these errors were encountered: