[vlc-devel] vlc and RTSP authentication
Jean-Paul Saman
jean-paul.saman at planet.nl
Sat Mar 8 11:32:55 CET 2008
Ross Finlayson wrote:
>> Le Friday 07 March 2008 05:50:09 Jean-Paul Saman, vous avez écrit :
>>> Ratin wrote:
>>> > Anybody here know if vlc support digest authentication for RTSP? I set
>>> > username and password in demuxer->rtsp options but that
>>> > doesnt seem to send any authentication information to the rtsp server
>>> > when authorization is required.
>>> >
>>> > Thanks
>>> > Ratin
>>>
>>> vlc rtsp://user:pass@server.mine/my/movie
>> Are you sure this is using Digest authentication, not plain-text, though? I
>> thought VLC did not support Digest - though I don't know about Live555.
> Gtz
> The LIVE555 RTSP client implementation (used in
> VLC) handles this type of RTSP URL by parsing the
> username and password from the URL, and using
> this for Digest authentication, *if* the server
> requests Digest authentication in its response to
> the first "DESCRIBE". Note that if the server
> askes for *Basic* authentication, then the
> LIVE555 RTSP client code will do that instead.
> (In any case, though, the username and password
> are left in the URL that gets sent to the server.)
>
> It is also possible to do Digest authentication
> without sending the username and password over
> the network. If the server requests Digest
> authentication (in its response to the first
> "DESCRIBE"), the the VLC interface code
> ("live555.cpp") is supposed to then pop up a
> dialog box asking for the user to enter a
> username and password. These are then used in
> Digest authentication.
>
> At least, this is what VLC is *supposed* to do in
> this case; I haven't tested it myself :-)
VLC will use the password embedded in the URL. If it isn't available and
the server returns a 401, then a password dialog pops up to ask for the
user/passwd. This will also happen when the user/pass embedded in the
url is wrong.
Gtz
Jean-Paul Saman.
More information about the vlc-devel
mailing list