Skip to content

How to check authentication when entering SMB devices or folders

Sorry for not applying templates here.

I asked a question recently on StackOverflow here: https://stackoverflow.com/questions/75571238/how-do-i-check-authentication-while-searching-local-media-servers-via-libvlc-or

And I received an answer indicating another link below: https://stackoverflow.com/questions/65677217/libvlcsharp-how-to-play-rtsp-stream-using-password-and-media-option-when-passw/65677758#65677758

I can understand that I can call the SetDialogHandler() method when playing videos that need authentication. But It seems not working at the time I just enter some SMB device folders.

What I need is exactly similar to the functionality in the VLC app for Android that I'd like to open my custom dialog when I firstly open the root folder of a protected SMB device. How do I implement this kind of feature?