Prevent VLC from closing because of unsaved data

Discuss your Lua playlist, album art and interface scripts.
lsaranto
New Cone
New Cone
Posts: 1
Joined: 06 Jul 2021 17:20

Prevent VLC from closing because of unsaved data

Postby lsaranto » 09 Jul 2021 17:53

I managed to make an extension! Hurray. The extension might hold data the user has intended to save when VLC wants to exit (like if VLC has been set to exit when the video ends). Is there a way to delay the exit and show a dialog to save or discard the data? Otherwise, I guess I just have to save the data every time the user takes action.

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: Prevent VLC from closing because of unsaved data

Postby mederi » 10 Jul 2021 12:47

No. You can only save data within close() function when VLC closes a dialog box of an extension.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 1 guest