Python Binding Media Discoverer
Posted: 15 Feb 2019 05:59
Hello All-
How do I know what sources are available for a system with the python bindings? I think I have to use the MediaDiscoverer, but not quite sure. Looking at the API instance.Media_discoverer_new() needs a psz_name...ok and a hint in the doc to use instance.media_discoverer_list_get to get a list of names. Ok. That function takes an i_cat, which found in the source, but also a ppp_services. Ok, source has this to say:
@param ppp_services: address to store an allocated array of renderer discoverer services (must be freed with libvlc_renderer_list_release()
But I have no idea what that means. I tried passing in a list but it didn't like it.
I googled and search here on forum/docs but no luck.
Thanks for any insight.
How do I know what sources are available for a system with the python bindings? I think I have to use the MediaDiscoverer, but not quite sure. Looking at the API instance.Media_discoverer_new() needs a psz_name...ok and a hint in the doc to use instance.media_discoverer_list_get to get a list of names. Ok. That function takes an i_cat, which found in the source, but also a ppp_services. Ok, source has this to say:
@param ppp_services: address to store an allocated array of renderer discoverer services (must be freed with libvlc_renderer_list_release()
But I have no idea what that means. I tried passing in a list but it didn't like it.
I googled and search here on forum/docs but no luck.
Thanks for any insight.