pythonpyinstallervlclibvlc

Change vlc media_player process name


Is it possible to change the display name of the python-vlc module in the volume window?

I'm using this sample code

import vlc
inst = vlc.Instance()
player = inst.media_player_new()
media = inst.media_new('track.opus')
player.set_media(media)
player.play()

And the volume process on windows is displayed like this

app in volume mixer menu

And like this on linux

enter image description here


Solution

  • It works via instance. Try: set_user_agent(name, http)

    vlc_instance = vlc.Instance()
    vlc_instance.set_user_agent("Application Name", "HTTP/User/Agent")
    

    See https://www.olivieraubert.net/vlc/python-ctypes/doc/vlc.Instance-class.html