Open Amaanboon opened 5 months ago
Take a look at the cocoavlc.py example, specifically the method AppVLC._VLClogo
on line 568.
Here is a copy of that method. The logostr
argument is the file name of the logo image.
def _VLClogo(self, logostr):
# add a video logo image, example "... -logo
p = self.player
g = vlc.VideoLogoOption # Enum
# <https://Wiki.VideoLan.org/Documentation:Modules/logo>
_g_int = p.video_set_logo_int
_g_int(g.logo_enable, 1)
_g_int(g.logo_position, 0) # FIXME: 0 == vlc.Position.center.value
_g_int(g.logo_opacity, 128) # 0-255
# _g_int(g.logo_delay, 1000) # millisec
# _g_int(g.logo_repeat, -1) # forever
p.video_set_logo_string(g.logo_file, logostr)
I am trying to display a logo using VideLogoOption
Error: "argument 3: TypeError: wrong type" error
How to pass the file path?