solid-software / flutter_vlc_player

📺 Flutter VLC powered video player.
500 stars 247 forks source link

libvlc stream: HTTP 401 error #387

Open TNelen opened 1 year ago

TNelen commented 1 year ago

Hi,

I'm using the flutter vlc player to display a mjpeg steam from IP camera.

This url is protected by username and password authentication.

When using google chrome to browse to the url, I get a popup to enter a username and password.

According to multiple online sources (e.g https://www.tutorialspoint.com/http-basic-authentication-url-with-in-password#:~:text=The%20username%20and%20password%20must,%3A%2F%2Fusername%3Apassword%40URL.) I can skip this authentication using the http://username:password@url.com format

But when using the format also, i get a HTTP 401 error when connecting to the stream.

Url is structured like this: http://_username:password_@_endpoint_:11002/axis-cgi/mjpg/video.cgi?resolution=800x600

When entering this URL in google chrome the camera feed is displayed without issue and no login popup.

what am I missing to get the VLC video player to work in my flutter app?

Thanks in advance.

pinpong commented 1 year ago

I've tested that with several cameras and got always an error if the auth failed.

wengxianxun commented 2 months ago

any answer? how do you fix this problem?