Page 1 of 1

How to display a clickable OSD message?

Posted: 04 Nov 2022 02:26
by uioporqwerty
Perhaps I'm missing something since this is my first extension. But I've ensured that I have OSD enabled in VLC 3.x and I'd like to run an extension that will display a simple message to the user and then detect if the message has been clicked by the user. Is that possible?

I've tried adding `vlc.osd.message("testing",vlc.osd.channel_register(),"top-left",10*1000000)` to my `input_changed`method, but I never see any OSD message at all. I've seen some code floating around on github that attaches event listeners, is it possible to attach an "on click" event listener to an OSD?

Re: How to display a clickable OSD message?

Posted: 04 Nov 2022 02:52
by uioporqwerty
If I do the above, I'm getting an error on channel_register that says "Unable to find vout"

Re: How to display a clickable OSD message?

Posted: 20 Nov 2022 21:27
by mederi
No.

Re: How to display a clickable OSD message?

Posted: 07 Mar 2023 22:12
by dam3313
If I run vlc with this command line :

Code: Select all

vlc.exe --lua-intf=test_intf --input-slave=media1.ts --sout-all --sout #display media2.ts
the lua call :

Code: Select all

local channel = vlc.osd.channel_register()
return the error : "Unable to find vout"
Does someone know how to solve it ?

Re: How to display a clickable OSD message?

Posted: 09 Mar 2023 13:13
by Alaric
Most likely the vout handled by the display stream output isn't shared to the player. Are you sure you need to use stream output here? Wouldn't it work simply with:

Code: Select all

vlc.exe --lua-intf=test_intf --input-slave=media1.ts media2.ts