[Android] Using libvlc to resolve NetBIOS names
Geoffrey Métais
geoffrey at videolan.org
Mon Nov 20 10:04:54 CET 2017
Yes, look at VLC's NetworkBrowserFragment
<https://code.videolan.org/videolan/vlc-android/blob/2.5.9/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java#L169>,
you can ask it to discover network shares.
There are options to select smb only if needed.
Le dim. 19 nov. 2017 à 04:06, Tommy Tran <tommy at tranfamily.me> a écrit :
> I’m using libvlc’s MediaDiscover to discover SMB shares on the LAN. The
> Media instance I got back through onMediaAdded has the uri of the form
> smb://servername/. Unfortunately, on some Android device, the netbios
> names can’t be resolved. I know libVLC itself can resolve the netbios name
> internally somehow since if I pass smb://servername/file to vlc’s
> MediaPlayer instance, it can play the file fine. I need to resolve the
> netbios names outside of libvlc since I’m using JCIFS and it throws
> UnknownHostException when servername is a netbios name and it works fine
> when servername is an actual IP address.
>
> Is there any way to have libvlc resolve the netbios name for me so that I
> don’t have to pull in another dependency just to resolve the netbios host
> names?
> _______________________________________________
> Android mailing list
> Android at videolan.org
> https://mailman.videolan.org/listinfo/android
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20171120/e9dfa975/attachment.html>
More information about the Android
mailing list