Running extension in the background
Posted: 19 Jan 2020 21:44
I apologize if this question was asked already, I'm trying to develop an extension for VLC in Lua but for some reasons as soon as I hide the dialog I cannot show it back and reactivating the extension from the Menu also destroys/deactivates it completely and won't reshow the previous state.
Is there any way to achieve this?
I only test this code below on macOS I'm not sure if the issue is related to the OS:
I'm running VLC v3.0.8
Is there any way to achieve this?
I only test this code below on macOS I'm not sure if the issue is related to the OS:
Code: Select all
local dlg = nil
local function handle_hide()
dlg:hide()
end
function descriptor()
return {
title = "Test",
version = "0.1.0",
}
end
function meta_changed() return false end
function close()
vlc.deactivate()
end
function activate()
local row = 0
dlg = vlc.dialog("Show Tracker")
dlg:add_button("Hide", handle_hide)
end
function deactivate()
end