Showing picture on VLC addon dialog

Discuss your Lua playlist, album art and interface scripts.
sbrbot
New Cone
New Cone
Posts: 9
Joined: 06 Aug 2021 20:15

Showing picture on VLC addon dialog

Postby sbrbot » 09 Aug 2021 14:01

Is it possible to show a picture on VLC addon dialog? I mean, picture dowloaded from web site - for example using vlc.straeam() to download image content in binary from and then show it in dialog with add_image widget or something like this.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Showing picture on VLC addon dialog

Postby mederi » 14 Aug 2021 19:47

d:add_image( path, ... ): Create an image label. path is a relative or absolute path to the image on the local computer.

sbrbot
New Cone
New Cone
Posts: 9
Joined: 06 Aug 2021 20:15

Re: Showing picture on VLC addon dialog

Postby sbrbot » 17 Aug 2021 22:27

I'm aware of add_image() method but for me relative path does not work (does relative path mean that image file must reside in the same extensions folder where addon lua file resides or something else - relative to what!?).
Absolute file path works but that's not applicable in reality.

sbrbot
New Cone
New Cone
Posts: 9
Joined: 06 Aug 2021 20:15

Re: Showing picture on VLC addon dialog

Postby sbrbot » 17 Aug 2021 22:53

I found it, the relative path means relative to VLC's installation folder (C:\Program Files\VideoLAN\VLC)

So

Code: Select all

d:add_images("C:\\Program Files\\VideoLAN\\VLC\\lua\extensions\\image.png",1,1)
is the same as

Code: Select all

d:add_images("lua\\extensions\\image.png",1,1)
If VLC is installed in default folder


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 16 guests