[vlc-devel] VLM api doesn't appear to make sense
Rémi Denis-Courmont
remi at remlab.net
Tue Feb 2 09:53:11 CET 2016
Hello,
Le 2016-01-28 06:26, Richard Postelnik a écrit :
> Im coming from the python bindings so I may be missing something, but
> the vlm api seems to be incorrect. All of the
> libvlc_get_media_instance_XXX functions say "get XXX by psz_name or
> instance id". The only problem is that it appears both are required
> by looking at libvlc_get_media_instance (psz_name to check if it
> exists, instance id to get select from pp_minstance array). I
> noticed on the python side because I am able to
> play/stop/pause/change
> a media with only the psz_name but I cant get things like the media
> position with just psz_name. No where with the python bindings do
> you get an i_instance (instance id), all the vlm functions mainly
> return 0 or -1.
>
> Please advise.
The VLM API is a piece of crap. As far as I remember, the only design
criteria was to minimize the effort in wrapping the existing VLM
component. This was already known when said API was proposed for merging
years ago.
I can't comment on the Python bindings.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list