[vlc-devel] [RFC PATCH] VLC keystore API

Francois Cartegnie fcvlcdev at free.fr
Mon Nov 23 15:58:47 CET 2015


Le 23/11/2015 15:10, Thomas Guillem a écrit :
> 1/ Should we create a new keystore module each time a module
> (access/demux/other?) wants to access it ? I think it should be a singleton
> owned by libvlc, by the input thread or by the playlist to avoid too many
> connect/disconnect when playing a http playlist for example.

There comes auth cookie management in the way.

> 2/ It is possible to store more than one user/password for one
> protocol/server/port, that's why vlc_keystore_dict_find() return a list of
> entries.
> Therefore, If a default user is specified (in arguments or url),
> vlc_keystore_dict_find() will return only the entry matching with the user. But
> if no user are specified and if vlc_keystore_dict_find() return more than one
> entries, we can't know which user/password we should use. What should we do in
> that case ? Try only the first one and pop up a dialog if it fails ? (we can't
> test all user/password because the server could ban us)

Prompt with alternatives or fail. No default.

Francois


More information about the vlc-devel mailing list